POST:reservations.json
Commerce APIPOST:reservations.json

POST:reservations.json

Description

Modify one or multiple inventory reservations.

Permission bit: "reservations.modify"

Topic: Inventory

Query Parameters

ids: Comma-separated array of String, required

List of reservation ids. See also: Unique Identifiers

Example: ?ids=rx_EQzGqWoY,rx_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of ReservationModify

[
  {
    "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