Remove a market from a warehouse

Removes the association between a specific market and warehouse. The market itself is not deleted, only its relationship to the warehouse.

DELETE/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}
API
Management
Updated
Apr 26, 2026

management-api:DELETE:/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}

Removes the association between a specific market and warehouse. The market itself is not deleted, only its relationship to the warehouse.

API ownership

  • API family: Management API
  • Best for: Trusted back-office workflows that create, update, organize, or delete merchant-owned data.
  • Do not use from: Browser-only storefront code or public clients.
  • Guide route: /apis/management/latest

The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation.

Operation

  • Method: DELETE
  • Path: /api/v1/\{team_slug\}/\{app_slug\}/warehouses/\{warehouse_slug\}/market/\{market_slug\}
  • Summary: Remove a market from a warehouse
  • Description: Removes the association between a specific market and warehouse. The market itself is not deleted, only its relationship to the warehouse.
  • OpenAPI contract: management-api
  • Operation ID: Not documented in the OpenAPI contract.

Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID.

Parameters4 parameters
NameInRequiredTypeDescription
warehouse_slugpathYesstringWarehouse slug
market_slugpathYesstringMarket slug
app_slugpathYesstringApp slug
team_slugpathYesstringTeam slug
Request bodyNo documented body

Not documented in the OpenAPI contract.

Responses4 statuses
StatusDescriptionContent
200Updated warehouse dataapplication/json (object)
400Invalid request (e.g. bad UUID, validation error)application/json (object)
401Unauthorized accessapplication/json (object)
500Internal server errorapplication/json (object)

200 - object

Warehouse Response

PropertyTypeRequiredDetails
dataobjectNo-
detailsstring[]NoAdditional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanNo-
Warehouse With Markets
PropertyTypeRequiredDetails
addressobjectNo-
app_idstringNo-
available_onlinebooleanNo-
created_atstringNo-
idstringNo-
marketsobject[]No-
namestringNo-
slugstringNo-
updated_atstringNo-
Warehouse Address
PropertyTypeRequiredDetails
citystringNo-
countrystringYesCountry value needs to follow ISO3166_1_alpha2, which means we want a country value written in alpha-2 two-letter country codes, Example: SE or FI
postal_codestringNo-
statestringNo-
street_addressstringNo-
Market
PropertyTypeRequiredDetails
activebooleanNo-
country_codesstring[]No-
created_atstringNo-
currency_codestringNo-
idstringNo-
localestringNo-
namestringNo-
slugstringNo-
updated_atstringNo-

Generated example (synthetic):

{
  "data": {
    "address": {
      "city": "string",
      "country": "string",
      "postal_code": "string",
      "state": "string",
      "street_address": "string"
    },
    "app_id": "string",
    "available_online": false,
    "created_at": "string",
    "id": "string",
    "markets": [
      {
        "active": false,
        "country_codes": [],
        "created_at": "string",
        "currency_code": "string",
        "id": "string",
        "locale": "string",
        "name": "string",
        "slug": "string",
        "updated_at": "string"
      }
    ],
    "name": "string",
    "slug": "string",
    "updated_at": "string"
  },
  "details": [
    "string"
  ],
  "success": false
}

400 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

401 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

500 - object

Error Message

PropertyTypeRequiredDetails
detailsstring[]No-
messagestringNo-
successbooleanNo-

Generated example (synthetic):

{
  "details": [
    "string"
  ],
  "message": "string",
  "success": false
}

Contract identity

Use these fields to confirm you are implementing the intended endpoint contract.

  • API family: Management API
  • Method: DELETE
  • Path: /api/v1/\{team_slug\}/\{app_slug\}/warehouses/\{warehouse_slug\}/market/\{market_slug\}
  • Operation ID: Not documented in the OpenAPI contract.
  • OpenAPI tag: Warehouses
  • OpenAPI summary: Remove a market from a warehouse

Remove a market from a warehouse

# Remove a market from a warehouse Removes the association between a specific market and warehouse. The market itself is not deleted, only its relationship to the warehouse.
DELETE /api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}
Purpose

