AdminDraftOrdersResource
admin/draft-orders.AdminDraftOrdersResource
Methods
addLineItem
addLineItem(id
, payload
, customHeaders?
): ResponsePromise
<AdminDraftOrdersRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersRes
>
Description
Add line item to draft order
create
create(payload
, customHeaders?
): ResponsePromise
<AdminDraftOrdersRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersRes
>
Description
Creates a draft order
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
Description
Delete draft order
list
list(query?
, customHeaders?
): ResponsePromise
<AdminDraftOrdersListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersListRes
>
Description
Lists draft orders
markPaid
markPaid(id
, customHeaders?
): ResponsePromise
<AdminPostDraftOrdersDraftOrderRegisterPaymentRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminPostDraftOrdersDraftOrderRegisterPaymentRes
>
Description
Mark a draft order as paid
removeLineItem
removeLineItem(id
, itemId
, customHeaders?
): ResponsePromise
<AdminDraftOrdersRes
>
Parameters
id
stringRequireditemId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersRes
>
Description
Remove line item
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminDraftOrdersRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersRes
>
Description
Retrieves a draft order
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminDraftOrdersRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersRes
>
Description
Update draft order
updateLineItem
updateLineItem(id
, itemId
, payload
, customHeaders?
): ResponsePromise
<AdminDraftOrdersRes
>
Parameters
id
stringRequireditemId
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDraftOrdersRes
>
Description
Update draft order line item