API Reference
REST create payment
REST equivalent of the GraphQL payment mutation.
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
| Name | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your API key |
amount | number | Yes | Payment amount |
Example
curl -X POST https://api.argonpay.app/create-payment \ -H 'Content-Type: application/json' \ -d '{"apiKey":"YOUR_API_KEY","amount":25.5}'{ "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).
