Skip to main content
This is API V1, which is no longer maintained

For up-to-date documentation, see the latest version.

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 typeDescription
AUTHORIZATION_CODE_EXPIREDExpired BLIK code
AUTHORIZATION_CODE_INVALIDInvalid BLIK code
AUTHORIZATION_CODE_USEDAlready used BLIK code
INSUFFICIENT_BALANCE_FUNDSNot enough funds on the balance to make a refund
INSUFFICIENT_CARD_BALANCE_FUNDSNot enough funds on the card balance to make a refund Only for card payment refunds
NOT_FOUNDCan not find the requested value
PAYMENT_AMOUNT_TOO_LARGEThe amount of payment is too large
PAYMENT_AMOUNT_TOO_SMALLThe amount of payment should be greater than 100 PLN
PAYMENT_METHOD_NOT_AVAILABLEChosen payment method is not available
REFUND_AMOUNT_TOO_LARGEThe amount of refund is too large
REFUND_AMOUNT_TOO_SMALLThe amount of refund is too small
REFUND_POSSIBILITY_EXPIREDPayment refund possibility expired because transaction is older than 6 months
SYSTEM_TEMPORARILY_UNAVAILABLEOur system is temporarily unavailable (very rare)
UNAUTHORIZEDPayment request was formulated incorrectly
VALIDATION_ERRORPayment request was formulated incorrectly
VERIFICATION_FAILEDYour signature header is incorrect