Error Codes

When an API error includes an error.code value, use this reference to decide whether to correct request data, satisfy a precondition, refresh resource state, or retry the same request. For the full error response shape, HTTP status guidance, type, cause, and fix_code fields, see Errors.


Chimes

Error codeWhereAction
chime_broadcast_failedBroadcast ChimesTransient broadcast creation failure. Retry the same request with the same idempotency key.
chime_schedule_failedSchedule ChimeTransient schedule creation failure. Retry the same request with the same idempotency key.
chime_send_failedSend ChimeTransient send failure. Retry the same request with the same idempotency key.
email_message_unsafeSend ChimeSupplied email content failed safety validation. Update the sender, headers, links, text, or HTML before retrying.
email_recipient_suppressedSend ChimeThe email recipient is suppressed from delivery. Use a different recipient or resolve the suppression first.
invalid_recipientSend ChimeThe recipient did not resolve to a supported SMS or email address. Fix the inline contact or customer record.
message_template_archivedSend, Schedule, BroadcastThe stored template is archived. Use an active template or create a replacement.
message_template_attachments_unsupportedSend, Schedule, BroadcastThe email template rendered attachments, but Chimes cannot deliver template attachments yet. Remove attachments before sending.
message_template_channel_mismatchSend, Schedule, BroadcastThe stored template channel does not match the recipient transport. Use an SMS template for SMS recipients or an email template for email recipients.
message_template_email_subject_emptySend, Schedule, BroadcastThe email template rendered an empty subject. Update the template or variables.
message_template_email_text_emptySend, Schedule, BroadcastThe email template rendered an empty text body. Update the template or variables.
message_template_email_unsafeSend, Schedule, BroadcastRendered email content failed Chime safety validation. Update template content, links, headers, sender, or variables.
message_template_id_requiredSend, Schedule, Broadcastmessage_template.template_id is missing or blank. Provide the stored template id.
message_template_not_foundSend, Schedule, BroadcastNo visible template matched message_template.template_id. Verify the id and application.
message_template_not_publishedSend, Schedule, BroadcastThe stored template has no published version. Publish it before using it for sends.
message_template_render_too_longSend, Schedule, BroadcastRendered content exceeds the transport limit. Shorten the template or variables.
message_template_render_unsafeSend, Schedule, BroadcastThe template renderer rejected unsafe email output. Update the template or variables.
message_template_requiredSend, Schedule, BroadcastA stored template reference was expected but omitted. Provide message_template with template_id.
message_template_sms_emptySend, Schedule, BroadcastThe SMS template rendered no body text. Update the template or variables.
message_template_variables_invalidSend, Schedule, BroadcastVariables do not match the published template contract. Supply required variables with valid types.
missing_message_contentSend, Schedule, BroadcastNo content source matched the recipient transport. Provide full_message, email, or message_template as appropriate.
mixed_message_contentSend, Schedule, BroadcastThe request mixed SMS and email content. Provide one content source for the resolved transport.

Customers

Error codeWhereAction
customer_not_foundLookup customerVerify the customer_id and application ownership.

File APIs

Direct uploads and file access

Error codeWhereAction
empty_fileUpload fileSupply a file containing at least one byte.
file_api_unavailableFile endpointsA required file operation is temporarily unavailable. Retry later.
file_content_type_not_allowedUpload fileUse a MIME type allowed for the selected purpose.
file_contents_unavailableDownload file contentsThe stored file cannot be read. Contact support if the error persists.
file_extension_not_allowedUpload fileUse a filename extension allowed for the selected purpose.
file_has_live_referencesDelete fileRemove live Commerce references before deleting the file.
file_metadata_unavailableFile endpointsFile metadata is temporarily unavailable. Retry later.
file_not_foundLookup, download, deleteVerify the file ID and application ownership.
file_operation_failedFile endpointsThe operation could not complete. Retry later; contact support if it persists.
file_purpose_not_allowedUpload fileUse one of the documented file purposes.
file_row_limit_exceededUpload fileReduce a product-import CSV to no more than 10,000 data rows.
file_schema_mismatchUpload fileMake the product-import CSV match the documented column schema.
file_storage_encoding_unsupportedDownload file contentsThe stored representation cannot be delivered. Contact support.
file_too_largeUpload fileReduce the file to the selected purpose's size limit.
idempotency_key_conflictUpload fileUse the original upload input with this key or choose a new key.
idempotency_key_in_progressDelete fileThe original deletion is still processing. Retry with the same key.
idempotency_key_unsupportedUpload fileSend the retry key in the Idempotency-Key header, not a form field.
idempotency_storage_unavailableDelete fileRetry the deletion later with the same key.
image_metadata_unreadableUpload fileSupply a valid image whose dimensions can be read.
storage_quota_exceededUpload fileFree file capacity or request a higher allocation.

