post https://api-approval.tingg.africa/v3/checkout-api/checkout-charge
Customer first initiates a checkout request with details required to collect the payment.
Customer first initiates a checkout request with details required to collect the payment.
Live Endpoint
Key | Value Type | Required | Description |
---|---|---|---|
msisdn | String | Yes | Mobile number for the customer. |
account_number | String | Yes | Account number for the customer on the merchant system. This is the reference the customer will pay to. |
callback_url | String | Yes | String of the endpoint we are to send the webhook request to. |
country_code | String | Yes | 3 digit ISO code of the Country you wish to collect payment for |
currency_code | String | Yes | 3 digit ISO code of the Currency the merchant is invoicing for. |
customer_email | String | Yes | Customer email the customer wished to pay for. |
customer_first_name | String | Yes | Customer first name |
customer_last_name | String | Yes | Customer last name |
due_date | String | Yes | Date when the request expires in UTC.Date format is YYYY-MM-DD HH:mm:ss |
payment_option_code | String | No | Payment option code of the payment options the merchant wishes to collect for |
fail_redirect_url | String | Yes | Where we will redirect the customer to when the payment time passed above expires. |
invoice_number | String | Yes | Merchant's invoice number. |
merchant_transaction_id | String | Yes | Unique Id the merchant raised for the request |
request_amount | Double | Yes | Amount you wish to start collecting for. |
national_id | String | No | The customers country identification issued by the local authority |
passport_number | String | No | This is the customer's issued passport identification number as indicated in the passport. |
request_description | String | Yes | Shows the description of the item being purchased. |
service_code | String | Yes | The service code assigned to the merchant on the tingg portal |
success_redirect_url | String | Yes | Where we will redirect the customer to after a successful payment is made. |
is_offline | Boolean | Yes | |
extra_data | JSON Object | No | Extra Information |
payment_option_code | String | Yes | The actual payer client code the merchant initiates the request for. |
{
"msisdn": "254700000000",
"account_number": "10000017560004",
"callback_url": "https://webhook.site/12345678",
"country_code": "KEN",
"currency_code": "KES",
"customer_email": "[email protected]",
"customer_first_name": "John",
"customer_last_name": "Doe",
"fail_redirect_url": "https://google.com/",
"due_date": "2024-03-28 21:40:00",
"invoice_number": "10000017560004",
"merchant_transaction_id": "700a2435-e9f4-4fb9-b0d8-a350b92d5430",
"request_amount": 600,
"request_description": "10000017560004",
"service_code": "TINGGTEST",
"success_redirect_url": "https://ign.com/",
"is_offline": true,
"payment_option_code": "SAFKE"
}
Response Status Codes
Status Code | Description |
---|---|
200 | Success. Checkout request successfully logged in the checkout platform. |
500 | Failure. Generic failure occurred. Could be as a result of a system failure on the checkout platform. |
1001 | No request found. |
1007 | Missing country code. The checkout request posted was missing a country_code |
1013 | Not JSON. The checkout request posted was not valid JSON |
1014 | Missing merchant transaction id. The request did not have a merchant_transaction_id |
1015 | Missing checkout request id.The request did not have a checkout_request_id |
1017 | Invalid charge msisdn provided. The charge_msisdn provided was not valid in the country provided |
1027 | Invalid amount provided. The charge_amount should be between the minimum and maximum amounts provided for the payment option. |
173 | Request initiated successfully |
422 | Invalid Request |
191 | Refund Expired |