1. Card not Present Billpocket Services
  • API Docs Mexico 🇲🇽
  • Online Payments
    • Release Notes
    • Card Payments
      • Request a card token
      • Make a charge or deferred charge
      • Create payment (tokenless)
      • Request deferred options
      • Refund a transaction
      • Authorize payments
      • Preauthorization (tokenless)
      • Void a transaction
      • Reauthorize payments
      • Capture an authorized payment
      • Bin Info V2
      • Bin Info
      • Validate OTP
    • One-Click and Scheduled Payments
      • Request a recurring charge token
      • Create a recurring charge
      • Make an One-click payment
      • Update recurring charge card data
      • Cancel a recurring charge
      • Update a recurring charge
      • Add a temporary charge or discount
      • Authorize payments
      • Capture an authorized payment
      • Get recurring charge Info
    • Transfer in
      • Get Bank List
      • Request a Transfer In token
      • Init Transaction
      • Get Status
    • Transfer Out
      • Get Bank List
      • Get Bank List V2
      • Request a Transfer Out token
      • Init Transaction
      • Get Status
      • Balance for Payouts
    • Smartlinks
      • Create a Smartlink
      • Get a Smartlink
      • Delete a smartlink
      • Update a Smartlink
    • Payment Button
      • Create a payment button
    • Analytics
      • Get transactions list v1
      • Get transactions list v2
    • Chargebacks
      • Query Chargebacks
      • Request Chargeback Export
    • Commissions
      • Get Commission Configuration
    • Payment Credentials
      • Create a credential
      • Activate or deactivate
      • Delete credential
      • Regenerate a credential
      • Update credential
      • Advanced search
      • Search credentials
    • Platform Status
      • Get platform status
      • Get gateway status
    • Settlement
      • Query settlement
    • Subscription Transactions
      • Get subscription transactions
  • Card Present Billpocket
    • Get Started
      • Create Account
      • User Token
      • API Keys
    • Webhooks
      • Webhooks — Transfer Funds to Your Bank Account
      • Transfer Funds Errors
    • Terminals
      • App Review
      • Splash Screen
    • Card Present Payment Services
      • Cloud Terminal API
        • Collect card payments
        • Print Ticket
        • Cancel Push Notification
        • Get transaction status
        • Collect card payments v2
      • App-to-App
        • Android intents
        • App to App — iOS
        • App to App — Mobile Web
      • Terminal SDK
        • Terminal SDK Android
        • Android SDK errors
    • Card not Present Billpocket Services
      • 3DS Checkout
        • Create checkout
        • Get checkout details
      • E-commerce Flex
        • Get token
        • Validate token
        • Collect payments
        • Refund
        • Capture an authorized payment
        • Get status
    • Catalogs
      • States
      • Municipalities
      • Tax companies
      • Commercial activities
    • User Settings
      • Create user
    • Accounts
      • Clabe Account Setup
        • Add CLABE account
      • Deposit Accounts
        • Add or update CLABE account
    • Transactions
      • Transaction List
        • Get token
        • Get transaction list
        • Get transaction list v2
        • Get transaction list v3
        • Get transaction list v4
      • Cancel Payments
        • Cancel payments Error Codes
        • Cancel payments
  • API Raw Card Present
    • The Amount Object
    • Error Catalog
    • Key Exchange Process
    • Release Notes
    • Test Data
    • One-time payments
      • Single payment
    • Two-step-payments
      • Authorization and capture
    • Voids & Refunds
      • Refund a transaction
      • Void & Reverse
    • Card information
      • Get BIN Info
      • Bin Info V2
      • Request deferred options
    • Query Transactions
      • Transaction Search
    • Webhooks
      • Webhooks — Introduction
      • Good Practices
      • Webhooks — Card Payments
      • Webhooks — Refunds
      • Check Your Webhooks
    • Chargebacks
      • Query Chargebacks
      • Request Chargeback Export
  • Kushki One
    • Error Catalog
    • Release notes
    • Transaction Examples
    • Webhooks
    • Cloud Services
      • Payment
        • Sync
          • Charge
          • Authorization (Pre-auth)
          • Capture
          • Re-authorization
          • Post-tip
          • Void
          • Refund
          • Abort
        • Async
          • Charge (Async)
          • Authorization — Pre-auth (Async)
          • Capture (Async)
          • Re-authorization (Async)
          • Post-tip (Async)
          • Void (Async)
        • Search
          • Transaction Search
      • Print
        • Create Print Job
        • Get Print Job Status
    • Local Services
      • Payment
        • Sync
          • Charge
          • Authorization (Pre-auth)
          • Capture
          • Re-authorization
          • Post-tip
          • Void
          • Refund
          • Abort
        • Async
          • Charge (Async)
          • Authorization — Pre-auth (Async)
          • Capture (Async)
          • Re-authorization (Async)
          • Post-tip (Async)
          • Void (Async)
          • Abort (Async)
        • Search
          • Transaction Search — Online
          • Transaction Search — Local
      • Print
        • Create Print Job
        • Get Print Job Status
        • Print Job Webhook (inbound — implemented by your POS)
  • Appian - Submerchant Register
    • Submerchant Validation in Batch
    • Query submerchant status by requestId/submerchantId
    • Submerchant Document Upload
    • Get submerchantIds
    • Get credentials for submerchants
  • Schemas
    • RequestBodies
      • one-and-two-step-payment
    • Card
    • Channel
    • Amount-cash-in
    • ChargebackListResponse
    • StatusComponent
    • SettlementDateRangeRequest
    • SubscriptionTransactionsResponse
    • amount
    • TransactionResponse
    • PrintJobRequest
    • one-and-two-step-payment-2
    • networkToken
    • ChargebackItem
    • SubscriptionTransaction
    • extra_taxes
    • RawResponse
    • CommandText
    • currency
    • ErrorResponse400
    • ErrorResponse
    • SettlementResponse
    • SettlementRecord
    • webhooksItem
    • card
    • CardData
    • CommandColumns
    • Amount
    • Country
    • ErrorResponse401
    • card_details
    • LinkFailure
    • ColumnItem
    • extraTaxes
    • ErrorResponse403
    • enc_tlv
    • CommandDivider
    • TransactionEvent
    • Deferred
    • payment_method
    • ErrorResponse500
    • deferred
    • CommandFeed
    • TransactionStatus
    • pos_details
    • CommandSpace
    • ReadingType
    • ContactDetails
    • contact_details
    • sub_merchant
    • CommandCut
    • FailureReason
    • documentType
    • Subscription
    • metadata
    • CommandImage
    • EventTerminal
    • orderDetails
    • Language
    • TransactionSearchRequest
    • CommandQR
    • EventOperation
    • Shipping Address
    • payment_submethod
    • CommandBarcode
    • EventAmount
    • Billing-Address
    • SubscriptionUpdate
    • EventExtraTaxes
    • PrintJobAccepted
    • product
    • SubscriptionAdjustmentRequest
    • PrinterError
    • EventMetadata
    • threeDomainSecure
    • AmountWithTaxes
    • PrintJobStatus
    • PrintJobStatusRequest
    • webhooks
    • AmountCore
    • headers
    • ExtraTaxes
    • PrintWebhookPayload
    • Metadata
    • webhooksChargeback
    • citMit
    • AmountWithTip
    • network
    • TransactionSearchBody
    • TransactionSearchOnlineBody
    • binInfo
    • AmountWithOptionalTip
    • TransactionSearchLocalBody
    • messageFields
    • TransactionEvent_2
    • UnexpectedErrorResponse
    • FailureReason_2
    • transactionType
    • ExternalReferenceId
    • EventTerminal_2
    • ExternalSubscriptionId
    • EventOperation_2
    • EventAmount_2
    • EventExtraTaxes_2
    • EventMetadata_2
    • SettlementTicketRequest
