Conditional activation

Get conditional activation

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

This endpoint will return a list of conditional activations.

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.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
    },
    "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"
            }
        ]
    }
}

Last updated