Inventory > Inventory > reservationsCreate
Commerce APIInventoryInventoryreservationsCreate
reservationsCreate
POST:reservations.json

Description

Create one or multiple inventory reservations.

Permission bit: "reservations.create"

Topic: Inventory

Arguments

data: [ReservationCreate!]!

Main argument for mutations.


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