File links

Error codeWhereAction
file_contents_unavailableOpen file linkThe stored file cannot be read. Contact support if the error persists.
file_link_access_deniedOpen file linkOpen the link from an allowed origin and client address.
file_link_access_limit_reachedOpen file linkCreate a new link if the recipient still needs access.
file_link_already_existsCreate file linkSubmit a new create request; contact support if the error repeats.
file_link_delivery_invalidCreate or open file linkCorrect the delivery, download, origin, or CIDR settings.
file_link_expiredOpen file linkCreate a new link with a future expiry.
file_link_inactiveOpen file linkCreate a new link if access should resume.
file_link_not_foundCreate, lookup, revoke, openVerify the file-link ID or use the complete URL returned by create.
file_link_operation_failedFile-link endpointsThe operation could not complete. Retry later; contact support if it persists.
file_link_purpose_not_allowedCreate file linkUse file links only for a linkable file purpose.
file_metadata_unavailableFile-link endpointsFile metadata is temporarily unavailable. Retry later.
file_storage_encoding_unsupportedOpen file linkThe stored representation cannot be delivered. Contact support.
idempotency_key_conflictRevoke file linkUse the original revoke input with this key or choose a new key.
idempotency_key_in_progressRevoke file linkThe original revocation is still processing. Retry with the same key.
idempotency_storage_unavailableRevoke file linkRetry the revocation later with the same key.

Upload requests

Error codeWhereAction
empty_fileFulfill upload requestSupply a file containing at least one byte.
file_api_unavailableUpload-request endpointsA required file operation is temporarily unavailable. Retry later.
file_content_type_not_allowedFulfill upload requestUpload a MIME type allowed by the request and its purpose.
file_extension_not_allowedFulfill upload requestUpload a filename extension allowed by the request and its purpose.
file_metadata_unavailableUpload-request endpointsFile metadata is temporarily unavailable. Retry later.
file_name_mismatchFulfill upload requestUse the exact filename required by the request.
file_row_limit_exceededFulfill upload requestReduce a product-import CSV to no more than 10,000 data rows.
file_schema_mismatchFulfill upload requestMake the product-import CSV match the documented column schema.
file_size_mismatchFulfill upload requestUpload a file with the exact required byte size.
file_too_largeFulfill upload requestReduce the file to the request's maximum size.
file_too_smallFulfill upload requestUpload a file that meets the request's minimum size.
idempotency_key_conflictCreate or cancel upload requestUse the original input with this key or choose a new key.
idempotency_key_in_progressCreate or cancel upload requestThe original action is still processing. Retry with the same key.
idempotency_storage_unavailableCreate or cancel upload requestRetry the action later with the same key.
image_metadata_unreadableFulfill upload requestSupply a valid image whose dimensions can be read.
storage_quota_exceededFulfill upload requestFree file capacity or request a higher allocation.
upload_request_already_existsCreate upload requestSubmit a new create request; contact support if the error repeats.
upload_request_attempt_limit_reachedFulfill upload requestCreate a replacement request if another upload should be allowed.
upload_request_expiredFulfill upload requestCreate a replacement request with a future expiry.
upload_request_expiry_invalidCreate upload requestSet expires_at to a future RFC 3339 timestamp.
upload_request_inactiveFulfill upload requestCreate a replacement request if uploading should resume.
upload_request_not_foundLookup, cancel, fulfillVerify the ID or use the complete URL returned by create.
upload_request_operation_failedCreate, lookup, page, cancelRetry later; contact support if the error persists.
upload_request_policy_invalidCreate upload requestKeep constraints within the selected purpose and use valid size relationships.
upload_request_state_conflictCancel upload requestRefresh the request and act only while its current state permits cancellation.
upload_request_upload_failedFulfill upload requestRetry later if attempts remain; contact support if the error persists.

