delivery_lead_times

Create a delivery lead time

Changed on

Create a delivery lead time

post/delivery_lead_times

Request

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

Request body

Example request

{
  "data": {
    "attributes": {
      "min_hours": 48,
      "max_hours": 72,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "stock_location": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      },
      "shipping_method": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The created delivery lead time 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 delivery_lead_times was removed

    • info

      added the new delivery_lead_times enum value to the request property /

    • info

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