POST
/
vendor
/
shipping-options
/
{id}
{
  "shipping_option": {
    "id": "<string>",
    "name": "<string>",
    "price_type": "calculated",
    "service_zone_id": "<string>",
    "service_zone": {
      "id": "<string>",
      "name": "<string>",
      "fulfillment_set_id": "<string>",
      "fulfillment_set": {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "location": {
          "id": "<string>",
          "name": "<string>",
          "fulfillment_sets": [
            {}
          ]
        },
        "service_zones": [
          {}
        ],
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "deleted_at": "2023-11-07T05:31:56Z"
      },
      "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": [
        {}
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": "2023-11-07T05:31:56Z"
    },
    "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"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the Shipping Option.

Body

application/json

Response

200 - application/json

OK

The response is of type object.