chore(docs): Updated API Reference (automated) (#12673)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
co-authored by
Oli Juhl
Shahed Nasser
parent
f8c0bd887e
commit
b456044060
@@ -167,6 +167,9 @@
|
||||
"POST /admin/draft-orders": {
|
||||
"js-sdk": "sdk.admin.draftOrder.create({\n email: \"test@test.com\",\n items: [\n {\n variant_id: \"variant_123\",\n quantity: 1,\n },\n ],\n region_id: \"region_123\",\n sales_channel_id: \"sc_123\",\n})\n.then(({ draft_order }) => {\n console.log(draft_order)\n})"
|
||||
},
|
||||
"DELETE /admin/draft-orders/{id}": {
|
||||
"js-sdk": "sdk.admin.draftOrder.delete(\"order_123\")\n.then(({ id, object, deleted }) => {\n console.log(id, object, deleted)\n})"
|
||||
},
|
||||
"POST /admin/draft-orders/{id}": {
|
||||
"js-sdk": "sdk.admin.draftOrder.update(\"order_123\", {\n email: \"test@test.com\",\n})\n.then(({ draft_order }) => {\n console.log(draft_order)\n})"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user