Your server talks to the payment API. Your checkout page hands one step at a time to the customer’s wallet. Axiv Pay never holds keys or funds.
1. Get an API key
Open Get started, connect your wallet, and sign once. Then create a key under API keys. Send it in the Authorization: Bearer header and keep it on your server. Your keys see only your account’s quotes and payments.
2. Check what you can quote
curl https://api.pay.axiv.cc/v1/capabilitiesquoteRouting.chains lists the chains you can quote. liveRoutes lists the routes verified with a live transfer.
3. Quote the order
The customer chooses what they pay with. You choose the chain, asset, and wallet you receive.
curl -X POST https://api.pay.axiv.cc/v1/quotes \
-H "Authorization: Bearer $AXIV_PAY_TOKEN" -H "Content-Type: application/json" \
-d '{
"source": { "chainId": "8453", "asset": "USDC", "amountAtomic": "25000000" },
"destination": { "chainId": "42161", "asset": "USDC", "recipient": "0xYourWallet" },
"payer": "0xCustomerWallet"
}'Show the customer source.amountAtomic as the total, and minReceiveAtomic as the least you receive. The quote also returns feeAtomic, expectedReceiveAtomic, and expiresAt. Amounts are integer strings in atomic units: USDC has 6 decimals, so 25 USDC is "25000000".
4. Create the payment
curl -X POST https://api.pay.axiv.cc/v1/payments \
-H "Authorization: Bearer $AXIV_PAY_TOKEN" -H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042" \
-d '{ "quoteId": "quote_…", "merchantReference": "1042" }'Use one idempotency key per order and reuse it on every retry. The same key returns the same payment, so a retry never creates a second one. Read status in the response: a replay can return a payment that already failed.
5. Let the customer’s wallet pay
POST /v1/payments/{id}/funding-instructions → step.payload for the wallet
POST /v1/payments/{id}/funding-submissions { "stepId": "…", "txHash": "0x…" }Pass step.payload unchanged to the customer’s wallet. It is a transaction on the source chain from the payer address. An APPROVAL step moves no funds. A BRIDGE_DEPOSIT step moves the payment amount. Register the transaction hash, then ask again while nextAction is REQUEST_FUNDING_INSTRUCTIONS. If the wallet result is unknown, do not ask the customer to sign again. Find the hash and register it.
6. Confirm before you fulfill
curl https://api.pay.axiv.cc/v1/payments/pay_… -H "Authorization: Bearer $AXIV_PAY_TOKEN"Fulfill the order when all of these hold:
statusisPAIDandmerchantReferenceis your order.payout.recipientis your wallet andpayout.verificationisRECEIPT.payout.amountAtomicis at leastminReceiveAtomic.
PAID means Axiv Pay read the source and destination receipts and matched token, recipient, and amount. PAYOUT_PENDING is still waiting. REVIEW_REQUIRED, FAILED, EXPIRED, and REFUNDED are not paid.
Settlement visibility
Current external-channel payments finish at PAID, with settlementModel: "EXTERNAL" and settlement: null. Solver reimbursement inside the execution channel is not tracked by Axiv Pay. Do not wait for SETTLED or treat a null settlement as reimbursement confirmation. The payment lifecycle explains receipt evidence and finality.
Next
The API reference lists every field, error code, and rate limit. To try the flow without funds, use the test checkout or the developer sandbox.