Preparation times

Get conditional activation

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

This endpoint will return a list of preparation times.

Path Parameters

NameTypeDescription

checkoutMethod*

string

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

locationId*

numeric

The Zapiet location ID.

Query Parameters

NameTypeDescription

shop*

string

The merchant's myshopify.com store url.

{
    "general": {
        "enabled": true,
        "monday": {
            "breakpoint": {
                "enabled": false,
                "value": "14:00"
            },
            "before": {
                "format": "hours",
                "value": 1
            },
            "after": {
                "format": "hours",
                "value": 2
            }
        },
        "tuesday": {
            "breakpoint": {
                "enabled": false,
                "value": "14:00"
            },
            "before": {
                "format": "hours",
                "value": 1
            },
            "after": {
                "format": "hours",
                "value": 2
            }
        },
        "wednesday": {
            "breakpoint": {
                "enabled": true,
                "value": "14:00"
            },
            "before": {
                "format": "hours",
                "value": 1
            },
            "after": {
                "format": "hours",
                "value": 2
            }
        },
        "thursday": {
            "breakpoint": {
                "enabled": true,
                "value": "14:00"
            },
            "before": {
                "format": "hours",
                "value": 1
            },
            "after": {
                "format": "hours",
                "value": 2
            }
        },
        "friday": {
            "breakpoint": {
                "enabled": true,
                "value": "14:00"
            },
            "before": {
                "format": "minutes",
                "value": 30
            },
            "after": {
                "format": "minutes",
                "value": 30
            }
        },
        "saturday": {
            "breakpoint": {
                "enabled": true,
                "value": "14:00"
            },
            "before": {
                "format": "days",
                "value": 1
            },
            "after": {
                "format": "days",
                "value": 2
            }
        },
        "sunday": {
            "breakpoint": {
                "enabled": true,
                "value": "14:00"
            },
            "before": {
                "format": "days",
                "value": 1
            },
            "after": {
                "format": "days",
                "value": 3
            }
        }
    },
    "product_based": [
        {
            "product_external_id": "8184259576032",
            "preparation_enabled": 1,
            "preperation_value": 300,
            "preparation_format": "hours"
        },
        {
            "product_external_id": "8184259674336",
            "preparation_enabled": 1,
            "preperation_value": 2880,
            "preparation_format": "days"
        },
        {
            "product_external_id": "8184259346656",
            "preparation_enabled": 1,
            "preperation_value": 30,
            "preparation_format": "minutes"
        }
    ]
}

Last updated