Skip to main content

Error codes and response statuses

A complete list of HTTP codes, transaction statuses, validation errors and API response codes for dpay.pl.

HTTP response codes

CodeMeaningDescription
200SuccessRequest processed successfully
400Bad requestData validation error (e.g. invalid checksum, missing fields)
401UnauthorizedMissing or invalid credentials
403ForbiddenNo permission to access the resource (errorcode: err01)
404Not foundResource does not exist (e.g. err-payment-not-found)
500Server errorInternal server error (err-internal-server-error)

Response formats

Success response (payment registration)

{
"error": false,
"msg": "https://secure.dpay.pl/transfer@pay@A75AEBB4-4B89-4834-AD43-EF442C133769",
"status": true,
"transactionId": "A75AEBB4-4B89-4834-AD43-EF442C133769"
}

Transaction error response (e.g. canceled)

{
"error": true,
"msg": "Transaction canceled",
"status": false,
"transactionId": "42191111-A7AE-392E-8C09-7965C1DC6B0B"
}

Validation error (HTTP 400)

Returned for merchant-side errors (invalid checksum, disabled channel, incorrect amount):

{
"status": "failed",
"message": "Payment registration failed",
"errors": ["Invalid checksum"]
}

Error response with code (403)

{
"error": true,
"errorcode": "err01",
"message": "Access denied",
"status": false
}

Card response - success

{
"success": true,
"status": "success",
"message": {
"redirectText": "",
"redirectType": "SUCCESS"
}
}

Card response - 3D Secure required

{
"success": true,
"status": "success",
"message": {
"redirectText": "PGZvcm0gbWV0aG9kPSJQT1NUIi4uLg==",
"redirectType": "FORM"
}
}

BLIK response - error

{
"error": true,
"msg": "Transaction canceled",
"status": false,
"transactionId": "42191111-A7AE-392E-8C09-7965C1DC6B0B",
"additionalInfo": {
"error": "ER_WRONG_TICKET",
"error_description": null
}
}

Transaction statuses

The status field in the TransactionResponse:

StatusDescription
createdTransaction created, awaiting payment
processingPayment is being processed
paidPayment completed successfully
canceledTransaction canceled

Payout statuses

The state field in the WithdrawDetailsResponse:

ValueStatusDescription
0PendingPayout is awaiting processing
1CompletedPayout has been processed
-1ErrorPayout failed

Payment registration errors

Messages returned in the msg field when error: true:

MessageCauseSolution
Invalid checksumInvalid checksumCheck the field order and Hash key. Format: sha256(service|hash|value|url_success|url_fail|url_ipn)
Service not foundUnknown service nameCheck the service field in the dpay.pl panel
Invalid valueInvalid amountUse the decimal point format (e.g. "29.99")
Invalid URLInvalid URLMake sure the URLs start with https://

BLIK error codes

The additionalInfo.error field in the BLIK Level 0 payment response:

CodeDescriptionSolution
ER_WRONG_TICKETInvalid BLIK codeAsk the customer to generate a new code in their banking app

Card response codes

The message.redirectType field in the CardPaymentResponse:

ValueMeaningAction
SUCCESSPayment completedRedirect the customer to the success page
FORM3D Secure requiredDisplay the 3DS form from redirectText (Base64 encoded)

DCB error codes

DCB registration errors

MessageCauseSolution
Invalid GUIDInvalid GUID identifierCheck the GUID in the dpay.pl panel
Invalid valueInvalid amountProvide the amount in grosz (cents) as a string (e.g. "1023" = 10.23 PLN)
DCB not availableCarrier does not support DCBSuggest an alternative payment method to the customer
Limit exceededCustomer limit exceededInform the customer about the carrier limit

DCB payment statuses

ValueStatusDescription
1PAIDPayment completed
0PENDINGPayment awaiting confirmation
-1REJECTEDPayment rejected
2REFUNDEDPayment refunded

DCB verification statuses

ValueStatusDescription
1VERIFIEDNumber verified
0NOT_VERIFIEDNumber not verified
-1BLOCKEDNumber blocked
-2REQUIRES_CONTACTContact with support required

SMS code statuses

ValueStatusDescription
1USEDCode used
0PENDINGCode awaiting use
-1REJECTEDCode rejected