API Reference

Welcome

Overview of the Argonpay merchant GraphQL API and payment flow.

Argonpay is a multi-chain crypto payment API for merchants. This documentation covers merchant GraphQL operations and REST helpers from Argonpay v2.

Base URL

Supported networks

EnumNetwork
BEP20BNB Smart Chain
POLYGONPolygon
BASEBase
SOLSolana

Stable tokens: USDT, USDC (where supported by the payment start flow).

Authentication

API-key operations pass `apiKey` as a GraphQL argument (or in the REST body for POST /create-payment). There is no x-api-key header.

Checkout helpers such as start*Payment, cancelPayment, and getTxnDetails use `txnid` (from payment) instead of an apiKey argument. Starting a payment still debits 1 query from the transaction owner's key.

OperationDebits query?
getQueriesLeftNo
paymentNo (debit on payment start)
rechargeApiKeyNo (adds queries)
startBSCPayment / startPolygonPayment / startBasePayment / startSOLPaymentYes (owner key)
Other API-key operationsYes

Merchant REST map

These REST routes wrap the same resolvers as the GraphQL operations below:

RESTGraphQL
POST /create-paymentpayment
POST /paystartBSCPayment / startPolygonPayment / startBasePayment / startSOLPayment
POST /cancel-paymentcancelPayment
GET /orders/:txnidgetTxnDetails

API-key, custodian, list, and admin-style operations are GraphQL-only in v2.

Transaction statuses

PENDING · STARTED · COMPLETED · EXPIRED · CANCELLED

Typical payment flow

  1. payment (or POST /create-payment) → get txnid + paymentLink
  2. start*Payment (or POST /pay) → deposit address
  3. Poll getTxnDetails / GET /orders/:txnid (or getTransactionDetails with API key)
  4. Optionally cancelPayment / POST /cancel-payment if still pending/started

Not documented here: subscriptions, superKey/admin tools, or public/guest payment flows.