1 type: object
2 description: The filfillment's details.
3 x-schemaName: AdminCreateFulfillment
4 required:
5 - location_id
6 - provider_id
7 - delivery_address
8 - items
9 - labels
10 - order_id
11 properties:
12 location_id:
13 type: string
14 title: location_id
15 description: The ID of the location the items are fulfilled from.
16 provider_id:
17 type: string
18 title: provider_id
19 description: The ID of the provider handling this fulfillment.
20 delivery_address:
21 $ref: ./AdminFulfillmentDeliveryAddress.yaml
22 items:
23 type: array
24 description: The items to fulfill.
25 items:
26 $ref: ./AdminCreateFulfillmentItem.yaml
27 labels:
28 type: array
29 description: The labels for the fulfillment's shipments.
30 items:
31 $ref: ./AdminCreateFulfillmentLabel.yaml
32 order_id:
33 type: string
34 title: order_id
35 description: The ID of the order this fulfillment is created for.
36 shipping_option_id:
37 type: string
38 title: shipping_option_id
39 description: The ID of the shipping option used in the order.
40 data:
41 type: object
42 description: Any data useful for the fulfillment provider to handle the fulfillment.
43 externalDocs:
44 url: >-
45 https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
46 description: Learn more about the data property.
47 packed_at:
48 type: string
49 title: packed_at
50 description: The date and time the fulfillment was packed.
51 format: date-time
52 shipped_at:
53 type: string
54 title: shipped_at
55 description: The date and time the fulfillment was shipped.
56 format: date-time
57 delivered_at:
58 type: string
59 title: delivered_at
60 description: The date and time the fulfillment was delivered.
61 format: date-time
62 canceled_at:
63 type: string
64 title: canceled_at
65 description: The date and time the fulfillment was canceled.
66 format: date-time
67 metadata:
68 type: object
69 description: The fulfillment's metadata, used to store custom key-value pairs.
70 externalDocs:
71 url: https://docs.medusajs.com/api/admin#manage-metadata
72 description: Learn how to manage metadata