{"openapi":"3.1.0","info":{"title":"Buunto Public API","version":"1.0.0","summary":"Delivery and pickup dates, time slots and cut-off times for headless stores, and order selections.","description":"Read a Shopify store's Buunto delivery and pickup availability without the storefront widget, and read what a customer chose for an order.\n\n- **No key needed.** Every endpoint is public: name the store with the `shop` parameter. Nothing here returns customer data beyond an order's chosen method, date, time slot and pickup location.\n- **CORS.** Every endpoint answers `Access-Control-Allow-Origin: *`, so a storefront page can call it directly.\n- **Rate limits, per IP address.** The `/api/v1` endpoints share 500 requests per 5 minutes. The order selection endpoint allows 60 requests per minute. Every answer carries the `RateLimit-Policy` and `RateLimit` headers (IETF draft 7). Over the limit, the answer is `429` with a `Retry-After` header.\n- **Dates and times** are the store's: dates are `YYYY-MM-DD` and times `HH:mm`, in the store's timezone, without an offset.\n- **Headless checkout.** Buunto's checkout validation and delivery options sync read the customer's choice from `__buunto_selection`, a cart attribute or line property depending on where the store shows the date picker. A headless store must write it: see the `BuuntoSelection` schema.\n- **Errors.** Their shape depends on the endpoint, as each response shows: the Headless endpoints answer `{ \"reason\": \"...\" }`, the order selection endpoint `{ \"error\": \"...\" }`, or plain text for a bad parameter. A `429` is always `{ \"reason\": \"Too many requests\" }`.","contact":{"name":"Buunto","url":"https://buunto.com"}},"servers":[{"url":"https://datepicker.buunto.com","description":"Production"}],"security":[],"tags":[{"name":"Headless","description":"What the storefront widget shows, for a store that builds its own picker: the store's methods, available dates, time slots and cut-off times, with its Buunto settings applied (custom settings for the products, sold out dates and time slots, pickup locations)."},{"name":"Order selection","description":"The delivery or pickup a customer chose for a placed order."},{"name":"Meta","description":"This document."}],"paths":{"/api/v1/cut_off_times":{"get":{"tags":["Headless"],"operationId":"getCutOffTimes","summary":"First available date and its cut-off time, per method","description":"For each method the store offers, the first date that isn't sold out and the time until which an order still gets it. A method with no available date is left out.","parameters":[{"$ref":"#/components/parameters/shop"},{"$ref":"#/components/parameters/productVariantIds"},{"$ref":"#/components/parameters/productVariantId"},{"$ref":"#/components/parameters/cartProductVariantIds"},{"$ref":"#/components/parameters/cartProductVariantId"}],"responses":{"200":{"description":"The cut-off of each method that has an available date.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CutOffTimes"},"examples":{"pickupAndDelivery":{"value":{"LOCAL_DELIVERY":{"firstAvailableDate":"2026-11-26","cutOffTime":"2026-11-25 14:00:00"},"STORE_PICKUP":{"firstAvailableDate":"2026-11-25","cutOffTime":"2026-11-24 23:59:00"}}}}}}},"400":{"description":"A parameter is missing or invalid. `reason` says which.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"'shop' parameter missing"}}}}}},"403":{"description":"The app isn't installed on the store, or the store's plan has reached its limit.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"The app is not currently installed."}},"reason2":{"value":{"reason":"The plan's limit has been reached. Please upgrade your plan."}}}}}},"404":{"description":"No store matches `shop`, or it has no Buunto settings yet.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"No matching shop found"}},"reason2":{"value":{"reason":"Widget settings not found"}}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/HeadlessUnexpectedError"}}}},"/api/v1/available_dates":{"get":{"tags":["Headless"],"operationId":"getAvailableDates","summary":"Available dates, per method","description":"Every date the store offers for each of its methods, in order, with sold out dates flagged. `remaining` is how many more orders a date takes; it's only given when the store limits orders per day (and, when those limits depend on the pickup location, with `locationId`). With `withTimeSlots=true`, each date also lists its time slots, as `/api/v1/available_time_slots` would.","parameters":[{"$ref":"#/components/parameters/shop"},{"name":"withTimeSlots","in":"query","description":"`true` to list each date's time slots. Only the exact value `true` turns it on. Refused when a method has more than 50 available dates: call `/api/v1/available_time_slots` for the chosen date instead.","schema":{"type":"boolean","default":false}},{"$ref":"#/components/parameters/locale"},{"$ref":"#/components/parameters/locationId"},{"$ref":"#/components/parameters/productVariantIds"},{"$ref":"#/components/parameters/productVariantId"},{"$ref":"#/components/parameters/cartProductVariantIds"},{"$ref":"#/components/parameters/cartProductVariantId"}],"responses":{"200":{"description":"The available dates of each method the store offers.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableDates"},"examples":{"datesOnly":{"value":{"STORE_PICKUP":[{"date":"2026-11-25","soldOut":false,"formatted":"November 25, 2026"},{"date":"2026-11-27","soldOut":false,"formatted":"November 27, 2026"}]}},"withTimeSlotsAndLimits":{"value":{"LOCAL_DELIVERY":[{"date":"2026-11-26","soldOut":false,"remaining":4,"formatted":"November 26, 2026","timeSlots":[{"from":"09:00","to":"12:00","formatted":"9:00 AM - 12:00 PM","disabled":false,"soldOut":false,"remaining":2},{"from":"14:00","to":"17:00","formatted":"2:00 PM - 5:00 PM","disabled":true,"soldOut":true,"remaining":0}]}]}}}}}},"400":{"description":"A parameter is missing or invalid. `reason` says which.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"'shop' parameter missing"}},"reason2":{"value":{"reason":"'locationId' parameter does not match a location"}},"reason3":{"value":{"reason":"The parameter 'withTimeSlots' can't be true because there are more than 50 available dates. Please reduce the number of available dates or use the time slots endpoint separately."}}}}}},"403":{"description":"The app isn't installed on the store, or the store's plan has reached its limit.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"The app is not currently installed."}},"reason2":{"value":{"reason":"The plan's limit has been reached. Please upgrade your plan."}}}}}},"404":{"description":"No store matches `shop`, or it has no Buunto settings yet.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"No matching shop found"}},"reason2":{"value":{"reason":"Widget settings not found"}}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/HeadlessUnexpectedError"}}}},"/api/v1/available_time_slots":{"get":{"tags":["Headless"],"operationId":"getAvailableTimeSlots","summary":"Time slots of a date, for one method","description":"Every time slot the store has on `date` for `method`, in order. A slot is `disabled` when it can't be chosen: too soon for the store's lead time, or sold out. The date itself isn't checked: call `/api/v1/available_dates` for that. `remaining` is how many more orders a slot takes; it's only given when the store limits orders per time slot. An empty list means the date has no time slots.","parameters":[{"$ref":"#/components/parameters/shop"},{"name":"date","in":"query","required":true,"description":"The date, in the store's timezone.","schema":{"type":"string","format":"date","examples":["2026-11-27"]}},{"name":"method","in":"query","description":"The delivery method. Defaults to the store's default method.","schema":{"$ref":"#/components/schemas/Method"}},{"$ref":"#/components/parameters/locale"},{"$ref":"#/components/parameters/locationId"},{"$ref":"#/components/parameters/productVariantIds"},{"$ref":"#/components/parameters/productVariantId"},{"$ref":"#/components/parameters/cartProductVariantIds"},{"$ref":"#/components/parameters/cartProductVariantId"}],"responses":{"200":{"description":"The time slots of the date.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSlots"},"examples":{"threeSlots":{"value":[{"from":"09:00","to":"10:00","formatted":"9:00 AM - 10:00 AM","disabled":false,"soldOut":false},{"from":"10:00","to":"11:00","formatted":"10:00 AM - 11:00 AM","disabled":false,"soldOut":false},{"from":"11:00","to":"12:00","formatted":"11:00 AM - 12:00 PM","disabled":false,"soldOut":false}]},"withLimits":{"value":[{"from":"10:00","to":"11:00","formatted":"10:00 AM - 11:00 AM","disabled":true,"soldOut":true,"remaining":0},{"from":"11:00","to":"12:00","formatted":"11:00 AM - 12:00 PM","disabled":false,"soldOut":false,"remaining":3}]}}}}},"400":{"description":"A parameter is missing or invalid. `reason` says which.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"'shop' parameter missing"}},"reason2":{"value":{"reason":"'date' parameter is missing"}},"reason3":{"value":{"reason":"'date' parameter doesn't have the expected format: YYYY-MM-DD"}},"reason4":{"value":{"reason":"'method' parameter is incorrect. Expected values: LOCAL_DELIVERY, STORE_PICKUP, SHIPPING"}},"reason5":{"value":{"reason":"'locationId' parameter does not match a location"}}}}}},"403":{"description":"The app isn't installed on the store, or the store's plan has reached its limit.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"The app is not currently installed."}},"reason2":{"value":{"reason":"The plan's limit has been reached. Please upgrade your plan."}}}}}},"404":{"description":"No store matches `shop`, or it has no Buunto settings yet.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"reason1":{"value":{"reason":"No matching shop found"}},"reason2":{"value":{"reason":"Widget settings not found"}}}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/HeadlessUnexpectedError"}}}},"/api/v1/openapi.json":{"get":{"tags":["Meta"],"operationId":"getOpenApiDocument","summary":"This OpenAPI document","responses":{"200":{"description":"The OpenAPI 3.1 document of Buunto's public APIs.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Cache-Control":{"description":"The document may be cached for 5 minutes.","schema":{"type":"string","examples":["public, max-age=300"]}}},"content":{"application/json":{"schema":{"type":"object"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/orders/{orderId}/selection":{"get":{"tags":["Order selection"],"operationId":"getOrderSelection","summary":"The delivery or pickup chosen for an order","description":"What the customer chose in Buunto's widget for a placed order. Buunto records an order a few seconds after it's placed. Until it has, the request waits and checks again every half second, for up to about 25 seconds, before answering `ORDER_NOT_PROCESSED`.","parameters":[{"name":"orderId","in":"path","required":true,"description":"The Shopify order ID (the number in the order's admin URL).","schema":{"type":"string","pattern":"^\\d{13,20}$","examples":["6123456789012"]}},{"name":"shop","in":"query","required":true,"description":"The store's `myshopify.com` domain. Unlike the Headless endpoints, the store's public domain isn't accepted.","schema":{"type":"string","examples":["my-store.myshopify.com"]}}],"responses":{"200":{"description":"The order's status, and its selection when it has one.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/OrderSelectionRateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/OrderSelectionRateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSelectionData"},"examples":{"selectionFound":{"value":{"status":"SELECTION_FOUND","selection":{"method":"STORE_PICKUP","date":"2026-11-27","timeSlot":{"from":"10:00","to":"11:00"},"pickupLocation":"Main Street Store"}}},"noSelection":{"value":{"status":"NO_SELECTION"}},"notProcessed":{"value":{"status":"ORDER_NOT_PROCESSED"}}}}}},"400":{"description":"`orderId` isn't 13 to 20 digits, or `shop` is missing. The body is plain text: `Bad parameter` in production.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/OrderSelectionRateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/OrderSelectionRateLimit"}},"content":{"text/html":{"schema":{"type":"string","examples":["Bad parameter"]}}}},"404":{"description":"No store matches `shop`.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/OrderSelectionRateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/OrderSelectionRateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageError"},"examples":{"shopNotFound":{"value":{"error":"The shop was not found"}}}}}},"429":{"$ref":"#/components/responses/OrderSelectionTooManyRequests"},"500":{"$ref":"#/components/responses/UnexpectedError"}}}}},"components":{"parameters":{"shop":{"name":"shop","in":"query","required":true,"description":"The store: its `myshopify.com` domain, or its primary public domain.","schema":{"type":"string","examples":["my-store.myshopify.com"]}},"locale":{"name":"locale","in":"query","description":"The language of the `formatted` labels, e.g. `fr` or `en-GB`. Defaults to the store's primary language.","schema":{"type":"string","examples":["fr"]}},"locationId":{"name":"locationId","in":"query","description":"The location the customer chose, when the method has locations to choose from (pickup, and local delivery when the store sets locations for it), so that location's settings, closures and order limits apply. It's the Shopify location ID, or the ID Buunto gave a location created in Buunto: the same ID the widget writes in `__buunto_selection`.","schema":{"type":"string","pattern":"^\\d+$","examples":["64668336304"]}},"productVariantIds":{"name":"productVariantIds","in":"query","description":"Comma-separated Shopify IDs of the product variants being ordered. Always pass them: Buunto looks up the products' tags, collections and options itself, so the store's custom settings for those products apply with nothing else to send. Without them, the store's default settings apply.","schema":{"type":"string","pattern":"^\\d+(,\\d+)*$","examples":["44000000000001,44000000000002"]}},"productVariantId":{"name":"productVariantId","in":"query","description":"Same as `productVariantIds`, and takes precedence over it when both are given.","schema":{"type":"string","pattern":"^\\d+(,\\d+)*$","examples":["44000000000001"]}},"cartProductVariantIds":{"name":"cartProductVariantIds","in":"query","description":"Comma-separated Shopify IDs of every product variant in the cart, for settings that depend on the whole cart. Defaults to `productVariantIds`.","schema":{"type":"string","pattern":"^\\d+(,\\d+)*$","examples":["44000000000001,44000000000003"]}},"cartProductVariantId":{"name":"cartProductVariantId","in":"query","description":"Same as `cartProductVariantIds`, and takes precedence over it when both are given.","schema":{"type":"string","pattern":"^\\d+(,\\d+)*$","examples":["44000000000001"]}}},"headers":{"RateLimit-Policy":{"description":"The limit and its window in seconds (IETF draft 7).","schema":{"type":"string","examples":["500;w=300"]}},"RateLimit":{"description":"What's left of the limit, and the seconds until it resets (IETF draft 7).","schema":{"type":"string","examples":["limit=500, remaining=499, reset=300"]}},"OrderSelectionRateLimit-Policy":{"description":"The limit and its window in seconds (IETF draft 7).","schema":{"type":"string","examples":["60;w=60"]}},"OrderSelectionRateLimit":{"description":"What's left of the limit, and the seconds until it resets (IETF draft 7).","schema":{"type":"string","examples":["limit=60, remaining=59, reset=60"]}}},"responses":{"TooManyRequests":{"description":"Too many requests from this IP address. Wait for the number of seconds in `Retry-After`.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Retry-After":{"description":"Seconds to wait before calling again.","schema":{"type":"integer","examples":[42]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"tooManyRequests":{"value":{"reason":"Too many requests"}}}}}},"OrderSelectionTooManyRequests":{"description":"Too many requests from this IP address. Wait for the number of seconds in `Retry-After`.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/OrderSelectionRateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/OrderSelectionRateLimit"},"Retry-After":{"description":"Seconds to wait before calling again.","schema":{"type":"integer","examples":[42]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonError"},"examples":{"tooManyRequests":{"value":{"reason":"Too many requests"}}}}}},"HeadlessUnexpectedError":{"description":"Something went wrong on Buunto's side. Quote `traceId` to Buunto's support. A request that prefers HTML to JSON (a browser) gets an error page instead.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReasonError"},{"$ref":"#/components/schemas/MessageError"}]},"examples":{"unexpected":{"value":{"error":"Unexpected error","traceId":"4bf92f3577b34da6a3ce929d0e0e4736"}},"settings":{"value":{"reason":"Something went wrong"}}}},"text/html":{"schema":{"type":"string"}}}},"UnexpectedError":{"description":"Something went wrong on Buunto's side. Quote `traceId` to Buunto's support. A request that prefers HTML to JSON (a browser) gets an error page instead.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/OrderSelectionRateLimit-Policy"},"RateLimit":{"$ref":"#/components/headers/OrderSelectionRateLimit"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageError"},"examples":{"unexpected":{"value":{"error":"Unexpected error","traceId":"4bf92f3577b34da6a3ce929d0e0e4736"}}}},"text/html":{"schema":{"type":"string"}}}}},"schemas":{"Method":{"type":"string","enum":["LOCAL_DELIVERY","STORE_PICKUP","SHIPPING"],"description":"A delivery method: local delivery, store pickup or shipping."},"Date":{"type":"string","format":"date","description":"A date in the store's timezone, `YYYY-MM-DD`.","examples":["2026-11-27"]},"Time":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"A time of day in the store's timezone, `HH:mm`.","examples":["09:00"]},"CutOffTime":{"type":"object","required":["firstAvailableDate","cutOffTime"],"properties":{"firstAvailableDate":{"$ref":"#/components/schemas/Date"},"cutOffTime":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","description":"Order before this time (`YYYY-MM-DD HH:mm:ss`, in the store's timezone) to get `firstAvailableDate`.","examples":["2026-11-25 14:00:00"]}}},"CutOffTimes":{"type":"object","description":"The cut-off of each method the store offers, keyed by method.","propertyNames":{"$ref":"#/components/schemas/Method"},"additionalProperties":{"$ref":"#/components/schemas/CutOffTime"}},"TimeSlot":{"type":"object","required":["from","to","formatted","disabled","soldOut"],"properties":{"from":{"$ref":"#/components/schemas/Time"},"to":{"$ref":"#/components/schemas/Time"},"formatted":{"type":"string","description":"The slot as the widget shows it, in the store's time format and `locale`. It's also what the widget writes in the readable time slot attribute.","examples":["9:00 AM - 10:00 AM"]},"disabled":{"type":"boolean","description":"The slot can't be chosen: too soon for the store's lead time, or sold out."},"soldOut":{"type":"boolean","description":"The slot has reached its order limit."},"remaining":{"type":"integer","minimum":0,"description":"How many more orders the slot takes. Only when the store limits orders per time slot."}}},"TimeSlots":{"type":"array","items":{"$ref":"#/components/schemas/TimeSlot"}},"AvailableDate":{"type":"object","required":["date","formatted","soldOut"],"properties":{"date":{"$ref":"#/components/schemas/Date"},"formatted":{"type":"string","description":"The date in the store's order attribute format and `locale`. It's also what the widget writes in the readable date attribute.","examples":["November 27, 2026"]},"soldOut":{"type":"boolean","description":"The date has reached its order limit and can't be chosen."},"remaining":{"type":"integer","minimum":0,"description":"How many more orders the date takes. Only when the store limits orders per day."},"timeSlots":{"$ref":"#/components/schemas/TimeSlots","description":"The date's time slots. Only with `withTimeSlots=true`."}}},"AvailableDates":{"type":"object","description":"The available dates of each method the store offers, keyed by method.","propertyNames":{"$ref":"#/components/schemas/Method"},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AvailableDate"}}},"OrderSelectionStatus":{"type":"string","enum":["SELECTION_FOUND","NO_SELECTION","ORDER_NOT_PROCESSED"],"description":"`SELECTION_FOUND`: the customer chose a date. `NO_SELECTION`: Buunto recorded the order, without a date. `ORDER_NOT_PROCESSED`: Buunto hasn't recorded the order (not yet, or it isn't the store's)."},"OrderSelection":{"type":"object","required":["date"],"properties":{"method":{"$ref":"#/components/schemas/Method","description":"Left out when the store offers a single method."},"date":{"$ref":"#/components/schemas/Date"},"timeSlot":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/Time"},"to":{"$ref":"#/components/schemas/Time"}}},"pickupLocation":{"type":"string","description":"The pickup location's name.","examples":["Main Street Store"]}}},"OrderSelectionData":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/components/schemas/OrderSelectionStatus"},"selection":{"$ref":"#/components/schemas/OrderSelection","description":"Only when `status` is `SELECTION_FOUND`."}}},"ReasonError":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"What went wrong, in English."}}},"MessageError":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"What went wrong, in English."},"traceId":{"type":"string","description":"Quote it to Buunto's support."}}},"BuuntoSelection":{"type":"string","title":"__buunto_selection","description":"The customer's choice, as the storefront widget writes it under the key `__buunto_selection`. Buunto's checkout validation and delivery options sync read it at checkout, so a headless store that uses either must write it.\n\nWhere to write it depends on where the store shows Buunto's date picker, which this API doesn't tell yet. With the picker on the product page, delivery options sync reads it from each line's properties; with the picker on the cart page, from the cart attributes. Checkout validation falls back to the cart attribute when the lines have none, but delivery options sync doesn't look in the other place. Writing it in both places works when the cart has one dated line.\n\nPipe-separated slots, in this order:\n\n1. **method**: `LOCAL_DELIVERY`, `STORE_PICKUP` or `SHIPPING`. Always write it. The widget leaves it empty on a store with a single method, but delivery options sync ignores a line's selection without a method.\n2. **date**: `YYYY-MM-DD`, an available date from `/api/v1/available_dates`.\n3. **time slot**: `HH:mm - HH:mm` (from, space, hyphen, space, to). Empty without time slots.\n4. **location**: the ID of the location the customer chose, when the method has locations to choose from (pickup, and local delivery when the store sets locations for it). It's the Shopify location ID, or the ID Buunto gave a location created in Buunto: the same as `locationId`. Empty otherwise.\n5. **area**: the local delivery area the postcode checker matched. Leave it out.\n6. **flag**: reserved for the widget and Buunto's staff tools. Leave it out.\n7. **postcode fingerprint**: reserved for the widget. Leave it out.\n\nThe first four slots are always written, so the value always has at least three pipes. Trailing slots after them may be left out.\n\nBuunto reads the placed order's date, time slot and pickup location from the readable attributes the widget writes next to it, named by the store's settings (e.g. `Delivery Date` and `Delivery Time`) and holding the `formatted` values these endpoints answer, so write those too.","pattern":"^(LOCAL_DELIVERY|STORE_PICKUP|SHIPPING)?\\|(\\d{4}-\\d{2}-\\d{2})?\\|(\\d{2}:\\d{2} - \\d{2}:\\d{2})?\\|(\\d+)?(\\|[^|]*(\\|(SKIP_VALIDATION|STAFF_OVERRIDE|STAFF_\\d+)?(\\|[^|]*)?)?)?$","examples":["LOCAL_DELIVERY|2026-11-26|09:00 - 12:00|","STORE_PICKUP|2026-11-27|10:00 - 11:00|64668336304","SHIPPING|2026-11-30||"]}}}}