inventory_stock_locations

Create an inventory stock location

Changed on

Create an inventory stock location

post/inventory_stock_locations

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/inventory_stock_locations
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "priority": 1,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "stock_location": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      },
      "inventory_model": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The created inventory stock location object

Changes

    • breaking

      added the new required request property ///

    • breaking

      added the new required request property ///

    • breaking

      request property / was restricted to a list of enum values

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • info

      the request property default value inventory_stock_locations was removed

    • info

      added the new inventory_stock_locations enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status