BienvenidaPerú 🇵🇪México 🇲🇽
Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
BienvenidaPerú 🇵🇪México 🇲🇽
Ecuador 🇪🇨Colombia 🇨🇴Chile 🇨🇱
  1. Card not Present Billpocket Services

E-COMMERCE FLEX

Accept payments in your online store with full control over the payment flow. Tokenize a card, perform one-time charges, authorizations with capture, recurring charges, and refunds — all through a direct REST API.
INFO
Service available in Mexico only.

Requirements#

A valid account
An API key

Environments#

EnvironmentBase URL
Devhttps://lancehorn.billpocket.dev
Livehttps://lancehorn.billpocket.com

Get a card token#

POST /scops/card
Tokenize the cardholder's PAN before processing a payment. Send the card number, expiry date (YYMM), and your API key.
Request:
{
  "pan": "4000000000000002",
  "expDate": "3012",
  "apiKey": "myAPIKey"
}
Response:
{
  "status": 1,
  "message": "Card stored successfully",
  "cardToken": "zJ3STsWSaEsoc6YTyTsWV1S-WI0_czchV1doc6YTy-WI0_czchV1d",
  "maskedPAN": "400000******0002"
}

Validate a token#

GET /scops/card/{cardToken}?api_key={apiKey}
Check whether a token is valid before charging. A status: 1 means the token exists and contains valid card data.
Response:
{
  "status": 1,
  "message": "Card does exist",
  "maskedPAN": "400000******0002"
}

