Common HTTP error codes returned by the Checkout APIs and their meaning.
ResourceNotFound are returned for all APIs. API-specific errors, are only returned for specific endpoints.General errors
400 Bad Request
400:RequiredField
Returned when a value is not defined for a required field.
codeString | "RequiredField" |
messageString | "A value is required for field $field." |
fieldString | Name of the field missing the value. |
DuplicateFieldWithConflictingResource
Returned when a field value conflicts with an existing value stored in a particular resource causing a duplicate.
codeString | "DuplicateFieldWithConflictingResource" |
messageString | "A duplicate value $duplicateValue exists for field $field in request." |
InvalidInput
Returned when an invalid input has been sent.
codeString | "InvalidInput" |
messageString | Description of the invalid input error. |
InvalidJsonInput
Returned when an invalid JSON input has been sent. Either the JSON is syntactically incorrect or does not conform to the expected shape, for example, it is missing a required field.
The client application should validate the input according to the constraints described in the error message before sending the request.
codeString | "InvalidJsonInput" |
messageString | "Request body does not contain valid JSON." |
detailedErrorMessageString | Further explanation about why the JSON is invalid. |
InvalidOperation
Returned when the resources involved in the request are not in a valid state for the operation.
The client application should validate the constraints described in the error message before sending the request.
codeString | "InvalidOperation" |
messageString | Description of the error. |
InvalidField
Returned when a field has an invalid value.
codeString | "InvalidField" |
messageString | "The value $invalidValue is not valid for field $field." |
fieldString | Name of the field with the invalid value. |
invalidValueAny | Value invalid for the field. |
allowedValuesArray of String | Fixed set of allowed values for the field, if any. |
MaxResourceLimitExceeded
The limits must be adjusted for this resource before sending the request again.
codeString | "MaxResourceLimitExceeded" |
messageString | "You have exceeded the limit of $limit resources of type $resourceTypeId." |
limitFloat | The limit that was exceeded. |
resourceTypeIdString | The resource type that reached its limit. |
ReferencedResourceNotFound
idString | Unique identifier of the referenced resource, if known. |
codeString | "ReferencedResourceNotFound" |
messageString | "The referenced object of type $typeId $id || key was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)." |
typeIdString | Type of referenced resource. |
keyString | User-defined unique identifier of the referenced resource, if known. |
SyntaxError
codeString | "SyntaxError" |
messageString | "Syntax error while parsing $fieldDefinition." |
MissingProjectKey
Returned when the project key is missing from the request.
codeString | "MissingProjectKey" |
messageString | "Missing project key in the request path." |
404 Not Found
404:ResourceNotFound
Returned when the resource addressed by the request URL does not exist.
codeString | "ResourceNotFound" |
messageString | "The Resource with $resourceIdentifier $resourceId was not found." |
resourceIdentifierString | The identifier type used (e.g., id, key). |
resourceIdString | The actual identifier value. |
409 Conflict
409:ConcurrentModification
Returned when the request conflicts with the current state of the involved resources. Typically, the request attempts to modify a resource that is out of date (that is modified by another client since it was last retrieved). The client application should resolve the conflict (with or without involving the end user) before retrying the request.
codeString | "ConcurrentModification" |
messageString | "Object $resourceId has a different version than expected. Expected: $expectedVersion - Actual: $currentVersion." |
resourceIdString | The ID of the resource that has a version conflict. |
expectedVersionInt | Expected version of the resource. |
currentVersionInt | Current version of the resource. |
500 Internal Server Error
500:GeneralError
Returned when a server-side problem occurs. In some cases, the requested action may successfully complete after the error is returned. Therefore, it is recommended to verify the status of the requested resource after receiving a 500 error.
codeString | "General" |
messageString | Description about any known details of the problem, for example, "Write operations are temporarily unavailable". |
API-specific errors
The following errors are specific to certain API endpoints or operations.
Payment Intents
400 Bad Request
400:MultipleActionsNotAllowed
actions in the request body contains more than one object.codeString | "MultipleActionsNotAllowed" |
messageString | "Actions accepts only one action at time. Array size must be 1." |
Transactions
502 Bad Gateway
502:ConnectorFailed
codeString | "ConnectorFailed" |
messageString | "The connector could not be reached." |
PaymentFailure
Returned when the payment cannot be completed successfully.
codeString | "PaymentFailure" |
messageString | "Payment could not be completed successfully." |