Validation
Validate cart for checkout method
POST
https://api.zapiet.com/v1.0/:checkoutMethod/validate
This endpoint allows you to check if the customer's cart is eligible for a given checkout method.
Path Parameters
Name
Type
Description
checkoutMethod*
string
The checkout method you would like to validate against. Valid values are; pickup, delivery, and shipping.
Query Parameters
Name
Type
Description
shop*
string
The merchant's myshopify.com store url.
Request Body
Name
Type
Description
shoppingCart
array
The customer's shopping cart.
{
"productsEligible": true
}
{
"shoppingCart": [
{
"variant_id": 9226255761451,
"product_id": 852798275627,
"quantity": 5
},
{
"variant_id": 9226255761452,
"product_id": 852798275628,
"quantity": 2
}
]
}
Last updated