Argon

API Reference

Create custodian account

Register settlement wallets and callback settings for an API key.

POSThttps://api.argonpay.app/graphqlcreateCustodianAccount

Registers custodian settlement settings for your API key (one custodian per key). Debits 1 credit.

Use the CustodianCreateInput input type.

Endpoint

POST https://api.argonpay.app/graphql

Mutation

GraphQL
mutation CreateCustodianAccount($input: CustodianCreateInput!) {
createCustodianAccount(input: $input) {
code
message
custodian {
id
apiKey
wallets {
bep20
polygon
base
solana
}
callbackUrl
createdAt
}
apiKey {
key
creditsLeft
}
}
}

Input fields

NameTypeRequiredDescription
apiKeyString!YesYour API key
walletsCustodianWalletsInputNoPublic settlement addresses
wallets.bep20StringNoBEP20 settlement address
wallets.polygonStringNoPolygon settlement address
wallets.baseStringNoBase settlement address
wallets.solanaStringNoSolana settlement address
callbackUrlStringNoHTTPS webhook URL for payment notifications
secretStringNoCallback signing secret
nameStringNoCustodian display name
networks[CustodianNetworkInput!]NoPer-chain pay/gas configuration
brandingCustodianBrandingInputNoCheckout branding (tagline, colors, logo)

Example variables (public fields)

JSON
{
"input": {
"apiKey": "YOUR_API_KEY",
"wallets": {
"bep20": "0xYourBep20Address",
"polygon": "0xYourPolygonAddress",
"base": "0xYourBaseAddress",
"solana": "YourSolanaAddress"
},
"callbackUrl": "https://merchant.example/webhooks/argonpay"
}
}

Errors

CodeMeaning
401 / 402Invalid key or credit limit
409Custodian already exists for this API key

Webhook preview

Preview callback payload

Argonpay POSTs JSON to your custodian callbackUrl when a payment completes, expires, or is cancelled. Adjust the fields below to see the exact body shape, then optionally send a test request to your endpoint.

POST body preview
JSON
{
"txnid": "demo-txn-abc123",
"status": "completed",
"amount": 25.5,
"amountInToken": 25.5,
"network": "polygon",
"createdAt": "2026-07-13T17:23:02.130Z",
"secret": "your-custodian-secret",
"privateKey": "your-custodian-secret"
}