This API gets the transaction status corresponding to requested invoice_no for specific merchant.
The header will be built according to the Integration Rules for the APIs
Request
| GET | /v2/payments/{invoice_no}/inquire |
Reponse
| Attribute | Type | Required | Description |
| payment_no | Number | yes | 9Pay's transaction id |
| invoice_no | String | yes | Orderid of merchant, unique for each request |
| amount | Number | yes |
Payment amount |
| description | String (255) | yes | Order's information |
| method | String | yes | ATM_CARD, CREDIT_CARD, WALLET, COLLECTION |
| currency | String (10) | yes | Currency |
| created_at | Array | yes | Example: 1335939007 (UTC+0, length=10) |
| card_brand | String | yes | Bank name or card brand |
| status | Number | yes | |
| failure_reason | String | yes | Error description |
| amount_actually_received | Number | yes | Payment information data |
Example reponse:
|
{ "payment_no": 42444224886629, "invoice_no": "1693270216", "currency": "VND", "amount": 24545, "description": "Mô tả giao dịch", "method": "WALLET", "card_brand": null, "status": 5, "failure_reason": null, "created_at": "2023-08-23T09:14:49.000000Z", "amount_actually_received": 24545 } |