Errors and limits

HTTP errors, plan limits, and how long event logs are kept.

Ongapi returns JSON errors. Retry only when the status says the request can succeed later.

StatusMeaningWhat to do
400Invalid request body or headersFix the payload. Write routes document required fields in Orders and events
401Missing or revoked API keyCreate a new key and update the caller
403 plan_limit_exceededLive connection or order capUpgrade the plan or wait for the next period
404Unknown id, or a key from another accountCheck the id. Do not probe other tenants
409 waybill_unavailableNo platform AWB yet (or Shopify label unsupported)See Orders and events
429Rate limit for this API key60 requests per second per key. Honor Retry-After, then back off
501 capability_unsupportedMissing partner scopes or unsupported ship modeRe-authorize the shop after scopes are added
502 platform_errorMarketplace API errorRead error.message; retry only if the platform issue is transient

Write APIs (POST …/ship, GET …/shipping-label, warehouses, inventory) use the same envelope. Full codes and platform notes: Orders and events.

Sandbox event logs are kept for 24 hours. Paid plans keep them longer (Starter 7 days, Growth 14 days, Scale 30 days). Disconnecting a shop stops new ingest for that connection. Order reads stay available when outbound webhooks are paused for a plan limit.

Exact response fields are in the API reference.