The Paytia API services provide status update webhooks to track processes and status changes. These updates include standard API posts as well as exception handling for telephony-related processes. Below are details about specific scenarios and their corresponding webhooks:
payment_stage=amount_verify&reference_id=reference_id_is_number_106&amount_verify=accepted
success=0&reference_id=reference_id_is_number_113
Customer Ends the Call
success=0&reference_id=ref_new34_f1Ta11234521211&callhangup=customer
Agent Ends the Call
success=0&reference_id=ref_new34_f1Ta11234521211121&callhangup=merchant
Customer Presses *
to Abort
success=0&reference_id=ref_new34_f1Ta112345212118&custabort=1
Agent Presses *
to Abort
success=0&reference_id=ref_new34_f1Ta112345212118&agentabort=1
In scenarios where the session resets (via *
key) or a call leg drops, the payment request should be considered as failed. A new payment session must be initiated with a fresh uniqueID
.
If an API request includes an agentid
that lacks the necessary rights for the specified transaction_flag
, Paytia will return an error in the statusDescription
field.
{
"httpStatus": false,
"reference_id": "reference_id_is_number_144",
"status": {
"statusCode": 400,
"statusDescription": "The agent you are using doesn't have the right to use transaction type 3."
}
}
Administer Users > Users
. Click the Edit
button to assign the necessary rights.For any additional configurations or support, contact your Paytia account administrator.