Skip to main content
Skip to main content

AdminDraftOrdersResource

admin/draft-orders.AdminDraftOrdersResource

Methods

addLineItem

addLineItem(id, payload, customHeaders?): ResponsePromise<AdminDraftOrdersRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersRes>

ResponsePromiseResponsePromise<AdminDraftOrdersRes>Required

Description

Add line item to draft order


create

create(payload, customHeaders?): ResponsePromise<AdminDraftOrdersRes>

Parameters

customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersRes>

ResponsePromiseResponsePromise<AdminDraftOrdersRes>Required

Description

Creates a draft order


delete

delete(id, customHeaders?): ResponsePromise<DeleteResponse>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<DeleteResponse>

ResponsePromiseResponsePromise<DeleteResponse>Required

Description

Delete draft order


list

list(query?, customHeaders?): ResponsePromise<AdminDraftOrdersListRes>

Parameters

customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersListRes>

Description

Lists draft orders


markPaid

markPaid(id, customHeaders?): ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes>

Description

Mark a draft order as paid


removeLineItem

removeLineItem(id, itemId, customHeaders?): ResponsePromise<AdminDraftOrdersRes>

Parameters

idstringRequired
itemIdstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersRes>

ResponsePromiseResponsePromise<AdminDraftOrdersRes>Required

Description

Remove line item


retrieve

retrieve(id, customHeaders?): ResponsePromise<AdminDraftOrdersRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersRes>

ResponsePromiseResponsePromise<AdminDraftOrdersRes>Required

Description

Retrieves a draft order


update

update(id, payload, customHeaders?): ResponsePromise<AdminDraftOrdersRes>

Parameters

idstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersRes>

ResponsePromiseResponsePromise<AdminDraftOrdersRes>Required

Description

Update draft order


updateLineItem

updateLineItem(id, itemId, payload, customHeaders?): ResponsePromise<AdminDraftOrdersRes>

Parameters

idstringRequired
itemIdstringRequired
customHeadersRecord<string, any>Required

Default: `{}`

Returns

ResponsePromise<AdminDraftOrdersRes>

ResponsePromiseResponsePromise<AdminDraftOrdersRes>Required

Description

Update draft order line item

Was this section helpful?