Skip to main content

Error Codes

The Purchase Validation API always responds with HTTP status 200. When an error occurs, the response body contains an error_code field and a message field instead of a valid response payload. Check for the presence of error_code in every response before processing the result.

Error Code Reference

CodeMessageDescriptionGuidance
Err00Unexpected errorAn unclassified internal error occurred.Retry the request. If the error persists, contact BlinkReceipt support with the request payload.
Err01Missing license_key parameterThe license_key field was not included in the request.Add your license_key to the request body.
Err02Invalid license_keyThe provided license_key is not recognized or has been revoked.Verify the key value in your BlinkReceipt account.
Err03Missing required parameterOne or more required fields are absent from the request.Ensure license_key, purchased_date (form) or products (JSON), and at least one product with product_description and unit_price are present.
Err04Product Intelligence Failure!The product intelligence subsystem encountered an internal error while processing the submitted products.Retry the request. If the error is consistent for a specific product, verify that product_description and unit_price are well-formed.
Err05PVP errorThe promotion validation subsystem encountered an internal error.Retry the request. If the error is consistent, verify that promo_slugs values are valid slugs configured for your account.
Err06Duplicate Detection Failure!The duplicate detection subsystem encountered an internal error.Retry the request. If the error persists, contact BlinkReceipt support.

Error Response Shape

All error responses follow the same structure:

{
"error_code": "Err01",
"message": "Missing license_key parameter"
}

Err02 additionally includes an error field with more detail:

{
"error_code": "Err02",
"message": "Invalid license_key",
"error": "license_key invalid"
}

Handling Errors

A defensive client should always inspect the response body before processing it:

{
"error_code": "Err03",
"message": "Missing required parameter"
}

If error_code is present, surface the message to your logging pipeline and do not attempt to read products, qualifiedPromotions, or any other success-only fields from the response.