Argon

API Reference

Update custodian details

Partially update custodian settlement wallets and callback URL.

POSThttps://api.argonpay.app/graphqlupdateCustodianDetails

Partially updates custodian settings. Only provided fields change. Debits 1 credit.

Endpoint

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

Mutation

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

Input

Same shape as CustodianCreateInput (CustodianUpdateInput).

Example variables

JSON
{
"input": {
"apiKey": "YOUR_API_KEY",
"wallets": {
"polygon": "0xNewPolygonAddress"
},
"callbackUrl": "https://merchant.example/webhooks/argonpay"
}
}

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:22:58.995Z",
"secret": "your-custodian-secret",
"privateKey": "your-custodian-secret"
}