Financial Accounts

Error codeWhereAction
fa_is_payout_destDisconnect a financial accountRemove or replace this account as a payout destination before disconnecting it.

Message Templates

Error codeWhereAction
message_template_archivedUpdate, Publish, Render previewUse an active template or create a replacement.
message_template_create_failedCreateTransient create failure. Retry the same request.
message_template_invalidCreate, UpdateUpdate the template fields, channel content, or variable declarations.
message_template_not_foundUpdate, Publish, Archive, Lookup, Page, Render previewVerify the template id and application ownership.
message_template_not_publishedRender previewPublish the template before rendering the published version or using it in Chimes.
message_template_render_invalidRender previewFix invalid variables or template syntax.
message_template_render_too_longRender previewShorten the template or variable values so rendered content fits the transport limit.
message_template_render_unsafeRender previewUpdate rendered email content, links, headers, sender, or variables so the safety scan passes.
message_template_request_invalidAll message template endpointsCorrect the request shape, unknown fields, or missing required values.
message_template_update_failedUpdate, Publish, ArchiveTransient mutation failure. Retry the same request.

Orders

Error codeWhereAction
confirmation_already_satisfiedConfirm paymentFetch the order and inspect the latest payment status; the confirmation has already completed.
confirmation_bad_tokenConfirm paymentAsk the customer for the latest token and retry the confirmation.
confirmation_expiredConfirm paymentRequest a new confirmation before retrying.
confirmation_failedConfirm paymentVerify the token from the active confirmation request and retry.
confirmation_max_reachedConfirm paymentRequest a new confirmation; the current request has no remaining attempts.
confirmation_not_foundConfirm paymentVerify that the confirmation belongs to this order payment.
confirmation_not_neededRequest confirmationRefresh order state; this payment does not currently require customer confirmation.
confirmation_pendingPay, Confirm paymentWait for the customer to finish confirmation or send a new confirmation request before retrying.
confirmation_request_failedCreate, Pay, Request confirmationTransient confirmation delivery failure. Retry the same request.
customer_not_foundPageVerify the customer filter before paging orders.
draft_mode_order_has_no_invoiceSend invoiceFinalize the draft order before sending its hosted invoice link.
invalid_line_itemsCreate, UpdateFix the line_items payload and retry.
order_canceledUpdate, CancelFetch the order state; canceled orders cannot be changed or canceled again.
order_completedUpdate, CompleteCompleted orders cannot be changed or completed again.
order_customer_invalidCreate, PayProvide a valid customer_id or valid customer_data.
order_delivery_auth_failedSend invoice, Send receiptRetry with valid Commerce API credentials for the order application.
order_delivery_contact_missingSend invoice, Send receiptAdd an email address or phone number to the order customer before sending the document link.
order_delivery_failedSend invoice, Send receiptDelivery failed for every available contact method. Retry the same request.
order_expiredUpdate, CancelUse an order that is still active, or create a new order.
order_finalize_failedCreateThe order was created but finalization did not complete. Fetch the order before deciding whether to retry.
order_finalize_requiredUpdateInclude an explicit finalize decision when changing seal-sensitive fields.
order_not_foundPay, Confirm payment, Request confirmation, Update, Finalize, Complete, Lookup, Cancel, Lookup invoice, Send invoice, Send receiptVerify the order_id and application ownership.
order_not_payablePayFetch the latest order state; only payable orders can accept payment.
order_paidPay, Update, CompleteFetch the order state; paid orders cannot be paid or edited again.
order_payment_create_failedCreateTransient payment creation failure. Retry the same request.
order_payment_execution_failedCreateThe order was created, but immediate payment did not complete. Fetch the order and payment before retrying payment.
order_payment_missingPay, CompleteAttach or create the payment required by this operation before retrying.
order_payment_not_paidCompleteComplete the order only after its payment succeeds or is marked paid out of band.
order_payment_touchedUpdateThe payment has entered confirmation or execution; avoid changing payment-sensitive order fields.
order_receipt_number_invalidCreate, UpdateProvide a non-empty receipt number that differs from the current value.
order_receipt_missingSend receiptSend a receipt only after the order is paid.
order_terminatedPay, CancelUse a non-terminal order; paid, completed, canceled, or expired orders cannot use this operation.
order_update_emptyUpdateInclude at least one order field to change.
orders_page_unavailablePageTransient page loading failure. Retry the same request.
payment_cant_pay_offlinePay, CompleteMark paid out of band only when the payment supports that action in its current state.
payment_method_invalidCreate, Pay, UpdateUse an active payment method that belongs to the order customer.
payment_refresh_failedCreate, Pay, Confirm paymentTransient payment refresh failure. Retry the same request after fetching the latest order state.
payment_transition_conflictCreate, Pay, Confirm payment, CompleteFetch the latest order or payment state before deciding whether another request is needed.
price_archivedCreateUse an active price or create an inline price for the order.
price_inactiveCreateActivate the price or choose an active price.
price_not_foundCreateVerify the price_id in the line item.
product_archivedCreateUse an active product or create the line item inline.
product_not_foundCreateVerify the product_id in the line item.
purchase_intent_already_usedCreateCreate the order from a purchase intent that has not already been claimed.
unprocessable_requestLookup, UpdateRefresh state and retry after checking the request parameters.