Collect a payment#

POST /scops/txn
Process a charge against a tokenized card. Supported transaction types:

One-time payment#

{
  "apiKey": "myAPIKey",
  "cardToken": "zJ3STsWSaE...",
  "cvv": "111",
  "amount": 500
}

Authorization (pre-auth)#

{
  "apiKey": "myAPIKey",
  "cardToken": "zJ3STsWSaE...",
  "cvv": "111",
  "amount": 500,
  "txnType": "checkIn"
}

Recurring charge#

{
  "apiKey": "myAPIKey",
  "cardToken": "zJ3STsWSaE...",
  "cvv": "111",
  "amount": 500,
  "txnType": "recurring",
  "contractNumber": "contract123"
}

Deferred (MSI)#

{
  "apiKey": "myAPIKey",
  "cardToken": "zJ3STsWSaE...",
  "cvv": "111",
  "amount": 600,
  "paymentPlan": 3
}

Without token#

{
  "apiKey": "myAPIKey",
  "cardReq": {
    "pan": "4000000000000002",
    "cvv2": "111",
    "expDate": "3012"
  },
  "amount": 500
}
Approved response:
{
  "value": {
    "status": 1,
    "message": "APROBADA",
    "opId": 128540,
    "txnISOCode": "00",
    "authNumber": "BP0190",
    "ticketUrl": "38cca53d999...",
    "amount": 500,
    "maskedPAN": "400000******0002",
    "dateTime": 1717721589822
  }
}

Capture an authorization#

POST /scops/txn/checkout
Capture a prior authorization. Omit amount for a full capture, or send a lower amount for a partial capture.
INFO
You have 20 days to capture an authorization. After that, held funds are released by the issuing bank.
Full capture:
{
  "apiKey": "myAPIKey",
  "opId": 128612
}
Partial capture:
{
  "apiKey": "myAPIKey",
  "opId": 128612,
  "amount": 250
}
Response:
{
  "status": 1,
  "message": "APROBADA",
  "opId": 128802,
  "txnISOCode": "00",
  "maskedPAN": "424242******4242",
  "dateTime": 1718138178662
}

Refund#

POST /scops/txn/refund
Request a full or partial refund. Omit amount for a full refund, or send a lower amount for a partial refund.
{
  "apiKey": "myAPIKey",
  "opId": 128612,
  "amount": 200
}
Response:
{
  "status": 1,
  "message": "APROBADA",
  "opId": 128608,
  "txnISOCode": "00",
  "maskedPAN": "400000******0002",
  "dateTime": 1717772908535
}

Get transaction status#

GET /scops/txn/{opId}?api_key={apiKey}
Retrieve status and details for a previous transaction.
Response:
{
  "status": 1,
  "opId": 124100,
  "txnISOCode": "00",
  "txnISOTextual": "APROBADA",
  "authNumber": "BPCK01",
  "ticketUrl": "7cfa45251c4...",
  "amount": 500,
  "maskedPAN": "400000******0002",
  "dateTime": 1703624741000,
  "captureIndicator": "0"
}

Next steps#

Review the E-commerce Flex API reference
Use test cards to simulate payments

Got a suggestion on this documentation? Contact us.
Modified at 2026-07-10 16:39:18
Previous
Get checkout details
Next
Get token
Built with