After the Payment
Status API
Check the status of a payment or transaction by FinvyPay transaction ID.
Get Payment Status (Production)
GET
ProductionAPI Key
Returns the current status of a payment or transaction. Use the FinvyPay transaction ID from the payment response as the path segment :id.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
idrequired | string | FinvyPay transaction ID (e.g. from card or APM payment response) |
Example Request
bash
GET /api/production/status/FP260231SJWKL80027Success — transaction found
200json
{
"success": true,
"data": {
"transactionId": "FP260231SJWKL80027",
"orderId": "ORD-12345",
"status": "SUCCESS",
"amount": 100,
"currency": "USD",
"paymentMethod": "card",
"createdAt": "2024-03-07T12:00:00.000Z",
"completedAt": "2024-03-07T12:00:05.000Z",
"metadata": {}
}
}Not found
404json
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "No transaction found for the given transaction ID."
}
}Note
Possible
status values: PENDING, REDIRECT (awaiting 3DS or APM completion), SUCCESS, FAILED, DECLINED, CANCELLED.Get Payment Status (Sandbox)
GET
SandboxAPI Key
Returns the status of a payment or transaction in sandbox. Same path parameter and response shape as production.
Same as production: id is the FinvyPay transaction ID.
bash
GET /api/sandbox/status/FP2603YFGPKSWF0060Success — sandbox
200json
{
"success": true,
"data": {
"transactionId": "FP2603YFGPKSWF0060",
"orderId": "e21be056-d0c2-4003-be28-28dc88684b35",
"status": "SUCCESS",
"amount": 11,
"currency": "USD",
"paymentMethod": "card",
"createdAt": "2024-03-07T14:32:00.000Z",
"completedAt": "2024-03-07T14:32:08.000Z",
"metadata": {}
}
}