|
1
|
export const metadata = { |
|
2
|
title: `Fulfillment Concepts`, |
|
3
|
} |
|
4
|
|
|
5
|
# {metadata.title} |
|
6
|
|
|
7
|
In this document, you’ll learn about some basic fulfillment concepts. |
|
8
|
|
|
9
|
## Fulfillment Set |
|
10
|
|
|
11
|
A fulfillment set is a general form or way of fulfillment. For example, shipping is a form of fulfillment, and pick-up is another form of fulfillment. Each of these can be created as fulfillment sets. |
|
12
|
|
|
13
|
A fulfillment set is represented by the [FulfillmentSet data model](/references/fulfillment/models/FulfillmentSet). All other configurations, options, and management features are related to a fulfillment set, in one way or another. |
|
14
|
|
|
15
|
```ts |
|
16
|
const fulfillmentSets = await fulfillmentModuleService.createFulfillmentSets( |
|
17
|
[ |
|
18
|
{ |
|
19
|
name: "Shipping", |
|
20
|
type: "shipping", |
|
21
|
}, |
|
22
|
{ |
|
23
|
name: "Pick-up", |
|
24
|
type: "pick-up", |
|
25
|
}, |
|
26
|
] |
|
27
|
) |
|
28
|
``` |
|
29
|
|
|
30
|
--- |
|
31
|
|
|
32
|
## Service Zone |
|
33
|
|
|
34
|
A service zone is a collection of geographical zones or areas. It’s used to restrict available shipping options to a defined set of locations. |
|
35
|
|
|
36
|
A service zone is represented by the [ServiceZone data model](/references/fulfillment/models/ServiceZone). It’s associated with a fulfillment set, as each service zone is specific to a form of fulfillment. For example, if a customer chooses to pick up items, you can restrict the available shipping options based on their location. |
|
37
|
|
|
38
|
 |
|
39
|
|
|
40
|
A service zone can have multiple geographical zones, each represented by the [GeoZone data model](/references/fulfillment/models/GeoZone). It holds location-related details to narrow down supported areas, such as country, city, or province code. |
|
41
|
|
|
42
|
<Note title="Tip"> |
|
43
|
|
|
44
|
The province code is always in lower-case and in [ISO 3166-2 format](https://en.wikipedia.org/wiki/ISO_3166-2). |
|
45
|
|
|
46
|
</Note> |
|
47
|
|
|
48
|
--- |
|
49
|
|
|
50
|
## Shipping Profile |
|
51
|
|
|
52
|
A shipping profile defines a type of items that are shipped in a similar manner. For example, a `default` shipping profile is used for all item types, but the `digital` shipping profile is used for digital items that aren’t shipped and delivered conventionally. |
|
53
|
|
|
54
|
A shipping profile is represented by the [ShippingProfile data model](/references/fulfillment/models/ShippingProfile). It only defines the profile’s details, but it’s associated with the shipping options available for the item type. |