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