Open the processor invoice (payment addresses) for a live checkout
package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/public/checkout-sessions/example/processor-invoice"
payload := strings.NewReader("{ \"asset\": \"example\" }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/public/checkout-sessions/example/processor-invoice';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"asset":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.feitpay.com/v1/public/checkout-sessions/example/processor-invoice \ --header 'Content-Type: application/json' \ --data '{ "asset": "example" }'For live sessions processed through FeitPay’s payment processor: opens the processor invoice and returns the session with processor.methods (one address and exact amount per offered asset). When the session’s processor.asset_choice is true, the customer chooses the coin first and the body names it (asset, one of processor.options): the invoice then has exactly one method for that coin, possibly with a memo (extra_id) the customer must include. Idempotent: later calls return the same invoice, whatever coin they name (the coin cannot change once the address exists). Rate limited per client IP.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Asset key of the chosen coin (processor.options[].asset). Required when processor.asset_choice is true.
Example generated
{ "asset": "example"}Responses
Section titled “Responses”Session with the processor payment methods.
object
Machine-readable reason recorded with a payment intent state change (status_reason, state-event and timeline reason, webhook data.status_reason). created and quote_refreshed appear in state events; additional_payment_after_settlement only in payment.review_required event data for a transfer that arrived after the intent was settled; inconsistent_evidence marks evidence that supports no allowed transition (the state is held and operators are alerted). processor_* reasons mirror the invoice status of intents processed through FeitPay’s payment processor.
object
Decimal string. Never a float.
object
In the request’s language (Accept-Language), English where untranslated.
object
In the request’s language (Accept-Language), English where untranslated.
object
Decimal string. Never a float.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Fiat major units per one whole asset unit.
True when the rate is a labelled illustrative value, not market data.
object
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
BIP21 / EIP-681 style URI for wallet apps and QR codes.
object
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
object
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
object
Machine-readable reason recorded with a payment intent state change (status_reason, state-event and timeline reason, webhook data.status_reason). created and quote_refreshed appear in state events; additional_payment_after_settlement only in payment.review_required event data for a transfer that arrived after the intent was settled; inconsistent_evidence marks evidence that supports no allowed transition (the state is held and operators are alerted). processor_* reasons mirror the invoice status of intents processed through FeitPay’s payment processor.
Present when the intent is processed through FeitPay’s payment processor: custodial, the customer pays platform wallets and the funds are owed to the merchant (see /v1/balances).
object
Processor invoice status: not_started until the checkout opens the invoice, then pending, paid, confirmed, complete, expired, invalid or refunded.
None, paid_partial, paid_over or failed_confirm.
The received funds were credited to the merchant balance.
What happens to the funds this invoice received. none: nothing received yet. confirming: received and being confirmed on the blockchain; added to the merchant balance automatically (an invoice that is still open is credited when it completes; a partial or late payment once its transactions are confirmed). verifying: received and verified before it is added (not automatic for this payment). credited: in the balance. Always present on merchant responses.
object
Asset key: coin symbol, plus the chain for tokens (btc, usdt-eth).
Exact decimal amount to send in this asset.
Exchange rate the payment processor used (invoice currency per unit of the asset).
Wallet URI (BIP21 / EIP-681 style) for QR codes.
Memo / destination tag the payment must carry (XRP, TON, …). Present only on such networks: a payment sent without it cannot be attributed.
Present only on a PIX payment (asset: brl, chain: pix): the PIX “copia e cola” payload a banking app pays, pasted or scanned as a QR code. The amount is fixed by the charge; address and payment_url are empty.
PIX payments only, once credited: the FeitPay PIX fee deducted from the payment when it was credited (BRL, exact decimal). The balance received the payment amount minus this fee. Absent otherwise.
Checkout sessions only, before the invoice is opened: the customer chooses the coin first (options) and the checkout opens the invoice for it. Absent when no choice is needed.
A coin the customer can choose before the payment address is created, or PIX (asset: pix, on payments in BRL that accept PIX), which opens a PIX charge instead.
object
Smallest payment this coin accepts, in the payment’s currency; null when unknown.
Payments on this network carry a memo / destination tag the customer must include.
Display name of the coin itself, without the network (“Tether”, “Bitcoin”).
Display name of the network the coin moves on (“TRON”, “BNB Smart Chain”, “Ethereum”).
Rank among the best-known coins for pickers (1 first: USDT on every network, TRON, Ethereum and BNB Smart Chain first, then ETH, USDC, SOL, BNB, XRP, LTC, DOGE, TRX, TON, BCH). Null for every other coin.
Position of the coin in FeitPay’s display order for lists and pickers (1 first). The best-known coins come first (popular), then the others alphabetically; coins with a higher minimum payment are listed after them. Clients sort by it when present.
A coin the customer can choose before the payment address is created, or PIX (asset: pix, on payments in BRL that accept PIX), which opens a PIX charge instead.
object
Smallest payment this coin accepts, in the payment’s currency; null when unknown.
Payments on this network carry a memo / destination tag the customer must include.
Display name of the coin itself, without the network (“Tether”, “Bitcoin”).
Display name of the network the coin moves on (“TRON”, “BNB Smart Chain”, “Ethereum”).
Rank among the best-known coins for pickers (1 first: USDT on every network, TRON, Ethereum and BNB Smart Chain first, then ETH, USDC, SOL, BNB, XRP, LTC, DOGE, TRX, TON, BCH). Null for every other coin.
Position of the coin in FeitPay’s display order for lists and pickers (1 first). The best-known coins come first (popular), then the others alphabetically; coins with a higher minimum payment are listed after them. Clients sort by it when present.
How the customer can pay this session right now (ADR-0036): ["pix"] for a PIX payment (PIX only, or PIX already chosen), ["crypto", "pix"] while both are offered, ["crypto"] otherwise.
Example
{ "object": "public_checkout_session", "status": "open", "payment_status": "created", "status_reason": "created", "merchant": { "checkout_theme": "dark" }, "amount": "59.90", "options": [ { "observation_source": "simulator" } ], "selected_option": { "observation_source": "simulator" }, "quote": { "object": "quote", "fiat_amount": "59.90", "asset_amount": "59.90", "asset_amount_base_units": "99834", "rounding_policy": "ceil_to_asset_base_unit", "status": "active", "network_fee_paid_by": "customer", "platform_fee_billed_separately": true }, "instructions": { "amount": "59.90", "amount_base_units": "99834" }, "totals": { "expected": "59.90", "expected_base_units": "99834", "received": "59.90", "received_base_units": "99834", "confirmed": "59.90", "confirmed_base_units": "99834", "remaining": "59.90", "remaining_base_units": "99834" }, "transfers": [ { "amount": "59.90", "amount_base_units": "99834", "status": "mempool", "classification": "on_time" } ], "timeline": [ { "status": "created", "reason": "created" } ], "sandbox": { "scenarios": [ "exact" ] }, "processor": { "name": "feitpay", "credit_status": "none", "asset_choice": true, "options": [ { "unavailable_reason": "below_minimum", "coin_name": "Tether", "network_name": "TRON" } ] }, "pix_option": { "unavailable_reason": "below_minimum", "coin_name": "Tether", "network_name": "TRON" }, "allowed_methods": [ "crypto" ]}Feature not available for this account or deployment (feature_unavailable_error), e.g. payments_not_enabled (live payments have not started on the platform), live_mode_disabled, live_keys_disabled, test_mode_disabled, payment_method_unavailable.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Resource not found (or not visible to this tenant).
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}State conflict.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Validation failed.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}