v1
latestOpenAPI 3.0.02026-07-2623060.7 KBSend payment to user
post/transactions/{mode}
Path parameters
modestring required
Transaction mode.
Request body
Example request
{
"token": 1,
"phone_number": {
"number": "+22997808080",
"country": "BJ"
}
}Response
Transaction sent successfully.
Example response
[
{
"reference": "pi_xdc_123456",
"amount": 1000,
"status": "pending",
"currency_id": 840,
"mode": "automatic",
"last_error_code": "NO_ERROR",
"created_at": "2024-10-23T14:00:00Z",
"updated_at": "2024-10-23T14:00:00Z",
"approved_at": "2024-10-23T14:31:00Z",
"canceled_at": "2024-10-23T14:32:00Z",
"deleted_at": "2024-10-23T14:33:00Z",
"payment_method_id": 1,
"transaction_key": "TRANSACTION-XYZ",
"account_id": 5
}
]