|
1
|
delete: |
|
2
|
operationId: DeleteOrderEditsId |
|
3
|
summary: Cancel Order Edit |
|
4
|
description: Cancel a requested order edit. |
|
5
|
x-authenticated: true |
|
6
|
parameters: |
|
7
|
- name: id |
|
8
|
in: path |
|
9
|
description: The ID of the order that is being edited. |
|
10
|
required: true |
|
11
|
schema: |
|
12
|
type: string |
|
13
|
security: |
|
14
|
- api_token: [] |
|
15
|
- cookie_auth: [] |
|
16
|
- jwt_token: [] |
|
17
|
x-codeSamples: |
|
18
|
- lang: JavaScript |
|
19
|
label: JS SDK |
|
20
|
source: |
|
21
|
$ref: ../code_samples/JavaScript/admin_order-edits_{id}/delete.js |
|
22
|
- lang: Shell |
|
23
|
label: cURL |
|
24
|
source: |
|
25
|
$ref: ../code_samples/Shell/admin_order-edits_{id}/delete.sh |
|
26
|
tags: |
|
27
|
- Order Edits |
|
28
|
responses: |
|
29
|
'200': |
|
30
|
description: OK |
|
31
|
content: |
|
32
|
application/json: |
|
33
|
schema: |
|
34
|
type: object |
|
35
|
description: The deletion's details. |
|
36
|
required: |
|
37
|
- id |
|
38
|
- object |
|
39
|
- deleted |
|
40
|
properties: |
|
41
|
id: |
|
42
|
type: string |
|
43
|
title: id |
|
44
|
description: The order edit's ID. |
|
45
|
object: |
|
46
|
type: string |
|
47
|
title: object |
|
48
|
description: The name of the deleted object. |
|
49
|
default: order-edit |
|
50
|
deleted: |
|
51
|
type: boolean |
|
52
|
title: deleted |
|
53
|
description: Whether the order edit was deleted. |
|
54
|
'400': |
|
55
|
$ref: ../components/responses/400_error.yaml |
|
56
|
'401': |
|
57
|
$ref: ../components/responses/unauthorized.yaml |
|
58
|
'404': |
|
59
|
$ref: ../components/responses/not_found_error.yaml |
|
60
|
'409': |
|
61
|
$ref: ../components/responses/invalid_state_error.yaml |
|
62
|
'422': |
|
63
|
$ref: ../components/responses/invalid_request_error.yaml |
|
64
|
'500': |
|
65
|
$ref: ../components/responses/500_error.yaml |
|
66
|
x-workflow: cancelBeginOrderEditWorkflow |
|
67
|
x-events: |
|
68
|
- name: order-edit.canceled |
|
69
|
payload: |- |
|
70
|
```ts |
|
71
|
{ |
|
72
|
order_id, // The ID of the order |
|
73
|
actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order |
|
74
|
} |
|
75
|
``` |
|
76
|
description: Emitted when an order edit request is canceled. |
|
77
|
deprecated: false |
|
78
|
since: 2.8.0 |