ZapietId
Last updated
Last updated
The _ZapietId is integral to our Rates functionality. At least one item in your customers basket must contain a valid _ZapietId line item property otherwise rates will fail to generate correctly within the checkout process.
The _ZapietId is made up of the following three parameters:
Parameter
Data type
Example
Notes
M
string
P
The value can be either P, D or S.
P = pickup
D = delivery
S = shipping
Required for all orders
L
integer
1002
The Zapiet location ID
Required for pickup and delivery orders
D
datetime
2021-05-13T12:00:00Z
The customers selected date and time for delivery, pickup or shipping
Required for date based pickup, delivery and shipping orders
Below is a javascript example of how you might generate a _ZapietId.
If you are using our default widget the _ZapietId property is automatically added to your order. Should you be building your own storefront widget you can use Shopify's Cart API .
Alternatively if you are building a mobile app or using a headless commerce solution you may prefer to use the Draft Orders API .