Collection
Check Status
https://prod.yespaisapay.com/api/collection/order/status
Check Status is an API that allows you to check transaction status from your customers.
Header
| Name | Type | Description |
|---|---|---|
| api-key | string | (get it from api credentials in api panel) |
| content-type | string | application/json |
| accept | string | application/json |
$headers = array(
'api-key' => 'your-api-key',
'content-type' => 'application/json',
'accept' => 'application/json',
);
Request Body Parameters
| Name | Type | Value |
|---|---|---|
| partner_id | integer | Get it from API Panel (Your Partner ID) |
| apitxnid | String | Unique ID for every transaction |
$parameter = [
'partner_id' => '1',
'apitxnid' => 'UPI12345',
];
$body_json_string = json_encode($parameter);
Response Parameters
| Name | Type | Condition | Possible Value |
|---|---|---|---|
| statuscode | String | All Time | TXN / TUP / TXF / ERR |
| message | String | All Time | Transaction Response Message |
| status | String | In Case TXN/TUP | success / failed / pending |
| txnid | String | In Case TXN | UPI Collection Reference ID |
| amount | String | In Case TXN | Collection Amount |
| utr | String | In Case TXN | Bank UTR |
| payment_mode | String | In Case TXN | Payment Mode |
| payid | String | In Case TXN | Pay ID |
