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

NameTypeDescription

checkoutMethod*

string

The checkout method you would like to validate against. Valid values are; pickup, delivery, and shipping.

Query Parameters

NameTypeDescription

shop*

string

The merchant's myshopify.com store url.

Request Body

NameTypeDescription

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