Create a payin (top-up charge)
Requires an approved account identity; person accounts need approved KYC and company accounts need approved KYB before this authenticated operation can create or charge a payin. Creates a fiat top-up. For method: "bank_transfer", the platform rejects an amount below the account-specific fee minimum before creating the announcement; the 422 message includes the current local minimum when the account rate is available. With method: "qr" (default) an active QR charge is generated through the processor — in Bolivia the local interoperable QR, in Brazil a dynamic PIX QR whose charge is denominated in BOB, carries the PNG QR image and exposes the payer-facing BRL conversion (Brazil does not return a copy-and-paste EMV payload). With method: "bank_transfer" the deposit is announced and the response carries the reference the sender must include so the arriving transfer is matched and credited automatically — a short 12-character alphanumeric code that fits any bank concept field (some rails cap it at 20 characters with no special characters). With method: "fintoc" (Chile) the response carries a hosted payment_url: the payer opens it and transfers from any Chilean bank or wallet; the deposit is detected, validated and credited automatically. With method: "card" the response carries a hosted payment_url for a 3-D Secure card checkout branded with your organization — Bolivia (BOB) and international cards in USD (country: "US", Visa, Mastercard, American Express, Discover and Diners issued anywhere); card data never touches your integration. When stored_card_id is absent, an open pending/challenge card session can be reused for the same account, country, currency, amount and payer_reference (falling back to customer.email), returning HTTP 200 with session_reused: true and the existing payment_url. Card sessions default to 60 minutes and accept explicit expiries up to 48 hours. The account cap is 50 open sessions; if unused zero-attempt pending sessions cannot be evicted, the response is 429 too_many_open_card_sessions. With method: "checkout" the response carries a public checkout_url — a branded universal checkout link denominated in the virtual balance of your choice (settlement_asset: USD, USDT, USDC, BTC, GOLD, SILVER or PLATINUM; fiat BOB/MXN/ARS/CLP/UF are rejected). The payer picks any country with a live payin corridor (quoted local amount), any of the 4 crypto options (exclusive deposit address with a scannable QR), or pays instantly from the CBPay app via the merchant QR/alias; every payment is auto-converted to the settlement asset unless paid in the same asset. The first method that completes the payment wins. Charging is free; the payin fee applies when the deposit is credited. The live catalog may also expose PY/PYG, CO/COP, EC/USD and BR/BOB QR plus BR/BRL hosted PIX corridors. COP is integer-only; PYG, USD and BRL accept at most two decimals. BR/BRL/pix is a hosted redirect and requires payer name and document; its minimum is 1 BRL. wallet may be hosted or collect-only depending on the corridor.
Authorizations
Headers
Body
Corridor currency. Required for every method except checkout, which rejects it with 400 — the charge is denominated in settlement_asset. Chile card payins are documented for CLP (integer amounts) and UF (at most two decimals, charged natively on the card rail and converted internally), but the CL/UF/card and CL/UF/cash corridors are temporarily disabled in production pending approval; current requests return 409 corridor_disabled or 422 core_rejected.
"BOB"
Positive decimal string. Local currency amount for corridor methods; for checkout it is denominated in the settlement_asset ("50" USDT, "0.001" BTC, "2" grams of gold). Decimal places are capped per currency (CLP admits no decimals, UF at most two); violations surface as 422 core_rejected with the message "amount has too many decimals for this currency". UF corridors are temporarily disabled in production pending approval.
Charge expiration in seconds. For method: "qr", send integer seconds; the server selects the configured QR rail. The legacy QR contract is effective up to 86399 seconds, while the 7-day QR rail is effective up to 604800 seconds. Values above the selected rail maximum are capped, not rejected. For checkout, it accepts 600 to 604800 (10 minutes to 7 days; default 24 hours).
Collection mode. qr creates an active QR charge through the processor; bank_transfer announces an incoming deposit and returns the reference to include in the transfer description. The amount must cover the account's fixed fee at its current rate; otherwise creation returns 422 amount_below_minimum with the local minimum in the message. If no rate is available, this pre-check is skipped and the ledger guard remains authoritative. fintoc (Chile only) returns a hosted payment_url where the payer transfers from any Chilean bank or wallet and the deposit is detected automatically; pix (Brazil only) returns a hosted payment_url for a PIX redirect checkout (payer_name and payer_document required, minimum 1 BRL); card returns a hosted payment_url for a 3-D Secure card checkout (Bolivia in BOB, international cards in USD when country is US, or Chile cards in CLP or UF); the Chile UF card and cash corridors are temporarily disabled in production pending approval and return 409 corridor_disabled or 422 core_rejected; on the Chile card page the payer may split the charge into 2-48 issuer installments (the receipt shows months; one-click payments with a stored card are always single-charge); checkout returns a public checkout_url where the payer picks the payment method (QR, card, bank transfer or crypto). Use /v1/payins/collect for pull collections. wallet is hosted or collect-only depending on the corridor; collect-only flows do not return a payment URL.
qr, bank_transfer, fintoc, card, checkout, wallet, cash, pix For method: "card", this key is required; send it in the body or as the Idempotency-Key header. It is optional for qr, bank_transfer, fintoc, pix and checkout methods. A retry with the same key returns the original payin with HTTP 200 and idempotency_hit: true — the same payment_url/checkout_url for hosted methods, or the SAME reference for an announced bank transfer — instead of opening a second charge. If the key points to a failed, expired or cancelled QR charge, the API returns HTTP 422 previous_attempt_failed with the generalized message request could not be processed; use the code, rotate the key and submit again for a fresh QR. On announced transfers this decides whether the money can be credited: two live announcements with the same amount and no payer identity are indistinguishable, so the arriving deposit would stay unassigned. If you omit the key we still collapse an identical retry (same account, currency, amount and payer document) into the original announcement; send a distinct key when you really need two separate charges for the same amount and payer.
256^[^\r\n]{1,256}$Checkout only — the virtual balance the charge is denominated in and settles into. When omitted it resolves to your payin_settlement_asset (USD is the principal balance). Every payment is auto-converted to this asset on credit (same-asset payments skip conversion). Local fiat (BOB, MXN, ARS, CLP, UF) is rejected. Must be enabled for your organization (422 settlement_asset_disabled otherwise).
USD, USDT, USDC, BTC, GOLD, SILVER, PLATINUM Card method only — offer the payer a "save this card" checkbox on the hosted page. The credential is stored ONLY if the payer ticks it (explicit consent) and the 3-D Secure payment is approved; the payin_received/payin_credited flow then carries a stored_credential block and the card appears in GET /v1/stored-cards.
Card method only — your own plain-text identifier for the payer (max 120 chars). It is the preferred identity for reusing an open pending/challenge card session; when absent, customer.email is used as the fallback. It scopes stored-card discovery and charges within the calling account; the same email or reference in another account cannot discover or use the credential.
120Card method only — pay with a previously saved card (see GET /v1/stored-cards). The hosted page skips card entry and shows the saved card; 3-D Secure still runs. Mutually exclusive with save_card. Unknown or revoked card, including a credential from another account, responds 404. The billing details saved with the credential are applied automatically on the hosted page (masked summary with an edit link — the payer retypes nothing).
Payer identity. Required for qr in BR/BOB and for pix (Brazil hosted redirect); for announced bank transfers it is the optional tax or national ID of the sender (at least 5 characters, one of them a digit): when you omit it the account holder's verified tax id is used, so a self-deposit is recognised even if the payer forgets the reference. Send it when a third party pays.
40Card method only — where the net settles. account (default) credits your general balance as always. existing funds an already-provisioned segregated wallet (segregated_wallet_id required). get_or_create reuses the wallet bound to segregated_key or provisions it on the fly (segregated_chain and segregated_key required, segregated_asset defaults to the chain asset). new_per_payin provisions a fresh wallet per payin (segregated_chain required). In segregated modes the net is funded on-chain to the wallet address with a traceable transaction id; card settlement hours still apply before funding. Provisioning a wallet charges the standard wallet_creation fee to your general balance (refunded if the core rejects it); when your organization enabled deferred creation billing, provisioning needs no balance and the fee is deducted from the first on-chain funding to that wallet instead, priced at funding time (wallets report creation_fee_pending until it is collected); the first funding must cover funding fee + creation fee or it waits visible in staging (reversible via refund); person accounts hold one wallet per network/asset pair. Card session reuse is scoped per destination wallet, and by default at most 50 wallets can be provisioned per account per day (your operator can raise the limit for your organization).
account, existing, get_or_create, new_per_payin Card method only — wallet asset for get_or_create and new_per_payin. When omitted it defaults to the chain asset (for example USDT on tron). Supported pairs: tron/usdt, eth/usdt, eth/usdc, polygon/usdt, polygon/usdc, polygon/usdce, base/usdc, btc/btc. On-chain funding in v1 supports USDT/USDC targets; other assets return invalid_asset.
Response
Idempotent replay of a QR or announced transfer (bank_transfer), or reuse of an open card session (card). QR and bank-transfer replays return the original payin with idempotency_hit: true; card reuse returns the existing payment_url and session_reused: true. No second charge or session is created.