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
  • Get conditional activation
  • Conditions available
  1. Reference

Conditional activation

Get conditional activation

POST https://api.zapiet.com/v1.0/:checkoutMethod/conditional_activation

This endpoint will return a list of conditional activations.

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.items*

array

The contents of the customer's shopping cart. If no value is provided we will not check inventory levels or product availability.

shoppingCart.original_total_price*

numeric

shopppingCart.total_weight*

numeric

shoppingCart.items.*.tags

string

shoppingCart.items.*.vendor

string

shoppingCart.items.*.product_type

string

shoppingCart.items.*.collections

string

{
    "weight_price": {
        "enabled": true,
        "valid": true,
        "condition": "price",
        "operator": "morethan",
        "value": 0
    },
    "property_based": {
        "enabled": false,
        "valid": true
    },
    "hide_checkout_method": false,
    "valid_shopping_cart": true
}

Conditions available

{
    "shoppingCart": {
        "original_total_price": 599,
        "total_weight": 10000,
        "items": [
            {
                "collections": "Adidas Shoes",
                "vendor": "Adidas",
                "product_type": "Sneaker",
                "tags": "Adidas, Pickup Only"
            },
            {
                "collections": "New Balance Shoes",
                "vendor": "New Balance",
                "product_type": "Sneaker",
                "tags": "New Balance, Pickup Only"
            }
        ]
    }
}
{
    "weight_price": {
        "enabled": true,
        "valid": true,
        "condition": "price",
        "operator": "morethan",
        "value": 0
    },
    "property_based": {
        "enabled": false,
        "valid": true
    },
    "hide_checkout_method": false,
    "valid_shopping_cart": true
}
PreviousGeolocateNextPreparation times

Last updated 5 months ago