Create a new payment session. The server derives the source system from the merchant store and returns a checkout URL.
Documentation Index
Fetch the complete documentation index at: https://docs.stablepayfi.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer API Key, for example Bearer sk_live_xxx.
Unix timestamp in seconds. Must be within 5 minutes of server time.
Replay-protection nonce, 16-64 characters. Use a fresh UUID per request.
Lowercase hex HMAC-SHA256 of {timestamp}.{nonce}.{requestBody} signed with the merchant API Secret. For GET requests, requestBody is an empty string.
Unix timestamp in seconds. Must be within 5 minutes of server time.
Replay-protection nonce, 16-64 characters. Use a fresh UUID per request.
16 - 64Lowercase hex HMAC-SHA256 of {timestamp}.{nonce}.{requestBody} signed with the merchant API Secret. For GET requests, requestBody is an empty string.
Payment amount in the minor unit of the currency.
x >= 1Merchant ledger currency, for example USD.
Merchant order ID. Must be unique for the merchant.
Order description, stored in session metadata.
Line items. If provided, amount must equal item subtotal plus tax and shipping.
Tax amount in minor units.
x >= 0Shipping amount in minor units.
x >= 0Redirect URL after successful payment.
Redirect URL after payment cancellation.
Payer email. Optional, but strongly recommended for payment notifications, customer identification, and post-payment reconciliation. Stored as metadata.email.
Merchant metadata key-value pairs. Non-string values are returned as strings.
Payment session created.
Payment session ID.
Total amount in minor units.
Merchant ledger currency, returned in lowercase.
Payment status. confirming is returned as processing; completed is returned as paid.
pending, processing, paid, failed, expired, canceled Creation time, Unix seconds.
Expiration time, Unix seconds.
Checkout URL.
Line items.
Tax amount in minor units.
Shipping amount in minor units.
Exchange rate when currency conversion applies.
Actual on-chain payment currency, for example USDT.
Target amount in target-currency minor units.
Rate lock time, Unix seconds.
Related subscription ID, returned for subscription payments.
Related invoice ID, returned for invoice or subscription payments.
Merchant metadata.