Create Integration Instance
POST/api/magento1/instances
Creates a Magento 1 integration instance from the supplied SOAP credentials and settings, and creates the linked sales channel record in the same request.
Request body fields:
name(string, required) — display name for the connection.connection_settings(object, required):store_base_url(string, required) — the store's base URL (any trailing slash is stripped).api_user(string, required) — the SOAP API user name.api_key(string, required) — the SOAP API key. Stored server-side and never returned.
start_date(string, optional) — date (YYYY-MM-DD); orders placed before it are not imported.inventory(object, optional):masterOfStock(string) —sku.ioorNeither.inventoryModificationRules(object) —maxRuleType,minRuleType(strings) with optionalmaxRuleTypeValue,minRuleTypeValue,subtractBufferStock(numbers).selectedWarehouses(array of integers) — ids of warehouses whose stock feeds the store.
The response returns the created instance. Note that the API normalizes success status codes to 200.
Authentication: Requires Bearer token.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
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
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.