Error handling
Paynow Payments API uses HTTP status codes together with error objects to communicate errors. When an API call fails, it responds with a 4xx or 5xx HTTP status code together with a response body containing an error object. The object contains the error code and the list of error messages.
Information about possible errors for each request can be found below and the API Reference section.
| Error type | Description |
|---|---|
| AUTHORIZATION_CODE_EXPIRED | Expired BLIK code |
| AUTHORIZATION_CODE_INVALID | Invalid BLIK code |
| AUTHORIZATION_CODE_USED | Already used BLIK code |
| INCONSISTENT_SUBSCRIPTION_DATA | No matching subscription was found for the provided subscription data |
| INSUFFICIENT_BALANCE_FUNDS | Not enough funds on the balance to make a refund |
| INSUFFICIENT_CARD_BALANCE_FUNDS | Not enough funds on the card balance to make a refund Only for card payment refunds |
| INVALID_PAYMENT_TOKEN_STATUS | Saved card token status is not ACTIVE |
| INVALID_SUBSCRIPTION_STATUS | Subscription status is not ACTIVE |
| NOT_FOUND | Can not find the requested value |
| PAYMENT_AMOUNT_TOO_LARGE | The amount of payment is too large |
| PAYMENT_AMOUNT_TOO_SMALL | The amount of payment should be greater than 1 PLN |
| PAYMENT_METHOD_NOT_AVAILABLE | Chosen payment method is not available |
| REFUND_AMOUNT_TOO_LARGE | The amount of refund is too large |
| REFUND_AMOUNT_TOO_SMALL | The amount of refund is too small |
| REFUND_POSSIBILITY_EXPIRED | Refunds for BLIK payments are unavailable after 13 months from the transaction date |
| SYSTEM_TEMPORARILY_UNAVAILABLE | Our system is temporarily unavailable (very rare) |
| UNAUTHORIZED | Payment request was formulated incorrectly |
| VALIDATION_ERROR | Payment request was formulated incorrectly |
| VERIFICATION_FAILED | Your signature header is incorrect |