This API is used to initiate a transaction through Chillr.
Path | https://onlineapi.chillr.in/api/v5/transactions/new |
---|---|
Method | POST |
Field | Description | Default |
---|---|---|
amount (integer) | The amount to be charged | Mandatory Field |
api_key (string) | Your API Key | Mandatory Field |
api_secret_key (string) | Your API secret | Mandatory Field |
timeout (integer) | Time out in minutes | 5 |
invoice_id (string) | Invoice ID | Null |
order_id (string) | Internal tracking ID for merchant | Mandatory Field |
remarks (string) | Remarks | Null |
customer_email (string) | Customer email | Null |
customer_phone_no (string) | Customer phone number, (If this is present then the customer will get a push notification.) | Null |
customer_name (string) | Customer name | Null |
extra_param_1 (string) | For use by merchant if needed | Null |
extra_param_2 (string) | For use by merchant if needed | Null |
NB
Use sandbox url and sandbox credentials while you are doing development.
- status - Status of the API response
- message - Human readable description of the response
- data - Contains the transaction details as explained below
- status - Status of the transaction
- amount - Transaction Amount
- qr_code - QR Code String for the transaction
- transaction_code - 4 character code for the transaction
- expiry_time - At what time the transaction will expire
- id - Unique ID of the transaction. (This id needs to be passed for the transaction status query API)
- created_at - Timestamp
{
"status": "success",
"message": "Transaction initiated",
"data": {
"status": "initiated",
"amount": 50,
"description": "transaction initiated",
"qr_code": "CHILLR:QRPAY:569f7a586368694380080000",
"transaction_code": "QOCT",
"expiry_time": "2016/01/20 17:50:20",
"id": "569f7a586368694380080000",
"created_at": "2016/01/20 17:45:20"
}
}
If there is a failure; then there is a status code returned in the response along with the status field set to 'failure'.
Status Code | Description |
---|---|
55 | A generic internal failure occurred. |
50 | API Key is missing or invalid. |
51 | Amount parameter is missing or is beyond limits. |
59 | API Secret Key is missing. |
58 | API Secret Key is not matching assigned key. |
57 | API unacceptable parameters |
53 | Merchant is not approved to use the API yet. |
54 | Merchant not found or invalid. |
{
"status": "failure",
"status_code": 55,
"message": "We could not process your request due to a technical reasons. Sorry for the trouble."
}