Payment Methods

Error codeWhereAction
payment_method_already_activeActivate, UpdateThe payment method is already active; no activation retry is needed.
payment_method_already_archivedArchive, UpdateThe payment method is already archived; no archive retry is needed.
payment_method_already_inactiveDeactivate, UpdateThe payment method is already inactive; no deactivation retry is needed.
payment_method_archivedActivate, Archive, Deactivate, UpdateUnarchive the payment method before updating or reusing it.
payment_method_conflicting_state_updatesUpdateSend only one state transition in a single update request.
payment_method_inactivePayment method mutationsActivate the payment method before reusing it.
payment_method_no_updatesUpdateInclude at least one supported field to change.
payment_method_not_archivedUnarchive, UpdateOnly archived payment methods can be unarchived.
payment_method_not_foundLookup, Update, Archive, Unarchive, Activate, DeactivateVerify the payment_method_id and application ownership.
payment_method_owner_address_country_requiredUpdateInclude owner.address.country when adding an owner address.

Prices

Error codeWhereAction
cannot_change_price_amountUpdateCreate a new price when the amount or currency needs to change.
cannot_change_product_idUpdateCreate a new price for a different product association.
default_price_cannot_deactivateDeactivateSet another default unit price on the product before deactivating this price.
price_already_activeActivateThe price is already active; no activation retry is needed.
price_already_archivedArchiveThe price is already archived; no archive retry is needed.
price_already_inactiveDeactivateThe price is already inactive; no deactivation retry is needed.
price_archivedActivate, DeactivateUse a non-archived price or create a replacement.
price_create_failedCreateTransient price creation failure. Retry the same request.
price_not_foundLookup, Update, Activate, Deactivate, ArchiveVerify the price_id and application ownership.
product_not_foundCreateVerify the product_id before creating the price.

Products

Error codeWhereAction
cannot_clear_field_once_setUpdateReplace the field with a new value instead of clearing it.
cannot_update_immutable_fieldUpdateRemove immutable fields such as id, app_id, created_at, and type from the request.
invalid_product_typeUpdateUse a supported product type.
product_add_price_failedAdd priceTransient price attachment failure. Retry the same request.
product_already_archivedArchiveThe product is already archived; no archive retry is needed.
product_already_publishedPublishThe product is already published; no publish retry is needed.
product_already_unpublishedUnpublishThe product is already unpublished; no unpublish retry is needed.
product_archivedAdd price, Set default unit priceUnarchive or recreate the product before changing prices.
product_not_foundLookup, Add price, Set default unit price, Update, Publish, Unpublish, ArchiveVerify the product_id and application ownership.

Was this page helpful?