Errors

Shape of an error

{
  "code": "bad-request/missing-param",
  "message": "Missing channelId",
  "params": "channelId"
}

Channels errors are FLAT

If you are coming from the Orders API, errors there are wrapped: { "error": { "code", "message" } }. Channels wraps nothing. The code and message are at the root, as in the example.

A client reading body.error.code will get undefined on every error in this domain.

codestring

Stable, machine-readable code. It is the only thing you should branch on: messages change, codes do not.

messagestring

English description, meant for logs and debugging. Do NOT show it to a merchant as-is — it is neither translated nor written for them.

parameterstring

The field that caused the rejection, when the rejection is about a specific field. Present in channel patch validation errors.

paramsstring

Same as `parameter`, under a different name, and sometimes with several comma-separated fields. Both keys coexist; check both.

typesSupportedstring[]

Only on bad-request/invalid-channel-type: the full list of types accepted at setup.

warningsstring[]

Only on conflict/sync-in-progress and the deletion 500: prose warnings about the state that blocked the operation.

How to read a code

The prefix before the slash tells you whose problem it is and therefore what to do:

PrefixHTTPWhoseWhat to do
bad-request/…400Yours: the request is malformedFix the request. Retrying unchanged fails the same way.
unprocessable-entity/…422Yours, but semantic: the request is well-formed and something it references is not usableFix the referenced data (a location, an OAuth code).
oauth/…400The authorization flow'sAlmost always: send the merchant to authorize again.
forbidden/…, Unauthorized, permission-denied403PermissionsDo not retry. Check your API key's scope.
not-found/…404The resource does not existDo not retry.
conflict/…409The system's current stateRetry later: something is in progress.
internal-error…, server-error/…500OursRetry with exponential backoff. If it persists, report it.
not-implemented501The route exists but does nothingNever retry. See below.

The ones you will actually see

Authentication and permissions

CodeHTTPWhen
bad-request/missing-tenant401The API key did not resolve to a tenant. Note: it is 401, not 400, despite the bad-request/ prefix.
permission-denied403Your API key lacks the permission the route requires. The response includes requiredPermission with the exact name.
Unauthorized403The channel exists but belongs to another tenant. Note the capital letter and missing prefix: it is the only code shaped that way.
forbidden/channel-access403Same case, on the Coppel routes. Two codes for one situation.

Channel not found

Three different codes for "the channel does not exist"

This is not sloppiness in this documentation: three routes resolve the same case three ways. Handle all of them.

  • GET /channels/{channelId} → 400 bad-request/not-found
  • GET /channels/{channelId}/settings → 404 not-found/channel
  • GET /channels/{channelId}/deletion-impact → 500 internal-error (known defect: the impact computation throws before reaching the 404 branch)

Setup and connection

CodeHTTPWhen
bad-request/invalid-channel-type400type missing or unrecognized. Carries typesSupported, which lists twelve even though only ten actually get created.
bad-request/invalid-auth400Missing Shein's tempToken, whose setup is not built.
bad-request/location-required400Missing the fulfillment location on one of the ten types that require it.
not-found/channel404There is no channel with that channelId in your account. Returned by POST /channels/reconnect.
bad-request/channel-type400The channel exists but is not of the type the operation accepts. Returned by POST /channels/reconnect, which only takes MercadoLibre.
bad-request/missing-param400A required field is missing; params says which.
bad-request/invalid-config400config does not have the shape that type expects.
bad-request/missing-url400Missing the store URL (WooCommerce).
unprocessable-entity/location-invalid422The location does not belong to your tenant.
unprocessable-entity/invalid-connection-code422The marketplace rejected the authorization code.
unprocessable-entity/invalid-api-keys422The marketplace rejected the application keys.
unprocessable-entity/intent-not-found422The intentNonce does not exist, was consumed, or expired.
oauth/invalid-grant400The code was already used or expired. Valid 10 minutes, single use.
oauth/invalid-client400Invalid application credentials. The merchant cannot fix this.
oauth/invalid-scope400The requested scope is not valid.
oauth/invalid-request400The OAuth request is malformed.
oauth/token-exchange-failed400Generic exchange failure.

Body and parameters

CodeHTTPWhen
bad-request/missing-body400The method requires a body and it arrived empty.
bad-request/invalid-json400The body does not parse as JSON.
bad-request/invalid-param400A query parameter is not a number, or is negative.
bad-request/invalid-pagination400page or limit out of range.
bad-request/invalid-settings400Missing the settings envelope in the body.
bad-request/invalid-entity-type400entityType outside person / organization.
bad-request/invalid-preparation-time400preparationTime.value is not a positive number.
bad-request/invalid-preparation-unit400preparationTime.unit outside minutes / hours / days.
method-not-allowed405The method does not apply to that route.

Async jobs

CodeHTTPWhen
conflict/active-job409There is already an active job of that family on the channel. Retry later, or poll the running one.
conflict/sync-in-progress409The channel cannot be deleted while a synchronization is running.
not-found/job, not-found/sync-job, not-found/link-job, not-found/export-job404The job does not exist, or does not belong to this channel.
bad-request/job-not-cancellable400The job already finished, or is in a state that does not allow cancellation.

Marketplace-specific

CodeHTTPWhen
unsupported-channel-type400You used a marketplace-specific route against a channel of another type.
bad-request/invalid-channel-type400Same case on the Coppel routes: the channel is not of type coppel.
channel-unavailable503The marketplace did not respond.
shopify-error/unauthorized401The Shopify token expired or is invalid. Reconnect the channel.
not-implemented501See below.

`501 not-implemented` is not a transient error

The Amazon, Walmart and Shein POST routes always return 501. The routes exist and are wired, but their handlers are empty stubs: there is nothing behind them.

Do not treat it as a temporary failure and do not retry it. For those three marketplaces, writes go through the generic synchronization and export endpoints, not their specific route.

Server errors

The server-error/… codes are operation-specific — measured 28 distinct ones in the domain: server-error/validate-export, server-error/category-tree, server-error/sync-start-failed… — and they all mean the same thing to your client: something failed on our side in that particular operation.

Do not branch on each one. Branch on the server-error/ prefix and internal-error, retry with exponential backoff, and log the full code so it is useful when reporting.

`internal-error/deletion-failed` is NOT blindly retryable

It is the exception to the rule above. It means channel deletion got underway and stopped midway; the response carries deletedCounts with what was actually deleted. Retrying continues from there, but in the meantime a channel exists in an intermediate state. The response carries deletedCounts with what was actually deleted.

Next steps