The payment status endpoint will return the current status of the payment id provided in the request parameter.
{{avenu_base_url}}/customer/v1/payments/status/{{paymentId}}
Parameter | Format | Required |
---|
"paymentId" | String | Y |
{
"paymentId": "",
"status": "",
}
Element | Details |
---|
paymentId | UUID payment identifier |
status | Status of payment at end of transaction. See below. |
Code | Description |
---|
PENDING | A pending settlement |
FAILED | The payment failed |
SETTLED | The payment has been settled |
DECLINED | The payment has been declined |
CANCELED | The payment has been canceled |
Code | Message |
---|
1001 | "Missing required field" |
1002 | "Invalid data type" |
1003 | "Invalid data" |
1004 | "Account validation failed" |