Axiv PayGet started
DEVELOPERS

Sandbox API walkthrough

Use curl to simulate quotes, payment creation, and settlement.

Simulation only. Every payment response contains mode: "mock" and simulation: true. Use sample data. No wallet, signature, or funds are needed.

Discover the test routes

HUB_ORIGIN=https://pay.axiv.cc
curl -fsS "$HUB_ORIGIN/mock/v1/capabilities"

Create a simulated quote

Use string chain IDs, an integer atomic-unit string, and a sample EVM recipient. The quote expires in five minutes. The sandbox assumes a 1:1 exchange rate and a 50 bps fee.

curl -fsS "$HUB_ORIGIN/mock/v1/quotes" \
  -H 'Content-Type: application/json' \
  -d '{"source":{"chainId":"999","asset":"USDC","amountAtomic":"10000000"},"destination":{"chainId":"4663","asset":"USDG","recipient":"0x000000000000000000000000000000000000dEaD"},"fundingMode":"DIRECT"}'

Create a simulated payment

Replace the quote ID with the returned quoteId. Generate a new key for each payment, then reuse it on retries with the same request.

KEY=$(openssl rand -hex 16)
curl -fsS "$HUB_ORIGIN/mock/v1/payments" \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: $KEY" \
  -d '{"quoteId":"REPLACE_WITH_QUOTE_ID","merchantReference":"example-order"}'

Advance the state and read the events

Replace the payment ID with the returned paymentId. Pass the current state as expectedStatus to advance one step. Repeating the same transition request does not advance a second step.

PAYMENT_ID=REPLACE_WITH_PAYMENT_ID
curl -fsS "$HUB_ORIGIN/mock/v1/payments/$PAYMENT_ID/simulate" \
  -H 'Content-Type: application/json' \
  -d '{"expectedStatus":"AWAITING_DEPOSIT"}'
curl -fsS "$HUB_ORIGIN/mock/v1/payments/$PAYMENT_ID/events"

The full sequence is AWAITING_DEPOSIT → DEPOSIT_OBSERVED → GUARANTEED → PAYOUT_PENDING → PAID → SETTLED. The sandbox emits no signed guarantees or onchain receipts.

Run the complete flow with the curl script or the Node.js script.

Developer docs · OpenAPI · Public catalog