Argon

API Reference

API schema

GraphQL types, enums, and operation reference for Argonpay v2.

This page mirrors the current Argonpay v2 GraphQL schema for merchant integrations, checkout helpers, donations, and dashboard session APIs.

Enums

EnumValues
NetworkBEP20, POLYGON, BASE, SOL
TransactionStatusPENDING, STARTED, COMPLETED, EXPIRED, CANCELLED
StableTokenUSDT, USDC
PaymentTimeRangeH24, D7, D30, ALL
BulkPaymentStatusPENDING, PROCESSING, COMPLETED, PARTIAL, FAILED, CANCELLED
BulkPaymentItemStatusPENDING, PROCESSING, COMPLETED, FAILED, CANCELLED
DonateStatusACTIVE, PAUSED, ENDED
TopupStatusPENDING, STARTED, COMPLETED, EXPIRED, CANCELLED, FAILED
NotificationTypePAYMENT_COMPLETED, DONATION_RECEIVED, PAYMENT_EXPIRED
CustodianNetworkStatusACTIVE, INACTIVE

Core object types

ApiKey

FieldTypeNotes
keyString!Merchant API key
walletString!Registered wallet address
creditsLeftInt!Remaining credits on this key
userIdStringLinked dashboard user
linkedAtStringWhen the key was linked
createdAtStringCreation timestamp
custodianCustodianLinked custodian record

Custodian

FieldTypeNotes
idID!Custodian identifier
nameStringDisplay name
apiKeyStringAssociated API key
networks[CustodianNetwork!]!Per-chain configuration
walletsCustodianWalletsSettlement addresses
gasWalletKeysCustodianGasWalletKeysGas wallet configuration
brandingCustodianBrandingHosted checkout branding
callbackUrlStringWebhook URL
secretStringCallback signing secret
createdAtStringCreation timestamp

CustodianBranding

FieldType
taglineString
brandColorString
accentColorString
logoUrlString
contactInfoString

Transaction

FieldTypeNotes
txnidStringPayment identifier
amountFloat!Requested amount
amountInTokenFloatToken-denominated amount
tokenStableTokenUSDT or USDC
networkNetworkSelected chain
statusTransactionStatus!Current status
walletTransactionWalletDeposit wallet (may include privateKey when authenticated)
hashStringOn-chain hash
blockchainLinkStringExplorer URL
custodianBrandingCustodianBrandingCheckout branding
campaignIdIDDonation campaign, when applicable
purposeStringe.g. credit_topup
isExpiredBooleanExpiry flag
expiresAtStringISO expiry
createdAtStringISO creation time

PublicTransaction

Same public fields as Transaction but uses PublicTransactionWallet (no privateKey) and may include cookie, recipient, and user guest metadata.

Donate / PublicDonate

FieldType
campaignIdID!
reasonString!
statusDonateStatus!
raisedFloat!
donationLinkString
custodianNameString
custodianCustodianWallets
custodianNetworks[CustodianNetwork!]

Topup

FieldType
topupIdID!
creditsInt!
amountFloat!
tokenStableToken
networkNetwork
statusTopupStatus!
payAddressString
hashString
creditsGrantedBoolean
startedAtString

Merchant input types

CustodianCreateInput / CustodianUpdateInput

FieldTypeRequired
apiKeyString!Yes
nameStringNo
networks[CustodianNetworkInput!]No
walletsCustodianWalletsInputNo
gasWalletKeysCustodianGasWalletKeysInputNo
callbackUrlStringNo
secretStringNo
brandingCustodianBrandingInputNo

CustodianBrandingInput

tagline, brandColor, accentColor, logoUrl, contactInfo — all optional String.

Query operations

Merchant API key (apiKey argument)

OperationArgumentsReturns
getCreditsLeftapiKey: String!CreditsLeftResponsedoes not debit
getCustodianDetailsapiKey: String!CustodianResponse
getTransactionDetailsapiKey: String!, txnid: String!TransactionResponse
getTransactionsapiKey: String!, status?, network?, timeRange?, sortOrder?TransactionListResponse
checkAdminUntransferredapiKey: String!, network: Network!TransactionListResponse

Public checkout

OperationArgumentsReturns
getTxnDetailstxnid: String!TransactionResponse
getDonatecampaignId: ID!GetDonateResponse
getPublicTXNscookie: String!PublicTransactionListResponse

Dashboard session (Authorization: Bearer)

UserMe, UserDetails, UserApiKey, UserCustodians, UserCredits, UserTopups, UserPayments, UserOverview, UserRevenue, UserBulkPayment, UserBulkPayments, UserNotifications, UserDonations, UserDonationContributions

Mutation operations

Merchant API key

OperationArgumentsReturns
paymentapiKey: String!, amount: Float!PaymentResponse
createCustodianAccountinput: CustodianCreateInput!CustodianResponse
updateCustodianDetailsinput: CustodianUpdateInput!CustodianResponse
revokeApiKeyapiKey: String!, privateKey: String!ApiKeyRotationResponse
StartPaymenttxnid: String!, network: Network!, token?, apiKey?TransactionResponse

Public checkout

OperationArgumentsReturns
startBSCPaymenttxnid: String!, token?TransactionResponse
startPolygonPaymenttxnid: String!, token?TransactionResponse
startBasePaymenttxnid: String!, token?TransactionResponse
startSOLPaymenttxnid: String!TransactionResponse
cancelPaymenttxnid: String!TransactionResponse
startDonatePaymentcampaignId: ID!, amount: Float!PaymentResponse
StartDonationcampaignId: ID!, amount: Float!, network: Network!, token?TransactionResponse

Dashboard session

UserRegister, UserLogin, UserRefresh, UserLogout, UserConnectApiKey, UserDisconnectApiKey, UserCreateCustodian, UserUpdateCustodian, UserRevokeApiKey, UserCreatePayment, UserCreateCreditTopup, UserStartCreditTopup, UserTransferCredits, UserCreateBulkPayment, UserCheckBulkPayment, UserCancelBulkPayment, UserMarkNotificationsRead, UserDonate, UserUpdateDonate

REST routes (verified)

MethodPathGraphQL equivalent
GET/healthHealth check
POST/create-paymentpayment
POST/payStartPayment or start*Payment or UserStartCreditTopup
GET/orders/:txnidgetTxnDetails
GET/txn/:txnidgetTxnDetails
GET/donate/:campaignIdgetDonate
POST/donate/:campaignId/payStartDonation

cancelPayment is GraphQL-only in v2 (no REST wrapper).

Response wrappers

All operations return { code: Int!, message: String!, ... }. Common wrappers:

CreditsLeftResponse, CustodianResponse, PaymentResponse, TransactionResponse, TransactionListResponse, GetDonateResponse, ApiKeyRotationResponse, UserTopupResponse, UserBulkPaymentResponse