post https://pay2new.in/apis/v1/transactionStatus
This page will help you get started with transactionStatus.
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
Request Parameters
Parameters | Type | Mandatory (M), Optional(O) | Description |
---|---|---|---|
client_txn_id | Sring | M | Your requested transaction ID |
Sample Request
curl -X POST \
https://pay2new.in/apis/v1/transactionStatus \
--header 'Accept: application/json' \
--header 'content-type: application/json' \
--header 'secret: qwertyuQWERTY12345asdf' \
--data '
{ "client_txn_id" : "ABC123121321321"
}'
Response Parameters
Name | Type | Description |
---|---|---|
status | Integer | API Status. |
message | String | Message from API. |
order | Array | Response Data (If Present) |
number | String | Transaction number. |
amount | String | Transaction Amount. |
status | String | Transaction Status. |
order_id | String | API order ID. |
request_id | String | Your Request ID. |
optional1 | String | Optional 1 value. |
optional2 | String | Optional 2 value. |
optional3 | String | Optional 3 value. |
optional4 | String | Optional 4 value. |
message | String | Transaction Message |
operator_reference | String | Service Provider Ref. Number |
customer_number | String | End User Mobile Number |
cashback | String | Transaction Cashback. |
charge | String | Transaction Charges. |
tds | String | Transaction TDS. |
closing_balance | String | API Closing Balance. |
Sample Response
{
"status": 1,
"message": "Transaction Found!",
"order": {
"number": "9064327184",
"amount": "75.0000",
"status": "1",
"order_id": "P2F1729673107LIEUU",
"request_id": "P2N1729673103WLFWN",
"optional1": "",
"optional2": "",
"optional3": "",
"optional4": "",
"message": "Transaction success",
"operator_reference": "4266444043",
"customer_number": "8600436163",
"cashback": "0.5250",
"charge": "0.0000",
"tds": "0.0105",
"closing_balance": "201413.7939"
}
}