Documentation Index
Fetch the complete documentation index at: https://docs.request.network/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
POST /v2/secure-payments— Create a secure payment (incoming, single or batch on EVM; single only on Tron)POST /v2/secure-payments/payouts— Create a hosted secure payout link (outgoing payment to a recipient)GET /v2/secure-payments— Lookup by request IDGET /v2/secure-payments/:token— Get payment metadataGET /v2/secure-payments/:token/pay— Get payment calldataPOST /v2/secure-payments/:token/intent— Record crosschain payment intent
Authentication
| Endpoint | Supported auth |
|---|---|
POST /v2/secure-payments | x-api-key, x-client-id + Origin, or session |
GET /v2/secure-payments | Session only |
GET /v2/secure-payments/:token | x-api-key or x-client-id |
GET /v2/secure-payments/:token/pay | x-api-key or x-client-id |
POST /v2/secure-payments/:token/intent | x-api-key or x-client-id |
POST /v2/secure-payments
Create a secure payment entry and return a hosted payment URL.Request fields
Array of payment requests. One item creates a single payment. Multiple items create a batch payment.
ERC-7828 composite destination ID encoding payee wallet, chain, and token. Format:
{interopAddress}:{tokenAddress}. Optional when the authenticated client ID has a bound payee destination.Human-readable payment amount (e.g.,
"10.50"). Must be greater than 0.Optional fee percentage from
0 to 100 (e.g., "2.5" for 2.5%).Optional fee recipient address. Required when
feePercentage is set.Optional merchant reference for reconciliation (max 255 chars).
Optional payer identifier (max 255 chars).
Optional
http(s) URL displayed as a button on the success screen. After a successful payment the payer can click the button to return to your site — there is no auto-redirect. Only safe URLs are accepted: scheme must be http or https, and the value must not contain HTML/script payload characters (<, >, ", ', `, whitespace).Optional button label for the redirect (1–255 chars). Defaults to “Go Back and Close” when omitted. Cannot include HTML control characters (
<, >, &, ", ', `). Cannot be set without redirectUrl — the API rejects with 400 redirectLabel cannot be provided without redirectUrl.Error responses
400: invalid body or unsupported secure payment configuration401: unauthorized429: rate limited
POST /v2/secure-payments/payouts
Create a hosted secure payout link — an outgoing single-recipient payment URL the payer (you) opens to sign and broadcast the transaction. Useful for sending payments to contractors, vendors, or any external recipient when you want a hosted UI instead of executing calldata yourself.Request fields
Recipient wallet address. EVM
0x... or Tron T... format.Wallet that created the payout (typically the payer wallet).
Destination network. Values:
mainnet, arbitrum-one, optimism, base, matic, bsc, tron, sepolia.Payment currency in
<symbol>-<network> form, e.g. USDC-base, USDT-tron, FAU-sepolia.Human-readable amount (e.g.,
"100").Optional merchant reference (max 255 chars).
Optional recipient identifier (max 255 chars).
Optional fee percentage from
0 to 100.Optional fee recipient address. Required when
feePercentage is set.Optional
http(s) URL rendered as a button on the success screen for the signer to return to your app. Same validation rules as on POST /v2/secure-payments — see above.Optional button label (1–255 chars). Defaults to “Go Back and Close”. Cannot be set without
redirectUrl.Error responses
400: invalid body, unsupported network/currency, or batch attempt on Tron401: unauthorized429: rate limited
GET /v2/secure-payments
Lookup a secure payment by request ID. Requires a SIWE wallet session.Query parameters
The request ID to look up.
Error responses
404: secure payment not found for the given request ID
GET /v2/secure-payments/:token
Retrieve payment metadata and display information. Returns amounts, destination info, status, and optionally crosschain payment options — but not executable transaction calldata. Use/pay for calldata.
Path parameters
Secure payment token returned from
POST /v2/secure-payments.Query parameters
Payer wallet address. When provided, the response includes
paymentOptions with balance information across supported chains. Optional for Tron payments (the API uses a fallback address if omitted).Error responses
403: token expired or not payable404: token not found409: secure payment already completed429: rate limited
GET /v2/secure-payments/:token/pay
Retrieve executable transaction calldata for the secure payment. For crosschain payments, providechain and token query parameters to select the source route.
The
:token in the URL path is the secure payment token (a ULID identifier). The token query parameter is the source currency symbol (USDC or USDT) for crosschain route selection. These are different values.For Tron secure payments, do not pass chain or token query parameters — the calldata is generated for the Tron network directly. Tron payments are single-recipient and same-chain only.Path parameters
Secure payment token (ULID returned from
POST /v2/secure-payments).Query parameters
Payer wallet address. Used for approval and balance checks. Optional for Tron payments (the API uses a fallback address if omitted).
Source chain for crosschain payments. Values:
BASE, OPTIMISM, ARBITRUM, ETHEREUM, POLYGON, BNB. Must be provided together with the token query parameter. Crosschain swap-to-pay is EVM-source only.Source currency for crosschain payments. Values:
USDC, USDT. Must be provided together with chain.Error responses
400: invalid calldata request or unsupported crosschain configuration403: token expired or not payable404: token not found409: secure payment already completed429: rate limited
POST /v2/secure-payments/:token/intent
Record a crosschain payment intent after the payer broadcasts the source-chain LiFi transaction. This allows the system to track the bridge execution and trigger payment detection on the destination chain.Path parameters
Secure payment token.
Request fields
The source-chain transaction hash (66 characters:
0x + 64 hex chars).The source chain. Values:
BASE, OPTIMISM, ARBITRUM, ETHEREUM.The source token. Values:
USDC, USDT.Error responses
400: invalid or unsupported crosschain payload403: token expired or not payable404: token not found409: secure payment already completed429: rate limited