Zapiet Docs
Zapiet Pickup + Delivery
Zapiet Pickup + Delivery
  • Widget API
  • Overview
    • Base url
  • Reference
    • Store pickup
      • Locations
      • Dates
        • Times
      • Regions
    • Local delivery
      • Locations
      • Dates
      • Times
    • Shipping
      • Dates
    • Validation
    • Geolocate
    • Conditional activation
    • Preparation times
    • Settings
  • JavaScript API
    • Events
    • Methods
  • Guides
    • ZapietId
    • Attributes
  • Other resources
    • Vulnerability Reporting
Powered by GitBook
On this page
  1. Reference

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
        }
    ]
}
{
	"productsEligible": true
}
PreviousDatesNextGeolocate

Last updated 6 months ago