1 post:
2 operationId: PostFulfillmentsIdCancel
3 summary: Cancel a Fulfillment
4 description: >
5 Cancel a fulfillment. The fulfillment can't be shipped or delivered.
6
7
8 To cancel the fulfillment, the `cancelFulfillment` method of the associated
9 fulfillment provider is used.
10 x-authenticated: true
11 parameters:
12 - name: id
13 in: path
14 description: The fulfillment's ID.
15 required: true
16 schema:
17 type: string
18 - name: fields
19 in: query
20 description: >-
21 Comma-separated fields that should be included in the returned data. if
22 a field is prefixed with `+` it will be added to the default fields,
23 using `-` will remove it from the default fields. without prefix it will
24 replace the entire default fields.
25 required: false
26 schema:
27 type: string
28 title: fields
29 description: >-
30 Comma-separated fields that should be included in the returned data.
31 if a field is prefixed with `+` it will be added to the default
32 fields, using `-` will remove it from the default fields. without
33 prefix it will replace the entire default fields.
34 externalDocs:
35 url: '#select-fields-and-relations'
36 security:
37 - api_token: []
38 - cookie_auth: []
39 - jwt_token: []
40 x-codeSamples:
41 - lang: JavaScript
42 label: JS SDK
43 source:
44 $ref: ../code_samples/JavaScript/admin_fulfillments_{id}_cancel/post.js
45 - lang: Shell
46 label: cURL
47 source:
48 $ref: ../code_samples/Shell/admin_fulfillments_{id}_cancel/post.sh
49 tags:
50 - Fulfillments
51 responses:
52 '200':
53 description: OK
54 content:
55 application/json:
56 schema:
57 $ref: ../components/schemas/AdminFulfillmentResponse.yaml
58 '400':
59 $ref: ../components/responses/400_error.yaml
60 '401':
61 $ref: ../components/responses/unauthorized.yaml
62 '404':
63 $ref: ../components/responses/not_found_error.yaml
64 '409':
65 $ref: ../components/responses/invalid_state_error.yaml
66 '422':
67 $ref: ../components/responses/invalid_request_error.yaml
68 '500':
69 $ref: ../components/responses/500_error.yaml
70 x-workflow: cancelFulfillmentWorkflow
71 x-events: []