API Reference

REST create payment

REST equivalent of the GraphQL payment mutation.

POSThttps://api.argonpay.app/create-paymentPOST /create-payment

Merchant REST equivalent of the GraphQL payment mutation. Requires apiKey in the JSON body.

Endpoint

POST https://api.argonpay.app/create-payment

Content-Type: application/json

Body

NameTypeRequiredDescription
apiKeystringYesYour API key
amountnumberYesPayment amount

Example

Shell
curl -X POST https://api.argonpay.app/create-payment \
-H 'Content-Type: application/json' \
-d '{"apiKey":"YOUR_API_KEY","amount":25.5}'
JSON
{
"apiKey": "YOUR_API_KEY",
"amount": 25.5
}

Response

Same logical payload as GraphQL payment (sanitized for REST). Use paymentLink / transaction.txnid from the response.

GraphQL equivalent

See Create payment (payment).