POST:reservations.json
Commerce APIPOST:reservations.json

POST:reservations.json

Description

Create one or multiple inventory reservations.

Permission bit: "reservations.create"

Topic: Inventory

Query Parameters

shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of ReservationCreate

[
  {
    "comment": "",
    "customer_id": "cu_EQzGqWoY",
    "expires_at": "2014-09-04T12:23:34Z",
    "items": [
      {
        "inventory_location_id": "il_EQzGqWoY",
        "quantity": 352,
        "variant_id": "va_EQzGqWoY"
      }
    ]
  }
]

Response Body

Array of Reservation

Response Body Type

Loading module