AI resources

Possible errors

Check the list of possible errors returned by the Orders API and how to fix them.

Error typeStatusCodeDescription and possible solutions
Request error400json_syntax_errorMake sure the request has a valid JSON structure, with appropriate keys and values.
Request error400required_propertiesSome required properties are missing. Check the request and make sure to include all required properties according to the API documentation.
Request error400unsupported_propertiesSome properties provided are not supported by the API. Review the request and remove or correct the unsupported properties.
Request error400minimum_propertiesThe minimum number of required properties has not been met. Add the necessary properties to complete the request.
Request error400property_typeThe type of the provided property is invalid. Make sure the value sent in the request matches the expected type.
Request error400property_valueThe value of the provided property is invalid. Check the sent value and make adjustments to match the allowed values.
Request error400maximum_itemsThe maximum number of allowed items has been exceeded. Reduce the number of items sent so it does not exceed the maximum allowed.
Request error400minimum_itemsThe minimum number of required items has not been met. Add more items to the request to meet the API requirements.
Request error400invalid_path_paramCheck if the ID provided as a parameter is valid.
Request error400invalid_propertiesSome properties provided are invalid or malformed. Review the sent properties and check if they comply with the API specifications.
Request error400empty_required_headerOne or more required headers are empty. Check the request and make sure all required headers are present and properly filled in.
Request error400invalid_idempotency_key_lengthThe value sent in the header X-Idempotency-Key exceeded the maximum allowed size. The header accepts values between 1 and 64 characters.
Request error400order_builder_without_transactionsThere is no transaction associated with the order. Make sure to include at least one transaction for the order creation.
Request error400invalid_order_mode_for_operationThe mode provided is not valid for this operation. Check if you are using the correct mode according to the desired operation.
Request error400invalid_order_typeThe order type is invalid. Check if the type used is valid for the operation.
Request error400invalid_transaction_idThe transaction ID is invalid. Make sure the ID is correct.
Request error400exceeded_number_of_transactionsAn error occurred in the request. The Order accepts a maximum of one transaction. Remove the excess transactions.
Request error400invalid_email_for_sandboxThe email format is not valid for the sandbox environment, it must contain "@testuser.com".
Request error400order_invalid_sponsor_idThe order sponsor identifier is invalid. Make sure the ID is correct.
Request error400invalid_header_valueCaller identifier (caller_id) not found. Make sure the ID is correct.
Request error401401The value sent as Access Token is incorrect. Please verify it and try again by sending the correct value.
Request error401invalid_credentialsThere is no support for test credentials. Use test users with production credentials for the test environment (sandbox) and your production credentials for the production environment.
Processing error402failedThere was an error processing one of the transactions. Check the returned message for more information.
Request error404order_not_foundThe order was not found. Check if the provided ID is correct.
Request error404transaction_not_foundThe transaction was not found. Check if the provided ID is correct.
Request error409cannot_refund_orderMake sure the order is in a state that allows a refund.
Request error409cannot_capture_orderCheck if the order state allows capture and that it was created with the processing_mode field set to automatic.
Request error409cannot_cancel_orderMake sure the order is in a state that allows cancellation.
Idempotency error409idempotency_key_already_usedThe X-Idempotency-Key provided has already been used. Each idempotency key must be unique to ensure the operation is performed only once. Use a new key for the next request.
Request error409operation_not_supportedThe requested operation is not supported. Check if the operation you are trying to perform is valid for the current context.
Request error409order_already_refundedThe order has already been refunded. It is not possible to process a refund on an order that already has this status.
Request error409order_already_canceledThe order has already been canceled. It is not possible to perform operations on an order that is already canceled.
Request error409order_refund_already_in_processThere is already a full refund request in process for the order in question.
Idempotency error423resource_lockedThe idempotency key is temporarily locked. Wait a few moments and try to execute the request again.
Idempotency error500idempotency_validation_failedAn internal server error occurred. Try resending the request with a new and unique idempotency key to avoid conflicts. If the problem persists, contact Support and provide the x-request-id along with more details about the operation performed.
API error500internal_errorAn internal server error occurred. Please try again later. If the problem persists, contact Support and provide the x-request-id along with more details about the operation performed.
Request error400invalid_sequence_controlIt is not possible to create the payment by sending information from the automatic_payments.subscription.sequence node using a payment profile with sequence_control set to AUTO. The value of this field must be set to MANUAL to send recurrence-related information. Access Manage scheduled recurring payments for more information.
Request error400invalid_payment_methodsThe payment profile being used to create the order has no associated payment methods, or has two cards and the order is being processed with synchronous mode, which is not allowed. Review your configuration to try again.
Request error400invalid_capture_modeThe order has retry logic configured but the processing mode is set to automatic. The retries field will only be allowed if processing_mode=automatic_async has been set.
Request error400invalid_payment_method_listThe payment profile being used to create the order has more than two associated payment methods, which is the maximum allowed. Review your configuration to try again.
Request error400invalid_application_idThe application identifier being used to execute the request is incorrect or not authorized. Verify that you are sending the correct information.
Request error400profile_not_foundThe payment profile being used to create the payment does not exist or is invalid. Verify that you have sent the correct value and try again.
Request error400invalid_profile_statusYou are trying to create the order using a payment profile with a status that does not allow it. It is only possible to create payments with payment profiles with status=READY. Check the profile status using the Profiles API.
Request error400invalid_customer_idThe customer identifier sent in the request does not match the one in the payment profile. Verify that you have sent the correct values in both cases.
Request error400invalid_collector_with_application_feeAn application_fee greater than 1 must be sent for the request to be correct.
Request error404profile_not_foundThe payment profile being used to create the payment was not found. Verify that you have sent the correct value and try again.
Request error400profile_id_must_be_informedThe profile identifier was not sent, which is required in cases where sequence_control.reason=recurring.
Request error400invalid_intent_statusIt is not possible to refund the order in its current state. Make sure the order is in a state that allows a refund.
Request error400invalid_refund_amountIt is not possible to refund the amount defined in the request. Make sure you have sent the correct value.
Request error400refund_errorThere was an error trying to process the refund. Wait a moment and try again.
Request error400invalid_refundYou are trying to refund a payment that does not allow it. Make sure you meet the conditions to create a refund and try again.
API error424error_dependencyAn internal error occurred. Wait a moment and try again.