Orders > Orders > ordersRestock
Commerce APIOrdersOrdersordersRestock
ordersRestock
POST:orders/restock.json

Description

Restock one or multiple items from an order.

Permission bit: "orders.restock"

Topic: Orders

Arguments

data: OrderRestock!

Main argument for mutations.


order_id: String!

Unique order identifier. See also: Unique Identifiers

Example: "or_EQzGqWoY"


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

full_restock: Boolean

Whether to perform full restock or not

Example: false


line_items: [OrderRestockLineItem!]

Line items to restock


Result

Order

Preview (typescript)

Loading module