Documentation Index
Fetch the complete documentation index at: https://docs.payx.company/llms.txt
Use this file to discover all available pages before exploring further.
Body Parameters
The amount to collect in GHS.
The customer’s 10-digit mobile money number (e.g., 0551234987).
The network provider. Options: MTN, TELECEL, AIRTELTIGO.
The currency code. Currently only GHS is supported.
A message displayed to the customer on their phone.
A private note for your records.
Response
A summary of the initiation status.
The unique ID for this transaction. Use this for status checks.
The current status. Usually PENDING.
curl -X POST https://payx.company/api/v1/charge \
-H "x-api-key: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 1.0,
"phoneNumber": "0551234987",
"network": "MTN"
}'
{
"message": "Transaction initiated",
"transactionId": "550e8400-e29b-41d4-a716-446655440000",
"status": "PENDING"
}