Create Instance
POST/api/shipbob
Connect a new ShipBob integration instance. The provided ShipBob Personal Access Token is stored encrypted, a per-instance webhook signing secret is generated, webhook subscriptions are registered, and an initial sync of fulfillment centers, shipping methods, products, and inventory is queued.
Authentication: Requires Bearer token.
Request Body:
- name (string, required) — Unique display name for the instance.
- connection_settings (object, required):
- environment (string, required) — 'production' or 'sandbox'.
- api_token (string, required) — ShipBob Personal Access Token.
- channel_id (integer, optional) — ShipBob channel id to operate under.
- channel_name (string, optional) — Display name of the channel.
- settings (object, optional):
- sync_start_date (date, optional) — Earliest order date to sync (Y-m-d).
- auto_create_products (boolean, optional) — Auto-create SKU products from ShipBob products.
- record_shipping_costs (boolean, optional, default: true) — Record shipping costs from shipments.
- default_shipping_method (string, optional) — Fallback shipping method name.
- is_automatic_sync_enabled (boolean, optional, default: true) — Enable automatic background syncing.
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.