Raw
1 post:
2 operationId: PostFulfillments
3 summary: Create Fulfillment
4 description: Create a fulfillment for an order, return, exchange, and more.
5 x-authenticated: true
6 parameters:
7 - name: fields
8 in: query
9 description: >-
10 Comma-separated fields that should be included in the returned data. if
11 a field is prefixed with `+` it will be added to the default fields,
12 using `-` will remove it from the default fields. without prefix it will
13 replace the entire default fields.
14 required: false
15 schema:
16 type: string
17 title: fields
18 description: >-
19 Comma-separated fields that should be included in the returned data.
20 if a field is prefixed with `+` it will be added to the default
21 fields, using `-` will remove it from the default fields. without
22 prefix it will replace the entire default fields.
23 externalDocs:
24 url: '#select-fields-and-relations'
25 security:
26 - api_token: []
27 - cookie_auth: []
28 - jwt_token: []
29 requestBody:
30 content:
31 application/json:
32 schema:
33 $ref: ../components/schemas/AdminCreateFulfillment.yaml
34 x-codeSamples:
35 - lang: JavaScript
36 label: JS SDK
37 source:
38 $ref: ../code_samples/JavaScript/admin_fulfillments/post.js
39 - lang: Shell
40 label: cURL
41 source:
42 $ref: ../code_samples/Shell/admin_fulfillments/post.sh
43 tags:
44 - Fulfillments
45 responses:
46 '200':
47 description: OK
48 content:
49 application/json:
50 schema:
51 $ref: ../components/schemas/AdminFulfillmentResponse.yaml
52 '400':
53 $ref: ../components/responses/400_error.yaml
54 '401':
55 $ref: ../components/responses/unauthorized.yaml
56 '404':
57 $ref: ../components/responses/not_found_error.yaml
58 '409':
59 $ref: ../components/responses/invalid_state_error.yaml
60 '422':
61 $ref: ../components/responses/invalid_request_error.yaml
62 '500':
63 $ref: ../components/responses/500_error.yaml
64 x-workflow: createFulfillmentWorkflow
65 x-events: []