e-financing error codes
e-financing error codes reference
Error codes
Error codes are application codes that are returned in the response body by the service when the HTTP status code is (400, 409 and 404 ) This code is machine readble and represents the cause of the error.
The error codes when the Http status is 400 Bad request
Error codes returned by all e-financing endpoints :
REQUEST_VALIDATION_ERROR
A generic error for an invalid format in any field of the request body. This error occurs when the input value does not match the defined format of a field in the body of a POST, PATCH, or PUT request.
Example of error message: buyers[0].contactAddress.phoneNumber is invalid. It must match the pattern ^\+[1-9]\d{1,14}$
INVALID_COUNTRY_CODE
A specific error code is returned when an input field representing a country does not match the ISO 3166-1 alpha-2 format.
INVALID_CURRENCY_CODE
A specific error code is returned when an input field representing a currency does not match the three-letter currency codes defined by ISO 4217 alpha-3.
INVALID_PAGE_INDEX
This error code typically occurs when the request parameter 'page' is less than 1.
The consumer must provide a page value greater than or equal to 1.
INVALID_UUID
This error code typically occurs when the request path parameter 'subscriptionId' is not an uuid.
Consumer must provide a subscriptionId in a format of uuid.
Specific error codes related to the POST /subscriptions:
FORBIDDEN
This error occurs when the merchant tries to invoke POST / subscriptions with a solutionCode that is not eligible.
If this error occurs, the consumer must use one of the solutionCodes returned in the response of the GET /eligible-solutions request. Only these solutionCodes are eligible for use in the POST /subscriptions request.
REQUEST_VALIDATION_ERROR
The phoneNumber and mobilePhoneNumber must be consistent with the marketCode of the solutionCode (e.g., FR, DE, etc.).
For example, when the marketCode is FR, the mobilePhoneNumber must start with the international code +33.
BAD_REQUEST (this error code will be replaced with another error code in the next version)
This error occurs when a subscription with the same merchantGlobalOrderId already exists.
merchantGlobalOrderId must be unique for each subscripton.
Specific error codes related to the POST /subscriptions/_confirmDelivery:
to be completed
Specific error codes related to the POST /subscriptions/_cancel:
to be completed
The error codes when the Http status is 409 Conflict:
The error codes when the Http status is 404 Not Found:
ENTITY_NOT_FOUND
This error occurs when the consumer sends a request with unknown subscriptionId.
The path parameter subscrptionId must be replaced with a known subscriptionId that is returned in the response of POST /subscriptions or in the GET /subscriptions response.
Generic errors codes
Last updated
Was this helpful?