POST
/
vendor
/
stock-locations
{
  "stock_location": {
    "id": "<string>",
    "name": "<string>",
    "fulfillment_sets": [
      {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "location": {},
        "service_zones": [
          {
            "id": "<string>",
            "name": "<string>",
            "fulfillment_set_id": "<string>",
            "fulfillment_set": {},
            "geo_zones": [
              {
                "id": "<string>",
                "type": "country",
                "country_code": "<string>",
                "province_code": "<string>",
                "city": "<string>",
                "postal_expression": {},
                "created_at": "2023-11-07T05:31:56Z",
                "updated_at": "2023-11-07T05:31:56Z",
                "deleted_at": "2023-11-07T05:31:56Z"
              }
            ],
            "shipping_options": [
              {
                "id": "<string>",
                "name": "<string>",
                "price_type": "calculated",
                "service_zone_id": "<string>",
                "service_zone": {},
                "shipping_option_type_id": "<string>",
                "type": {
                  "id": "<string>",
                  "created_at": "2023-11-07T05:31:56Z",
                  "updated_at": "2023-11-07T05:31:56Z",
                  "deleted_at": "2023-11-07T05:31:56Z",
                  "label": "<string>",
                  "description": "<string>",
                  "code": "<string>",
                  "shipping_option_id": "<string>"
                },
                "prices": [
                  {
                    "id": "<string>",
                    "title": "<string>",
                    "currency_code": "usd",
                    "amount": 123,
                    "created_at": "2023-11-07T05:31:56Z",
                    "updated_at": "2023-11-07T05:31:56Z",
                    "deleted_at": "2023-11-07T05:31:56Z"
                  }
                ],
                "data": {},
                "metadata": {},
                "created_at": "2023-11-07T05:31:56Z",
                "updated_at": "2023-11-07T05:31:56Z",
                "deleted_at": "2023-11-07T05:31:56Z"
              }
            ],
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z",
            "deleted_at": "2023-11-07T05:31:56Z"
          }
        ],
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "deleted_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

fields
string

The comma-separated fields to include in the response

Body

application/json

Response

201 - application/json

Created

The response is of type object.