API

Paytia API exception handling

Paytia API Exception Handling 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 ...


Paytia API Exception Handling

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:


Confirming the Payment Amount

  1. Customer Confirms Amount is Correct
    • Webhook Sent:
      payment_stage=amount_verify&reference_id=reference_id_is_number_106&amount_verify=accepted
  2. Customer Rejects Amount
    • Webhook Sent:
      success=0&reference_id=reference_id_is_number_113

Call Leg Drops

  1. Customer Ends the Call

    • Webhook Sent:
      success=0&reference_id=ref_new34_f1Ta11234521211&callhangup=customer
    • Explanation: This indicates the customer has disconnected the call.
  2. Agent Ends the Call

    • Webhook Sent:
      success=0&reference_id=ref_new34_f1Ta11234521211121&callhangup=merchant
    • Explanation: This indicates the agent has disconnected the call.

Payment Session Resets

  1. Customer Presses * to Abort

    • Webhook Sent:
      success=0&reference_id=ref_new34_f1Ta112345212118&custabort=1
    • Explanation: The customer reset the payment session and is back in communication with the agent.
  2. Agent Presses * to Abort

    • Webhook Sent:
      success=0&reference_id=ref_new34_f1Ta112345212118&agentabort=1
    • Explanation: The agent reset the payment session and is back in communication with the customer.

Note

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.


Agent/User Licences and Assigned Payment Types

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.

Sample API Error Response

{
"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."
}
}
  • Impact: The agent will not be able to proceed with the payment if rights are not assigned.
  • Resolution: User rights can be managed via the Paytia Administration Portal under Administer Users > Users. Click the Edit button to assign the necessary rights.

Managing Licences and Rights

  1. Go to Administer Users > Users.
    Paytia API exception handling
  2. Select the user from the list and click the Edit button.
  3. Update the following settings:
    • Menu Rights: Control which menus the user can access.
    • Licence Rights: Assign payment types and permissions based on active licences.

      Paytia API exception handling - step 2

For any additional configurations or support, contact your Paytia account administrator.



The View column allows you to tick the accepted payment types the user can utilise.
exceptiontelephonyrightsapierrorusermoto

More in API

Paytia API services

API Services Playtia provides REST API services, allowing our customers and system integrators to programatically control the Paytia transaction processing service from their own web/database applications. Paytia have three versions of API services ...

Paytia Proxy Gateway

Technical Overview, Configuration, and Test Guide 1. Overview The Paytia Proxy Gateway is a flexible payment gateway that enables organisations to securely pass captured payment data from their environment to third-party systems using a fully ...

Webhook request button

Webhook Request Button Overview The Webhook Request button in the Paytia platform provides a detailed log of all webhook interactions associated with a specific call or transaction. This feature is designed to help administrators and developers track ...

Paytia webhooks for the payment capture IVR flow

Paytia IVR webhook flow The initial post into Paytia will return a URL for the Paytia iframe. If you do not want to use the iframe you can ignore that response post ‘url’ value. Note: Paytia will maintain the reference_id value throughout the payment ...

API details

What Can I See in the API Details View? The API Details View provides an in-depth look at the internal API exchanges between Paytia's telephony and API services. This feature is designed for troubleshooting and offers transparency into the data ...

CDR Details Webhooks: Push Telephony Events

CDR Details Webhooks: Push Data for Telephony Events Paytia supports webhook push messages, enabling you to transmit real-time call information to a predefined URL. This functionality allows seamless programmatic decision-making within third-party ...

Still need help?

Our support team is here to help. Submit a ticket and we'll get back to you within one business day.