API Reference

Get txn details

Look up a payment by txnid for hosted checkout and order status.

POSThttps://api.argonpay.app/graphqlgetTxnDetails

Looks up a payment by txnid. Used by the hosted checkout and order status pages. No apiKey argument — anyone with the txnid can read the public transaction fields.

Endpoint

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

Query

GraphQL
query GetTxnDetails($txnid: String!) {
getTxnDetails(txnid: $txnid) {
code
message
transaction {
txnid
amount
amountInToken
token
network
status
wallet {
address
}
countdown
hash
blockchainLink
isExpired
expiresAt
createdAt
}
}
}

Arguments

NameTypeRequiredDescription
txnidString!YesTransaction ID from payment / create-payment

Example variables

JSON
{
"txnid": "YOUR_TXNID"
}

REST equivalent

See REST get order (GET /orders/:txnid).