Skip to main content

Errors

The finperks Giftcard API returns different HTTP error codes in the 4xx and 5xx ranges. When an error status is returned, the body contains JSON with more information about the error (except for some 5xx errors, which might contain non-JSON data).

Error responses contain a machine readable error code as well as a description providing some more details for human processing. Your API implementation should be prepared to handle new error codes. Never write code parsing error messages or use them for anything other than showing them to people. Error messages will change without announcement as it may clarify specific error cases.

General Errors

HTTP StatusClassCodeDescription
400invalid_formatinvalid_request_bodyThe request body is not valid JSON or does not match the expected format.
400invalid_formatinvalid_request_bodyThe request body is not valid JSON or does not match the expected format.
401authinvalid_signature_formatThe Signature value is not a valid hexadecimal string
401authinvalid_signatureThe given KeyId is invalid or the signature does not match the provided data or was created using an invalid Key
403forbiddenlive_mode_disabledThe client is not enabled for live mode
403forbiddenapi_key_missing_required_scopeThe API key does not have the required scope for this action
403forbiddenrequest_blockedThe request has been blocked by the security rules/due to suspicious behaviour
404not_foundpath_not_foundPath not found
400transportinvalid_date_headerThe Date header is missing, invalid or too far away from current date.
400transportinvalid_host_headerThe given Host header does not match the expected value for this host.
413transportcontent_too_largeThe request body is too large
429rate_limitrate_limit_exceededThe rate limit for this client has been exceeded. See the Retry-After header for when to retry.
500internalinternal_server_errorAn unexpected error occurred on our side. Please try again later.