Removes the association between a specific market and warehouse.

Required inputs

warehouse_slug path market_slug path app_slug path team_slug path

Primary response

200 ยท Updated warehouse data

Operation key

management-api:DELETE:/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}

## API ownership - API family: Management API - Best for: Trusted back-office workflows that create, update, organize, or delete merchant-owned data. - Do not use from: Browser-only storefront code or public clients. - Guide route: [/apis/management/latest](/apis/management/latest) The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation. ## Operation - Method: `DELETE` - Path: `/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}` - Summary: Remove a market from a warehouse - Description: Removes the association between a specific market and warehouse. The market itself is not deleted, only its relationship to the warehouse. - OpenAPI contract: management-api - Operation ID: Not documented in the OpenAPI contract. - Stable operation key: `management-api:DELETE:/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}` Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID. ## Parameters | Name | In | Required | Type | Description | | --- | --- | --- | --- | --- | | warehouse_slug | path | Yes | string | Warehouse slug | | market_slug | path | Yes | string | Market slug | | app_slug | path | Yes | string | App slug | | team_slug | path | Yes | string | Team slug | ## Request body Not documented in the OpenAPI contract. ## Responses | Status | Description | Content | | --- | --- | --- | | 200 | Updated warehouse data | application/json (object) | | 400 | Invalid request (e.g. bad UUID, validation error) | application/json (object) | | 401 | Unauthorized access | application/json (object) | | 500 | Internal server error | application/json (object) | ### 200 - object #### Warehouse Response | Property | Type | Required | Details | | --- | --- | --- | --- | | `data` | object | No | - | | `details` | string[] | No | Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes | | `success` | boolean | No | - | ##### Warehouse With Markets | Property | Type | Required | Details | | --- | --- | --- | --- | | `address` | object | No | - | | `app_id` | string | No | - | | `available_online` | boolean | No | - | | `created_at` | string | No | - | | `id` | string | No | - | | `markets` | object[] | No | - | | `name` | string | No | - | | `slug` | string | No | - | | `updated_at` | string | No | - | ##### Warehouse Address | Property | Type | Required | Details | | --- | --- | --- | --- | | `city` | string | No | - | | `country` | string | Yes | Country value needs to follow ISO3166_1_alpha2, which means we want a country value written in alpha-2 two-letter country codes, Example: SE or FI | | `postal_code` | string | No | - | | `state` | string | No | - | | `street_address` | string | No | - | ##### Market | Property | Type | Required | Details | | --- | --- | --- | --- | | `active` | boolean | No | - | | `country_codes` | string[] | No | - | | `created_at` | string | No | - | | `currency_code` | string | No | - | | `id` | string | No | - | | `locale` | string | No | - | | `name` | string | No | - | | `slug` | string | No | - | | `updated_at` | string | No | - | **Generated example (synthetic):** ```json { "data": { "address": { "city": "string", "country": "string", "postal_code": "string", "state": "string", "street_address": "string" }, "app_id": "string", "available_online": false, "created_at": "string", "id": "string", "markets": [ { "active": false, "country_codes": [], "created_at": "string", "currency_code": "string", "id": "string", "locale": "string", "name": "string", "slug": "string", "updated_at": "string" } ], "name": "string", "slug": "string", "updated_at": "string" }, "details": [ "string" ], "success": false } ``` ### 400 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ### 401 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ### 500 - object #### Error Message | Property | Type | Required | Details | | --- | --- | --- | --- | | `details` | string[] | No | - | | `message` | string | No | - | | `success` | boolean | No | - | **Generated example (synthetic):** ```json { "details": [ "string" ], "message": "string", "success": false } ``` ## Contract identity Use these fields to confirm you are implementing the intended endpoint contract. - API family: Management API - Method: `DELETE` - Path: `/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}` - Operation ID: Not documented in the OpenAPI contract. - Stable operation key: `management-api:DELETE:/api/v1/{team_slug}/{app_slug}/warehouses/{warehouse_slug}/market/{market_slug}` - OpenAPI tag: Warehouses - OpenAPI summary: Remove a market from a warehouse