Inventory > Inventory > reservationsModify
Commerce APIInventoryInventoryreservationsModify
reservationsModify
POST:reservations.json

Description

Modify one or multiple inventory reservations.

Permission bit: "reservations.modify"

Topic: Inventory

Arguments

data: [ReservationModify!]!

Main argument for mutations.


ids: [String!]!

List of reservation ids. See also: Unique Identifiers

Example: ["rx_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

comment: String

Commentary for reference

Valid when: comment's length doesn't exceed 4096 characters


customer_id: String

Optional customer associated with a reservation

Example: "cu_EQzGqWoY"

Valid when: customer_id matches regexp pattern: ^cu_


expires_at: String

Date and time when reservation will be automatically nullified

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


items: [ReservationItemCreate!]


Result

[Reservation!]

Preview (typescript)

Loading module