{"components":{"schemas":{"ActivityAdd":{"additionalProperties":false,"description":"XP-02: the shop's own activity; its key is made from the English label.","properties":{"icon_key":{"anyOf":[{"pattern":"^[a-z][A-Za-z]{1,39}$","type":"string"},{"type":"null"}],"title":"Icon Key"},"label":{"maxProperties":8,"minProperties":1,"patternProperties":{"^[a-z]{2}$":{"maxLength":80,"minLength":1,"type":"string"}},"title":"Label","type":"object"}},"required":["label"],"title":"ActivityAdd","type":"object"},"ActivityAdded":{"additionalProperties":true,"properties":{"key":{"title":"Key","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["key","version"],"title":"ActivityAdded","type":"object"},"AgreementIn":{"additionalProperties":false,"properties":{"contact_person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Their contact: one of the company's people. Left out on a change keeps it","title":"Contact Person Id"},"currency":{"anyOf":[{"pattern":"^[A-Z]{3}$","type":"string"},{"type":"null"}],"title":"Currency"},"ends_on":{"anyOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},{"type":"null"}],"title":"Ends On"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"file_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The signed agreement: a ready file of this shop. Left out on a change keeps it","title":"File Id"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"label":{"maxLength":120,"minLength":1,"title":"Label","type":"string"},"signed_on":{"anyOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},{"type":"null"}],"description":"When it was signed; not in the future. Left out on a change keeps it, null clears it","title":"Signed On"},"starts_on":{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","title":"Starts On","type":"string"},"state":{"anyOf":[{"enum":["draft","active","ended","cancelled"],"type":"string"},{"type":"null"}],"title":"State"},"they_give":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"They Give"},"value_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"What the agreement is worth to us per year, in minor units","title":"Value Minor"},"we_owe":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"We Owe"}},"required":["label","starts_on"],"title":"AgreementIn","type":"object"},"AgreementSave":{"additionalProperties":false,"properties":{"agreement":{"$ref":"#/components/schemas/AgreementIn"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","agreement"],"title":"AgreementSave","type":"object"},"AgreementSaved":{"properties":{"agreement":{"additionalProperties":true,"title":"Agreement","type":"object"}},"required":["agreement"],"title":"AgreementSaved","type":"object"},"AirportItem":{"additionalProperties":true,"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country_code":{"description":"The two letter country code as stored, for example PT","title":"Country Code","type":"string"},"iata":{"description":"The three letter IATA code","title":"Iata","type":"string"},"lat":{"title":"Lat","type":"number"},"lng":{"title":"Lng","type":"number"},"metro":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The city's IATA metro code riders type, for example NYC","title":"Metro"},"metro_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The metro's name, for example Milan (null without metro)","title":"Metro Name"},"name":{"title":"Name","type":"string"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ISO region (OurAirports iso_region), for example US-NY","title":"Region"},"size":{"description":"small: a small airport with scheduled passenger service","enum":["small","medium","large"],"title":"Size","type":"string"}},"required":["iata","name","country_code","lat","lng","size"],"title":"AirportItem","type":"object"},"AnswerInput":{"additionalProperties":false,"description":"One answer to one of the shop's own questions. ``value`` by kind: text a string up to 300, number a number, choice an option key,\nmulti_choice a list of keys, boolean true or false, date ``YYYY-MM-DD``. The booking checks it against the question (422\n``answer_refused``); built-ins are answered with the rider's own height, weight, shoe and level fields.","properties":{"item_type_id":{"format":"uuid","title":"Item Type Id","type":"string"},"key":{"description":"height_cm, weight_kg, shoe_eu, level or the shop's own key","pattern":"^[a-z][a-z0-9_]{0,39}$","title":"Key","type":"string"},"value":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"maxLength":300,"type":"string"},{"items":{"maxLength":300,"type":"string"},"maxItems":30,"type":"array"}],"title":"Value"}},"required":["item_type_id","key","value"],"title":"AnswerInput","type":"object"},"AppliedCounts":{"additionalProperties":true,"properties":{"costs_kept":{"default":0,"description":"Cost price changes left as they are: the person may not see costs (costs:read)","title":"Costs Kept","type":"integer"},"documents":{"default":0,"title":"Documents","type":"integer"},"groups":{"default":0,"title":"Groups","type":"integer"},"left":{"default":0,"description":"Lines with no decision, left as they are","title":"Left","type":"integer"},"new":{"default":0,"title":"New","type":"integer"},"photos":{"default":0,"title":"Photos","type":"integer"},"prices":{"default":0,"title":"Prices","type":"integer"},"skipped":{"default":0,"title":"Skipped","type":"integer"},"specs":{"default":0,"title":"Specs","type":"integer"},"specs_left":{"default":0,"description":"Specs of new models from a price list with no spec of their department or category to fit","title":"Specs Left","type":"integer"},"stale":{"default":0,"description":"Lines whose target changed since the read, not applied","title":"Stale","type":"integer"},"words":{"default":0,"title":"Words","type":"integer"}},"title":"AppliedCounts","type":"object"},"ArchiveDone":{"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"state":{"enum":["active","archived"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","state"],"title":"ArchiveDone","type":"object"},"AskOption":{"additionalProperties":true,"description":"One choice of a choice or multi_choice question; ``level`` takes its options from the category's fit levels.","properties":{"hint":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}]},"key":{"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output"}},"required":["key","label"],"title":"AskOption","type":"object"},"AskedAssign":{"additionalProperties":false,"description":"Assign the requested unit. The line becomes booked, priced and charged under the booking rules.","properties":{"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"unit_id":{"format":"uuid","title":"Unit Id","type":"string"}},"required":["expected_version","unit_id"],"title":"AskedAssign","type":"object"},"AskedDecline":{"additionalProperties":false,"description":"Decline a requested line. The guest is emailed and nothing is charged.","properties":{"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"note":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"}},"required":["expected_version"],"title":"AskedDecline","type":"object"},"AskedOffer":{"additionalProperties":false,"description":"Offer another unit. The guest receives an email to accept it and any price difference.","properties":{"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"note":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"unit_id":{"format":"uuid","title":"Unit Id","type":"string"}},"required":["expected_version","unit_id"],"title":"AskedOffer","type":"object"},"AskedWritten":{"additionalProperties":true,"properties":{"charge":{"description":"assigned: how the line is charged (with the booking's payment when not paid yet, on its own when the rest was paid, at the shop by the rules); none for any other status","enum":["with_booking","on_its_own","at_shop","none"],"title":"Charge","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"status":{"enum":["asked","offered","assigned","declined","expired","withdrawn"],"title":"Status","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","version","status","charge"],"title":"AskedWritten","type":"object"},"AtlasAirports":{"additionalProperties":true,"properties":{"items":{"description":"Airports whose code, metro code, city or name holds the text, accents and case folded: the exact code, every airport of a metro whose code or name is the text, then the city, then the name, then a word starting with it; letters inside a word last, and none when the text is an airport's code; large, medium, small; then by city and code","items":{"$ref":"#/components/schemas/AirportItem"},"title":"Items","type":"array"}},"required":["items"],"title":"AtlasAirports","type":"object"},"AtlasBest":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"counts":{"anyOf":[{"$ref":"#/components/schemas/MonthCounts"},{"type":"null"}],"description":"Every match that month by judgement, before the cut (15.2)"},"items":{"description":"At its best first, then good, each by fit, then fame (15.1)","items":{"$ref":"#/components/schemas/PlaceCard"},"title":"Items","type":"array"},"month":{"title":"Month","type":"integer"},"opening":{"description":"Places of the activity closed that month whose lifts open next, soonest first, at most 8 (15.3)","items":{"$ref":"#/components/schemas/Opening"},"title":"Opening","type":"array"}},"required":["activity","month","items"],"title":"AtlasBest","type":"object"},"AtlasBikesFree":{"additionalProperties":true,"description":"Free bikes and tours at the shops listed on one place, for the dates and riders asked. Counts and prices only.","properties":{"first":{"title":"First","type":"string"},"last":{"title":"Last","type":"string"},"others":{"description":"Shops near the place that are not on Outdoor Grid","items":{"$ref":"#/components/schemas/AtlasOtherShop"},"title":"Others","type":"array"},"place":{"$ref":"#/components/schemas/AtlasBikesFreePlace"},"read_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read At"},"riders":{"title":"Riders","type":"integer"},"shops":{"description":"Nearest first, at most 12","items":{"$ref":"#/components/schemas/AtlasFreeShop"},"title":"Shops","type":"array"}},"required":["place","first","last","riders"],"title":"AtlasBikesFree","type":"object"},"AtlasBikesFreeChip":{"additionalProperties":true,"properties":{"bikes_free":{"description":"Bikes free across the listed shops that show bikes","title":"Bikes Free","type":"integer"},"shops_free":{"description":"Shops with a bike free for the party","title":"Shops Free","type":"integer"},"slug":{"title":"Slug","type":"string"},"top":{"anyOf":[{"$ref":"#/components/schemas/AtlasBikesFreeTop"},{"type":"null"}]}},"required":["slug","shops_free","bikes_free"],"title":"AtlasBikesFreeChip","type":"object"},"AtlasBikesFreeMany":{"additionalProperties":true,"description":"The bikes free chip for each place asked, in the order asked.","properties":{"items":{"items":{"$ref":"#/components/schemas/AtlasBikesFreeChip"},"title":"Items","type":"array"}},"title":"AtlasBikesFreeMany","type":"object"},"AtlasBikesFreePlace":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"slug":{"title":"Slug","type":"string"}},"required":["slug","activity"],"title":"AtlasBikesFreePlace","type":"object"},"AtlasBikesFreeTop":{"additionalProperties":true,"properties":{"shop_name":{"title":"Shop Name","type":"string"},"text":{"title":"Text","type":"string"}},"required":["shop_name","text"],"title":"AtlasBikesFreeTop","type":"object"},"AtlasBlueprint":{"additionalProperties":true,"properties":{"blueprint":{"additionalProperties":true,"description":"{slug, names, activity, min_days, max_days, months, bike_strategy, notes}","title":"Blueprint","type":"object"},"legs":{"description":"The live legs in order; a leg whose place is not live is left out","items":{"$ref":"#/components/schemas/BlueprintLeg"},"title":"Legs","type":"array"}},"required":["blueprint","legs"],"title":"AtlasBlueprint","type":"object"},"AtlasCancellationStep":{"additionalProperties":true,"properties":{"hours_before":{"description":"Cancelled at least this many hours before the start","title":"Hours Before","type":"integer"},"refund_percent":{"description":"Refunded, in percent","title":"Refund Percent","type":"integer"}},"required":["hours_before","refund_percent"],"title":"AtlasCancellationStep","type":"object"},"AtlasClaimConfirm":{"additionalProperties":false,"description":"AT-29: the person presses \"Confirm my email\" in the claim email; the token is the 64 lower hex after ``#t=``.","properties":{"token":{"description":"The 64 lower case hex characters after #t= in the claim email's link","pattern":"^[0-9a-f]{64}$","title":"Token","type":"string"}},"required":["token"],"title":"AtlasClaimConfirm","type":"object"},"AtlasClaimConfirmed":{"additionalProperties":true,"description":"The email is confirmed: Outdoor Grid now checks the claim by hand. A second press answers the same, replayed true.","properties":{"business_name":{"title":"Business Name","type":"string"},"confirmed":{"const":true,"default":true,"title":"Confirmed","type":"boolean"},"place_slug":{"title":"Place Slug","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"}},"required":["business_name","place_slug"],"title":"AtlasClaimConfirmed","type":"object"},"AtlasClaimRequest":{"additionalProperties":false,"description":"AT-13: someone who runs a shop listed on a place asks to show it on the atlas.","properties":{"consent":{"const":true,"description":"The person ticked the consent text","title":"Consent","type":"boolean"},"consent_key":{"const":"atlas_claim_v1","description":"The consent text the person ticked","title":"Consent Key","type":"string"},"contact_email":{"description":"Where Outdoor Grid answers","format":"email","maxLength":254,"title":"Contact Email","type":"string"},"contact_name":{"description":"The person asking, 2 to 80 characters","maxLength":80,"minLength":2,"title":"Contact Name","type":"string"},"locale":{"description":"The language of the email","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"},"osm":{"description":"The OpenStreetMap business as listed on the place, such as \"node/123\"","pattern":"^(node|way|relation)/[1-9][0-9]{0,18}$","title":"Osm","type":"string"},"place":{"description":"The place's address name, such as finale-ligure","pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Place","type":"string"},"role":{"enum":["owner","manager","staff","other"],"title":"Role","type":"string"}},"required":["place","osm","contact_name","contact_email","role","locale","consent","consent_key"],"title":"AtlasClaimRequest","type":"object"},"AtlasClaimRequested":{"additionalProperties":true,"description":"The same answer whatever is stored, so it never says whether a claim was written (3.2.2).","properties":{"requested":{"const":true,"default":true,"title":"Requested","type":"boolean"}},"title":"AtlasClaimRequested","type":"object"},"AtlasCompare":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"items":{"items":{"$ref":"#/components/schemas/CompareCard"},"title":"Items","type":"array"},"month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Month"},"verdict":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"An editor's reviewed line for this exact set, else null","title":"Verdict"}},"required":["activity","month","items","verdict"],"title":"AtlasCompare","type":"object"},"AtlasCounts":{"additionalProperties":true,"properties":{"activities":{"additionalProperties":{"type":"integer"},"description":"Places per activity key","title":"Activities","type":"object"},"doing":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The activity counted, null for every activity","title":"Doing"},"regions":{"description":"Places per region","items":{"$ref":"#/components/schemas/AtlasRegionCount"},"title":"Regions","type":"array"},"total":{"description":"Places in the atlas with the activity, or with any activity without doing","title":"Total","type":"integer"}},"required":["total","activities","regions"],"title":"AtlasCounts","type":"object"},"AtlasCredits":{"additionalProperties":true,"properties":{"exports":{"description":"The downloads ready, empty until the first export is saved","items":{"$ref":"#/components/schemas/AtlasExport"},"title":"Exports","type":"array"},"sources":{"description":"The active data sources and their licences, osm first then by name","items":{"$ref":"#/components/schemas/AtlasSource"},"title":"Sources","type":"array"}},"required":["sources","exports"],"title":"AtlasCredits","type":"object"},"AtlasDownload":{"additionalProperties":true,"properties":{"bytes":{"title":"Bytes","type":"integer"},"expires_in":{"description":"Seconds the link stays valid","title":"Expires In","type":"integer"},"extract_date":{"title":"Extract Date","type":"string"},"key":{"title":"Key","type":"string"},"url":{"description":"A signed link to the gzipped GeoJSON file, valid for expires_in seconds","title":"Url","type":"string"}},"required":["key","extract_date","bytes","url","expires_in"],"title":"AtlasDownload","type":"object"},"AtlasEvent":{"additionalProperties":false,"properties":{"activity":{"description":"A kind of riding, for example \"mountain-biking\"","pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"},"kind":{"description":"place_view: a place page was read; shops_view: its shops were listed","enum":["place_view","shops_view"],"title":"Kind","type":"string"},"shop":{"anyOf":[{"description":"The shop's address name","pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$","type":"string"},{"type":"null"}],"title":"Shop"},"slug":{"description":"A place on the atlas, as in its address","pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},"required":["kind","slug","activity"],"title":"AtlasEvent","type":"object"},"AtlasExport":{"additionalProperties":true,"properties":{"bytes":{"description":"The gzipped file's size","title":"Bytes","type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"extract_date":{"description":"The newest OpenStreetMap extract date in the file","title":"Extract Date","type":"string"},"features":{"description":"How many features the file holds","title":"Features","type":"integer"},"key":{"description":"The export key, \"osm_odbl\"","title":"Key","type":"string"}},"required":["key","extract_date","bytes","features"],"title":"AtlasExport","type":"object"},"AtlasFeed":{"additionalProperties":true,"properties":{"documentation":{"title":"Documentation","type":"string"},"feed":{"description":"\"outdoor-grid-riding-atlas\"","title":"Feed","type":"string"},"feed_version":{"description":"\"1.0\"; a breaking change raises the major number","title":"Feed Version","type":"string"},"generated_at":{"description":"When this answer was made, UTC","title":"Generated At","type":"string"},"items":{"description":"Live places per activity, ordered by slug then activity","items":{"$ref":"#/components/schemas/AtlasFeedItem"},"title":"Items","type":"array"},"licence":{"$ref":"#/components/schemas/AtlasFeedLicence"},"publisher":{"$ref":"#/components/schemas/AtlasFeedPublisher"},"sources":{"description":"The active data sources and their licences, osm first then by key","items":{"$ref":"#/components/schemas/AtlasSource"},"title":"Sources","type":"array"}},"required":["feed","feed_version","generated_at","publisher","documentation","licence","sources","items"],"title":"AtlasFeed","type":"object"},"AtlasFeedFactsLicence":{"additionalProperties":true,"properties":{"attribution":{"description":"The line a reuse of the facts must carry","title":"Attribution","type":"string"},"name":{"description":"The licence of the atlas facts, \"CC BY 4.0\"","title":"Name","type":"string"},"url":{"title":"Url","type":"string"}},"required":["name","url","attribution"],"title":"AtlasFeedFactsLicence","type":"object"},"AtlasFeedItem":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"canonical_url":{"description":"The atlas page of this place and activity","title":"Canonical Url","type":"string"},"centre":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{lat, lng}","title":"Centre"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The newest check of the item's shown facts","title":"Checked At"},"costs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{currency, level, day_all_in_minor, components: {bike, uplift, bed, food} in minor units, as_of, checked_at, source_key}","title":"Costs"},"country_codes":{"items":{"type":"string"},"title":"Country Codes","type":"array"},"destination_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Id"},"licences":{"description":"The distinct licences of the item's sources","items":{"type":"string"},"title":"Licences","type":"array"},"markdown_url":{"description":"The same page as Markdown","title":"Markdown Url","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place's English name","title":"Name"},"next_review_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The earliest next check of them","title":"Next Review At"},"photos":{"items":{"additionalProperties":true,"type":"object"},"title":"Photos","type":"array"},"region_path":{"title":"Region Path"},"season":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{months: [{month, calendar, weather, uplift, checked_at, source_key}], windows: [{name, mode, season_year, opens_on, closes_on, checked_at, source_key}]}","title":"Season"},"slug":{"title":"Slug","type":"string"},"source_keys":{"items":{"type":"string"},"title":"Source Keys","type":"array"},"source_urls":{"items":{"type":"string"},"title":"Source Urls","type":"array"},"trails":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Trail metrics, derived from OpenStreetMap (ODbL)","title":"Trails"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"required":["slug","activity","canonical_url","markdown_url","licences"],"title":"AtlasFeedItem","type":"object"},"AtlasFeedLicence":{"additionalProperties":true,"properties":{"facts":{"$ref":"#/components/schemas/AtlasFeedFactsLicence"},"osm":{"$ref":"#/components/schemas/AtlasFeedOsmLicence"},"photos":{"description":"Photos carry their own licence and author, listed on each photo","title":"Photos","type":"string"}},"required":["facts","osm","photos"],"title":"AtlasFeedLicence","type":"object"},"AtlasFeedOsmLicence":{"additionalProperties":true,"properties":{"applies_to":{"description":"The item keys under this licence","items":{"type":"string"},"title":"Applies To","type":"array"},"attribution":{"title":"Attribution","type":"string"},"download":{"description":"Where the OpenStreetMap layer is downloaded under the ODbL","title":"Download","type":"string"},"name":{"description":"\"ODbL 1.0\": trail metrics are a derived database of OpenStreetMap","title":"Name","type":"string"},"share_alike":{"title":"Share Alike","type":"boolean"},"url":{"title":"Url","type":"string"}},"required":["name","url","attribution","share_alike","applies_to","download"],"title":"AtlasFeedOsmLicence","type":"object"},"AtlasFeedPublisher":{"additionalProperties":true,"properties":{"name":{"title":"Name","type":"string"},"url":{"title":"Url","type":"string"}},"required":["name","url"],"title":"AtlasFeedPublisher","type":"object"},"AtlasFind":{"additionalProperties":true,"properties":{"items":{"description":"Countries, regions and places for the Where box, ranked: exact name, name starting with the text, a word starting with it, the rest, then the regions and places of a country or region matched from the start; countries, regions, places; then fame. Each {kind, path or slug, names, subtitle, country_codes, photo_url, places, activities, styles, matched}","items":{"$ref":"#/components/schemas/AtlasFindItem"},"title":"Items","type":"array"},"match":{"description":"name: names hold the text; spelling: none did, these are spelled like it; none: nothing","enum":["name","spelling","none"],"title":"Match","type":"string"},"near":{"anyOf":[{"$ref":"#/components/schemas/AtlasFindNear"},{"type":"null"}],"description":"With match none: the region and places nearest to an airport city the text names, else null"}},"required":["items","match"],"title":"AtlasFind","type":"object"},"AtlasFindItem":{"additionalProperties":true,"properties":{"matched":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The other name the text matched, for example Morzine for Portes du Soleil; null when the item's own name matched","title":"Matched"}},"title":"AtlasFindItem","type":"object"},"AtlasFindNear":{"additionalProperties":true,"properties":{"city":{"description":"The airport city the text names, for example Florianópolis","title":"City","type":"string"},"items":{"description":"The region of that country nearest to the city, then up to three places within 500 km, nearest first; items shaped as in items","items":{"additionalProperties":true,"type":"object"},"title":"Items","type":"array"}},"required":["city","items"],"title":"AtlasFindNear","type":"object"},"AtlasFreeDeparture":{"additionalProperties":true,"properties":{"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"day":{"title":"Day","type":"string"},"id":{"title":"Id","type":"string"},"places_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Places Left"},"price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Minor"},"starts_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starts At"}},"required":["id","day"],"title":"AtlasFreeDeparture","type":"object"},"AtlasFreeMoney":{"additionalProperties":true,"properties":{"amount_minor":{"description":"In minor units of the currency","title":"Amount Minor","type":"integer"},"currency":{"description":"ISO 4217","title":"Currency","type":"string"}},"required":["amount_minor","currency"],"title":"AtlasFreeMoney","type":"object"},"AtlasFreeProduct":{"additionalProperties":true,"properties":{"day_price":{"anyOf":[{"$ref":"#/components/schemas/AtlasFreeMoney"},{"type":"null"}],"description":"null when the shop does not show prices"},"id":{"title":"Id","type":"string"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"name":{"title":"Name","type":"string"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A public link to the shop's own catalogue photo, or null","title":"Photo Url"},"sizes":{"items":{"$ref":"#/components/schemas/AtlasFreeSize"},"title":"Sizes","type":"array"},"total":{"anyOf":[{"$ref":"#/components/schemas/AtlasFreeMoney"},{"type":"null"}],"description":"One bike of the first size for the whole range; null when the shop does not show prices"},"travel_mm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Travel Mm"}},"required":["id","name"],"title":"AtlasFreeProduct","type":"object"},"AtlasFreeShop":{"additionalProperties":true,"properties":{"booking_page":{"description":"Where Book opens: the shop's own page, else the environment's page for its slug","title":"Booking Page","type":"string"},"counts":{"additionalProperties":{"type":"integer"},"description":"products and tours","title":"Counts","type":"object"},"distance_km":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Km"},"free_for_party":{"description":"The shop can seat every rider on the same days","title":"Free For Party","type":"boolean"},"name":{"title":"Name","type":"string"},"party":{"anyOf":[{"$ref":"#/components/schemas/AtlasParty"},{"type":"null"}],"description":"A bike for each rider from the products shown; null when none are"},"pickup":{"anyOf":[{"$ref":"#/components/schemas/AtlasPickup"},{"type":"null"}],"description":"Where and when the bikes are picked up and returned"},"products":{"description":"At most 6, most free first; empty when bikes are not shown","items":{"$ref":"#/components/schemas/AtlasFreeProduct"},"title":"Products","type":"array"},"slug":{"title":"Slug","type":"string"},"terms":{"anyOf":[{"$ref":"#/components/schemas/AtlasTerms"},{"type":"null"}],"description":"How the shop takes payment, its deposits and cancellation"},"tours":{"description":"At most 4 in the range; empty when tours are not shown","items":{"$ref":"#/components/schemas/AtlasFreeTour"},"title":"Tours","type":"array"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town"}},"required":["slug","name","booking_page","free_for_party"],"title":"AtlasFreeShop","type":"object"},"AtlasFreeSize":{"additionalProperties":true,"properties":{"fits":{"description":"The riders (0 based, in the order asked) this size fits","items":{"type":"integer"},"title":"Fits","type":"array"},"free":{"description":"plenty, few or full, on the least free day of the range","title":"Free","type":"string"},"left":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"How many are left, only when free is few","title":"Left"},"max_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The tallest rider this size fits, in centimetres","title":"Max Cm"},"min_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The shortest rider this size fits, in centimetres","title":"Min Cm"},"option_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The size option of the product","title":"Option Id"},"size_label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The frame size, for example \"M\"","title":"Size Label"}},"required":["free"],"title":"AtlasFreeSize","type":"object"},"AtlasFreeTour":{"additionalProperties":true,"properties":{"departures":{"items":{"$ref":"#/components/schemas/AtlasFreeDeparture"},"title":"Departures","type":"array"},"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"required":["id","name"],"title":"AtlasFreeTour","type":"object"},"AtlasGlobe":{"additionalProperties":true,"properties":{"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity"},"items":{"description":"AT-02's where=anywhere&shape=map order: the month's judgement, then the fit, then fame","items":{"$ref":"#/components/schemas/GlobeItem"},"title":"Items","type":"array"},"month":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The month number judged, null without one","title":"Month"},"total":{"description":"Places the search found","title":"Total","type":"integer"},"version":{"description":"The version this answer was made for (AT-33's)","title":"Version","type":"string"},"when":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The month asked, YYYY-MM, or null","title":"When"}},"required":["version","total","items"],"title":"AtlasGlobe","type":"object"},"AtlasGlobeVersion":{"additionalProperties":true,"properties":{"version":{"description":"g<shape>.<change count>.<d|l>: moves when a place on the globe changes, the item shape changes or the drafts switch flips (d: drafts shown, l: live only)","title":"Version","type":"string"}},"required":["version"],"title":"AtlasGlobeVersion","type":"object"},"AtlasHome":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"best":{"description":"At its best this month, by fit, at most 8","items":{"$ref":"#/components/schemas/PlaceCard"},"title":"Best","type":"array"},"home":{"description":"The home airports known to the atlas: {iata, name, city, lat, lng}","items":{"additionalProperties":true,"type":"object"},"title":"Home","type":"array"},"hops":{"description":"Short hops from the home airports (about 6 h or less), by fit, at most 8; empty without","items":{"$ref":"#/components/schemas/HopCard"},"title":"Hops","type":"array"},"month":{"title":"Month","type":"integer"},"south":{"description":"South of 10 degrees south and good this month, by fit, at most 6","items":{"$ref":"#/components/schemas/PlaceCard"},"title":"South","type":"array"},"south_total":{"description":"How many places the summer down south list holds before the cut","title":"South Total","type":"integer"}},"required":["activity","month","best","hops","south","south_total","home"],"title":"AtlasHome","type":"object"},"AtlasNames":{"additionalProperties":true,"properties":{"items":{"description":"Countries, regions and places whose name holds the text: {kind, path or slug, names, subtitle, country_codes, photo_url, places, activities}","items":{"additionalProperties":true,"type":"object"},"title":"Items","type":"array"}},"required":["items"],"title":"AtlasNames","type":"object"},"AtlasOtherShop":{"additionalProperties":true,"properties":{"name":{"title":"Name","type":"string"},"services":{"items":{"type":"string"},"title":"Services","type":"array"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"required":["name"],"title":"AtlasOtherShop","type":"object"},"AtlasParty":{"additionalProperties":true,"description":"One bike per rider from the products shown: one product for the whole crew when one seats everyone (the cheapest), else\neach rider the cheapest that fits, the riders with the fewest choices first.","properties":{"days":{"description":"Days in the range, first and last included","title":"Days","type":"integer"},"picks":{"description":"Exactly one per rider, in rider order","items":{"$ref":"#/components/schemas/AtlasPartyPick"},"title":"Picks","type":"array"},"seated":{"description":"Every rider has a pick","title":"Seated","type":"boolean"},"total":{"anyOf":[{"$ref":"#/components/schemas/AtlasFreeMoney"},{"type":"null"}],"description":"The picks' totals added up; null when not seated or a pick has no total"}},"required":["seated","days"],"title":"AtlasParty","type":"object"},"AtlasPartyPick":{"additionalProperties":true,"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bike's name","title":"Name"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bike picked for this rider; null when nothing free fits them","title":"Product Id"},"size_label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The size picked; null for a rider who gave no size and no height (any size fits them)","title":"Size Label"},"total":{"anyOf":[{"$ref":"#/components/schemas/AtlasFreeMoney"},{"type":"null"}],"description":"One bike for the whole range; null when prices are hidden"}},"title":"AtlasPartyPick","type":"object"},"AtlasPickup":{"additionalProperties":true,"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"first_day":{"anyOf":[{"$ref":"#/components/schemas/AtlasPickupDay"},{"type":"null"}],"description":"Pick up on the first day"},"last_day":{"anyOf":[{"$ref":"#/components/schemas/AtlasPickupDay"},{"type":"null"}],"description":"Return on the last day"},"place":{"description":"Where the bikes are picked up","title":"Place","type":"string"}},"required":["place"],"title":"AtlasPickup","type":"object"},"AtlasPickupDay":{"additionalProperties":true,"properties":{"day":{"description":"YYYY-MM-DD","title":"Day","type":"string"},"hours":{"anyOf":[{"items":{"$ref":"#/components/schemas/AtlasPickupHours"},"type":"array"},{"type":"null"}],"description":"When the shop is open that day; null when not known","title":"Hours"}},"required":["day"],"title":"AtlasPickupDay","type":"object"},"AtlasPickupHours":{"additionalProperties":true,"properties":{"closes":{"description":"HH:MM, the shop's local time","title":"Closes","type":"string"},"opens":{"description":"HH:MM, the shop's local time","title":"Opens","type":"string"}},"required":["opens","closes"],"title":"AtlasPickupHours","type":"object"},"AtlasPlace":{"additionalProperties":true,"properties":{"activities":{"items":{"additionalProperties":true,"type":"object"},"title":"Activities","type":"array"},"activity":{"additionalProperties":true,"description":"{key, names, icon_key, styles, state, trailforks_region_id, trailforks_region_slug, komoot_region_url (each null when unset)}: the links of the Trails tab (job TR), set in HQ (ATH-25)","title":"Activity","type":"object"},"card":{"$ref":"#/components/schemas/PlaceCard","description":"This place's card with its fit and the full breakdown"},"credits":{"items":{"additionalProperties":true,"type":"object"},"title":"Credits","type":"array"},"fit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The card's fit and breakdown: Enduro fit by default, the reader's with AT-02's doing, up or lifts_open, the rider's own on RD-45; on gravel the Gravel fit (rubric gravel-v1, profile key gravel)","title":"Fit"},"hero":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The hero photo {url, width, height, author, licence, licence_url, source_url, caption}, the first of photos","title":"Hero"},"listings":{"$ref":"#/components/schemas/PlaceListings"},"locale_used":{"title":"Locale Used","type":"string"},"neighbours":{"items":{"$ref":"#/components/schemas/PlaceCard"},"title":"Neighbours","type":"array"},"photos":{"description":"Up to 12 photos, the hero first, each with its credit","items":{"additionalProperties":true,"type":"object"},"title":"Photos","type":"array"},"place":{"additionalProperties":true,"title":"Place","type":"object"},"sections":{"anyOf":[{"$ref":"#/components/schemas/PlaceSections"},{"type":"null"}],"description":"Trails, Getting there, Your bike, Guides and Costs; a section with nothing is null"}},"required":["place","activity","activities","card","neighbours","credits","locale_used"],"title":"AtlasPlace","type":"object"},"AtlasReferral":{"additionalProperties":false,"properties":{"activity":{"description":"A kind of riding, for example \"mountain-biking\"","pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"},"osm":{"description":"The open map business on the place, as its listing names it, for example \"node/123\"","pattern":"^(node|way|relation)/[0-9]{1,15}$","title":"Osm","type":"string"},"slug":{"description":"A place on the atlas, as in its address","pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},"required":["slug","activity","osm"],"title":"AtlasReferral","type":"object"},"AtlasReferralMade":{"additionalProperties":true,"properties":{"website":{"description":"That business's own website, as the atlas holds it. Send the rider there","title":"Website","type":"string"}},"required":["website"],"title":"AtlasReferralMade","type":"object"},"AtlasRegionCount":{"additionalProperties":true,"properties":{"path":{"description":"The region's path, country/region","title":"Path","type":"string"},"photo":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The tile's photo {url, width, height, author, licence, licence_url, source_url, file?}: the region's own, else the best counted place's hero for the activity; null without one","title":"Photo"},"places":{"description":"Its places with the activity, or with any activity without doing","title":"Places","type":"integer"}},"required":["path","places"],"title":"AtlasRegionCount","type":"object"},"AtlasSearch":{"additionalProperties":true,"description":"AT-02's answer. Two keys come only when asked (job 3-1102-0639-9848), absent otherwise, so an older search answers as before:\nwhere_continent: with where a continent key (europe, north-america, south-america, oceania, asia, africa), that key; the places\nare those in its countries. two_seasons: true for a two season search (doing holds mountain-biking and skiing): the places good\nfor riding and for skiing in the chosen months, one card each (the activity in season, best before good, else mountain biking),\neach card with seasons {mountain-biking: [12 calendar words], skiing: [12]}; activity is mountain-biking, total the places kept,\nbest in the months first, then good, then by fit.","properties":{"activity":{"title":"Activity","type":"string"},"counts":{"anyOf":[{"$ref":"#/components/schemas/MonthCounts"},{"type":"null"}],"description":"With a month: how many matches are best, good and low that month, before the cut (15.2); null without a month"},"facets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"What the search applied (1.2.1): {style: [style keys], up: [modes], ebike: [rules]}","title":"Facets"},"items":{"description":"Each card also carries typical_day (TypicalDay), in the place's own currency; price stays as stored (EUR), what cheapest and the day budget compare","items":{"$ref":"#/components/schemas/PlaceCard"},"title":"Items","type":"array"},"month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Month"},"near":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"With where=near: {from: [the IATA codes asked], home: [{iata, name, city, lat, lng} the atlas knows], fly_max_h}; items then carry travel","title":"Near"},"saved":{"description":"Places asked by slug that are not live for the activity: {slug, state: not_live}","items":{"additionalProperties":true,"type":"object"},"title":"Saved","type":"array"},"south_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Of total, the places south of the equator (R4Home: the home's summer down south band); the total of the same search with south=1","title":"South Total"},"style_fit":{"anyOf":[{"$ref":"#/components/schemas/StyleFit"},{"type":"null"}],"description":"With mountain biking styles in doing (job F4): the places are those tagged with a picked style or whose fit for it is at least min_fit, ranked by the first style's fit; total counts them. Null otherwise"},"total":{"description":"Places matching before the fit's exclusions and the limit (with style_fit: the places kept)","title":"Total","type":"integer"}},"required":["activity","month","items","total","saved"],"title":"AtlasSearch","type":"object"},"AtlasSitemap":{"additionalProperties":true,"properties":{"best":{"description":"The month pages with at least one place at its best or good","items":{"$ref":"#/components/schemas/SitemapMonth"},"title":"Best","type":"array"},"blueprints":{"description":"Live trip blueprints, by slug","items":{"$ref":"#/components/schemas/SitemapBlueprint"},"title":"Blueprints","type":"array"},"places":{"description":"One per live place and live activity, by slug then the activity's position","items":{"$ref":"#/components/schemas/SitemapPlace"},"title":"Places","type":"array"},"regions":{"description":"Live countries and regions holding a live place, by path","items":{"$ref":"#/components/schemas/SitemapRegion"},"title":"Regions","type":"array"}},"required":["places","regions","best","blueprints"],"title":"AtlasSitemap","type":"object"},"AtlasSitemapImage":{"additionalProperties":true,"properties":{"height":{"description":"Height in pixels","title":"Height","type":"integer"},"url":{"description":"The photo's https address","title":"Url","type":"string"},"width":{"description":"Width in pixels","title":"Width","type":"integer"}},"required":["url","width","height"],"title":"AtlasSitemapImage","type":"object"},"AtlasSkiMap":{"additionalProperties":true,"description":"AT-26 (job SK0): the place's OpenSkiMap runs (longest first, at most 2000 lines and 150000 positions) and lifts (at most 300)\nas lines, then its shops as points.","properties":{"attribution":{"description":"\"© OpenSkiMap.org, © OpenStreetMap contributors (ODbL)\"","title":"Attribution","type":"string"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"description":"west, south, east, north of the place, for the first view","title":"Bbox"},"features":{"items":{"$ref":"#/components/schemas/SkiMapFeature"},"title":"Features","type":"array"},"openskimap_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"https://openskimap.org/?obj=<first ski area id>, else null","title":"Openskimap Url"},"type":{"const":"FeatureCollection","title":"Type","type":"string"}},"required":["type","attribution","features"],"title":"AtlasSkiMap","type":"object"},"AtlasSkiTile":{"additionalProperties":true,"description":"AT-30 (job SKIMAP2): one tile's runs (longest first, at most 2500 lines and 100000 positions), lifts (at most 600) and the\nnames of the live places they belong to (at most 60).","properties":{"attribution":{"description":"\"© OpenSkiMap.org, © OpenStreetMap contributors (ODbL)\"","title":"Attribution","type":"string"},"bbox":{"description":"west, south, east, north of the tile","items":{"type":"number"},"title":"Bbox","type":"array"},"features":{"items":{"$ref":"#/components/schemas/SkiTileFeature"},"title":"Features","type":"array"},"tile":{"description":"z, x, y","items":{"type":"integer"},"title":"Tile","type":"array"},"type":{"const":"FeatureCollection","title":"Type","type":"string"}},"required":["type","tile","bbox","attribution","features"],"title":"AtlasSkiTile","type":"object"},"AtlasSource":{"additionalProperties":true,"properties":{"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The line a page that shows this source's data must carry","title":"Attribution"},"key":{"description":"The source key, \"osm\" first","title":"Key","type":"string"},"licence":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The licence, for example \"ODbL-1.0\"","title":"Licence"},"licence_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence Url"},"name":{"title":"Name","type":"string"},"share_alike":{"default":false,"description":"True when a derived database must be shared under the same licence","title":"Share Alike","type":"boolean"}},"required":["key","name"],"title":"AtlasSource","type":"object"},"AtlasTerms":{"additionalProperties":true,"properties":{"cancellation":{"items":{"$ref":"#/components/schemas/AtlasCancellationStep"},"title":"Cancellation","type":"array"},"deposit_min":{"anyOf":[{"$ref":"#/components/schemas/AtlasFreeMoney"},{"type":"null"}],"description":"The least paid when booking"},"deposit_percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Paid when booking, in percent","title":"Deposit Percent"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"pay":{"description":"How the shop takes payment","items":{"type":"string"},"title":"Pay","type":"array"},"security_deposit":{"anyOf":[{"$ref":"#/components/schemas/AtlasFreeMoney"},{"type":"null"}],"description":"Held while the bikes are out"}},"title":"AtlasTerms","type":"object"},"AtlasTrailMap":{"additionalProperties":true,"description":"AT-23 (job TR): the place's OpenStreetMap trails and lifts as lines and its shops as points, at most 200 shops, 200 lifts and 1500 trails within 120000 positions.","properties":{"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"description":"west, south, east, north of the place, for the first view","title":"Bbox"},"features":{"items":{"$ref":"#/components/schemas/TrailMapFeature"},"title":"Features","type":"array"},"type":{"const":"FeatureCollection","title":"Type","type":"string"}},"required":["type","features"],"title":"AtlasTrailMap","type":"object"},"AtlasWhere":{"additionalProperties":true,"properties":{"children":{"items":{"additionalProperties":true,"type":"object"},"title":"Children","type":"array"},"credits":{"items":{"additionalProperties":true,"type":"object"},"title":"Credits","type":"array"},"items":{"items":{"$ref":"#/components/schemas/PlaceCard"},"title":"Items","type":"array"},"region":{"additionalProperties":true,"title":"Region","type":"object"},"total":{"title":"Total","type":"integer"}},"required":["region","children","items","total","credits"],"title":"AtlasWhere","type":"object"},"BackInService":{"additionalProperties":false,"properties":{"block_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Block Id"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version"],"title":"BackInService","type":"object"},"BarcodesSave":{"additionalProperties":false,"properties":{"barcodes":{"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":50,"title":"Barcodes","type":"array"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version","barcodes"],"title":"BarcodesSave","type":"object"},"BasketRefundBrief":{"additionalProperties":true,"description":"B7's ``basket_refund``: the booking's share of a basket payment given back with the cancel.","properties":{"amount_minor":{"anyOf":[{"description":"Minor units of the basket's currency","maximum":9999999999.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Null when the amount was not known before it failed","title":"Amount Minor"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"refund_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Null when no refund could be started (payments off here)","title":"Refund Id"},"state":{"description":"failed: the cancel stands; press Refund on the booking to try again","enum":["done","pending","failed"],"title":"State","type":"string"}},"required":["state"],"title":"BasketRefundBrief","type":"object"},"BikeBelowCostInsight":{"additionalProperties":true,"properties":{"count":{"description":"Items whose advice is sell_autumn: they earned less than they cost to keep this season","title":"Count","type":"integer"},"kind":{"const":"bike_below_cost","title":"Kind","type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"sells_for_minor":{"title":"Sells For Minor","type":"integer"}},"required":["kind","count","sells_for_minor"],"title":"BikeBelowCostInsight","type":"object"},"BikeReview":{"additionalProperties":true,"description":"What changed on the bike, the work done grouped, the cost to the bike and the looks still open.","properties":{"changes":{"default":[],"items":{"$ref":"#/components/schemas/BikeReviewChange"},"title":"Changes","type":"array"},"cost_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The cost to the bike: parts at cost, consumables and time","title":"Cost Minor"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"hour_cost_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hour Cost Minor"},"item":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewItem"},{"type":"null"}]},"job":{"$ref":"#/components/schemas/BikeReviewJob"},"looks":{"default":[],"items":{"$ref":"#/components/schemas/BikeReviewLook"},"title":"Looks","type":"array"},"work":{"default":[],"items":{"$ref":"#/components/schemas/BikeReviewWork"},"title":"Work","type":"array"}},"required":["job"],"title":"BikeReview","type":"object"},"BikeReviewChange":{"additionalProperties":true,"properties":{"component":{"$ref":"#/components/schemas/BikeReviewComponent"},"id":{"title":"Id","type":"string"},"off":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewSide"},{"type":"null"}]},"off_goes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Off Goes"},"on":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewSide"},{"type":"null"}]},"sub_part":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sub Part"}},"required":["id","component"],"title":"BikeReviewChange","type":"object"},"BikeReviewComponent":{"additionalProperties":true,"properties":{"area":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Area"},"key":{"title":"Key","type":"string"},"label":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Label"}},"required":["key"],"title":"BikeReviewComponent","type":"object"},"BikeReviewItem":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"key":{"title":"Key","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"required":["key"],"title":"BikeReviewItem","type":"object"},"BikeReviewJob":{"additionalProperties":true,"properties":{"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"key":{"title":"Key","type":"string"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"location":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewNamed"},{"type":"null"}]},"mechanic":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewNamed"},{"type":"null"}]},"minutes_source":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"timer or typed","title":"Minutes Source"},"reason":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Reason"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"type":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The shop's job type: key, label, tone","title":"Type"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"worked_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Worked Minutes"}},"required":["key"],"title":"BikeReviewJob","type":"object"},"BikeReviewLook":{"additionalProperties":true,"description":"A scan the desk still has to settle: a substitute, or a part that fits no component of the bike.","properties":{"by":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewNamed"},{"type":"null"}]},"component":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewComponent"},{"type":"null"}]},"fits":{"default":[],"description":"A scan with no component: the bike's components it fits, likeliest first","items":{"additionalProperties":true,"type":"object"},"title":"Fits","type":"array"},"kind":{"enum":["substitute","no_component"],"title":"Kind","type":"string"},"line_id":{"format":"uuid","title":"Line Id","type":"string"},"note":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Note"},"part":{"additionalProperties":true,"description":"label, short (its name on a button), product_key","title":"Part","type":"object"},"scanned_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scanned At"},"usual":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"A substitute: the part the spec has there","title":"Usual"},"words":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Words"}},"required":["line_id","kind","part"],"title":"BikeReviewLook","type":"object"},"BikeReviewNamed":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"title":"BikeReviewNamed","type":"object"},"BikeReviewSide":{"additionalProperties":true,"description":"One part on either side of a change; ``lasted_days`` and ``why`` only on the part that came off.","properties":{"label":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Label"},"lasted_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lasted Days"},"product_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Key"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial"},"why":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Why"}},"title":"BikeReviewSide","type":"object"},"BikeReviewWork":{"additionalProperties":true,"description":"One row of the work done: a service (at its list price, not charged on our bike), a part fitted, a part used, or time.","properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"component":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewComponent"},{"type":"null"}]},"cost_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"},"group":{"enum":["service","fitted","used","time"],"title":"Group","type":"string"},"id":{"title":"Id","type":"string"},"label":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Label"},"list_price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"List Price Minor"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes"},"paused_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paused Minutes"},"person":{"anyOf":[{"$ref":"#/components/schemas/BikeReviewNamed"},{"type":"null"}]},"quantity":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"string"},{"type":"null"}],"title":"Quantity"},"replaces":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"label, lasted_days, spec (true when it was the spec part)","title":"Replaces"},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shelf"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"required":["id","group"],"title":"BikeReviewWork","type":"object"},"BindingCheckRecord":{"additionalProperties":false,"properties":{"asset_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Asset Id"},"booking_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Booking Id"},"boot_sole_length_mm":{"anyOf":[{"maximum":400.0,"minimum":150.0,"type":"integer"},{"type":"null"}],"title":"Boot Sole Length Mm"},"customer_equipment_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Customer Equipment Id"},"din_setting":{"anyOf":[{"maximum":12.0,"minimum":0.75,"type":"number"},{"type":"null"}],"title":"Din Setting"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"job_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Job Id"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"release_heel":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Release Heel"},"release_toe":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Release Toe"},"result":{"default":"pass","enum":["pass","adjusted","fail"],"title":"Result","type":"string"},"rider_no":{"anyOf":[{"maximum":40.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Rider No"}},"required":["idempotency_key"],"title":"BindingCheckRecord","type":"object"},"BindingResult":{"additionalProperties":false,"properties":{"boot_sole_length_mm":{"anyOf":[{"maximum":400.0,"minimum":150.0,"type":"integer"},{"type":"null"}],"title":"Boot Sole Length Mm"},"din_setting":{"anyOf":[{"maximum":12.0,"minimum":0.75,"type":"number"},{"type":"null"}],"title":"Din Setting"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"release_heel":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Release Heel"},"release_toe":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Release Toe"},"result":{"default":"pass","enum":["pass","adjusted","fail"],"title":"Result","type":"string"}},"title":"BindingResult","type":"object"},"Block":{"additionalProperties":false,"properties":{"from":{"format":"date-time","title":"From","type":"string"},"until":{"format":"date-time","title":"Until","type":"string"}},"required":["from","until"],"title":"Block","type":"object"},"Blocked":{"additionalProperties":true,"description":"HTTP 409 with these blockers: an action refused because of other records (CONTRACTS.md 1.9).","properties":{"action":{"title":"Action","type":"string"},"blockers":{"items":{"$ref":"#/components/schemas/Blocker"},"title":"Blockers","type":"array"},"blockers_total":{"title":"Blockers Total","type":"integer"},"error":{"const":"blocked","title":"Error","type":"string"}},"required":["error","action","blockers","blockers_total"],"title":"Blocked","type":"object"},"Blocker":{"additionalProperties":true,"properties":{"entity_type":{"title":"Entity Type","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"reason":{"title":"Reason","type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"required":["entity_type","id","reason"],"title":"Blocker","type":"object"},"BlueprintLeg":{"additionalProperties":true,"properties":{"card":{"$ref":"#/components/schemas/PlaceCard"},"max_nights":{"title":"Max Nights","type":"integer"},"min_nights":{"title":"Min Nights","type":"integer"},"position":{"title":"Position","type":"integer"},"transfer_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transfer Minutes"},"transfer_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Mode"}},"required":["position","min_nights","max_nights","card"],"title":"BlueprintLeg","type":"object"},"BookingCharge":{"properties":{"amount_minor":{"description":"Negative on a row that takes a shop item off again","title":"Amount Minor","type":"integer"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["damage","late","other"],"title":"Kind","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The shop item (stock product) this charge sold","title":"Product Id"},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"How many of the shop item","title":"Quantity"},"removed":{"default":false,"description":"This shop item was taken off again and is back in stock","title":"Removed","type":"boolean"},"reverses_charge_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The shop item charge this row takes off again","title":"Reverses Charge Id"}},"required":["id","kind","amount_minor","note","created_at","created_by_name"],"title":"BookingCharge","type":"object"},"BookingCompanyRef":{"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"}},"required":["id","name"],"title":"BookingCompanyRef","type":"object"},"BookingCustomer":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"id":{"format":"uuid","title":"Id","type":"string"},"locale":{"anyOf":[{"enum":["en","it"],"type":"string"},{"type":"null"}],"title":"Locale"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null without people:read","title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"required":["id","name","phone","email","locale"],"title":"BookingCustomer","type":"object"},"BookingDetail":{"properties":{"basket_refund":{"anyOf":[{"$ref":"#/components/schemas/BasketRefundBrief"},{"type":"null"}],"description":"The basket share given back with the cancel; null when the booking was not paid through a basket, nothing was given back, or on a replayed cancel"},"came_from":{"anyOf":[{"enum":["chatgpt","claude","google_ttd","atlas","store","network","viator","getyourguide","bokun","klook","kkday","civitatis","headout","tiqets","musement","octo_other","bikesbooking","listnride","getmyboat","clickandboat","samboat","checkyeti","ical_other","skiset","skimium","intersport_rent","ski_republic","alpy","sport2000_rent"],"type":"string"},{"type":"null"}],"description":"Who sent the guest: for an online booking chatgpt (the ChatGPT app's booking link), google_ttd (Google Things to Do) atlas (the riding atlas's Book link) or store (a store product page's link); for a channel booking the channel's provider (viator, bokun, octo_other...); null for any other booking, and for a desk booking always","title":"Came From"},"cancel_reason":{"anyOf":[{"enum":["customer_cancelled","did_not_come","other"],"type":"string"},{"type":"null"}],"title":"Cancel Reason"},"cancellation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"After a cancel, with booking_money: what is given back and what the shop keeps","title":"Cancellation"},"channel_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"DIST-DESK: a channel booking's own reference at the channel (the number on the guest's Viator or GetYourGuide voucher; channel_booking_references.external_reference, else its external_uuid; GetYourGuide's ':' or '~' plus 12 hex tail is cut, other channels cut at the first '~'); null for any booking that did not come from a channel. B3 search finds the booking by it","title":"Channel Reference"},"charges":{"description":"Empty without booking_money:read","items":{"$ref":"#/components/schemas/BookingCharge"},"title":"Charges","type":"array"},"company":{"anyOf":[{"$ref":"#/components/schemas/BookingCompanyRef"},{"type":"null"}],"description":"Who the booking came through (a guide, group operator or partner company); null when nobody"},"company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Company Id"},"confirmed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Null while the booking is a request","title":"Confirmed At"},"currency":{"pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"customer":{"$ref":"#/components/schemas/BookingCustomer"},"days":{"title":"Days","type":"integer"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The booking's window: until (the return time, or the last day at the shop's return hour)","title":"Ends At"},"events":{"items":{"$ref":"#/components/schemas/BookingEvent-Output"},"title":"Events","type":"array"},"first_day":{"format":"date","title":"First Day","type":"string"},"guest_answers":{"description":"The guest's answers to the per booking questions, with the question as asked; [] without people:read, and under an API key without the Customer contact details tick","items":{"$ref":"#/components/schemas/StoredAnswer"},"title":"Guest Answers","type":"array"},"hold_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the hold runs (or ran) out","title":"Hold Until"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"anyOf":[{"enum":["rental","tour","shuttle","workshop","other"],"type":"string"},{"type":"null"}],"title":"Kind"},"last_day":{"format":"date","title":"Last Day","type":"string"},"latest":{"description":"The 3 newest events, newest first, shaped as events","items":{"$ref":"#/components/schemas/BookingEvent-Output"},"title":"Latest","type":"array"},"lines":{"items":{"$ref":"#/components/schemas/BookingLine"},"title":"Lines","type":"array"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"missing_count":{"default":0,"description":"Riders whose details are still incomplete","title":"Missing Count","type":"integer"},"money":{"anyOf":[{"$ref":"#/components/schemas/BookingMoneySplit"},{"type":"null"}],"description":"Null without booking_money:read"},"needs_person":{"description":"Why a person must look at it; Mark as checked clears these","items":{"$ref":"#/components/schemas/NeedsPerson"},"title":"Needs Person","type":"array"},"next_action":{"anyOf":[{"enum":["send_details_link","ask_names","take_payment_and_hand_over","hand_over","check_back_in","none"],"type":"string"},{"type":"null"}],"description":"The one primary button: send_details_link, ask_names, take_payment_and_hand_over, hand_over, check_back_in, or none","title":"Next Action"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"pay_at_shop":{"default":false,"title":"Pay At Shop","type":"boolean"},"payments":{"description":"Empty without booking_money:read","items":{"$ref":"#/components/schemas/BookingPayment"},"title":"Payments","type":"array"},"pickup_at":{"format":"date-time","title":"Pickup At","type":"string"},"pickup_booked":{"default":false,"description":"True when pickup_at is a booked time, false when it is the shop's pick-up window","title":"Pickup Booked","type":"boolean"},"progress":{"description":"The line of steps, in order; only the steps this booking has. A cancelled booking ends with cancelled","items":{"$ref":"#/components/schemas/ProgressStep"},"title":"Progress","type":"array"},"reference":{"title":"Reference","type":"string"},"return_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The return time the desk chose; null when the booking is in whole days","title":"Return At"},"return_by_at":{"format":"date-time","title":"Return By At","type":"string"},"riders":{"items":{"$ref":"#/components/schemas/BookingRider"},"title":"Riders","type":"array"},"riders_count":{"default":0,"title":"Riders Count","type":"integer"},"seat_lines":{"description":"Tours, shuttles and transfers on the booking, by line; [] when none. `lines` holds the rented lines only. A change (B6) keeps these lines, their seats and their money","items":{"$ref":"#/components/schemas/BookingSeatLine"},"title":"Seat Lines","type":"array"},"source":{"enum":["desk","online","channel"],"title":"Source","type":"string"},"stage":{"enum":["request","lapsed","waiting_payment","not_finished","needs_you","booked","not_collected","out","late","back","cancelled"],"title":"Stage","type":"string"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The booking's window: from","title":"Starts At"},"terms":{"anyOf":[{"$ref":"#/components/schemas/BookingTerms"},{"type":"null"}]},"version":{"title":"Version","type":"integer"},"what":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"One line for a table, for example \"2 Adult ski set, 1 Sunset tour\""}},"required":["id","reference","version","stage","source","customer","first_day","days","last_day","pickup_at","return_by_at","currency","lines","riders","note","terms","events"],"title":"BookingDetail","type":"object"},"BookingEvent-Output":{"properties":{"actor_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who did it: the same id as the shop context's actor.id; null for a guest, a job, or when names may not be read","title":"Actor Id"},"actor_kind":{"default":"system","description":"A staff member, the guest, or the system","enum":["staff","guest","system"],"title":"Actor Kind","type":"string"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"at":{"format":"date-time","title":"At","type":"string"},"data":{"additionalProperties":true,"title":"Data","type":"object"},"kind":{"title":"Kind","type":"string"}},"required":["at","kind","actor_name"],"title":"BookingEvent","type":"object"},"BookingGroup":{"additionalProperties":false,"properties":{"cancellation_policy":{"anyOf":[{"enum":["free_24h","free_72h","custom","none"],"type":"string"},{"type":"null"}],"title":"Cancellation Policy"},"cancellation_tiers":{"items":{"$ref":"#/components/schemas/CancellationTier"},"maxItems":8,"title":"Cancellation Tiers","type":"array"},"confirm_within_hours":{"anyOf":[{"maximum":72.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Confirm Within Hours"},"confirmation_mode":{"enum":["instant","on_request"],"title":"Confirmation Mode","type":"string"},"last_booking":{"anyOf":[{"discriminator":{"mapping":{"day_before_at":"#/components/schemas/DayBeforeAt","minutes_before":"#/components/schemas/MinutesBefore"},"propertyName":"kind"},"oneOf":[{"$ref":"#/components/schemas/MinutesBefore"},{"$ref":"#/components/schemas/DayBeforeAt"}]},{"type":"null"}],"title":"Last Booking"},"weather_rule":{"enum":["new_date_or_refund","refund","new_date","none"],"title":"Weather Rule","type":"string"}},"title":"BookingGroup","type":"object"},"BookingLine":{"properties":{"kit":{"default":false,"description":"C-01: the line is kit (a helmet, pads, a lock): it rides on top of a rider's own line rather than being someone's line","title":"Kit","type":"boolean"},"kit_riders":{"description":"C-01: the riders who hold this line's items on top of their own line, in unit order (the units no riding rider takes); [] when none","items":{"maximum":40.0,"minimum":1.0,"type":"integer"},"maxItems":40,"title":"Kit Riders","type":"array"},"line":{"title":"Line","type":"integer"},"option_id":{"format":"uuid","title":"Option Id","type":"string"},"product":{"$ref":"#/components/schemas/Words-Output"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"quantity":{"title":"Quantity","type":"integer"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size"},"total_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null without booking_money:read","title":"Total Minor"},"unit_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null without booking_money:read","title":"Unit Minor"},"units":{"items":{"$ref":"#/components/schemas/BookingUnit"},"title":"Units","type":"array"}},"required":["line","product_id","option_id","product","size","quantity","units"],"title":"BookingLine","type":"object"},"BookingList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BookingRow"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"BookingList","type":"object"},"BookingMoney":{"properties":{"due_minor":{"description":"Total minus paid; below 0 means money to give back","title":"Due Minor","type":"integer"},"paid_minor":{"description":"Paid payments minus refunds","title":"Paid Minor","type":"integer"},"status":{"enum":["not_paid","deposit_paid","part_paid","paid","to_give_back","none"],"title":"Status","type":"string"},"total_minor":{"description":"Line totals plus charges","title":"Total Minor","type":"integer"}},"required":["total_minor","paid_minor","due_minor","status"],"title":"BookingMoney","type":"object"},"BookingMoneySplit":{"description":"The money of a staff booking: the same four numbers, and what each business of the booking is owed and has been paid.","properties":{"by_company":{"description":"What each business of the booking is owed, and has been paid","items":{"$ref":"#/components/schemas/CompanyMoney"},"title":"By Company","type":"array"},"due_minor":{"description":"Total minus paid; below 0 means money to give back","title":"Due Minor","type":"integer"},"paid_minor":{"description":"Paid payments minus refunds","title":"Paid Minor","type":"integer"},"status":{"enum":["not_paid","deposit_paid","part_paid","paid","to_give_back","none"],"title":"Status","type":"string"},"total_minor":{"description":"Line totals plus charges","title":"Total Minor","type":"integer"}},"required":["total_minor","paid_minor","due_minor","status"],"title":"BookingMoneySplit","type":"object"},"BookingOrigin":{"additionalProperties":false,"description":"Where an online booking came from: the store product whose Rent this the guest pressed.","properties":{"id":{"description":"The store product's id","format":"uuid","title":"Id","type":"string"},"kind":{"const":"store_product","title":"Kind","type":"string"}},"required":["kind","id"],"title":"BookingOrigin","type":"object"},"BookingPayment":{"properties":{"amount_minor":{"title":"Amount Minor","type":"integer"},"from_deposit":{"default":false,"description":"D11: kept from a security deposit (closed with Keep part, a Settle part from it, or a card hold captured); by the payment's own links, never its note","title":"From Deposit","type":"boolean"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["payment","refund"],"title":"Kind","type":"string"},"method":{"enum":["cash","card_terminal","bank_transfer","online_test","payment_link","channel"],"title":"Method","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"recorded_at":{"format":"date-time","title":"Recorded At","type":"string"},"recorded_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded By Name"},"state":{"enum":["pending","paid","failed","expired"],"title":"State","type":"string"}},"required":["id","kind","method","amount_minor","state","recorded_at","recorded_by_name","note"],"title":"BookingPayment","type":"object"},"BookingRequestBooked":{"additionalProperties":false,"description":"ASK-06: the booking made from the request, a booking of the same shop.","properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"expected_version":{"anyOf":[{"description":"The version you read","minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"}},"required":["booking_id"],"title":"BookingRequestBooked","type":"object"},"BookingRequestCreate":{"additionalProperties":false,"description":"ASK-01: what the guest wants. ``website`` is a trap for robots: a person never sees it, so anything in it writes nothing.","properties":{"bike_product_ids":{"anyOf":[{"description":"Rental products the guest liked; others are dropped","items":{"format":"uuid","type":"string"},"maxItems":12,"type":"array"},{"type":"null"}],"title":"Bike Product Ids"},"email":{"format":"email","maxLength":254,"title":"Email","type":"string"},"first_day":{"format":"date","title":"First Day","type":"string"},"language":{"enum":["en","it","de","fr"],"title":"Language","type":"string"},"last_day":{"description":"On or after first_day, at most 60 days after it","format":"date","title":"Last Day","type":"string"},"name":{"maxLength":120,"minLength":1,"pattern":"^[^\\x00-\\x1f\\x7f]*$","title":"Name","type":"string"},"note":{"anyOf":[{"maxLength":2000,"pattern":"^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]*$","type":"string"},{"type":"null"}],"title":"Note"},"phone":{"anyOf":[{"description":"E.164, for example +41793106078","pattern":"^\\+[1-9]\\d{6,14}$","type":"string"},{"type":"null"}],"title":"Phone"},"riders":{"maximum":50.0,"minimum":1.0,"title":"Riders","type":"integer"},"tour":{"anyOf":[{"$ref":"#/components/schemas/TourWish"},{"type":"null"}]},"wants":{"description":"At least one, each once","items":{"enum":["rent","tour","shuttle"],"type":"string"},"maxItems":3,"minItems":1,"title":"Wants","type":"array"},"website":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"description":"Leave empty","title":"Website"}},"required":["name","email","language","wants","first_day","last_day","riders"],"title":"BookingRequestCreate","type":"object"},"BookingRequestPatch":{"additionalProperties":false,"description":"ASK-04: move the request on by hand (``booked`` comes only from ASK-06) or correct what the guest asked, in every state.\n\nEvery field but ``expected_version`` is optional and at least one is sent. A field left out keeps its stored value; an explicit\nnull clears ``phone``, ``tour`` and ``note`` (the route sends only the fields given, ``exclude_unset``). ``tour`` replaces the\ntour asked whole. When only one of ``first_day`` and ``last_day`` is sent, the stored other end counts.","properties":{"bike_product_ids":{"anyOf":[{"description":"Rental products of the shop; others are dropped","items":{"format":"uuid","type":"string"},"maxItems":12,"type":"array"},{"type":"null"}],"title":"Bike Product Ids"},"email":{"anyOf":[{"format":"email","maxLength":254,"type":"string"},{"type":"null"}],"title":"Email"},"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"first_day":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"First Day"},"language":{"anyOf":[{"enum":["en","it","de","fr"],"type":"string"},{"type":"null"}],"title":"Language"},"last_day":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Last Day"},"name":{"anyOf":[{"maxLength":120,"minLength":1,"pattern":"^[^\\x00-\\x1f\\x7f]*$","type":"string"},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"maxLength":2000,"pattern":"^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]*$","type":"string"},{"type":"null"}],"description":"Null clears it","title":"Note"},"phone":{"anyOf":[{"description":"E.164; null clears it","pattern":"^\\+[1-9]\\d{6,14}$","type":"string"},{"type":"null"}],"title":"Phone"},"riders":{"anyOf":[{"maximum":50.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Riders"},"state":{"anyOf":[{"enum":["new","answered","closed"],"type":"string"},{"type":"null"}],"title":"State"},"tour":{"anyOf":[{"$ref":"#/components/schemas/TourWish"},{"type":"null"}],"description":"Replaces the tour asked; null clears it"},"wants":{"anyOf":[{"description":"At least one, each once","items":{"enum":["rent","tour","shuttle"],"type":"string"},"maxItems":3,"minItems":1,"type":"array"},{"type":"null"}],"title":"Wants"}},"required":["expected_version"],"title":"BookingRequestPatch","type":"object"},"BookingRequestReply":{"additionalProperties":false,"description":"ASK-05: an email to the guest (reply-to the shop's booking address); a new request becomes answered.","properties":{"body":{"maxLength":10000,"minLength":1,"pattern":"^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]*$","title":"Body","type":"string"},"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"subject":{"maxLength":200,"minLength":1,"pattern":"^[^\\x00-\\x1f\\x7f]*$","title":"Subject","type":"string"}},"required":["expected_version","subject","body"],"title":"BookingRequestReply","type":"object"},"BookingRequestSent":{"additionalProperties":true,"properties":{"ref":{"description":"The request's ref, \"R-0042\"","title":"Ref","type":"string"}},"required":["ref"],"title":"BookingRequestSent","type":"object"},"BookingRequestWritten":{"additionalProperties":true,"properties":{"booking":{"anyOf":[{"$ref":"#/components/schemas/LinkedBooking"},{"type":"null"}]},"ref":{"title":"Ref","type":"string"},"replayed":{"title":"Replayed","type":"boolean"},"state":{"enum":["new","answered","booked","closed"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["ref","version","state","booking","replayed"],"title":"BookingRequestWritten","type":"object"},"BookingRider":{"properties":{"along":{"default":false,"description":"R3-flow: a member of the group on no line of their own (own bike on a trip of rentals, or only coming along); ``line`` is then the booking's first line","title":"Along","type":"boolean"},"answers":{"description":"The rider's answers to the shop's own booking questions, with the question as asked; [] without people:read, and under an API key without the Customer contact details tick","items":{"$ref":"#/components/schemas/StoredAnswer"},"title":"Answers","type":"array"},"binding_setting":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"title":"Binding Setting"},"birth_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birth Year"},"contact_via":{"default":"booker","description":"Who the shop writes to about this rider: the booker, or the rider","enum":["booker","own"],"title":"Contact Via","type":"string"},"details_complete":{"default":false,"description":"Named, and sized (height, weight, shoe) on a rented line","title":"Details Complete","type":"boolean"},"fit":{"anyOf":[{"enum":["fits","too_small","too_big","needs_height","needs_weight","needs_sizes","not_renting"],"type":"string"},{"type":"null"}],"description":"Whether the held unit fits: fits, too_small, too_big; or what is missing to tell: needs_height, needs_weight, needs_sizes; not_renting for a rider who rents nothing","title":"Fit"},"height_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height Cm"},"latest_fit":{"anyOf":[{"$ref":"#/components/schemas/LatestFit"},{"type":"null"}],"description":"The record's newest value of each measure; null without people:read, a link or any measure"},"level":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"title":"Level"},"line":{"title":"Line","type":"integer"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"own_bike":{"default":false,"description":"E2: the rider brings their own bike (the guest said so when booking)","title":"Own Bike","type":"boolean"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The customer record this rider is (G-RIDER)","title":"Person Id"},"rider_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The family rider of that customer, when it is one","title":"Rider Id"},"rider_no":{"title":"Rider No","type":"integer"},"setup":{"anyOf":[{"$ref":"#/components/schemas/RiderSetup"},{"type":"null"}],"description":"Brakes, pedals and helmet size; null when nothing is said"},"shoe_eu":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"title":"Shoe Eu"},"stance":{"anyOf":[{"enum":["regular","goofy","unsure"],"type":"string"},{"type":"null"}],"description":"Regular, goofy or unsure; only ever set on a snowboard line","title":"Stance"},"unit":{"anyOf":[{"$ref":"#/components/schemas/RiderUnit"},{"type":"null"}],"description":"The unit held for the rider; null while no unit is set aside"},"unit_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Number"},"waiver":{"anyOf":[{"enum":["signed","parent_signs","not_signed","not_needed"],"type":"string"},{"type":"null"}],"description":"signed, parent_signs (a minor's parent still signs), not_signed, not_needed","title":"Waiver"},"weight_kg":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weight Kg"}},"required":["rider_no","line","unit_number","name","height_cm","weight_kg","shoe_eu","level","binding_setting","note"],"title":"BookingRider","type":"object"},"BookingRow":{"properties":{"currency":{"pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null without people:read","title":"Customer Name"},"days":{"title":"Days","type":"integer"},"first_day":{"format":"date","title":"First Day","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"lines_label":{"$ref":"#/components/schemas/Words-Output","description":"For example \"2 adult ski sets, 1 kids ski set\""},"money_status":{"anyOf":[{"enum":["not_paid","deposit_paid","part_paid","paid","to_give_back","none"],"type":"string"},{"type":"null"}],"description":"Null without booking_money:read","title":"Money Status"},"reference":{"title":"Reference","type":"string"},"source":{"enum":["desk","online","channel"],"title":"Source","type":"string"},"stage":{"enum":["request","lapsed","waiting_payment","not_finished","needs_you","booked","not_collected","out","late","back","cancelled"],"title":"Stage","type":"string"},"total_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null without booking_money:read","title":"Total Minor"}},"required":["id","reference","first_day","days","customer_name","lines_label","stage","currency","source"],"title":"BookingRow","type":"object"},"BookingRulesCreate":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"name":{"maxLength":120,"minLength":1,"title":"Name","type":"string"},"rules":{"$ref":"#/components/schemas/BookingRulesFields"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","type":"string"},{"type":"null"}],"title":"Slug"}},"required":["idempotency_key","name"],"title":"BookingRulesCreate","type":"object"},"BookingRulesDoc":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"is_default":{"title":"Is Default","type":"boolean"},"latest_version":{"title":"Latest Version","type":"integer"},"name":{"title":"Name","type":"string"},"published_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published Version"},"slug":{"title":"Slug","type":"string"},"used_by_products":{"title":"Used By Products","type":"integer"},"version":{"title":"Version","type":"integer"}},"required":["id","slug","name","version","latest_version","published_version","is_default","used_by_products"],"title":"BookingRulesDoc","type":"object"},"BookingRulesDraft":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"name":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"rules":{"$ref":"#/components/schemas/BookingRulesFields"}},"required":["idempotency_key","expected_version"],"title":"BookingRulesDraft","type":"object"},"BookingRulesFields":{"additionalProperties":false,"description":"Every field of PLAN_R2 5.3; only the keys sent are changed.","properties":{"cancellation_windows":{"anyOf":[{"items":{"$ref":"#/components/schemas/CancellationWindow-Input"},"maxItems":8,"type":"array"},{"type":"null"}],"title":"Cancellation Windows"},"change_note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Change Note"},"checkout_questions":{"anyOf":[{"items":{"$ref":"#/components/schemas/CheckoutQuestion"},"maxItems":10,"type":"array"},{"type":"null"}],"title":"Checkout Questions"},"collect":{"anyOf":[{"enum":["online","at_shop","request"],"type":"string"},{"type":"null"}],"title":"Collect"},"confirm_without_paying":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Without Paying"},"damage_hold_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Damage Hold Minor"},"damage_text":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Damage Text"},"deposit_min_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Deposit Min Minor"},"deposit_percent":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Deposit Percent"},"id_at_pickup":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Id At Pickup"},"id_document_types":{"anyOf":[{"items":{"enum":["passport","id_card","driving_licence"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Id Document Types"},"late_fee_per_hour_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Late Fee Per Hour Minor"},"late_grace_minutes":{"anyOf":[{"maximum":1440.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Late Grace Minutes"},"max_advance_days":{"anyOf":[{"maximum":1095.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"deprecated":true,"description":"No longer read; use max_booking_lead_days","title":"Max Advance Days"},"max_booking_lead_days":{"anyOf":[{"maximum":36500.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"How many days ahead a guest can book; null (the default) is no limit","title":"Max Booking Lead Days"},"max_rental_days":{"anyOf":[{"maximum":36500.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Longest booking a guest can make; null (the default) is no limit","title":"Max Rental Days"},"min_notice_minutes":{"anyOf":[{"maximum":525600.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Min Notice Minutes"},"no_show_percent":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"No Show Percent"},"pay_in_full_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pay In Full Allowed"},"rental_lengths":{"anyOf":[{"items":{"$ref":"#/components/schemas/RentalLength"},"maxItems":12,"type":"array"},{"type":"null"}],"description":"Usual rental lengths; null goes back to the presets","title":"Rental Lengths"},"security_deposit_method":{"anyOf":[{"enum":["auto","card_hold","charge"],"type":"string"},{"type":"null"}],"title":"Security Deposit Method"},"security_deposit_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Security Deposit Minor"},"security_hold_max_days":{"anyOf":[{"maximum":30.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Security Hold Max Days"},"terms":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object"},{"type":"null"}],"description":"cancelling, deposit, damage, weather, each {en, it}","title":"Terms"},"vehicle":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Vehicle"},"walk_in_share_percent":{"anyOf":[{"maximum":90.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Walk In Share Percent"}},"title":"BookingRulesFields","type":"object"},"BookingSeatLine":{"description":"A line that sells seats (a tour, shuttle or transfer): no engine reservation and no size, so it is not in ``lines``.","properties":{"departure_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The departure its seats are on, when it has one","title":"Departure Id"},"kind":{"description":"The line's kind","enum":["group_tour","private_tour","shuttle","transfer","lesson"],"title":"Kind","type":"string"},"line":{"title":"Line","type":"integer"},"meeting_point":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the departure meets, by name; null without a departure or a meeting point","title":"Meeting Point"},"product":{"$ref":"#/components/schemas/Words-Output"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"quantity":{"description":"Seats (people) on the line","title":"Quantity","type":"integer"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it starts: the frozen price's start, else its departure's start","title":"Starts At"},"total_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The line's frozen gross; null without booking_money:read","title":"Total Minor"},"unit_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Gross per seat, from the line's frozen price; null without booking_money:read","title":"Unit Minor"}},"required":["line","kind","product_id","product","quantity"],"title":"BookingSeatLine","type":"object"},"BookingTerms":{"properties":{"accepted_at":{"format":"date-time","title":"Accepted At","type":"string"},"accepted_name":{"title":"Accepted Name","type":"string"}},"required":["accepted_name","accepted_at"],"title":"BookingTerms","type":"object"},"BookingUnit":{"properties":{"item_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The fleet item set aside or handed over, when there is one","title":"Item Id"},"item_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"That item's key, for example S-14","title":"Item Key"},"part":{"title":"Part","type":"string"},"resource_id":{"format":"uuid","title":"Resource Id","type":"string"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size"},"state":{"enum":["waiting","out","back","needs_check","damaged"],"title":"State","type":"string"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"unit_number":{"title":"Unit Number","type":"integer"}},"required":["resource_id","unit_number","part","tag","size","state"],"title":"BookingUnit","type":"object"},"BrandSave":{"additionalProperties":false,"properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"name":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"},"used_for":{"anyOf":[{"items":{"enum":["bikes","products"],"type":"string"},"maxItems":2,"minItems":1,"type":"array"},{"type":"null"}],"title":"Used For"},"website":{"anyOf":[{"maxLength":300,"minLength":4,"type":"string"},{"type":"null"}],"title":"Website"}},"required":["idempotency_key"],"title":"BrandSave","type":"object"},"BundleComponentIn":{"additionalProperties":false,"description":"One component; its place in the list is its ``sort`` (the first is the main item: goods, quantity 1).","properties":{"inputs":{"anyOf":[{"enum":["ski_mounting","bike_build"],"type":"string"},{"type":"null"}],"description":"service only: what checkout asks the shopper (ski_mounting: boot sole length, weight, height, age, skier type; bike_build: nothing); null asks nothing","title":"Inputs"},"key":{"description":"Unique in the bundle, for example ski or mounting; the shopper's pick is sent under it","pattern":"^[a-z][a-z0-9_]{1,39}$","title":"Key","type":"string"},"kind":{"description":"product: the shopper picks a variant; variant: one fixed stock row; service: a till service row and the workshop service whose job the order opens","enum":["product","variant","service"],"title":"Kind","type":"string"},"label":{"anyOf":[{"$ref":"#/components/schemas/ShortWordsIn"},{"type":"null"}]},"quantity":{"anyOf":[{"maximum":10.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"1 when absent","title":"Quantity"},"stock_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"variant and service: the stock row","title":"Stock Product Id"},"store_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"product; a variant's may be left out (the row's product)","title":"Store Product Id"},"workshop_service_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"service: the workshop service","title":"Workshop Service Id"}},"required":["key","kind"],"title":"BundleComponentIn","type":"object"},"ByHandBike":{"additionalProperties":false,"properties":{"frame_number":{"anyOf":[{"description":"Trimmed and kept in capitals; unique in the shop","maxLength":60,"type":"string"},{"type":"null"}],"title":"Frame Number"},"number":{"description":"The bike's own number (EB-36); refused when taken","pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Number","type":"string"},"serials":{"anyOf":[{"items":{"$ref":"#/components/schemas/IntakeBikeSerial"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Serials"},"size":{"anyOf":[{"maxLength":20,"minLength":1,"type":"string"},{"type":"null"}],"title":"Size"}},"required":["number"],"title":"ByHandBike","type":"object"},"CancellationTier":{"additionalProperties":false,"properties":{"days_before":{"maximum":365.0,"minimum":0.0,"title":"Days Before","type":"integer"},"refund_percent":{"maximum":100.0,"minimum":0.0,"title":"Refund Percent","type":"integer"}},"required":["days_before","refund_percent"],"title":"CancellationTier","type":"object"},"CancellationWindow-Input":{"additionalProperties":false,"properties":{"hours_before":{"maximum":8760.0,"minimum":0.0,"title":"Hours Before","type":"integer"},"refund_percent":{"maximum":100.0,"minimum":0.0,"title":"Refund Percent","type":"integer"}},"required":["hours_before","refund_percent"],"title":"CancellationWindow","type":"object"},"CardFeeInsight":{"additionalProperties":true,"properties":{"kind":{"const":"card_fee_rate","title":"Kind","type":"string"},"pct":{"description":"Fees as a share of card and online takings, 0 to 100","title":"Pct","type":"number"}},"required":["kind","pct"],"title":"CardFeeInsight","type":"object"},"Cash13":{"additionalProperties":true,"description":"This week and the 12 after, over the companies with a bank figure (A-CASH's helpers).","properties":{"as_of":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"As Of"},"basis":{"enum":["accounts","start","none"],"title":"Basis","type":"string"},"in_minor":{"title":"In Minor","type":"integer"},"lowest_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lowest Minor"},"lowest_week":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Lowest Week"},"now_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Now Minor"},"out_minor":{"title":"Out Minor","type":"integer"},"week_change_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"What this week is expected to add (or take, below 0)","title":"Week Change Minor"},"weeks":{"items":{"$ref":"#/components/schemas/Cash13Week"},"title":"Weeks","type":"array"}},"required":["basis","in_minor","out_minor","weeks"],"title":"Cash13","type":"object"},"Cash13Week":{"additionalProperties":true,"properties":{"bank_end_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bank End Minor"},"in_minor":{"title":"In Minor","type":"integer"},"lowest":{"default":false,"title":"Lowest","type":"boolean"},"out_minor":{"title":"Out Minor","type":"integer"},"week_start":{"format":"date","title":"Week Start","type":"string"}},"required":["week_start","in_minor","out_minor"],"title":"Cash13Week","type":"object"},"CashCompany":{"additionalProperties":true,"properties":{"as_of":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The day of the cash start; null when none is saved","title":"As Of"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"lowest":{"anyOf":[{"$ref":"#/components/schemas/CashMonth"},{"type":"null"}]},"months":{"items":{"$ref":"#/components/schemas/CashMonth"},"title":"Months","type":"array"},"name":{"title":"Name","type":"string"},"start_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Minor"},"version":{"default":0,"description":"The cash start's version, 0 when none is saved (for PUT ~/finance/cash-starts)","title":"Version","type":"integer"}},"required":["legal_entity_id","name","months"],"title":"CashCompany","type":"object"},"CashLowInsight":{"additionalProperties":true,"properties":{"amount_minor":{"title":"Amount Minor","type":"integer"},"kind":{"const":"cash_low","title":"Kind","type":"string"},"month":{"format":"date","title":"Month","type":"string"}},"required":["kind","month","amount_minor"],"title":"CashLowInsight","type":"object"},"CashMonth":{"additionalProperties":true,"properties":{"bank_end_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bank End Minor"},"month":{"format":"date","title":"Month","type":"string"},"planned":{"title":"Planned","type":"boolean"}},"required":["month","planned"],"title":"CashMonth","type":"object"},"CashMovePaymentInsight":{"additionalProperties":true,"properties":{"amount_minor":{"title":"Amount Minor","type":"integer"},"from_on":{"format":"date","title":"From On","type":"string"},"kind":{"const":"cash_move_payment","title":"Kind","type":"string"},"label":{"anyOf":[{"$ref":"#/components/schemas/FinanceWords"},{"type":"null"}]},"lowest_minor":{"title":"Lowest Minor","type":"integer"},"lowest_week":{"format":"date","title":"Lowest Week","type":"string"},"new_lowest_minor":{"description":"The lowest point with the payment moved to to_on","title":"New Lowest Minor","type":"integer"},"ref":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ref"},"to_on":{"format":"date","title":"To On","type":"string"}},"required":["kind","amount_minor","from_on","to_on","lowest_minor","lowest_week","new_lowest_minor"],"title":"CashMovePaymentInsight","type":"object"},"CategorySave":{"additionalProperties":false,"properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"glyph":{"anyOf":[{"pattern":"^[a-z][A-Za-z]{1,39}$","type":"string"},{"type":"null"}],"title":"Glyph"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"name":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"parent_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Parent Id"},"sort":{"anyOf":[{"maximum":100000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sort"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"CategorySave","type":"object"},"ChangeDecided":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["other_hours","day_free","swap","give_away"],"title":"Kind","type":"string"},"messages":{"items":{"additionalProperties":true,"type":"object"},"title":"Messages","type":"array"},"offered":{"default":0,"description":"shift_open_offer emails for the lines a give away opened","title":"Offered","type":"integer"},"published_revision_id":{"format":"uuid","title":"Published Revision Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"state":{"enum":["approved","rejected"],"title":"State","type":"string"},"told":{"title":"Told","type":"integer"},"version":{"title":"Version","type":"integer"},"week_version":{"title":"Week Version","type":"integer"}},"required":["id","version","state","kind","rota_id","week_version","published_revision_id","told"],"title":"ChangeDecided","type":"object"},"ChangeDecisionRequest":{"additionalProperties":false,"properties":{"decision":{"enum":["approve","reject"],"title":"Decision","type":"string"},"expected_version":{"description":"The request's version","minimum":0.0,"title":"Expected Version","type":"integer"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"description":"Not needed to reject","title":"Note"}},"required":["decision","expected_version"],"title":"ChangeDecisionRequest","type":"object"},"ChangeMessage":{"additionalProperties":true,"description":"What one person touched by the change is told (a schedule_week_notices row of kind change and a shift_changed email).","properties":{"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"emailed":{"title":"Emailed","type":"boolean"},"has_login":{"title":"Has Login","type":"boolean"},"name":{"title":"Name","type":"string"},"notice_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Null on a dry run","title":"Notice Id"},"now":{"items":{"$ref":"#/components/schemas/ShiftWords"},"title":"Now","type":"array"},"person_id":{"format":"uuid","title":"Person Id","type":"string"},"short_notice":{"description":"A shift before or after starts within crew_settings.short_notice_hours","title":"Short Notice","type":"boolean"},"was":{"items":{"$ref":"#/components/schemas/ShiftWords"},"title":"Was","type":"array"}},"required":["person_id","name","emailed","has_login","short_notice","was","now"],"title":"ChangeMessage","type":"object"},"ChangePublished":{"additionalProperties":true,"properties":{"changed_lines":{"items":{"format":"uuid","type":"string"},"title":"Changed Lines","type":"array"},"draft_open":{"description":"The week also has a draft; it was not changed","title":"Draft Open","type":"boolean"},"dry_run":{"title":"Dry Run","type":"boolean"},"id":{"description":"The rota","format":"uuid","title":"Id","type":"string"},"messages":{"items":{"$ref":"#/components/schemas/ChangeMessage"},"title":"Messages","type":"array"},"published_revision_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The new published revision; on a dry run the one published now","title":"Published Revision Id"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"superseded_revision_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Superseded Revision Id"},"version":{"title":"Version","type":"integer"}},"required":["id","rota_id","version","dry_run","changed_lines","messages","draft_open"],"title":"ChangePublished","type":"object"},"ChangeRequest":{"additionalProperties":false,"properties":{"changes":{"items":{"$ref":"#/components/schemas/ShiftLineChange"},"maxItems":50,"minItems":1,"title":"Changes","type":"array"},"dry_run":{"default":false,"description":"Answer the messages each person would get; nothing is written","title":"Dry Run","type":"boolean"},"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Note"}},"required":["location_id","expected_version","changes"],"title":"ChangeRequest","type":"object"},"Check":{"additionalProperties":true,"description":"One line of \"Checked before it goes\". ``needed`` and ``room`` are counts (people or bikes) or minutes (driving time).","properties":{"key":{"enum":["seats","bikes","driver_allowed","driving_time"],"title":"Key","type":"string"},"names":{"description":"driver_allowed: the drivers not allowed the trailer, first and last name","items":{"type":"string"},"title":"Names","type":"array"},"needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Needed"},"room":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"seats: seats for passengers (seats less one per driver); bikes: bikes all the departure's vehicles carry; driving_time: the day limit in minutes","title":"Room"},"state":{"description":"ok; fails (the send refuses); not_needed (no bikes on any leg, no trailer); unknown (a number is not recorded, so nothing is checked: no vehicle, a vehicle without seats or bikes, no driving estimate, no driver)","enum":["ok","fails","not_needed","unknown"],"title":"State","type":"string"},"trailer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"driver_allowed: the trailer's number, T-03","title":"Trailer"}},"required":["key","state"],"title":"Check","type":"object"},"CheckInActivity":{"additionalProperties":true,"properties":{"actor_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"at":{"format":"date-time","title":"At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"title":"Kind","type":"string"},"summary":{"additionalProperties":true,"title":"Summary","type":"object"}},"required":["id","at","kind","summary","actor_id","actor_name"],"title":"CheckInActivity","type":"object"},"CheckInActor":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The person behind the login; null when the shop has no name for it","title":"Name"}},"required":["id","name"],"title":"CheckInActor","type":"object"},"CheckInArrivalMark":{"additionalProperties":false,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"rider_no":{"maximum":40.0,"minimum":1.0,"title":"Rider No","type":"integer"},"state":{"anyOf":[{"enum":["arrived","no_show"],"type":"string"},{"type":"null"}],"description":"Null clears the mark","title":"State"}},"required":["booking_id","rider_no","state"],"title":"CheckInArrivalMark","type":"object"},"CheckInArrivals":{"additionalProperties":false,"properties":{"riders":{"items":{"$ref":"#/components/schemas/CheckInArrivalMark"},"maxItems":60,"minItems":1,"title":"Riders","type":"array"}},"required":["riders"],"title":"CheckInArrivals","type":"object"},"CheckInCan":{"additionalProperties":true,"properties":{"contact":{"description":"people:read: phones are shown","title":"Contact","type":"boolean"},"write":{"description":"reservations:write: may mark, tick, send and start","title":"Write","type":"boolean"}},"required":["write","contact"],"title":"CheckInCan","type":"object"},"CheckInCancelled":{"additionalProperties":true,"properties":{"at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"At"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["at","reason"],"title":"CheckInCancelled","type":"object"},"CheckInChecklist":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/CheckInTick"},"maxItems":12,"minItems":1,"title":"Items","type":"array"}},"required":["items"],"title":"CheckInChecklist","type":"object"},"CheckInCounts":{"additionalProperties":true,"properties":{"arrived":{"title":"Arrived","type":"integer"},"no_show":{"title":"No Show","type":"integer"},"riders":{"title":"Riders","type":"integer"},"waiting":{"title":"Waiting","type":"integer"},"waivers_missing":{"description":"Riders who need a waiver, have not signed, nobody signs for and are not a no show","title":"Waivers Missing","type":"integer"}},"required":["riders","arrived","no_show","waiting","waivers_missing"],"title":"CheckInCounts","type":"object"},"CheckInCrewMember":{"additionalProperties":true,"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The person, or the van's name for the vehicle","title":"Name"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"},"role":{"enum":["guide","driver","vehicle"],"title":"Role","type":"string"}},"required":["role","person_id","name"],"title":"CheckInCrewMember","type":"object"},"CheckInDeparture":{"additionalProperties":true,"properties":{"cancelled":{"anyOf":[{"$ref":"#/components/schemas/CheckInCancelled"},{"type":"null"}]},"crew":{"items":{"$ref":"#/components/schemas/CheckInCrewMember"},"title":"Crew","type":"array"},"ends_at":{"format":"date-time","title":"Ends At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"description":"The human key, D-0124","title":"Key","type":"string"},"meeting_point":{"anyOf":[{"$ref":"#/components/schemas/CheckInPlace"},{"type":"null"}]},"product":{"$ref":"#/components/schemas/CheckInProduct"},"seats":{"title":"Seats","type":"integer"},"seats_taken":{"title":"Seats Taken","type":"integer"},"stage":{"description":"What the screen draws","enum":["waiting","started","cancelled","done"],"title":"Stage","type":"string"},"started_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Started At"},"started_by":{"anyOf":[{"$ref":"#/components/schemas/CheckInActor"},{"type":"null"}]},"starts_at":{"format":"date-time","title":"Starts At","type":"string"},"status":{"enum":["proposed","scheduled","cancelled","done"],"title":"Status","type":"string"},"timezone":{"title":"Timezone","type":"string"}},"required":["id","key","status","stage","starts_at","ends_at","timezone","product","meeting_point","seats","seats_taken","crew","started_at","started_by","cancelled"],"title":"CheckInDeparture","type":"object"},"CheckInItem":{"additionalProperties":true,"properties":{"done":{"title":"Done","type":"boolean"},"done_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Done At"},"done_by":{"anyOf":[{"$ref":"#/components/schemas/CheckInActor"},{"type":"null"}]},"key":{"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/CheckInWords"}},"required":["key","label","done","done_at","done_by"],"title":"CheckInItem","type":"object"},"CheckInNotReady":{"additionalProperties":true,"properties":{"blockers":{"items":{"enum":["cancelled","done","started","nobody_arrived","riders_waiting","waivers_missing","checklist_open"],"type":"string"},"title":"Blockers","type":"array"},"error":{"const":"not_ready","title":"Error","type":"string"}},"required":["error","blockers"],"title":"CheckInNotReady","type":"object"},"CheckInPlace":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"}},"required":["id","name"],"title":"CheckInPlace","type":"object"},"CheckInProduct":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"$ref":"#/components/schemas/CheckInWords"}},"required":["id","name"],"title":"CheckInProduct","type":"object"},"CheckInReady":{"additionalProperties":true,"properties":{"blockers":{"items":{"enum":["cancelled","done","started","nobody_arrived","riders_waiting","waivers_missing","checklist_open"],"type":"string"},"title":"Blockers","type":"array"},"can_start":{"title":"Can Start","type":"boolean"}},"required":["can_start","blockers"],"title":"CheckInReady","type":"object"},"CheckInRider":{"additionalProperties":true,"properties":{"arrival":{"anyOf":[{"enum":["arrived","no_show"],"type":"string"},{"type":"null"}],"description":"Null: not marked yet","title":"Arrival"},"arrival_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Arrival At"},"arrival_by":{"anyOf":[{"$ref":"#/components/schemas/CheckInActor"},{"type":"null"}]},"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"customer_name":{"title":"Customer Name","type":"string"},"email_on_file":{"description":"An email can be sent to the booking's customer","title":"Email On File","type":"boolean"},"height_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height Cm"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"},"minor":{"description":"Someone else on the booking signs this rider's waiver","title":"Minor","type":"boolean"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null when the booking has no name for this seat yet","title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The booking customer's phone; null without people:read","title":"Phone"},"reference":{"title":"Reference","type":"string"},"rider_no":{"title":"Rider No","type":"integer"},"waiver":{"enum":["not_needed","not_sent","emailed","on_tablet","signed"],"title":"Waiver","type":"string"},"waiver_emailed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Waiver Emailed At"},"waiver_signed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Waiver Signed At"},"waiver_signed_by_rider_no":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Waiver Signed By Rider No"}},"required":["booking_id","reference","rider_no","name","customer_name","level","height_cm","minor","arrival","arrival_at","arrival_by","waiver","waiver_signed_at","waiver_signed_by_rider_no","waiver_emailed_at","phone","email_on_file"],"title":"CheckInRider","type":"object"},"CheckInSendWaivers":{"additionalProperties":false,"properties":{"channel":{"enum":["tablet","email"],"title":"Channel","type":"string"},"device_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Tablet only: an enrolled tablet at the departure's place","title":"Device Id"},"riders":{"items":{"$ref":"#/components/schemas/CheckInWaiverRider"},"maxItems":60,"minItems":1,"title":"Riders","type":"array"}},"required":["channel","riders"],"title":"CheckInSendWaivers","type":"object"},"CheckInSent":{"additionalProperties":true,"properties":{"bookings":{"title":"Bookings","type":"integer"},"channel":{"enum":["tablet","email"],"title":"Channel","type":"string"},"riders":{"title":"Riders","type":"integer"},"skipped":{"items":{"$ref":"#/components/schemas/CheckInSkipped"},"title":"Skipped","type":"array"}},"required":["channel","bookings","riders","skipped"],"title":"CheckInSent","type":"object"},"CheckInSkipped":{"additionalProperties":true,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"reason":{"enum":["no_email","recently_sent","nothing_to_sign"],"title":"Reason","type":"string"},"reference":{"title":"Reference","type":"string"}},"required":["booking_id","reference","reason"],"title":"CheckInSkipped","type":"object"},"CheckInStart":{"additionalProperties":false,"properties":{"anyway":{"default":false,"description":"Start although the check in is not ready; the blockers are recorded","title":"Anyway","type":"boolean"}},"title":"CheckInStart","type":"object"},"CheckInTablet":{"additionalProperties":true,"properties":{"device_id":{"format":"uuid","title":"Device Id","type":"string"},"name":{"title":"Name","type":"string"},"online":{"title":"Online","type":"boolean"}},"required":["device_id","name","online"],"title":"CheckInTablet","type":"object"},"CheckInTick":{"additionalProperties":false,"properties":{"done":{"title":"Done","type":"boolean"},"key":{"pattern":"^[a-z0-9_]{1,30}$","title":"Key","type":"string"}},"required":["key","done"],"title":"CheckInTick","type":"object"},"CheckInWaiverRider":{"additionalProperties":false,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"rider_no":{"maximum":40.0,"minimum":1.0,"title":"Rider No","type":"integer"},"signs_for":{"anyOf":[{"items":{"maximum":40.0,"minimum":1.0,"type":"integer"},"maxItems":39,"type":"array"},{"type":"null"}],"description":"Tablet only: riders of the same booking this rider signs for","title":"Signs For"}},"required":["booking_id","rider_no"],"title":"CheckInWaiverRider","type":"object"},"CheckInWaivers":{"additionalProperties":true,"properties":{"needed":{"description":"A waiver covers at least one booking on this departure","title":"Needed","type":"boolean"},"tablets":{"items":{"$ref":"#/components/schemas/CheckInTablet"},"title":"Tablets","type":"array"}},"required":["needed","tablets"],"title":"CheckInWaivers","type":"object"},"CheckInWords":{"additionalProperties":true,"properties":{"en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"En"},"it":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"It"}},"title":"CheckInWords","type":"object"},"CheckoutQuestion":{"additionalProperties":false,"properties":{"key":{"pattern":"^[a-z][a-z0-9_]{0,31}$","title":"Key","type":"string"},"kind":{"enum":["text","choice"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/Localized"},"options":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"description":"For a choice: [{key, label}], 2 to 12","title":"Options"},"required":{"default":false,"title":"Required","type":"boolean"}},"required":["key","label","kind"],"title":"CheckoutQuestion","type":"object"},"Collection":{"additionalProperties":false,"properties":{"method":{"enum":["till","payment_link","invoice","free"],"title":"Method","type":"string"},"reference":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Reference"}},"required":["method"],"title":"Collection","type":"object"},"CompanyAddressIn":{"additionalProperties":false,"description":"The company's address as ``crm_address`` checks it; its country is the company's country.","properties":{"city":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"City"},"line1":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Line1"},"line2":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Line2"},"postcode":{"anyOf":[{"maxLength":20,"minLength":1,"type":"string"},{"type":"null"}],"title":"Postcode"},"region":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Region"}},"title":"CompanyAddressIn","type":"object"},"CompanyCreate":{"additionalProperties":false,"description":"``POST ~/companies``. Only ``name`` is needed; an empty list of roles is allowed.","properties":{"address":{"anyOf":[{"$ref":"#/components/schemas/CompanyAddressIn"},{"type":"null"}]},"country_code":{"anyOf":[{"description":"ISO 3166-1 alpha-2, upper case","pattern":"^[A-Z]{2}$","type":"string"},{"type":"null"}],"title":"Country Code"},"email":{"anyOf":[{"maxLength":320,"minLength":3,"type":"string"},{"type":"null"}],"title":"Email"},"legal_name":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Legal Name"},"main_contact":{"anyOf":[{"$ref":"#/components/schemas/MainContactIn"},{"type":"null"}]},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"phone":{"anyOf":[{"description":"As the phone field sends it: the country code, a space, the number (+39 019 680 211)","maxLength":40,"minLength":3,"type":"string"},{"type":"null"}],"title":"Phone"},"roles":{"items":{"enum":["sponsor","supplier","customer","manufacturer","partner","group_operator","hotel","referrer","transport"],"type":"string"},"maxItems":9,"title":"Roles","type":"array"},"vat_number":{"anyOf":[{"description":"Spaces and dots accepted; stored as IT01588230094","maxLength":20,"minLength":4,"type":"string"},{"type":"null"}],"title":"Vat Number"},"website":{"anyOf":[{"maxLength":300,"minLength":4,"type":"string"},{"type":"null"}],"title":"Website"}},"required":["name"],"title":"CompanyCreate","type":"object"},"CompanyCreated":{"additionalProperties":true,"description":"201 the first time, 200 on a replay of the same Idempotency-Key. ``key`` is the slug the record page opens.","properties":{"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"main_contact_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Main Contact Id"},"replayed":{"title":"Replayed","type":"boolean"},"roles":{"items":{"enum":["sponsor","supplier","customer","manufacturer","partner","group_operator","hotel","referrer","transport"],"type":"string"},"title":"Roles","type":"array"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","roles","replayed"],"title":"CompanyCreated","type":"object"},"CompanyMerge":{"additionalProperties":false,"properties":{"duplicate":{"description":"The duplicate company: its slug (alpi-ricambi-2) or its id","pattern":"^(?:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","title":"Duplicate","type":"string"},"duplicate_version":{"description":"The duplicate's version","minimum":1.0,"title":"Duplicate Version","type":"integer"},"expected_version":{"description":"The kept company's version","minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["duplicate","expected_version","duplicate_version"],"title":"CompanyMerge","type":"object"},"CompanyMessaged":{"additionalProperties":true,"properties":{"company_id":{"format":"uuid","title":"Company Id","type":"string"},"email_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The email_outbox row; null when nobody","title":"Email Id"},"key":{"title":"Key","type":"string"},"reason":{"anyOf":[{"enum":["no_email","suppressed","inactive"],"type":"string"},{"type":"null"}],"description":"Why nobody: no_email (no address saved), suppressed (the address cannot receive mail), inactive (archived); null when queued","title":"Reason"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"description":"queued: one email went to the outbox (queued is not sent); nobody: no one could be written to","enum":["queued","nobody"],"title":"State","type":"string"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The address written to; null when nobody","title":"To"}},"required":["key","state","to","email_id","reason","company_id"],"title":"CompanyMessaged","type":"object"},"CompanyMoney":{"properties":{"company_id":{"description":"The business that is owed this share","format":"uuid","title":"Company Id","type":"string"},"name":{"title":"Name","type":"string"},"paid_minor":{"title":"Paid Minor","type":"integer"},"total_minor":{"title":"Total Minor","type":"integer"}},"required":["company_id","name","total_minor","paid_minor"],"title":"CompanyMoney","type":"object"},"CompanyStateChange":{"additionalProperties":false,"description":"POST ~/companies/{key}/archive and ~/restore: the version the screen read.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version"],"title":"CompanyStateChange","type":"object"},"CompanyStateSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"key":{"description":"The company's slug","title":"Key","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"enum":["active","archived"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","state"],"title":"CompanyStateSaved","type":"object"},"CompareCard":{"additionalProperties":true,"properties":{"activity":{"description":"The activity type key, for example \"mountain-biking\"","title":"Activity","type":"string"},"bring_or_rent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The place page's Your bike section (AT-03 sections.bring_or_rent): {verdict: rent | either | bring, rent: {shops_on_outdoor_grid, shops_elsewhere, ebike, median_day_minor, currency}, bring: {bike_boxes}, ebike_rule, checked_at, source_key, stale}, null with nothing known","title":"Bring Or Rent"},"calendar":{"description":"Twelve months, January first: best, good, low, closed, or null when not known","items":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Calendar","type":"array"},"facets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The place's facets for the activity (1.2.1): {style: [style keys, the type's order], up: [lift, shuttle, pedal], ebike: welcome, allowed, restricted, banned, not_published (no published rule, never read as allowed) or null}","title":"Facets"},"fit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The fit and its breakdown (scoring rubric 1.1), null when the facts cannot be read; status scored, not_enough_data or excluded","title":"Fit"},"guides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The place page's Guides section (AT-03 sections.guides): {need: required | recommended | not_needed, shops: [{slug, name, town, logo_url, rating, booking_page}], median_half_day_minor, currency, checked_at, source_key, stale}, null with nothing known","title":"Guides"},"guides_on_outdoor_grid":{"default":0,"description":"How many shops on Outdoor Grid guide here: the length of guides.shops","title":"Guides On Outdoor Grid","type":"integer"},"month":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The picked month: {calendar, reason, temp_high_c, rain_days, snow_days, daylight_h, stale}; temp_high_c, rain_days, snow_days (days with snow) and daylight_h are null when not known; null without a picked month or its calendar","title":"Month"},"names":{"additionalProperties":{"type":"string"},"description":"The place's name per locale; en always present","title":"Names","type":"object"},"opens_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"On search and best-month lists (15.3): for a lift-served place whose lifts do not run all of the month asked, the soonest season opening on or after that month's first day; null otherwise","title":"Opens On"},"slug":{"description":"The place's address under /ride","title":"Slug","type":"string"},"typical_day":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{currency, per: rider, days: 1, rounded_to_minor, total_minor (the sum of lines), lines: [{key: bike | uplift | bed | food, amount_minor (rounded), estimate}], assumptions: {bike: full_suspension_trail | gravel_bike | skis_boots_poles | touring_skis_skins | bike, uplift: lift_pass | shuttle | ski_pass, bed: shared_double, food: lunch_dinner}, includes, excludes (line keys not priced, then travel, guide, insurance, damage_cover), as_of, checked_at, source_key, stale, converted?: {from, rate, as_of}}, in the place's own currency: the stored price is EUR, converted at a dated reference rate when one is known (converted says from which currency, at which rate, on which day), else left in EUR; null without a price","title":"Typical Day"},"when":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{temp_high_c, rain_days} of the trip's month, null without dates","title":"When"},"where_to_stay":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The place page's Where to stay (AT-03 sections.where_to_stay, ACC0): {currency, converted?, stays: [{key, people, month, night_low_minor, night_high_minor, person_low_minor, person_high_minor, person_eur_minor, checked_on, stale, sources}], crew?}, null with no sourced stay (job K3). With riders asked, crew: {people, rooms, key, built?, made_of?: [{key, sleeps, count}], night_low_minor, night_high_minor, person_low_minor, person_high_minor}, the stay for that many, built from the rooms held when their size is not (job FXG)","title":"Where To Stay"}},"required":["slug","activity","names","calendar"],"title":"CompareCard","type":"object"},"ContactIn":{"additionalProperties":false,"properties":{"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"},"kind":{"enum":["phone","email"],"title":"Kind","type":"string"},"label":{"anyOf":[{"enum":["mobile","home","work","other"],"type":"string"},{"type":"null"}],"title":"Label"},"value":{"maxLength":320,"minLength":3,"title":"Value","type":"string"}},"required":["kind","value"],"title":"ContactIn","type":"object"},"ContactsSave":{"additionalProperties":false,"properties":{"contacts":{"description":"The whole set; at most 10 phones and 10 emails, one primary each","items":{"$ref":"#/components/schemas/ContactIn"},"maxItems":20,"title":"Contacts","type":"array"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version","contacts"],"title":"ContactsSave","type":"object"},"CopyRequest":{"additionalProperties":false,"properties":{"expected_version":{"description":"Version of the target week (0 when it has no shifts yet)","minimum":0.0,"title":"Expected Version","type":"integer"},"from_revision_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"From Revision Id"},"from_week_start":{"format":"date","title":"From Week Start","type":"string"},"idempotency_key":{"description":"Idempotency key: the same key and body answer 200 with the first result","format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"}},"required":["idempotency_key","expected_version","location_id","from_week_start"],"title":"CopyRequest","type":"object"},"CostNoReceiptInsight":{"additionalProperties":true,"properties":{"count":{"description":"Active costs with no receipt, with Ask for receipts on","title":"Count","type":"integer"},"kind":{"const":"cost_no_receipt","title":"Kind","type":"string"},"month":{"format":"date","title":"Month","type":"string"}},"required":["kind","count","month"],"title":"CostNoReceiptInsight","type":"object"},"CostUpInsight":{"additionalProperties":true,"properties":{"change_pct":{"title":"Change Pct","type":"number"},"key":{"title":"Key","type":"string"},"kind":{"const":"cost_up","title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/FinanceWords"}},"required":["kind","key","label","change_pct"],"title":"CostUpInsight","type":"object"},"Created":{"properties":{"created":{"const":true,"title":"Created","type":"boolean"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["created","id","key","version"],"title":"Created","type":"object"},"CrewPoolSave":{"additionalProperties":false,"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"fee_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Fee Minor"},"fee_unit":{"anyOf":[{"enum":["departure","day"],"type":"string"},{"type":"null"}],"title":"Fee Unit"},"freelancer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Freelancer"},"notes":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Notes"},"roles":{"anyOf":[{"items":{"enum":["guide","driver","instructor"],"type":"string"},"maxItems":3,"minItems":1,"type":"array"},{"type":"null"}],"title":"Roles"}},"title":"CrewPoolSave","type":"object"},"CrmBlocked":{"properties":{"action":{"title":"Action","type":"string"},"blockers":{"items":{"$ref":"#/components/schemas/CrmBlocker"},"title":"Blockers","type":"array"},"blockers_total":{"title":"Blockers Total","type":"integer"},"error":{"const":"blocked","default":"blocked","title":"Error","type":"string"}},"required":["action","blockers","blockers_total"],"title":"CrmBlocked","type":"object"},"CrmBlocker":{"properties":{"entity_type":{"title":"Entity Type","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"reason":{"title":"Reason","type":"string"},"title":{"title":"Title","type":"string"}},"required":["entity_type","id","key","title","reason"],"title":"CrmBlocker","type":"object"},"CrmSaved":{"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version"],"title":"CrmSaved","type":"object"},"CustomerArchive":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"CustomerArchive","type":"object"},"CustomerChanges":{"additionalProperties":false,"properties":{"came_through":{"anyOf":[{"enum":["walk_in","website","hotel","partner","referral","returning","other"],"type":"string"},{"type":"null"}],"title":"Came Through"},"company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Company Id"},"country_code":{"anyOf":[{"description":"ISO 3166-1 alpha-2","pattern":"^[A-Z]{2}$","type":"string"},{"type":"null"}],"title":"Country Code"},"first_name":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"title":"First Name"},"language":{"anyOf":[{"description":"ISO 639-1, for example it or de","pattern":"^[a-z]{2}(-[A-Z]{2})?$","type":"string"},{"type":"null"}],"title":"Language"},"last_name":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"description":"Only with a first name","title":"Last Name"},"name":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"description":"A new whole name: split into first and last name, keeping the stored last name when it still ends the name","title":"Name"},"referrer_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Referrer Company Id"},"tags":{"anyOf":[{"items":{"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","type":"string"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Tags"}},"title":"CustomerChanges","type":"object"},"CustomerCounts":{"properties":{"bookings":{"title":"Bookings","type":"integer"},"out":{"title":"Out","type":"integer"},"upcoming":{"title":"Upcoming","type":"integer"}},"required":["bookings","upcoming","out"],"title":"CustomerCounts","type":"object"},"CustomerCreate":{"additionalProperties":false,"properties":{"allow_duplicate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Create even when a customer with the same phone or email exists","title":"Allow Duplicate"},"came_through":{"anyOf":[{"enum":["walk_in","website","hotel","partner","referral","returning","other"],"type":"string"},{"type":"null"}],"title":"Came Through"},"company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Company Id"},"contacts":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactIn"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Contacts"},"country_code":{"anyOf":[{"description":"ISO 3166-1 alpha-2","pattern":"^[A-Z]{2}$","type":"string"},{"type":"null"}],"title":"Country Code"},"first_name":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"description":"R4-people 3.01: stored as the first name; the display name is then first and last name","title":"First Name"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"},"language":{"anyOf":[{"description":"ISO 639-1, for example it or de","pattern":"^[a-z]{2}(-[A-Z]{2})?$","type":"string"},{"type":"null"}],"title":"Language"},"last_name":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"description":"Only with a first name","title":"Last Name"},"marketing_consent":{"anyOf":[{"$ref":"#/components/schemas/MarketingConsentTick"},{"type":"null"}],"description":"A false granted value records nothing. A true one is refused: only the rider gives consent."},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"referrer_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Referrer Company Id"},"tags":{"anyOf":[{"items":{"pattern":"^[a-z0-9][a-z0-9 ._-]{0,39}$","type":"string"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Tags"}},"required":["idempotency_key","name"],"title":"CustomerCreate","type":"object"},"CustomerDetail":{"properties":{"bookings":{"anyOf":[{"items":{"$ref":"#/components/schemas/BookingRow"},"type":"array"},{"type":"null"}],"description":"Null without reservations:read","title":"Bookings"},"counts":{"anyOf":[{"$ref":"#/components/schemas/CustomerCounts"},{"type":"null"}],"description":"Null without reservations:read"},"person":{"$ref":"#/components/schemas/CustomerPerson"}},"required":["person","bookings","counts"],"title":"CustomerDetail","type":"object"},"CustomerEquipmentSave":{"additionalProperties":false,"properties":{"brand":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Brand"},"colour":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Colour"},"customer_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Customer Id"},"description":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Description"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"gear_kind":{"anyOf":[{"enum":["ski","snowboard","bike","ebike","kayak","sup","other"],"type":"string"},{"type":"null"}],"title":"Gear Kind"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"item_type_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Type Id"},"model":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Model"},"notes":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"title":"Notes"},"serial":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Serial"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"CustomerEquipmentSave","type":"object"},"CustomerFactsRefreshed":{"additionalProperties":true,"properties":{"customers_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customers Count"},"facts_as_of":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Facts As Of"},"rebuilt":{"description":"false when the facts were built in the last 60 seconds","title":"Rebuilt","type":"boolean"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"segments_count":{"title":"Segments Count","type":"integer"}},"required":["rebuilt","segments_count"],"title":"CustomerFactsRefreshed","type":"object"},"CustomerList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CustomerListItem"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"CustomerList","type":"object"},"CustomerListItem":{"properties":{"bookings":{"title":"Bookings","type":"integer"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"id":{"format":"uuid","title":"Id","type":"string"},"last_booking_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Last Booking On"},"locale":{"anyOf":[{"enum":["en","it"],"type":"string"},{"type":"null"}],"title":"Locale"},"name":{"title":"Name","type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"required":["id","name","phone","email","locale","last_booking_on","bookings"],"title":"CustomerListItem","type":"object"},"CustomerMerge":{"additionalProperties":false,"properties":{"duplicate":{"description":"The duplicate customer: its number (C-0043) or its id","pattern":"^(?:[Cc]-[0-9]{1,12}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","title":"Duplicate","type":"string"},"duplicate_version":{"description":"The duplicate's version","minimum":1.0,"title":"Duplicate Version","type":"integer"},"expected_version":{"description":"The kept customer's version","minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["duplicate","expected_version","duplicate_version"],"title":"CustomerMerge","type":"object"},"CustomerMessaged":{"additionalProperties":true,"properties":{"customer_id":{"format":"uuid","title":"Customer Id","type":"string"},"email_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The email_outbox row; null when nobody","title":"Email Id"},"key":{"title":"Key","type":"string"},"reason":{"anyOf":[{"enum":["no_email","suppressed","inactive"],"type":"string"},{"type":"null"}],"description":"Why nobody: no_email (no address saved), suppressed (the address cannot receive mail), inactive (archived); null when queued","title":"Reason"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"description":"queued: one email went to the outbox (queued is not sent); nobody: no one could be written to","enum":["queued","nobody"],"title":"State","type":"string"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The address written to; null when nobody","title":"To"}},"required":["key","state","to","email_id","reason","customer_id"],"title":"CustomerMessaged","type":"object"},"CustomerPerson":{"properties":{"customer_since":{"format":"date-time","title":"Customer Since","type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"id":{"format":"uuid","title":"Id","type":"string"},"locale":{"anyOf":[{"enum":["en","it"],"type":"string"},{"type":"null"}],"title":"Locale"},"name":{"title":"Name","type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"version":{"title":"Version","type":"integer"}},"required":["id","version","name","phone","email","locale","customer_since"],"title":"CustomerPerson","type":"object"},"CustomerSegmentCreate":{"additionalProperties":false,"description":"CS-02: a segment, counted at once.","properties":{"description":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"title":"Description"},"match":{"anyOf":[{"enum":["all","any"],"type":"string"},{"type":"null"}],"description":"all (default): every rule holds; any: one rule is enough","title":"Match"},"name":{"maxLength":80,"minLength":1,"title":"Name","type":"string"},"rules":{"items":{"$ref":"#/components/schemas/CustomerSegmentRule"},"maxItems":20,"minItems":1,"title":"Rules","type":"array"}},"required":["name","rules"],"title":"CustomerSegmentCreate","type":"object"},"CustomerSegmentPatch":{"additionalProperties":false,"description":"CS-03: only the fields given change; archived keeps no members.","properties":{"description":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"description":"null clears it","title":"Description"},"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"match":{"enum":["all","any"],"title":"Match","type":"string"},"name":{"maxLength":80,"minLength":1,"title":"Name","type":"string"},"rules":{"items":{"$ref":"#/components/schemas/CustomerSegmentRule"},"maxItems":20,"minItems":1,"title":"Rules","type":"array"},"state":{"enum":["active","archived"],"title":"State","type":"string"}},"required":["expected_version"],"title":"CustomerSegmentPatch","type":"object"},"CustomerSegmentRule":{"additionalProperties":false,"description":"One condition. Numbers take eq, gte, lte or between [low, high]; days gte, lte or between; rfm_grade, marketing_consent,\ncountry_code and language in or not_in a list; channels, sports, sizes and tags contains_any, contains_all or contains_none.","properties":{"field":{"enum":["recency_days","frequency","money_minor","store_orders_count","store_minor","bookings_count","rental_minor","workshop_jobs_count","workshop_minor","till_sales_count","till_minor","r_score","f_score","m_score","shoe_eu","height_cm","first_touch_on","last_touch_on","rfm_grade","marketing_consent","country_code","language","channels","sports","sizes","tags"],"title":"Field","type":"string"},"op":{"enum":["eq","gte","lte","between","in","not_in","contains_any","contains_all","contains_none"],"title":"Op","type":"string"},"value":{"anyOf":[{"maximum":1000000000000.0,"minimum":-1000000000000.0,"type":"integer"},{"maximum":1000000000000.0,"minimum":-1000000000000.0,"type":"number"},{"description":"A day, YYYY-MM-DD","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},{"items":{"anyOf":[{"maximum":1000000000000.0,"minimum":-1000000000000.0,"type":"integer"},{"maximum":1000000000000.0,"minimum":-1000000000000.0,"type":"number"},{"maxLength":40,"minLength":1,"type":"string"}]},"maxItems":50,"minItems":1,"type":"array"}],"title":"Value"}},"required":["field","op","value"],"title":"CustomerSegmentRule","type":"object"},"CustomerSegmentSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"members_count":{"title":"Members Count","type":"integer"},"reachable_count":{"description":"Members who may be sent marketing, decided live","title":"Reachable Count","type":"integer"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["members_count","reachable_count","id","version"],"title":"CustomerSegmentSaved","type":"object"},"CustomerUpdate":{"additionalProperties":false,"properties":{"changes":{"$ref":"#/components/schemas/CustomerChanges","description":"Only the fields sent are changed; null clears a nullable field"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version","changes"],"title":"CustomerUpdate","type":"object"},"DamageCreate":{"additionalProperties":false,"properties":{"area":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Area"},"description":{"maxLength":2000,"minLength":1,"title":"Description","type":"string"},"photo_document_ids":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"title":"Photo Document Ids"},"reported_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Reported On"},"severity":{"default":"minor","enum":["minor","moderate","major"],"title":"Severity","type":"string"}},"required":["description"],"title":"DamageCreate","type":"object"},"DamagePatch":{"additionalProperties":false,"properties":{"area":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Area"},"description":{"anyOf":[{"maxLength":2000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Description"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"photo_document_ids":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"title":"Photo Document Ids"},"repair_cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Repair Cost Minor"},"repaired_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Repaired On"},"reported_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Reported On"},"severity":{"anyOf":[{"enum":["minor","moderate","major"],"type":"string"},{"type":"null"}],"title":"Severity"},"state":{"anyOf":[{"enum":["open","repaired","wont_fix"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["expected_version"],"title":"DamagePatch","type":"object"},"DamagePriceStarterApplied":{"additionalProperties":true,"properties":{"added":{"title":"Added","type":"integer"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"skipped":{"description":"Lines whose name was already active in their category","title":"Skipped","type":"integer"}},"required":["added","skipped"],"title":"DamagePriceStarterApplied","type":"object"},"DamagePriceStarterApply":{"additionalProperties":false,"description":"The starter lines the owner keeps, amounts as they changed them; nothing is written before this.","properties":{"lines":{"items":{"$ref":"#/components/schemas/DamagePriceStarterApplyLine"},"maxItems":60,"minItems":1,"title":"Lines","type":"array"}},"required":["lines"],"title":"DamagePriceStarterApply","type":"object"},"DamagePriceStarterApplyLine":{"additionalProperties":false,"properties":{"amount_minor":{"description":"Gross, in minor units of the shop's currency","maximum":10000000.0,"minimum":1.0,"title":"Amount Minor","type":"integer"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"An equipment category; null or left out means any category","title":"Category Id"},"name":{"maxLength":120,"minLength":1,"title":"Name","type":"string"},"vat_category":{"enum":["standard","reduced","super_reduced","zero","exempt"],"title":"Vat Category","type":"string"}},"required":["name","amount_minor","vat_category"],"title":"DamagePriceStarterApplyLine","type":"object"},"DayBeforeAt":{"additionalProperties":false,"properties":{"at":{"description":"HH:MM, the shop's time","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"At","type":"string"},"kind":{"const":"day_before_at","title":"Kind","type":"string"}},"required":["kind","at"],"title":"DayBeforeAt","type":"object"},"DayFree":{"properties":{"capacity":{"description":"What the option could rent that day with nothing out, so a grid can say 3 free of 10","title":"Capacity","type":"integer"},"day":{"format":"date","title":"Day","type":"string"},"free":{"title":"Free","type":"integer"}},"required":["day","free","capacity"],"title":"DayFree","type":"object"},"DayJob":{"additionalProperties":true,"properties":{"customer_words":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Words"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Ends At"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"kind":{"enum":["fix","look_then_call","full_service","rental_check","fitting"],"title":"Kind","type":"string"},"late":{"title":"Late","type":"boolean"},"mechanic_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Mechanic Id"},"needed_by_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Needed By At"},"needed_by_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Needed By On"},"needed_whenever":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needed Whenever"},"promised_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Promised On"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Starts At"},"state":{"enum":["booked","checked_in","in_progress","waiting_for_customer","waiting_parts","ready","collected","cancelled"],"title":"State","type":"string"},"subject_kind":{"enum":["item","vehicle","customer_gear"],"title":"Subject Kind","type":"string"},"title":{"title":"Title","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","state","kind","title","subject_kind","late","version"],"title":"DayJob","type":"object"},"DaySlot":{"description":"A local date and a full-day, morning or afternoon period in an answer.","properties":{"date":{"description":"Local calendar date.","format":"date","title":"Date","type":"string"},"period":{"description":"Part of the day covered by this item.","enum":["full","morning","afternoon"],"title":"Period","type":"string"}},"required":["date","period"],"title":"DaySlot","type":"object"},"DayTrack":{"additionalProperties":true,"properties":{"breaks":{"default":[],"items":{"$ref":"#/components/schemas/RotaBreak"},"title":"Breaks","type":"array"},"ends":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ends"},"jobs":{"items":{"$ref":"#/components/schemas/DayJob"},"title":"Jobs","type":"array"},"mechanic":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"On the rota: one of the shop's mechanics at the place","title":"Mechanic"},"name":{"title":"Name","type":"string"},"on_rota":{"description":"False for someone with a job scheduled here that day who is not on the rota","title":"On Rota","type":"boolean"},"person_id":{"format":"uuid","title":"Person Id","type":"string"},"position":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Position"},"starts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starts"},"working_now":{"description":"The date is today in the place's zone, inside their day and not on a break","title":"Working Now","type":"boolean"}},"required":["person_id","name","on_rota","working_now","jobs"],"title":"DayTrack","type":"object"},"DealSaved":{"additionalProperties":true,"properties":{"deal":{"additionalProperties":true,"title":"Deal","type":"object"}},"required":["deal"],"title":"DealSaved","type":"object"},"DealVersion":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key"],"title":"DealVersion","type":"object"},"DecideSwap":{"additionalProperties":false,"properties":{"decision":{"enum":["approve","reject"],"title":"Decision","type":"string"},"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Note"}},"required":["decision","expected_version"],"title":"DecideSwap","type":"object"},"DeliverableIn":{"additionalProperties":false,"properties":{"agreement_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Required to add a deliverable","title":"Agreement Id"},"due_on":{"anyOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},{"type":"null"}],"title":"Due On"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Note"},"owner_person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Owner Person Id"},"proof_url":{"anyOf":[{"description":"The proof that it was done, an http or https link; null clears it","maxLength":500,"pattern":"^https?://[^\\s]+$","type":"string"},{"type":"null"}],"title":"Proof Url"},"state":{"anyOf":[{"enum":["todo","done","skipped"],"type":"string"},{"type":"null"}],"title":"State"},"title":{"maxLength":200,"minLength":1,"title":"Title","type":"string"}},"required":["title"],"title":"DeliverableIn","type":"object"},"DeliverableSave":{"additionalProperties":false,"properties":{"deliverable":{"$ref":"#/components/schemas/DeliverableIn"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","deliverable"],"title":"DeliverableSave","type":"object"},"DeliverableSaved":{"properties":{"deliverable":{"additionalProperties":true,"title":"Deliverable","type":"object"}},"required":["deliverable"],"title":"DeliverableSaved","type":"object"},"DepartureCancel":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"reason":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["expected_version"],"title":"DepartureCancel","type":"object"},"DepartureCreate":{"additionalProperties":false,"properties":{"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Ends At"},"language":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Language"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Meeting Point Id"},"min_riders":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Min Riders"},"notes":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Notes"},"option_key":{"anyOf":[{"pattern":"^(default|opt_([2-9]|1[0-9]|20))$","type":"string"},{"type":"null"}],"description":"default, opt_2 to opt_20; null is the default option","title":"Option Key"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"starts_at":{"format":"date-time","title":"Starts At","type":"string"}},"required":["product_id","starts_at"],"title":"DepartureCreate","type":"object"},"DepartureDecide":{"additionalProperties":false,"properties":{"decision":{"enum":["run","cancel"],"title":"Decision","type":"string"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"reason":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["expected_version","decision"],"title":"DepartureDecide","type":"object"},"DeparturePatch":{"additionalProperties":false,"properties":{"drivers_needed":{"anyOf":[{"maximum":4.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Drivers Needed"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Ends At"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"guides_needed":{"anyOf":[{"maximum":6.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Guides Needed"},"language":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Language"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Meeting Point Id"},"min_riders":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Min Riders"},"notes":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Notes"},"off_road":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Off Road"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Starts At"},"vehicle_needed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vehicle Needed"}},"required":["expected_version"],"title":"DeparturePatch","type":"object"},"DepositBegin":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Unique UUID for a safe retry of this request.","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key"],"title":"DepositBegin","type":"object"},"DepositCheckout":{"description":"A retry returns the same open session.","properties":{"checkout_url":{"description":"Stripe Checkout (test mode on QA, live in production)","title":"Checkout Url","type":"string"},"expires_at":{"description":"Date and time after which this Checkout session can no longer be used.","format":"date-time","title":"Expires At","type":"string"}},"required":["checkout_url","expires_at"],"title":"DepositCheckout","type":"object"},"DirectoryKind":{"additionalProperties":true,"properties":{"id":{"description":"A kind of ride the shop publishes on its site, for example \"e-bike\"","title":"Id","type":"string"},"name":{"description":"In the language asked for, else English, else the first","title":"Name","type":"string"}},"required":["id","name"],"title":"DirectoryKind","type":"object"},"DirectoryOffers":{"additionalProperties":true,"properties":{"rental_kinds":{"description":"The published site's kinds of ride, by sort","items":{"$ref":"#/components/schemas/DirectoryKind"},"title":"Rental Kinds","type":"array"},"rentals":{"description":"At least one active rental product online","title":"Rentals","type":"boolean"},"tours":{"description":"At least one active group or private tour online","title":"Tours","type":"boolean"}},"required":["rentals","tours"],"title":"DirectoryOffers","type":"object"},"DirectoryPlace":{"additionalProperties":true,"properties":{"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Two letter country code, for example \"IT\"","title":"Country"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The place on the map; null when the shop has not set it","title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Longitude of this public place; null when the shop has not supplied it.","title":"Longitude"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The region, else the province","title":"Region"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place's town (address.city)","title":"Town"}},"title":"DirectoryPlace","type":"object"},"DirectoryPrice":{"additionalProperties":true,"properties":{"amount_minor":{"description":"The cheapest first day of the shop's online rentals, in minor units","title":"Amount Minor","type":"integer"},"currency":{"description":"The shop's currency, ISO 4217","title":"Currency","type":"string"}},"required":["amount_minor","currency"],"title":"DirectoryPrice","type":"object"},"DirectoryShop":{"additionalProperties":true,"properties":{"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A public signed link to the site's first hero photo the shop uploaded, or null","title":"Cover Url"},"distance_km":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"From the coordinates to that place, one decimal; null without coordinates","title":"Distance Km"},"from_price":{"anyOf":[{"$ref":"#/components/schemas/DirectoryPrice"},{"type":"null"}],"description":"null when no online rental is priced"},"languages":{"description":"The languages of the shop's site","items":{"type":"string"},"title":"Languages","type":"array"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A public signed link to the logo, or null","title":"Logo Url"},"name":{"description":"Name shown to guests.","title":"Name","type":"string"},"offers":{"$ref":"#/components/schemas/DirectoryOffers","description":"Whether this shop offers rentals or tours and which ride kinds it publishes."},"place":{"$ref":"#/components/schemas/DirectoryPlace","description":"The matching guest-visible place nearest the coordinates, else the first. Never a street, phone, email or person"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The shop's booking page, where the guest books and pays","title":"Site Url"},"slug":{"description":"The shop's address name, as in https://{slug}.outdoorgrid.ai","title":"Slug","type":"string"}},"required":["slug","name","place","offers"],"title":"DirectoryShop","type":"object"},"DiscountSave":{"additionalProperties":false,"properties":{"channels":{"anyOf":[{"items":{"enum":["desk","online","assistant","operator"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Channels"},"conditions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{\"all\": [clause...]}, the clauses of the rule builder","title":"Conditions"},"effects":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"maxItems":6,"minItems":1,"type":"array"},{"type":"null"}],"title":"Effects"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"label":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"priority":{"anyOf":[{"maximum":1000.0,"minimum":-1000.0,"type":"integer"},{"type":"null"}],"title":"Priority"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","type":"string"},{"type":"null"}],"title":"Slug"},"stacking":{"anyOf":[{"enum":["stackable","exclusive"],"type":"string"},{"type":"null"}],"title":"Stacking"},"state":{"anyOf":[{"enum":["draft","active","archived"],"type":"string"},{"type":"null"}],"title":"State"},"valid_from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Valid Until"}},"required":["idempotency_key"],"title":"DiscountSave","type":"object"},"Doc":{"additionalProperties":true,"description":"A response document: the fields listed are guaranteed, others may follow.","properties":{},"title":"Doc","type":"object"},"DocumentCreate":{"additionalProperties":false,"properties":{"document_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Document Id"},"expires_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Expires On"},"issued_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Issued On"},"kind":{"enum":["insurance","inspection","registration","road_tax","other"],"title":"Kind","type":"string"},"label":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Label"},"number":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Number"},"reminder_lead_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Reminder Lead Days"}},"required":["kind"],"title":"DocumentCreate","type":"object"},"DocumentEmailAsk":{"additionalProperties":false,"description":"Nothing to fill in: the routes take no body, or an empty object. The token, the address and the words come from the server.","properties":{},"title":"DocumentEmailAsk","type":"object"},"DocumentEmailQueued":{"additionalProperties":true,"properties":{"kind":{"enum":["booking_document","booking_plan"],"title":"Kind","type":"string"},"link_expires_at":{"description":"The link in the email stops opening after this (30 days)","format":"date-time","title":"Link Expires At","type":"string"},"outbox_id":{"format":"uuid","title":"Outbox Id","type":"string"},"queued":{"description":"True: an outbox row is queued (or was, on a replay); sending happens after","title":"Queued","type":"boolean"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"description":"The outbox row's current state: queued is on its way; failed was not sent.","enum":["queued","sent","simulated","suppressed","failed"],"title":"State","type":"string"},"to":{"description":"The address it goes to","title":"To","type":"string"},"to_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Whose address it is (the payer or the person)","title":"To Name"}},"required":["queued","kind","to","outbox_id","state","link_expires_at"],"title":"DocumentEmailQueued","type":"object"},"DocumentPatch":{"additionalProperties":false,"description":"Only the fields present are changed.","properties":{"document_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Document Id"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"expires_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Expires On"},"issued_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Issued On"},"label":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Label"},"number":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Number"},"reminder_lead_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Reminder Lead Days"}},"required":["expected_version"],"title":"DocumentPatch","type":"object"},"DocumentRenew":{"additionalProperties":false,"properties":{"document_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Document Id"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"expires_on":{"format":"date","title":"Expires On","type":"string"},"issued_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Issued On"},"number":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Number"},"reminder_lead_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Reminder Lead Days"}},"required":["expected_version","expires_on"],"title":"DocumentRenew","type":"object"},"DraftSave":{"additionalProperties":false,"properties":{"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key: the same key and body answer 200 with the first result","format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Note"},"shifts":{"items":{"$ref":"#/components/schemas/ShiftIn"},"maxItems":700,"title":"Shifts","type":"array"}},"required":["idempotency_key","expected_version","location_id","shifts"],"title":"DraftSave","type":"object"},"DraftsFromSuggestions":{"additionalProperties":false,"properties":{"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"lines":{"items":{"$ref":"#/components/schemas/SuggestionLine"},"maxItems":200,"minItems":1,"title":"Lines","type":"array"}},"required":["idempotency_key","legal_entity_id","lines"],"title":"DraftsFromSuggestions","type":"object"},"DriverNotice":{"additionalProperties":true,"description":"One driver on the departure and where their notice stands.","properties":{"answer":{"anyOf":[{"enum":["can_drive","cannot_drive"],"type":"string"},{"type":"null"}],"title":"Answer"},"answered_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Answered At"},"assignment_id":{"format":"uuid","title":"Assignment Id","type":"string"},"email_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The email_outbox row of the latest notice or update","title":"Email Id"},"fee_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fee Minor"},"fee_unit":{"anyOf":[{"enum":["departure","day"],"type":"string"},{"type":"null"}],"title":"Fee Unit"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"has_email":{"description":"False: the notice cannot reach them (no address, suppressed or archived)","title":"Has Email","type":"boolean"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"person_id":{"format":"uuid","title":"Person Id","type":"string"},"sent_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Sent At"},"state":{"description":"not_sent; sent (no answer yet); answered (see answer)","enum":["not_sent","sent","answered"],"title":"State","type":"string"}},"required":["assignment_id","person_id","has_email","state"],"title":"DriverNotice","type":"object"},"EmailCommand":{"additionalProperties":false,"description":"``{version?}`` or ``{expected_version?}``, never both: the draft's version as the card showed it.","properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"The same, by its house name","title":"Expected Version"},"version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"The draft's version on the card (what the frontend sends)","title":"Version"}},"title":"EmailCommand","type":"object"},"EmailCommandAnswer":{"additionalProperties":true,"description":"What Send it now and Cancel it answer. ``card`` is the ``email`` card (kind ``email``, ``emailId``, ``version``, ``supplier``,\n``state``, ``sendsAt``, ``lines``, ``quote``, ``note?``, ``delivery?``).","properties":{"card":{"additionalProperties":true,"title":"Card","type":"object"},"id":{"title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"description":"The draft's stored state now: sent after Send it now, cancelled after Cancel it","title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","version","state","card"],"title":"EmailCommandAnswer","type":"object"},"EstimateApprove":{"additionalProperties":false,"properties":{"channel":{"default":"counter","enum":["counter","phone","message","email"],"title":"Channel","type":"string"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"}},"required":["idempotency_key","expected_version"],"title":"EstimateApprove","type":"object"},"ExperienceCreate":{"additionalProperties":false,"description":"XP-04: a draft experience (never on the website or a channel until go live).","properties":{"activities":{"items":{"description":"A platform activity key, or custom:<key> for the shop's own","pattern":"^(custom:)?[a-z][a-z0-9-]{1,39}$","type":"string"},"maxItems":6,"minItems":1,"title":"Activities","type":"array"},"experience_kind":{"enum":["shared_tour","private_tour","lesson","multi_day","shuttle","transfer","guided_rental","course"],"title":"Experience Kind","type":"string"},"import":{"anyOf":[{"$ref":"#/components/schemas/ImportIn"},{"type":"null"}]},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"locale":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Locale"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"title":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Title"}},"required":["experience_kind","activities","legal_entity_id","location_id"],"title":"ExperienceCreate","type":"object"},"ExperienceFleetSave":{"additionalProperties":false,"description":"Which kind of bike the tour holds per guest from the fleet, and the hold before and after each departure. ``type_id`` null stops holding (the coming holds are released); the coming departures are held again at once.","properties":{"buffer_after_minutes":{"description":"Held this long after the end","maximum":720.0,"minimum":0.0,"title":"Buffer After Minutes","type":"integer"},"buffer_before_minutes":{"description":"Held this long before the start","maximum":720.0,"minimum":0.0,"title":"Buffer Before Minutes","type":"integer"},"expected_version":{"description":"The experience's fleet version you read (XP-28 version)","minimum":1.0,"title":"Expected Version","type":"integer"},"type_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"An item type the shop rents out; null holds nothing","title":"Type Id"}},"required":["expected_version","type_id","buffer_before_minutes","buffer_after_minutes"],"title":"ExperienceFleetSave","type":"object"},"ExperienceFleetSaved":{"additionalProperties":true,"description":"201 the first time, 200 on a replay.","properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","version"],"title":"ExperienceFleetSaved","type":"object"},"ExperienceSave":{"additionalProperties":false,"description":"XP-06: any of the record's groups; ``expected_version`` is the experience's (tour) version.","properties":{"booking":{"anyOf":[{"$ref":"#/components/schemas/BookingGroup"},{"type":"null"}]},"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"kind":{"anyOf":[{"$ref":"#/components/schemas/KindGroup"},{"type":"null"}]},"running":{"anyOf":[{"$ref":"#/components/schemas/RunningGroup"},{"type":"null"}]},"steps_done":{"items":{"maximum":10.0,"minimum":1.0,"type":"integer"},"maxItems":10,"title":"Steps Done","type":"array"},"story":{"anyOf":[{"$ref":"#/components/schemas/StoryGroup"},{"type":"null"}]},"where":{"anyOf":[{"$ref":"#/components/schemas/WhereGroup"},{"type":"null"}]},"who":{"anyOf":[{"$ref":"#/components/schemas/WhoGroup"},{"type":"null"}]}},"required":["expected_version"],"title":"ExperienceSave","type":"object"},"ExperienceSaved":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"setup_state":{"anyOf":[{"enum":["draft","selling","paused"],"type":"string"},{"type":"null"}],"title":"Setup State"},"version":{"title":"Version","type":"integer"}},"required":["version"],"title":"ExperienceSaved","type":"object"},"ExperienceWriteSaved":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["version"],"title":"ExperienceWriteSaved","type":"object"},"ExtraAnswer":{"additionalProperties":false,"description":"The customer's answer. approved adds the proposed lines to the job; declined adds nothing.","properties":{"answer":{"enum":["approved","declined"],"title":"Answer","type":"string"},"channel":{"enum":["phone","sms","email","whatsapp","counter"],"title":"Channel","type":"string"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"}},"required":["idempotency_key","expected_version","answer","channel"],"title":"ExtraAnswer","type":"object"},"ExtraLine":{"additionalProperties":false,"description":"What the extra work needs: a service or a part from the catalogue, or other work in words. Never a price.","properties":{"kind":{"enum":["service","part","other"],"title":"Kind","type":"string"},"minutes":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Minutes"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"default":"1","pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"},"service_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Service Id"},"text":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Text"}},"required":["kind"],"title":"ExtraLine","type":"object"},"ExtraOpen":{"additionalProperties":false,"properties":{"day":{"format":"date","title":"Day","type":"string"},"product_id":{"format":"uuid","title":"Product Id","type":"string"}},"required":["product_id","day"],"title":"ExtraOpen","type":"object"},"ExtraRaise":{"additionalProperties":false,"description":"Found something else: the desk gets a task and the job waits for the customer.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"lines":{"items":{"$ref":"#/components/schemas/ExtraLine"},"maxItems":20,"minItems":1,"title":"Lines","type":"array"},"note":{"maxLength":2000,"minLength":1,"title":"Note","type":"string"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who found it (the tablet's working person); the job's mechanic when absent","title":"Person Id"},"photo_file_ids":{"default":[],"items":{"format":"uuid","type":"string"},"maxItems":10,"title":"Photo File Ids","type":"array"}},"required":["idempotency_key","expected_version","note","lines"],"title":"ExtraRaise","type":"object"},"FieldsPatch":{"additionalProperties":false,"properties":{"changes":{"additionalProperties":true,"description":"Field key to its new value; null clears a field that may be empty","maxProperties":25,"minProperties":1,"title":"Changes","type":"object"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["changes","expected_version"],"title":"FieldsPatch","type":"object"},"FieldsSaved":{"additionalProperties":true,"properties":{"changed":{"items":{"type":"string"},"title":"Changed","type":"array"},"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","changed"],"title":"FieldsSaved","type":"object"},"FinanceCash":{"additionalProperties":true,"properties":{"companies":{"items":{"$ref":"#/components/schemas/CashCompany"},"title":"Companies","type":"array"}},"title":"FinanceCash","type":"object"},"FinanceCompany":{"additionalProperties":true,"properties":{"bank_label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The bank its line reads, with cash13; null without one","title":"Bank Label"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"name":{"title":"Name","type":"string"}},"required":["legal_entity_id","name"],"title":"FinanceCompany","type":"object"},"FinanceMonth":{"additionalProperties":true,"properties":{"bank_end_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Cash start plus in less out from its day; null before any cash start","title":"Bank End Minor"},"booked_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The month's sales booked inside the period (the tiles' and the table's money in; a boundary month counts only the period's days); in_minor is money received (QA 27 Oct)","title":"Booked Minor"},"by_place":{"anyOf":[{"items":{"$ref":"#/components/schemas/PlaceMoney"},"type":"array"},{"type":"null"}],"description":"Money in by place that month (the group's chart); null at totals","title":"By Place"},"expected_minor":{"default":0,"description":"Months after this one: what bookings starting that month still owe; in_minor holds it too","title":"Expected Minor","type":"integer"},"in_minor":{"title":"In Minor","type":"integer"},"lowest":{"default":false,"description":"The month with the lowest bank_end of the year","title":"Lowest","type":"boolean"},"month":{"description":"First day of the month","format":"date","title":"Month","type":"string"},"out_minor":{"title":"Out Minor","type":"integer"},"period_in_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money received on the month's days inside the period","title":"Period In Minor"},"period_out_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money out on the month's days inside the period","title":"Period Out Minor"},"planned":{"description":"After today: expected money in (expected_minor), planned costs and rota out","title":"Planned","type":"boolean"}},"required":["month","in_minor","out_minor","planned"],"title":"FinanceMonth","type":"object"},"FinanceOverview":{"additionalProperties":true,"properties":{"access":{"$ref":"#/components/schemas/OverviewAccess"},"as_of":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the figures were read","title":"As Of"},"cash":{"$ref":"#/components/schemas/FinanceCash"},"cash13":{"anyOf":[{"$ref":"#/components/schemas/Cash13"},{"type":"null"}],"description":"Level everything, no place bounds, the cash part not hidden"},"companies":{"description":"The companies the person may see, for the Company filter","items":{"$ref":"#/components/schemas/FinanceCompany"},"title":"Companies","type":"array"},"currency":{"title":"Currency","type":"string"},"group_costs":{"anyOf":[{"$ref":"#/components/schemas/GroupCosts"},{"type":"null"}],"description":"Costs with no place, one row (D13); level everything, profit not hidden"},"insights":{"description":"Facts only","items":{"anyOf":[{"$ref":"#/components/schemas/CashLowInsight"},{"$ref":"#/components/schemas/CostUpInsight"},{"$ref":"#/components/schemas/CardFeeInsight"},{"$ref":"#/components/schemas/BikeBelowCostInsight"},{"$ref":"#/components/schemas/CostNoReceiptInsight"},{"$ref":"#/components/schemas/CashMovePaymentInsight"}]},"title":"Insights","type":"array"},"kpis":{"$ref":"#/components/schemas/Kpis"},"lines":{"description":"The same by company and place, for grouping","items":{"$ref":"#/components/schemas/Line"},"title":"Lines","type":"array"},"months":{"description":"January to December of the year of to; a period starting in an earlier year starts at its first month","items":{"$ref":"#/components/schemas/FinanceMonth"},"title":"Months","type":"array"},"numbers":{"anyOf":[{"items":{"$ref":"#/components/schemas/OverviewNumber"},"type":"array"},{"type":"null"}],"description":"Null when the bookings and fleet parts are both hidden","title":"Numbers"},"other_currency":{"default":false,"title":"Other Currency","type":"boolean"},"owed":{"anyOf":[{"$ref":"#/components/schemas/OverviewOwed"},{"type":"null"}],"description":"Null when the owed part is hidden"},"payments":{"description":"How money in was paid","items":{"$ref":"#/components/schemas/Payment"},"title":"Payments","type":"array"},"period":{"$ref":"#/components/schemas/FinancePeriod"},"places":{"description":"The places the person may see, for the Places filter","items":{"$ref":"#/components/schemas/FinancePlace"},"title":"Places","type":"array"},"places_table":{"description":"The places side by side; empty at totals","items":{"$ref":"#/components/schemas/PlaceRow"},"title":"Places Table","type":"array"},"profit":{"anyOf":[{"$ref":"#/components/schemas/OverviewProfit"},{"type":"null"}],"description":"The Profit card; null when the profit part is hidden"},"rows":{"description":"Money in by stream, then money out by kind, largest first","items":{"$ref":"#/components/schemas/Row"},"title":"Rows","type":"array"},"season":{"anyOf":[{"$ref":"#/components/schemas/Season"},{"type":"null"}],"description":"This season around today for the chosen places; null without a busy calendar"},"setup":{"anyOf":[{"$ref":"#/components/schemas/OverviewSetup"},{"type":"null"}]},"table_window":{"anyOf":[{"$ref":"#/components/schemas/MoneyInWindow"},{"type":"null"}],"description":"The days the table's this_minor counts: the whole period, bookings still ahead included"},"tiles":{"anyOf":[{"$ref":"#/components/schemas/OverviewTiles"},{"type":"null"}]},"today":{"description":"Today in the shop's time zone","format":"date","title":"Today","type":"string"},"window":{"anyOf":[{"$ref":"#/components/schemas/FinanceWindow"},{"type":"null"}]},"winter":{"anyOf":[{"$ref":"#/components/schemas/Winter"},{"type":"null"}]}},"required":["access","currency","today","period","companies","places","kpis","months"],"title":"FinanceOverview","type":"object"},"FinancePace":{"additionalProperties":true,"properties":{"access":{"$ref":"#/components/schemas/PaceAccess"},"as_of":{"format":"date-time","title":"As Of","type":"string"},"asked_lines":{"items":{"type":"string"},"title":"Asked Lines","type":"array"},"booked_7d_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Booked 7D Change Pct"},"booked_7d_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Booked 7D Compare Minor"},"booked_7d_minor":{"title":"Booked 7D Minor","type":"integer"},"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare Minor"},"compare_options":{"items":{"$ref":"#/components/schemas/PaceCompareOption"},"title":"Compare Options","type":"array"},"compared":{"items":{"$ref":"#/components/schemas/PaceCompared"},"title":"Compared","type":"array"},"currency":{"title":"Currency","type":"string"},"expected":{"$ref":"#/components/schemas/PaceExpected"},"lines":{"items":{"$ref":"#/components/schemas/PaceLine"},"title":"Lines","type":"array"},"on_books_minor":{"title":"On Books Minor","type":"integer"},"on_books_why":{"$ref":"#/components/schemas/PaceExplained"},"other_currency":{"title":"Other Currency","type":"boolean"},"state":{"enum":["ahead","like","behind","building"],"title":"State","type":"string"},"today":{"format":"date","title":"Today","type":"string"},"weather":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"A-WEATHER (D8): the next 14 days adjusted for rain and snow; null before it","title":"Weather"},"weeks":{"items":{"$ref":"#/components/schemas/PaceWeek"},"title":"Weeks","type":"array"},"weeks_ahead":{"title":"Weeks Ahead","type":"integer"},"weeks_behind":{"title":"Weeks Behind","type":"integer"},"weeks_building":{"title":"Weeks Building","type":"integer"},"weeks_like":{"title":"Weeks Like","type":"integer"},"weeks_total":{"title":"Weeks Total","type":"integer"},"window":{"$ref":"#/components/schemas/PaceWindow"}},"required":["access","currency","as_of","today","window","asked_lines","other_currency","on_books_minor","state","on_books_why","weeks_ahead","weeks_like","weeks_behind","weeks_building","weeks_total","booked_7d_minor","expected","compare_options","compared","weeks","lines"],"title":"FinancePace","type":"object"},"FinancePeriod":{"additionalProperties":true,"properties":{"compare":{"enum":["last_year","previous","none"],"title":"Compare","type":"string"},"compare_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare From"},"compare_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare To"},"from":{"format":"date","title":"From","type":"string"},"key":{"enum":["month","season","year","custom"],"title":"Key","type":"string"},"to":{"format":"date","title":"To","type":"string"}},"required":["key","from","to","compare"],"title":"FinancePeriod","type":"object"},"FinancePlace":{"additionalProperties":true,"properties":{"in_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Minor"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The company with the most money in there in the period","title":"Legal Entity Id"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"name":{"title":"Name","type":"string"}},"required":["location_id","name"],"title":"FinancePlace","type":"object"},"FinanceSeason":{"additionalProperties":true,"properties":{"access":{"$ref":"#/components/schemas/SeasonAccess"},"as_of":{"format":"date-time","title":"As Of","type":"string"},"biggest":{"anyOf":[{"$ref":"#/components/schemas/SeasonBiggest"},{"type":"null"}]},"currency":{"title":"Currency","type":"string"},"expected_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected Change Pct"},"expected_minor":{"title":"Expected Minor","type":"integer"},"expected_why":{"$ref":"#/components/schemas/SeasonExplained"},"last_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Minor"},"lines":{"items":{"type":"string"},"title":"Lines","type":"array"},"markers":{"items":{"$ref":"#/components/schemas/SeasonMarker"},"title":"Markers","type":"array"},"months":{"items":{"$ref":"#/components/schemas/SeasonMonth"},"title":"Months","type":"array"},"normal":{"$ref":"#/components/schemas/SeasonNormal"},"other_currency":{"title":"Other Currency","type":"boolean"},"seasons":{"items":{"$ref":"#/components/schemas/SeasonRun"},"title":"Seasons","type":"array"},"shape":{"$ref":"#/components/schemas/SeasonShape"},"to_date":{"$ref":"#/components/schemas/SeasonToDate"},"today":{"format":"date","title":"Today","type":"string"},"weeks":{"items":{"$ref":"#/components/schemas/SeasonWeek"},"title":"Weeks","type":"array"},"window":{"$ref":"#/components/schemas/SeasonWindow"}},"required":["access","currency","as_of","today","window","lines","other_currency","to_date","expected_minor","expected_why","normal","weeks","markers","months","seasons","shape"],"title":"FinanceSeason","type":"object"},"FinanceWindow":{"additionalProperties":true,"description":"3.4's window block: the period as read.","properties":{"compare":{"enum":["last_year","previous","none"],"title":"Compare","type":"string"},"compare_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare From"},"compare_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare To"},"from":{"format":"date","title":"From","type":"string"},"period":{"enum":["month","season","year","custom"],"title":"Period","type":"string"},"so_far_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"So Far To"},"to":{"format":"date","title":"To","type":"string"}},"required":["period","from","to","compare"],"title":"FinanceWindow","type":"object"},"FinanceWords":{"additionalProperties":true,"properties":{"en":{"title":"En","type":"string"},"it":{"title":"It","type":"string"}},"required":["en","it"],"title":"FinanceWords","type":"object"},"FinishCommand":{"additionalProperties":false,"description":"Finish the repair: the old parts' ways are saved on the job, the time is the timer's or the one typed, and the job moves to\nready (which changes the bike, moves the stock and puts the bike back on the rental list).","properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"off_goes":{"items":{"$ref":"#/components/schemas/FleetFinishOffGoes"},"maxItems":100,"title":"Off Goes","type":"array"},"use_timer":{"description":"Take the time from the job timer","title":"Use Timer","type":"boolean"},"worked_minutes":{"anyOf":[{"maximum":100000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"How long it took; needed unless use_timer","title":"Worked Minutes"}},"required":["off_goes","use_timer"],"title":"FinishCommand","type":"object"},"FitIn":{"additionalProperties":false,"description":"The rider range of this size from the model's own chart; wins over the department's generic scale.","properties":{"max":{"maximum":1000.0,"minimum":0.0,"title":"Max","type":"number"},"measure":{"enum":["height_cm","inseam_cm","head_cm","foot_cm","shoe_eu","weight_kg","age_years"],"title":"Measure","type":"string"},"min":{"maximum":1000.0,"minimum":0.0,"title":"Min","type":"number"}},"required":["measure","min","max"],"title":"FitIn","type":"object"},"FitRange":{"additionalProperties":true,"properties":{"best_max":{"title":"Best Max","type":"integer"},"best_min":{"title":"Best Min","type":"integer"},"fits_max":{"title":"Fits Max","type":"integer"},"fits_min":{"title":"Fits Min","type":"integer"},"option_id":{"format":"uuid","title":"Option Id","type":"string"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size"}},"required":["option_id","size","best_min","best_max","fits_min","fits_max"],"title":"FitRange","type":"object"},"FitRangeIn":{"additionalProperties":false,"description":"The heights a size fits (cm): best from best_min to best_max, also rides well from fits_min to fits_max.","properties":{"best_max":{"maximum":230.0,"minimum":80.0,"title":"Best Max","type":"integer"},"best_min":{"maximum":230.0,"minimum":80.0,"title":"Best Min","type":"integer"},"fits_max":{"maximum":230.0,"minimum":80.0,"title":"Fits Max","type":"integer"},"fits_min":{"maximum":230.0,"minimum":80.0,"title":"Fits Min","type":"integer"},"option_id":{"format":"uuid","title":"Option Id","type":"string"}},"required":["option_id","best_min","best_max","fits_min","fits_max"],"title":"FitRangeIn","type":"object"},"FleetFine":{"additionalProperties":false,"description":"The mechanic looked at the bike and it is fine: its check is released and it goes back on the rental list. Needs the\n``Idempotency-Key`` header.","properties":{"item_key":{"description":"The bike's own key (B-112)","maxLength":40,"minLength":1,"title":"Item Key","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who looked at it (the tablet's working person)","title":"Person Id"}},"required":["item_key","location_id"],"title":"FleetFine","type":"object"},"FleetFinishChanged":{"additionalProperties":true,"properties":{"component":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"off_goes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Off Goes"},"parts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parts"}},"title":"FleetFinishChanged","type":"object"},"FleetFinishNextBike":{"additionalProperties":true,"properties":{"item_key":{"title":"Item Key","type":"string"},"item_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"required":["item_key"],"title":"FleetFinishNextBike","type":"object"},"FleetFinishOffGoes":{"additionalProperties":false,"description":"Where the part a fitted line took off goes. A line not named goes to scrap.","properties":{"company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The supplier or maker it goes back to","title":"Company Id"},"line_id":{"format":"uuid","title":"Line Id","type":"string"},"off_goes":{"enum":["scrap","shelf_new","shelf_used","supplier","maker"],"title":"Off Goes","type":"string"},"rma_ref":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"description":"The return's reference","title":"Rma Ref"}},"required":["line_id","off_goes"],"title":"FleetFinishOffGoes","type":"object"},"FleetFinishStockLeft":{"additionalProperties":true,"properties":{"left":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"string"},{"type":"null"}],"title":"Left"},"name":{"title":"Name","type":"string"},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shelf"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"required":["name"],"title":"FleetFinishStockLeft","type":"object"},"FleetFinishWear":{"additionalProperties":true,"properties":{"age_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Days"},"component":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component"},"component_key":{"title":"Component Key","type":"string"},"due_in_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Due In Days"},"part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"new_today, fine, check, due, worn","title":"State"}},"required":["component_key"],"title":"FleetFinishWear","type":"object"},"FleetFinished":{"additionalProperties":true,"description":"What changed, the stock left on each shelf, the looks left for the desk and the next bike waiting for a look.","properties":{"changed":{"default":[],"items":{"$ref":"#/components/schemas/FleetFinishChanged"},"title":"Changed","type":"array"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"finished_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished By"},"item_key":{"title":"Item Key","type":"string"},"item_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Name"},"job_key":{"title":"Job Key","type":"string"},"looks_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Looks Left"},"next_bike":{"anyOf":[{"$ref":"#/components/schemas/FleetFinishNextBike"},{"type":"null"}]},"on_bike":{"default":[],"items":{"$ref":"#/components/schemas/FleetFinishWear"},"title":"On Bike","type":"array"},"ready_to_rent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ready To Rent"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"stock_left":{"default":[],"items":{"$ref":"#/components/schemas/FleetFinishStockLeft"},"title":"Stock Left","type":"array"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"worked_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Worked Minutes"}},"required":["job_key","item_key"],"title":"FleetFinished","type":"object"},"FleetIntake":{"additionalProperties":true,"description":"One intake: the shared details, every bike, the spec each bike gets (rows, what differs by size, the gaps in ``missing``), the\nbuild and check job and, once finished, what it did.","properties":{"done":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Done"},"id":{"format":"uuid","title":"Id","type":"string"},"items":{"items":{"$ref":"#/components/schemas/IntakeBike"},"title":"Items","type":"array"},"job":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Job"},"missing":{"items":{"type":"string"},"title":"Missing","type":"array"},"number":{"title":"Number","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"serial_components":{"items":{"additionalProperties":true,"type":"object"},"title":"Serial Components","type":"array"},"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"},"spec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Spec"},"state":{"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","number","state","version"],"title":"FleetIntake","type":"object"},"FleetRepairElsewhere":{"additionalProperties":true,"description":"Another place that has the part (the ``not_here`` answer).","properties":{"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"location_name":{"title":"Location Name","type":"string"},"on_hand":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"title":"On Hand"},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shelf"}},"required":["location_name"],"title":"FleetRepairElsewhere","type":"object"},"FleetRepairFine":{"additionalProperties":true,"description":"``released``: a check was waiting and is released now. ``ready_to_rent``: the bike can be rented now.","properties":{"item_key":{"title":"Item Key","type":"string"},"ready_to_rent":{"title":"Ready To Rent","type":"boolean"},"released":{"title":"Released","type":"boolean"}},"required":["item_key","released","ready_to_rent"],"title":"FleetRepairFine","type":"object"},"FleetRepairLine":{"additionalProperties":true,"description":"The line a scan wrote: fitted onto a component, or used and not fitted.","properties":{"added_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added At"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"component_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Key"},"component_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Label"},"fit_kind":{"anyOf":[{"enum":["fitted","used"],"type":"string"},{"type":"null"}],"title":"Fit Kind"},"kind":{"title":"Kind","type":"string"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"look_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Look Reason"},"look_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Look State"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"title":"Quantity"},"replaces":{"anyOf":[{"$ref":"#/components/schemas/FleetRepairReplaces"},{"type":"null"}]},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shelf"},"substitute":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Substitute"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"required":["kind"],"title":"FleetRepairLine","type":"object"},"FleetRepairOption":{"additionalProperties":true,"description":"A component the part could go on (the ``ask`` answer).","properties":{"component_key":{"title":"Component Key","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"position":{"anyOf":[{"enum":["front","rear","both"],"type":"string"},{"type":"null"}],"title":"Position"},"replaces":{"anyOf":[{"$ref":"#/components/schemas/FleetRepairReplaces"},{"type":"null"}]},"suggested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Suggested"}},"required":["component_key"],"title":"FleetRepairOption","type":"object"},"FleetRepairPart":{"additionalProperties":true,"description":"A part of the catalogue as a scan answer names it: what it is, its code, its shelf here and how many are free.","properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"title":"Name","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"on_hand":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"title":"On Hand"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shelf"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"required":["product_id","name"],"title":"FleetRepairPart","type":"object"},"FleetRepairReplaces":{"additionalProperties":true,"description":"What a component carries now.","properties":{"fitted_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fitted On"},"name":{"title":"Name","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"rental_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rental Days"}},"required":["name"],"title":"FleetRepairReplaces","type":"object"},"FleetRepairScanned":{"additionalProperties":true,"description":"What one scan did. ``fitted`` and ``used`` wrote a line; ``ask`` names the components it fits; ``refused`` says why it does\nnot fit with the parts that do; ``not_here`` names the places that have it; ``unknown`` the likely parts for a code nobody\nknows. A resent ``offline_key`` answers the first result with ``replayed``.","properties":{"alternatives":{"anyOf":[{"items":{"$ref":"#/components/schemas/FleetRepairPart"},"type":"array"},{"type":"null"}],"title":"Alternatives"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"elsewhere":{"anyOf":[{"items":{"$ref":"#/components/schemas/FleetRepairElsewhere"},"type":"array"},{"type":"null"}],"title":"Elsewhere"},"job_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Version"},"likely":{"anyOf":[{"items":{"$ref":"#/components/schemas/FleetRepairPart"},"type":"array"},{"type":"null"}],"title":"Likely"},"line":{"anyOf":[{"$ref":"#/components/schemas/FleetRepairLine"},{"type":"null"}]},"next_transfer":{"anyOf":[{"$ref":"#/components/schemas/FleetRepairTransfer"},{"type":"null"}]},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/FleetRepairOption"},"type":"array"},{"type":"null"}],"title":"Options"},"part":{"anyOf":[{"$ref":"#/components/schemas/FleetRepairPart"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"result":{"enum":["fitted","used","ask","refused","not_here","unknown"],"title":"Result","type":"string"},"substitutes":{"anyOf":[{"items":{"$ref":"#/components/schemas/FleetRepairPart"},"type":"array"},{"type":"null"}],"title":"Substitutes"}},"required":["result"],"title":"FleetRepairScanned","type":"object"},"FleetRepairTransfer":{"additionalProperties":true,"properties":{"arrives_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arrives At"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"leaves_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leaves At"}},"title":"FleetRepairTransfer","type":"object"},"FleetScan":{"additionalProperties":false,"description":"One scan on a repair of our bike. ``offline_key`` is made once per scan on the tablet and is the scan's idempotency key, so a\nresent scan answers the first result. With both ``product_id`` and ``code`` the part picked wins and the code is kept.","properties":{"code":{"anyOf":[{"description":"A barcode, a sticker or a code typed","maxLength":128,"minLength":1,"type":"string"},{"type":"null"}],"title":"Code"},"component_key":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"description":"The component the mechanic picked when the scan asked","title":"Component Key"},"offline_key":{"format":"uuid","title":"Offline Key","type":"string"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who did it: the tablet's working person (else the running timer's, the job's mechanic, the login's own person)","title":"Person Id"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"anyOf":[{"anyOf":[{"exclusiveMinimum":0.0,"maximum":9999.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$","type":"string"}],"description":"In the part's unit; fractions for ml, l, g, kg, m, cm"},{"type":"null"}],"title":"Quantity"},"substitute_note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"description":"What a substitute really is, in the mechanic's words","title":"Substitute Note"}},"required":["offline_key"],"title":"FleetScan","type":"object"},"Forecast":{"additionalProperties":true,"properties":{"access":{"$ref":"#/components/schemas/ForecastAccess"},"currency":{"title":"Currency","type":"string"},"events":{"items":{"$ref":"#/components/schemas/ForecastEvent"},"title":"Events","type":"array"},"history_years":{"description":"How many years of history the model had (0 to 3)","title":"History Years","type":"integer"},"months":{"description":"January to December","items":{"$ref":"#/components/schemas/ForecastMonth"},"title":"Months","type":"array"},"places":{"items":{"$ref":"#/components/schemas/ForecastPlace"},"title":"Places","type":"array"},"scenario":{"title":"Scenario","type":"string"},"scenarios":{"items":{"$ref":"#/components/schemas/ScenarioTotal"},"title":"Scenarios","type":"array"},"streams":{"items":{"$ref":"#/components/schemas/ForecastStream"},"title":"Streams","type":"array"},"today":{"format":"date","title":"Today","type":"string"},"year":{"title":"Year","type":"integer"}},"required":["access","currency","year","today","scenario","scenarios","months","history_years"],"title":"Forecast","type":"object"},"ForecastAccess":{"additionalProperties":true,"properties":{"level":{"enum":["none","totals","own_place","everything"],"title":"Level","type":"string"}},"required":["level"],"title":"ForecastAccess","type":"object"},"ForecastEvent":{"additionalProperties":true,"properties":{"effect_minor":{"description":"What the event adds to the expected in this year","title":"Effect Minor","type":"integer"},"effect_pct":{"title":"Effect Pct","type":"number"},"ends_on":{"format":"date","title":"Ends On","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"starts_on":{"format":"date","title":"Starts On","type":"string"},"streams":{"anyOf":[{"items":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Streams"}},"required":["id","name","starts_on","ends_on","effect_pct","effect_minor"],"title":"ForecastEvent","type":"object"},"ForecastMonth":{"additionalProperties":true,"properties":{"careful_minor":{"title":"Careful Minor","type":"integer"},"done":{"description":"The month is over: value, low and high equal the actual","title":"Done","type":"boolean"},"high_minor":{"title":"High Minor","type":"integer"},"low_minor":{"title":"Low Minor","type":"integer"},"ly_minor":{"description":"Last year's month, live or history","title":"Ly Minor","type":"integer"},"month":{"format":"date","title":"Month","type":"string"},"on_books_minor":{"title":"On Books Minor","type":"integer"},"parts":{"description":"The value by stream; empty for the totals level","items":{"$ref":"#/components/schemas/StreamPart"},"title":"Parts","type":"array"},"season":{"anyOf":[{"enum":["high","mid","low","closed"],"type":"string"},{"type":"null"}],"description":"The busiest level of the chosen places' busy calendar that month","title":"Season"},"value_minor":{"title":"Value Minor","type":"integer"}},"required":["month","value_minor","low_minor","high_minor","ly_minor","careful_minor","on_books_minor","done"],"title":"ForecastMonth","type":"object"},"ForecastPlace":{"additionalProperties":true,"properties":{"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"expected_months":{"items":{"type":"integer"},"title":"Expected Months","type":"array"},"expected_total_minor":{"title":"Expected Total Minor","type":"integer"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"ly_months":{"description":"Twelve values, January first","items":{"type":"integer"},"title":"Ly Months","type":"array"},"ly_total_minor":{"title":"Ly Total Minor","type":"integer"},"name":{"title":"Name","type":"string"},"region_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Region Id"},"region_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Name"}},"required":["location_id","name","ly_total_minor","expected_total_minor","ly_months","expected_months"],"title":"ForecastPlace","type":"object"},"ForecastStream":{"additionalProperties":true,"properties":{"expected_total_minor":{"title":"Expected Total Minor","type":"integer"},"key":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"ly_total_minor":{"title":"Ly Total Minor","type":"integer"}},"required":["key","label","ly_total_minor","expected_total_minor"],"title":"ForecastStream","type":"object"},"FrameNumberTaken":{"additionalProperties":true,"description":"HTTP 409: the frame number is already on another bike (in this batch or in the fleet); nothing was written.","properties":{"blocking":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Blocking"},"code":{"const":"frame_number_taken","title":"Code","type":"string"},"error":{"const":"frame_number_taken","title":"Error","type":"string"},"message":{"title":"Message","type":"string"}},"required":["error","code","message"],"title":"FrameNumberTaken","type":"object"},"FreeWords":{"description":"Availability in words only: plenty (5 or more), few (1 to 4, with the number), full.","properties":{"left":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Only when level is few","title":"Left"},"level":{"description":"Availability: plenty means at least five free, few means one to four, and full means none.","enum":["plenty","few","full"],"title":"Level","type":"string"}},"required":["level"],"title":"FreeWords","type":"object"},"GearFact":{"additionalProperties":true,"description":"A guest-visible product fact with its label and value. The text is ready to display.","properties":{"item_type_id":{"description":"Identifier of the product part that owns this fact.","format":"uuid","title":"Item Type Id","type":"string"},"key":{"description":"The field's key in its item type","title":"Key","type":"string"},"kind":{"description":"Value type: text, number, choice, multi_choice, boolean or date.","enum":["text","number","choice","multi_choice","boolean","date"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output","description":"The field's label"},"text":{"$ref":"#/components/schemas/Words-Output","description":"The value in plain words: '800 Wh', '1,5 kg', the option's label, Yes or No"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Number fields: the unit (Wh, mm, kg); else null","title":"Unit"},"value":{"$ref":"#/components/schemas/JsonValue","description":"As stored: a number, an option key, a list of option keys, true or false, text, YYYY-MM-DD"}},"required":["item_type_id","key","kind","label","value","text"],"title":"GearFact","type":"object"},"GearItem-Input":{"additionalProperties":false,"properties":{"asset_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The exact item; held for the whole trip","title":"Asset Id"},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Its option or size","title":"Option Id"},"product_id":{"description":"The rental product the rider keeps for the trip","format":"uuid","title":"Product Id","type":"string"}},"required":["product_id"],"title":"GearItem","type":"object"},"GearParts":{"additionalProperties":true,"description":"The bike's record. First visit: nothing known, nothing shown as worn.","properties":{"first_visit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"First Visit"},"gear":{"anyOf":[{"$ref":"#/components/schemas/GearPartsGear"},{"type":"null"}]},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"parts":{"default":[],"items":{"$ref":"#/components/schemas/GearPartsPart"},"title":"Parts","type":"array"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"title":"GearParts","type":"object"},"GearPartsGear":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"required":["id"],"title":"GearPartsGear","type":"object"},"GearPartsPart":{"additionalProperties":true,"description":"One part of the bike. A starting list from a model is not checked; a scan, a fit or a check is.","properties":{"checked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Checked"},"component_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Key"},"component_label":{"anyOf":[{"type":"string"},{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Component Label"},"fitted_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fitted On"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"job_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Key"},"part_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part Label"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"source":{"anyOf":[{"enum":["spec","scan","check","typed"],"type":"string"},{"type":"null"}],"title":"Source"}},"title":"GearPartsPart","type":"object"},"GearPartsRow":{"additionalProperties":false,"description":"One part of the bike as a mechanic names it: the component (its key, or its label when the bike's category has none), the\npart, the catalogue part when there is one, and whether a mechanic confirmed it.","properties":{"checked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Checked"},"component_key":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"title":"Component Key"},"component_label":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Component Label"},"part_label":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Part Label"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"}},"title":"GearPartsRow","type":"object"},"GearPartsSave":{"additionalProperties":false,"description":"Name the bike's model (in words, or the catalogue model) for a starting list, not checked, and save parts the mechanic named.\nAt most one of ``model`` and ``variant_id``; at least one of ``model``, ``variant_id`` and ``parts``.","properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"job_key":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"description":"The job the mechanic is on, recorded beside what they saved","title":"Job Key"},"model":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"description":"The model in words (Santa Cruz Bronson)","title":"Model"},"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/GearPartsRow"},"maxItems":50,"type":"array"},{"type":"null"}],"title":"Parts"},"variant_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The catalogue model its starting list comes from","title":"Variant Id"}},"title":"GearPartsSave","type":"object"},"GenerateRequest":{"additionalProperties":false,"properties":{"base":{"default":"draft","enum":["published","draft","none"],"title":"Base","type":"string"},"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key: the same key and body answer 200 with the first result","format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"}},"required":["idempotency_key","expected_version","location_id"],"title":"GenerateRequest","type":"object"},"GenerationStarted":{"properties":{"replayed":{"default":false,"title":"Replayed","type":"boolean"},"run_id":{"format":"uuid","title":"Run Id","type":"string"},"status":{"title":"Status","type":"string"}},"required":["run_id","status"],"title":"GenerationStarted","type":"object"},"GeometryRow":{"additionalProperties":true,"properties":{"key":{"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output"},"unit":{"title":"Unit","type":"string"},"values":{"additionalProperties":{"type":"string"},"title":"Values","type":"object"}},"required":["key","label","unit","values"],"title":"GeometryRow","type":"object"},"GeometryRowIn":{"additionalProperties":false,"properties":{"key":{"description":"reach, stack, head_angle, wheelbase, ...","pattern":"^[a-z][a-z0-9_]{0,23}$","title":"Key","type":"string"},"label":{"additionalProperties":{"maxLength":80,"minLength":1,"type":"string"},"description":"Per language: en, it, de, fr, at least one","maxProperties":4,"minProperties":1,"propertyNames":{"enum":["en","it","de","fr"]},"title":"Label","type":"object"},"unit":{"description":"mm, °","maxLength":8,"minLength":1,"title":"Unit","type":"string"},"values":{"additionalProperties":{"maxLength":12,"type":"string"},"description":"Per size label, at most 12 sizes","maxProperties":12,"propertyNames":{"maxLength":12,"minLength":1},"title":"Values","type":"object"}},"required":["key","label","unit","values"],"title":"GeometryRowIn","type":"object"},"GlobeItem":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"calendar":{"description":"Twelve months, January first: best, good, low, closed, or null when not known","items":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Calendar","type":"array"},"country_codes":{"items":{"type":"string"},"title":"Country Codes","type":"array"},"fit":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The default fit (the card's fit.fit), null when it cannot be read","title":"Fit"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"},"name":{"description":"The name in the locale, else English, else the slug","title":"Name","type":"string"},"photo":{"anyOf":[{"$ref":"#/components/schemas/GlobePhoto"},{"type":"null"}]},"region_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Path"},"season":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The month's judgement (the card's month.calendar), null without a month","title":"Season"},"slug":{"title":"Slug","type":"string"},"styles":{"description":"The riding styles of the place for the activity","items":{"type":"string"},"title":"Styles","type":"array"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The subtitle in the locale, else English, else null","title":"Subtitle"}},"required":["slug","activity","name","country_codes","calendar","styles"],"title":"GlobeItem","type":"object"},"GlobePhoto":{"additionalProperties":true,"properties":{"file":{"anyOf":[{"$ref":"#/components/schemas/GlobePhotoFile"},{"type":"null"}],"description":"Its stored files, null when it has none"},"src":{"description":"The photo's original link","title":"Src","type":"string"}},"required":["src"],"title":"GlobePhoto","type":"object"},"GlobePhotoFile":{"additionalProperties":true,"properties":{"base":{"description":"The stored files' address without its width and format","title":"Base","type":"string"},"height":{"title":"Height","type":"integer"},"width":{"title":"Width","type":"integer"},"widths":{"description":"The widths stored as AVIF and WebP","items":{"type":"integer"},"title":"Widths","type":"array"}},"required":["base","width","height","widths"],"title":"GlobePhotoFile","type":"object"},"GoLive-Input":{"additionalProperties":false,"description":"XP-07: go live; refused with ``experience_not_ready`` and the missing steps in ``context.missing``.","properties":{"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"state":{"const":"selling","default":"selling","title":"State","type":"string"}},"required":["expected_version"],"title":"GoLive","type":"object"},"GroupBand":{"additionalProperties":false,"properties":{"max":{"anyOf":[{"maximum":9999.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Max"},"min":{"maximum":9999.0,"minimum":1.0,"title":"Min","type":"integer"},"price_minor":{"maximum":100000000.0,"minimum":0.0,"title":"Price Minor","type":"integer"}},"required":["min","price_minor"],"title":"GroupBand","type":"object"},"GroupCost":{"additionalProperties":true,"properties":{"key":{"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/FinanceWords"},"minor":{"title":"Minor","type":"integer"}},"required":["key","label","minor"],"title":"GroupCost","type":"object"},"GroupCosts":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/GroupCost"},"title":"Items","type":"array"},"minor":{"title":"Minor","type":"integer"}},"required":["minor","items"],"title":"GroupCosts","type":"object"},"GroupIn":{"additionalProperties":false,"properties":{"brand_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Brand Id"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Category Id"},"department_id":{"format":"uuid","title":"Department Id","type":"string"},"existing_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Add the rows to this product instead of making one (a draft product: grouping_target_live otherwise)","title":"Existing Product Id"},"title":{"anyOf":[{"$ref":"#/components/schemas/ShortWordsIn"},{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"description":"Words, or one plain title; needed unless existing_product_id is given","title":"Title"},"variants":{"items":{"$ref":"#/components/schemas/GroupVariantIn"},"maxItems":200,"minItems":1,"title":"Variants","type":"array"}},"required":["department_id","variants"],"title":"GroupIn","type":"object"},"GroupTermsIn":{"additionalProperties":false,"properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Required once terms exist","title":"Expected Version"},"notes":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"title":"Notes"},"on_account_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Account Allowed"},"payment_terms_days":{"anyOf":[{"maximum":180.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Payment Terms Days"},"price_list_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The agreed price list (L06) the pricing function applies to this company","title":"Price List Id"}},"title":"GroupTermsIn","type":"object"},"GroupTermsSave":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"},"terms":{"$ref":"#/components/schemas/GroupTermsIn"}},"required":["idempotency_key","terms"],"title":"GroupTermsSave","type":"object"},"GroupVariantIn":{"additionalProperties":false,"properties":{"options":{"maxProperties":10,"patternProperties":{"^[a-z][a-z0-9_]{1,39}$":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"integer"},{"type":"number"}]}},"title":"Options","type":"object"},"stock_product_id":{"format":"uuid","title":"Stock Product Id","type":"string"}},"required":["stock_product_id","options"],"title":"GroupVariantIn","type":"object"},"GroupingApplied":{"additionalProperties":true,"properties":{"products_created":{"title":"Products Created","type":"integer"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"run_id":{"format":"uuid","title":"Run Id","type":"string"},"variants_added":{"title":"Variants Added","type":"integer"},"version":{"title":"Version","type":"integer"}},"required":["run_id","version","products_created","variants_added"],"title":"GroupingApplied","type":"object"},"GroupingApply":{"additionalProperties":false,"description":"STC-21: makes draft products and variants; never changes the stock rows.","properties":{"groups":{"items":{"$ref":"#/components/schemas/GroupIn"},"maxItems":200,"minItems":1,"title":"Groups","type":"array"}},"required":["groups"],"title":"GroupingApply","type":"object"},"GroupingStart":{"additionalProperties":false,"description":"STC-71: flat stock rows grouped into products, in one department or every one.","properties":{"department_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Department Id"}},"title":"GroupingStart","type":"object"},"GroupingUndo":{"additionalProperties":false,"properties":{"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version"],"title":"GroupingUndo","type":"object"},"GroupingUndone":{"additionalProperties":true,"properties":{"replayed":{"default":false,"title":"Replayed","type":"boolean"},"run_id":{"format":"uuid","title":"Run Id","type":"string"},"state":{"enum":["applied","undone"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["run_id","state","version"],"title":"GroupingUndone","type":"object"},"Guest-Input":{"additionalProperties":false,"description":"The person booking: ``name``, or ``first_name`` and ``last_name`` (joined into the customer's name).","properties":{"email":{"description":"Guest or shop email address.","format":"email","title":"Email","type":"string"},"first_name":{"anyOf":[{"maxLength":60,"minLength":1,"type":"string"},{"type":"null"}],"description":"Guest's given name when the request uses split name fields.","title":"First Name"},"last_name":{"anyOf":[{"maxLength":60,"minLength":1,"type":"string"},{"type":"null"}],"description":"Guest's family name when the request uses split name fields.","title":"Last Name"},"locale":{"description":"Language for this guest's booking and messages: en, it, de or fr.","enum":["en","it","de","fr"],"title":"Locale","type":"string"},"name":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"description":"Name shown to guests.","title":"Name"},"phone":{"anyOf":[{"maxLength":40,"minLength":3,"pattern":"^[0-9+()./ -]+$","type":"string"},{"type":"null"}],"description":"Guest or shop telephone number.","title":"Phone"}},"required":["email","locale"],"title":"Guest","type":"object"},"GuestAsk":{"additionalProperties":true,"description":"One question a guest answers when booking a product with a part of this category.","properties":{"builtin":{"description":"True: the answer goes to the rider's own height, weight, shoe or level","title":"Builtin","type":"boolean"},"help":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"The line under the question"},"item_type_id":{"description":"The category that asks it: an answer names it back","format":"uuid","title":"Item Type Id","type":"string"},"key":{"description":"A built-in (height_cm, weight_kg, shoe_eu, level) or the shop's own key","title":"Key","type":"string"},"kind":{"anyOf":[{"enum":["text","number","choice","multi_choice","boolean","date"],"type":"string"},{"type":"null"}],"description":"Built-ins: number, or choice for level","title":"Kind"},"label":{"$ref":"#/components/schemas/Words-Output"},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum"},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum"},"options":{"description":"Choice kinds only","items":{"$ref":"#/components/schemas/AskOption"},"title":"Options","type":"array"},"per":{"default":"rider","description":"rider: each person on a line of this category; booking: once. Built-ins are rider","enum":["rider","booking"],"title":"Per","type":"string"},"required":{"default":false,"title":"Required","type":"boolean"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Number kinds: cm, kg, EU or the shop's own unit","title":"Unit"}},"required":["item_type_id","key","builtin","label"],"title":"GuestAsk","type":"object"},"GuestLink":{"properties":{"expires_at":{"description":"30 days after the booking's last day closes","format":"date-time","title":"Expires At","type":"string"},"url":{"description":"https://{shop_slug}.outdoorgrid.ai/trip/{token}, or https://www.outdoorgrid.ai/s/{shop_slug}/trip/{token} until shop subdomains are on. The token is shown once; only its hash is kept","title":"Url","type":"string"}},"required":["url","expires_at"],"title":"GuestLink","type":"object"},"GuestLinkSent":{"additionalProperties":true,"description":"The booking's trip link was sent to the guest by email.","properties":{"expires_at":{"description":"When the new link stops working: 30 days after the booking's last day closes","format":"date-time","title":"Expires At","type":"string"},"replayed":{"default":false,"description":"True when this Idempotency-Key was already used: nothing was sent again","title":"Replayed","type":"boolean"},"to":{"description":"The masked address it went to, such as a***@mail.de","title":"To","type":"string"}},"required":["to","expires_at"],"title":"GuestLinkSent","type":"object"},"GuestType":{"additionalProperties":true,"properties":{"group_max_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Max Size"},"group_min_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Min Size"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"kind":{"enum":["person","group"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/GuestTypeLabel"},"max_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Age"},"min_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Age"},"octo_type":{"title":"Octo Type","type":"string"},"products":{"default":0,"description":"How many products sell it","title":"Products","type":"integer"},"sort":{"title":"Sort","type":"integer"},"state":{"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","label","kind","octo_type","sort","state","version"],"title":"GuestType","type":"object"},"GuestTypeCreate":{"additionalProperties":false,"description":"GT-02: the key is made from the English name and never changes.","properties":{"group_max_size":{"anyOf":[{"description":"People in one group","maximum":100.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"A group only, with group_min_size","title":"Group Max Size"},"group_min_size":{"anyOf":[{"description":"People in one group","maximum":100.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"A group only, with group_max_size","title":"Group Min Size"},"kind":{"enum":["person","group"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/GuestTypeLabelIn"},"max_age":{"anyOf":[{"maximum":120.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Max Age"},"min_age":{"anyOf":[{"maximum":120.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Min Age"},"octo_type":{"anyOf":[{"enum":["ADULT","YOUTH","CHILD","INFANT","FAMILY","SENIOR","STUDENT","MILITARY","OTHER"],"type":"string"},{"type":"null"}],"description":"Defaults to ADULT for a person; a group is always OTHER","title":"Octo Type"},"sort":{"anyOf":[{"description":"Order on screens","maximum":10000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sort"}},"required":["label","kind"],"title":"GuestTypeCreate","type":"object"},"GuestTypeLabel":{"additionalProperties":true,"properties":{"en":{"title":"En","type":"string"},"it":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"It"}},"required":["en"],"title":"GuestTypeLabel","type":"object"},"GuestTypeLabelIn":{"additionalProperties":false,"properties":{"en":{"maxLength":80,"minLength":1,"title":"En","type":"string"},"it":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"title":"It"}},"required":["en"],"title":"GuestTypeLabelIn","type":"object"},"GuestTypePatch":{"additionalProperties":false,"description":"GT-03: only the fields given change. kind changes only while no product sells the guest type (DS642).","properties":{"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"group_max_size":{"anyOf":[{"description":"People in one group","maximum":100.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Group Max Size"},"group_min_size":{"anyOf":[{"description":"People in one group","maximum":100.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Group Min Size"},"kind":{"enum":["person","group"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/GuestTypeLabelIn"},"max_age":{"anyOf":[{"maximum":120.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Max Age"},"min_age":{"anyOf":[{"maximum":120.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Min Age"},"octo_type":{"enum":["ADULT","YOUTH","CHILD","INFANT","FAMILY","SENIOR","STUDENT","MILITARY","OTHER"],"title":"Octo Type","type":"string"},"sort":{"description":"Order on screens","maximum":10000.0,"minimum":0.0,"title":"Sort","type":"integer"},"state":{"enum":["active","archived"],"title":"State","type":"string"}},"required":["expected_version"],"title":"GuestTypePatch","type":"object"},"GuestTypeProduct":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Name","type":"object"},"sell_kind":{"title":"Sell Kind","type":"string"},"slug":{"title":"Slug","type":"string"}},"required":["id","slug","name","sell_kind"],"title":"GuestTypeProduct","type":"object"},"GuestTypeSaved":{"additionalProperties":true,"properties":{"group_max_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Max Size"},"group_min_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Min Size"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"kind":{"enum":["person","group"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/GuestTypeLabel"},"max_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Age"},"min_age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Age"},"octo_type":{"title":"Octo Type","type":"string"},"products":{"default":0,"description":"How many products sell it","title":"Products","type":"integer"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"sort":{"title":"Sort","type":"integer"},"state":{"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","label","kind","octo_type","sort","state","version"],"title":"GuestTypeSaved","type":"object"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"HandoffCreate":{"additionalProperties":false,"properties":{"activity":{"description":"A kind of riding, for example \"mountain-biking\"","pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"},"carry_offer":{"default":true,"description":"Bikes with no product_id: true puts the crew's offer (each rider's bike and its size) in the link; false sends only what the rider chose (\"any that fits\": dates, riders and the sizes sent)","title":"Carry Offer","type":"boolean"},"departure_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A tour's departure, when one was picked","title":"Departure Id"},"first":{"description":"The first day","format":"date","title":"First","type":"string"},"lang":{"anyOf":[{"enum":["en","it","de","fr","pt","es"],"type":"string"},{"type":"null"}],"description":"The rider's language, for the booking page","title":"Lang"},"last":{"description":"The last day; the trip is at most 28 days, first and last included","format":"date","title":"Last","type":"string"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The bike or tour picked, when one was; none for the shop's row","title":"Product Id"},"riders":{"description":"How many ride","maximum":20.0,"minimum":1.0,"title":"Riders","type":"integer"},"seen":{"anyOf":[{"$ref":"#/components/schemas/SeenOffer"},{"type":"null"}],"description":"Bikes only: the crew's offer as shown when Book was pressed. When the bikes or the total are no longer the same, nothing is made and the answer is 409 offer_changed with the new total"},"shop":{"description":"The shop's address name","pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$","title":"Shop","type":"string"},"sizes":{"anyOf":[{"items":{"anyOf":[{"maxLength":20,"minLength":1,"pattern":"^[A-Za-z0-9 ./-]+$","type":"string"},{"type":"null"}]},"maxItems":20,"type":"array"},{"type":"null"}],"description":"One entry per rider, in rider order: the size label, or null for a rider with no size","title":"Sizes"},"slug":{"description":"A place on the atlas, as in its address","pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"},"what":{"description":"rent: bikes to rent; tour: a guided tour","enum":["rent","tour"],"title":"What","type":"string"}},"required":["slug","activity","shop","what","first","last","riders"],"title":"HandoffCreate","type":"object"},"HandoffMade":{"additionalProperties":true,"properties":{"booking_url":{"description":"The shop's own booking page, filled in with the dates, riders and pick. Open it as it is","title":"Booking Url","type":"string"},"expires_at":{"description":"After this the link still books, without the press it came from","format":"date-time","title":"Expires At","type":"string"},"offer":{"anyOf":[{"$ref":"#/components/schemas/HandoffOffer"},{"type":"null"}],"description":"Bikes only: the crew's offer as checked just now; null for a tour or a shop no longer offering"}},"required":["booking_url","expires_at"],"title":"HandoffMade","type":"object"},"HandoffOffer":{"additionalProperties":true,"properties":{"party":{"anyOf":[{"$ref":"#/components/schemas/AtlasParty"},{"type":"null"}],"description":"A bike for each rider; null when the shop shows no bikes"},"state":{"const":"checked","description":"checked: read again when Book was pressed","title":"State","type":"string"}},"required":["state"],"title":"HandoffOffer","type":"object"},"HopCard":{"additionalProperties":true,"properties":{"activity":{"description":"The activity type key, for example \"mountain-biking\"","title":"Activity","type":"string"},"calendar":{"description":"Twelve months, January first: best, good, low, closed, or null when not known","items":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Calendar","type":"array"},"facets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The place's facets for the activity (1.2.1): {style: [style keys, the type's order], up: [lift, shuttle, pedal], ebike: welcome, allowed, restricted, banned, not_published (no published rule, never read as allowed) or null}","title":"Facets"},"fit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The fit and its breakdown (scoring rubric 1.1), null when the facts cannot be read; status scored, not_enough_data or excluded","title":"Fit"},"month":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The picked month: {calendar, reason, temp_high_c, rain_days, snow_days, daylight_h, stale}; temp_high_c, rain_days, snow_days (days with snow) and daylight_h are null when not known; null without a picked month or its calendar","title":"Month"},"names":{"additionalProperties":{"type":"string"},"description":"The place's name per locale; en always present","title":"Names","type":"object"},"opens_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"On search and best-month lists (15.3): for a lift-served place whose lifts do not run all of the month asked, the soonest season opening on or after that month's first day; null otherwise","title":"Opens On"},"slug":{"description":"The place's address under /ride","title":"Slug","type":"string"},"travel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The estimated flight from the nearest home airport: {from, to, hours, label, mode} (\"about 9 h\", no stops); mode drive under 400 km: label is the place airport's transfer when that airport is home, else null (no time held; hours orders only)","title":"Travel"}},"required":["slug","activity","names","calendar"],"title":"HopCard","type":"object"},"HoursBefore":{"additionalProperties":false,"properties":{"hours":{"maximum":168.0,"minimum":1.0,"title":"Hours","type":"integer"},"kind":{"const":"hours_before","title":"Kind","type":"string"}},"required":["kind","hours"],"title":"HoursBefore","type":"object"},"ImportIn":{"additionalProperties":false,"description":"The import preview's answer the shop started from (XP-18), stored on the experience.","properties":{"external_id":{"maxLength":100,"minLength":1,"title":"External Id","type":"string"},"options":{"default":[],"items":{"$ref":"#/components/schemas/ImportOptionIn"},"maxItems":20,"title":"Options","type":"array"},"prefill":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The prefill the shop kept","title":"Prefill"},"rating":{"anyOf":[{"maximum":5.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Rating"},"review_count":{"anyOf":[{"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Review Count"},"source":{"enum":["getyourguide","viator","airbnb","fareharbor","bokun"],"title":"Source","type":"string"},"switch_import_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Switch Import Id"},"title":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"maxLength":2048,"pattern":"^https://\\S+$","type":"string"},{"type":"null"}],"title":"Url"}},"required":["source","external_id"],"title":"ImportIn","type":"object"},"ImportOptionIn":{"additionalProperties":false,"properties":{"duration_minutes":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"external_option_code":{"maxLength":100,"minLength":1,"title":"External Option Code","type":"string"},"name":{"default":"","maxLength":120,"title":"Name","type":"string"}},"required":["external_option_code"],"title":"ImportOptionIn","type":"object"},"IncidentOnTablet":{"additionalProperties":true,"properties":{"device_id":{"format":"uuid","title":"Device Id","type":"string"},"device_name":{"title":"Device Name","type":"string"},"incident_id":{"format":"uuid","title":"Incident Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"sent_at":{"format":"date-time","title":"Sent At","type":"string"}},"required":["incident_id","device_id","device_name","sent_at"],"title":"IncidentOnTablet","type":"object"},"IncidentOpenIn":{"additionalProperties":false,"properties":{"asset_id":{"format":"uuid","title":"Asset Id","type":"string"},"claim_reference":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"Claim Reference"},"first_aid":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"title":"First Aid"},"happened_at":{"format":"date-time","title":"Happened At","type":"string"},"out_of_service":{"const":true,"description":"A crashed item always goes out of service until the workshop checks it","title":"Out Of Service","type":"boolean"},"photo_ids":{"items":{"format":"uuid","type":"string"},"maxItems":6,"title":"Photo Ids","type":"array"},"place":{"maxLength":200,"minLength":1,"title":"Place","type":"string"},"price_lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReturnPriceLineIn"},"maxItems":20,"type":"array"},{"type":"null"}],"description":"Priced on the spot (at most the shop's limit); without them the amount follows","title":"Price Lines"},"rider_hurt":{"title":"Rider Hurt","type":"boolean"},"what_happened":{"maxLength":2000,"minLength":1,"title":"What Happened","type":"string"}},"required":["asset_id","happened_at","place","what_happened","rider_hurt","out_of_service"],"title":"IncidentOpenIn","type":"object"},"IncidentOpened":{"additionalProperties":true,"properties":{"incident_id":{"format":"uuid","title":"Incident Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"enum":["to_follow","settle"],"title":"State","type":"string"},"workshop_job_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Workshop Job Id"}},"required":["incident_id","state"],"title":"IncidentOpened","type":"object"},"IncidentToTabletIn":{"additionalProperties":false,"properties":{"device_id":{"description":"An enrolled tablet at the booking's place","format":"uuid","title":"Device Id","type":"string"}},"required":["device_id"],"title":"IncidentToTabletIn","type":"object"},"Includes":{"additionalProperties":false,"properties":{"helmet":{"default":false,"title":"Helmet","type":"boolean"},"lunch":{"default":false,"title":"Lunch","type":"boolean"},"other":{"default":[],"items":{"maxLength":120,"minLength":1,"type":"string"},"maxItems":10,"title":"Other","type":"array"},"own_bike_allowed":{"default":false,"title":"Own Bike Allowed","type":"boolean"},"own_bike_discount_minor":{"anyOf":[{"description":"Minor units of the shop's currency","maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Own Bike Discount Minor"},"rental":{"default":"none","enum":["sized_per_guest","none"],"title":"Rental","type":"string"}},"title":"Includes","type":"object"},"IntakeBike":{"additionalProperties":true,"properties":{"asset_id":{"format":"uuid","title":"Asset Id","type":"string"},"asset_key":{"title":"Asset Key","type":"string"},"cost_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"fleet_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fleet State"},"frame_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Number"},"job_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Key"},"parts_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parts Count"},"scanned_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Scanned At"},"serials":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Serials","type":"object"},"size_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Label"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},"required":["asset_id","asset_key"],"title":"IntakeBike","type":"object"},"IntakeBikeSave":{"additionalProperties":false,"description":"What was scanned on one bike: its frame number and the serial of each component marked \"serial per bike\" (null clears).","properties":{"asset_id":{"format":"uuid","title":"Asset Id","type":"string"},"frame_number":{"anyOf":[{"description":"Trimmed and kept in capitals; unique in the shop","maxLength":60,"type":"string"},{"type":"null"}],"title":"Frame Number"},"serials":{"anyOf":[{"patternProperties":{"^[a-z][a-z0-9_]{0,39}$":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}]}},"type":"object"},{"type":"null"}],"title":"Serials"}},"required":["asset_id"],"title":"IntakeBikeSave","type":"object"},"IntakeBikeSerial":{"additionalProperties":false,"properties":{"component_key":{"pattern":"^[a-z][a-z0-9_]{0,39}$","title":"Component Key","type":"string"},"serial":{"maxLength":80,"minLength":1,"title":"Serial","type":"string"}},"required":["component_key","serial"],"title":"IntakeBikeSerial","type":"object"},"IntakeCreate":{"additionalProperties":false,"description":"One bike (or a few) by hand, created through the intake. A sponsor's bike costs 0.","properties":{"bikes":{"items":{"$ref":"#/components/schemas/ByHandBike"},"maxItems":40,"minItems":1,"title":"Bikes","type":"array"},"bought_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Bought On"},"condition":{"default":"new","enum":["new","like_new","good","worn"],"title":"Condition","type":"string"},"condition_note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Condition Note"},"cost_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"in_service_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"In Service On"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The shop's only business when left out","title":"Legal Entity Id"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"maker_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Maker Company Id"},"meter":{"anyOf":[{"$ref":"#/components/schemas/IntakeMeter"},{"type":"null"}],"description":"A used bike's km or hours"},"sponsor_supplied":{"default":false,"title":"Sponsor Supplied","type":"boolean"},"supplier_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Supplier Company Id"},"type_key":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"description":"The category's key, checked against the model's","title":"Type Key"},"variant_id":{"description":"The model; it brings the category","format":"uuid","title":"Variant Id","type":"string"},"year":{"anyOf":[{"maximum":2100.0,"minimum":1900.0,"type":"integer"},{"type":"null"}],"title":"Year"}},"required":["variant_id","bikes","location_id"],"title":"IntakeCreate","type":"object"},"IntakeCreated":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"item_keys":{"items":{"type":"string"},"title":"Item Keys","type":"array"},"number":{"title":"Number","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"title":"Version","type":"integer"}},"required":["id","number","version","item_keys"],"title":"IntakeCreated","type":"object"},"IntakeMeter":{"additionalProperties":false,"properties":{"unit":{"enum":["km","hours"],"title":"Unit","type":"string"},"value":{"maximum":10000000.0,"minimum":0.0,"title":"Value","type":"number"}},"required":["unit","value"],"title":"IntakeMeter","type":"object"},"IntakeSave":{"additionalProperties":false,"properties":{"expected_version":{"description":"The intake's version as read; `version` is accepted too","minimum":1.0,"title":"Expected Version","type":"integer"},"fill":{"anyOf":[{"$ref":"#/components/schemas/SpecFill"},{"type":"null"}]},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/IntakeBikeSave"},"maxItems":400,"type":"array"},{"type":"null"}],"title":"Items"},"shared":{"anyOf":[{"$ref":"#/components/schemas/IntakeShared"},{"type":"null"}]}},"required":["expected_version"],"title":"IntakeSave","type":"object"},"IntakeShared":{"additionalProperties":false,"description":"The details every bike of the intake shares. A field sent as null is cleared; a field left out stays.","properties":{"bought_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Bought On"},"cost_each_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Needs the costs field class","title":"Cost Each Minor"},"in_service_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Not for rent before this day, even once the build and check job is done","title":"In Service From"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The place the bikes are booked into","title":"Location Id"}},"title":"IntakeShared","type":"object"},"Issue":{"additionalProperties":true,"description":"One check of a week, as every schedules answer carries it in ``issues``. Errors block publishing, warnings do not.\n\nCR-S2 adds ``double_booked`` (error: the person crews a tour or transfer during a shift that does not cover it; a guide's tour\ninside a guide shift is the shift's work), ``leave_requested`` (warning: time off asked, not decided) and ``terms_week_legal``\n(warning: over ``crew_settings.legal_week_minutes``), leaves open lines out of every person check, and answers ``line_id`` and\n``kept`` (with ``ack``) on every issue. ``detail`` of ``double_booked``: departure_id, number, departure_kind, roles, label,\nbusy_date, busy_starts, busy_ends.","properties":{"ack":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{id, note, acked_by, acked_at} when kept","title":"Ack"},"assigned":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned"},"code":{"anyOf":[{"enum":["overlap","outside_day","unknown_position","shift_on_leave","leave_requested","double_booked","skill_missing","skill_learning","request_conflict","shift_too_short","coverage_under_min","coverage_over_max","break_missing","break_outside_window","terms_day_minutes","terms_week_minutes","terms_week_days","terms_week_legal"],"type":"string"},{"type":"string"}],"title":"Code"},"date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Date"},"detail":{"additionalProperties":true,"title":"Detail","type":"object"},"ends":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ends"},"kept":{"default":false,"title":"Kept","type":"boolean"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Needed"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"},"position_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Position Id"},"severity":{"enum":["error","warning"],"title":"Severity","type":"string"},"starts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starts"}},"required":["code","severity"],"title":"Issue","type":"object"},"IssueAck":{"additionalProperties":false,"description":"Keep one warning of the week (\"Keep, he agreed\"), or take the keep back with ``keep: false``. The warning is named as the\nweek's ``issues`` answer it: ``code``, ``person_id`` and ``date`` (null for a week total or a coverage stretch's person).","properties":{"code":{"pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Code","type":"string"},"date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Date"},"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"keep":{"default":true,"title":"Keep","type":"boolean"},"location_id":{"description":"The place whose week this is","format":"uuid","title":"Location Id","type":"string"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"description":"Why it is fine, shown next to the kept warning","title":"Note"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"}},"required":["location_id","code","expected_version"],"title":"IssueAck","type":"object"},"IssueAcked":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The keep (schedule_issue_acks); null after taking back a keep that did not exist","title":"Id"},"issue":{"anyOf":[{"$ref":"#/components/schemas/Issue"},{"type":"null"}],"description":"The warning as the board shows it now"},"kept":{"title":"Kept","type":"boolean"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"version":{"description":"The week's version; keeping does not change it","title":"Version","type":"integer"}},"required":["rota_id","version","kept"],"title":"IssueAcked","type":"object"},"ItemAction":{"additionalProperties":false,"description":"One More-menu action. The arguments each action needs are checked here and again in the database.","properties":{"action":{"enum":["move","out_of_service","back_in_service","retire","restore","mark_for_sale","mark_sold","archive","unarchive","delete"],"title":"Action","type":"string"},"block_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Block Id"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Ends At"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"force":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Take out of service anyway: flags the bookings it breaks","title":"Force"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Note"},"open_ended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Out of service until it is fixed: no ends_at; Back in service ends it","title":"Open Ended"},"reason":{"anyOf":[{"enum":["maintenance","transport","quarantine"],"type":"string"},{"type":"null"}],"title":"Reason"},"sale_price_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Price Minor"},"scope":{"anyOf":[{"enum":["current","home"],"type":"string"},{"type":"null"}],"title":"Scope"},"sold_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Sold At"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Starts At"},"to_location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"To Location Id"},"use":{"anyOf":[{"enum":["rental","for_sale","both"],"type":"string"},{"type":"null"}],"title":"Use"}},"required":["action","expected_version"],"title":"ItemAction","type":"object"},"ItemActionResult":{"additionalProperties":true,"properties":{"block_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Block Id"},"broken_bookings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Broken Bookings"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"required":["id"],"title":"ItemActionResult","type":"object"},"ItemDetails":{"additionalProperties":false,"description":"The editable details of one item. A field set to null is cleared; an absent field is left alone.","properties":{"brand":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"Brand"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The owning business; refused while the model has upcoming bookings","title":"Legal Entity Id"},"model":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"Model"},"model_year":{"anyOf":[{"maximum":2100.0,"minimum":1900.0,"type":"integer"},{"type":"null"}],"title":"Model Year"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"purchase_cost_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Purchase Cost Minor"},"purchase_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Purchase Date"},"residual_value_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Residual Value Minor"},"sale_price_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Price Minor"},"serial":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"Serial"},"size_label":{"anyOf":[{"maxLength":20,"minLength":1,"type":"string"},{"type":"null"}],"title":"Size Label"},"supplier_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Supplier Company Id"},"tag":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","type":"string"},{"type":"null"}],"title":"Tag"},"use":{"anyOf":[{"enum":["rental","for_sale","both"],"type":"string"},{"type":"null"}],"title":"Use"},"useful_life_years":{"anyOf":[{"maximum":50.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Useful Life Years"},"warranty_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Warranty Until"}},"title":"ItemDetails","type":"object"},"ItemSave":{"additionalProperties":false,"properties":{"changes":{"$ref":"#/components/schemas/ItemDetails","description":"Only the fields sent are changed; null clears a field"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"values":{"additionalProperties":true,"description":"Typed item fields of the item's type, by field id","title":"Values","type":"object"}},"required":["expected_version"],"title":"ItemSave","type":"object"},"ItemsAdd":{"additionalProperties":false,"properties":{"details":{"anyOf":[{"$ref":"#/components/schemas/ItemDetails"},{"type":"null"}]},"groups":{"items":{"$ref":"#/components/schemas/SizeGroup"},"maxItems":40,"minItems":1,"title":"Groups","type":"array"},"item_type_id":{"format":"uuid","title":"Item Type Id","type":"string"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"model_name":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Model Name"},"tag_prefix":{"anyOf":[{"pattern":"^[A-Z][A-Z0-9]{0,3}$","type":"string"},{"type":"null"}],"description":"Numbers items PREFIX-01, PREFIX-02. Not needed when tags are given","title":"Tag Prefix"},"tags":{"anyOf":[{"items":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","type":"string"},"maxItems":400,"minItems":1,"type":"array"},{"type":"null"}],"description":"The shop's own numbers, one per item in group order (for example bike 84). A taken number refuses the call","title":"Tags"},"values":{"additionalProperties":true,"title":"Values","type":"object"},"variant_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Add to an existing model; otherwise model_name names it","title":"Variant Id"}},"required":["item_type_id","location_id","legal_entity_id","groups"],"title":"ItemsAdd","type":"object"},"ItemsAdded":{"additionalProperties":true,"properties":{"count":{"title":"Count","type":"integer"},"created":{"title":"Created","type":"boolean"},"first_tag":{"title":"First Tag","type":"string"},"items":{"items":{"additionalProperties":true,"type":"object"},"title":"Items","type":"array"},"last_tag":{"title":"Last Tag","type":"string"},"pool_id":{"format":"uuid","title":"Pool Id","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"variant_id":{"format":"uuid","title":"Variant Id","type":"string"}},"required":["created","count","first_tag","last_tag","variant_id","pool_id","items"],"title":"ItemsAdded","type":"object"},"ItineraryDay":{"additionalProperties":false,"properties":{"day_no":{"description":"1 is the first day; the days of a save are 1 up to their count, each once","maximum":60.0,"minimum":1.0,"title":"Day No","type":"integer"},"description":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Description"},"distance_km":{"anyOf":[{"maximum":2000.0,"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,4}|(?=[\\d.]{1,6}0*$)\\d{0,4}\\.\\d{0,1}0*$)","type":"string"},{"type":"null"}],"title":"Distance Km"},"end_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Where the day ends: one of the shop's places","title":"End Point Id"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Where the day starts: one of the shop's places","title":"Meeting Point Id"},"title":{"additionalProperties":{"type":"string"},"description":"The day's title per language, for example {\"en\": \"Col de Vence\", \"it\": \"Col de Vence\"}","title":"Title","type":"object"}},"required":["day_no","title"],"title":"ItineraryDay","type":"object"},"ItinerarySave":{"additionalProperties":false,"properties":{"days":{"items":{"$ref":"#/components/schemas/ItineraryDay"},"maxItems":60,"minItems":1,"title":"Days","type":"array"},"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"}},"required":["expected_version","days"],"title":"ItinerarySave","type":"object"},"JobCreate":{"additionalProperties":false,"properties":{"approval_limit_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Call the customer before the job goes over this, gross (what the customer pays)","title":"Approval Limit Minor"},"block":{"anyOf":[{"$ref":"#/components/schemas/Block"},{"type":"null"}]},"booking_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Booking Id"},"chosen_surcharge_ids":{"default":[],"items":{"format":"uuid","type":"string"},"maxItems":20,"title":"Chosen Surcharge Ids","type":"array"},"customer_words":{"anyOf":[{"maxLength":2000,"minLength":1,"type":"string"},{"type":"null"}],"description":"What the customer said, in their words","title":"Customer Words"},"diagnosis":{"anyOf":[{"maxLength":5000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Diagnosis"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"kind":{"default":"fix","description":"The kind of job the desk took in","enum":["fix","look_then_call","full_service","rental_check","fitting"],"title":"Kind","type":"string"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"maintenance_rule_ids":{"default":[],"items":{"format":"uuid","type":"string"},"maxItems":20,"title":"Maintenance Rule Ids","type":"array"},"mechanic_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Mechanic Id"},"needed_by_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The time the customer needs it back; sets the day at the place","title":"Needed By At"},"needed_by_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The day the customer needs the item back","title":"Needed By On"},"needed_whenever":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The customer can leave it: no day, no time","title":"Needed Whenever"},"planned_minutes":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Planned Minutes"},"promised_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Promised On"},"scheduled_ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Scheduled Ends At"},"scheduled_starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Scheduled Starts At"},"services":{"default":[],"items":{"$ref":"#/components/schemas/ServiceLine"},"maxItems":30,"title":"Services","type":"array"},"source":{"default":"manual","enum":["manual","intake","upkeep"],"title":"Source","type":"string"},"status":{"anyOf":[{"enum":["booked","checked_in","in_progress"],"type":"string"},{"type":"null"}],"title":"Status"},"subject":{"$ref":"#/components/schemas/Subject"}},"required":["idempotency_key","subject"],"title":"JobCreate","type":"object"},"JobDoc":{"additionalProperties":true,"properties":{"allowed_transitions":{"default":[],"items":{"enum":["booked","checked_in","in_progress","waiting_for_customer","waiting_parts","ready","collected","cancelled"],"type":"string"},"title":"Allowed Transitions","type":"array"},"approval_limit_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approval Limit Minor"},"block":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Block"},"block_conflict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Block Conflict"},"booking":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Booking"},"business":{"$ref":"#/components/schemas/Ref"},"chosen_surcharge_ids":{"default":[],"items":{"format":"uuid","type":"string"},"title":"Chosen Surcharge Ids","type":"array"},"collected_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Collected At"},"collection":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Collection"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"currency":{"title":"Currency","type":"string"},"customer":{"anyOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"customer_words":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Words"},"diagnosis":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Absent for an API key without the customer contact details tick","title":"Diagnosis"},"estimate_approved":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Estimate Approved"},"id":{"format":"uuid","title":"Id","type":"string"},"intake_note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The desk's own line at intake, when it is not the customer's words","title":"Intake Note"},"key":{"title":"Key","type":"string"},"kind":{"default":"fix","enum":["fix","look_then_call","full_service","rental_check","fitting"],"title":"Kind","type":"string"},"label_code":{"title":"Label Code","type":"string"},"location":{"$ref":"#/components/schemas/Ref"},"maintenance_rule_ids":{"default":[],"items":{"format":"uuid","type":"string"},"title":"Maintenance Rule Ids","type":"array"},"mechanic":{"anyOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"mechanic_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mechanic Note"},"needed_by_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The time the customer needs it back","title":"Needed By At"},"needed_by_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The day the customer needs it back","title":"Needed By On"},"needed_whenever":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The customer can leave it","title":"Needed Whenever"},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"over_approval_limit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The job's gross total is over the approval limit; only for roles that see money","title":"Over Approval Limit"},"overrun":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Overrun"},"promised_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Promised On"},"ready_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Ready At"},"ready_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who moved the job to ready (ready and collected jobs)","title":"Ready By"},"ready_via":{"anyOf":[{"enum":["desk","tablet"],"type":"string"},{"type":"null"}],"description":"Where it was moved to ready, when the change says","title":"Ready Via"},"scheduled":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Scheduled"},"source":{"title":"Source","type":"string"},"stat":{"additionalProperties":true,"title":"Stat","type":"object"},"state":{"enum":["booked","checked_in","in_progress","waiting_for_customer","waiting_parts","ready","collected","cancelled"],"title":"State","type":"string"},"subject":{"$ref":"#/components/schemas/JobSubject"},"subject_category":{"anyOf":[{"enum":["snow","bike","water","other"],"type":"string"},{"type":"null"}],"description":"The item type's category, for the icon; none for a van","title":"Subject Category"},"taken_in_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the job was opened","title":"Taken In At"},"taken_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who opened the job: the name of that login's person","title":"Taken In By"},"taken_in_via":{"anyOf":[{"enum":["desk","tablet"],"type":"string"},{"type":"null"}],"description":"Where the job was opened","title":"Taken In Via"},"title":{"title":"Title","type":"string"},"told_state":{"anyOf":[{"$ref":"#/components/schemas/TellState"},{"type":"null"}],"description":"Ready and collected jobs only; how the customer knows it is ready"},"updated_at":{"format":"date-time","title":"Updated At","type":"string"},"version":{"title":"Version","type":"integer"},"waived_surcharge_ids":{"default":[],"items":{"format":"uuid","type":"string"},"title":"Waived Surcharge Ids","type":"array"}},"required":["id","key","label_code","version","state","title","source","subject","location","business","currency","stat","created_at","updated_at"],"title":"JobDoc","type":"object"},"JobKey":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"}},"required":["id","key"],"title":"JobKey","type":"object"},"JobResult":{"additionalProperties":true,"properties":{"extra_request":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Request"},"job":{"$ref":"#/components/schemas/JobDoc"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"on_order":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Order"},"ordered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ordered"},"ready_message":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ready Message"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"request":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Request"},"taken_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Taken At"},"to_order":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"To Order"},"told":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Told"},"warnings":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Warnings"},"work":{"$ref":"#/components/schemas/WorkDoc"}},"required":["job","work"],"title":"JobResult","type":"object"},"JobSubject":{"additionalProperties":true,"properties":{"gear":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gear"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"kind":{"enum":["item","vehicle","customer_gear"],"title":"Kind","type":"string"},"label":{"title":"Label","type":"string"}},"required":["kind","label"],"title":"JobSubject","type":"object"},"JobTake":{"additionalProperties":false,"description":"The shared tablet puts a job nobody has on the person working (kept on the device, never a login).","properties":{"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"person_id":{"format":"uuid","title":"Person Id","type":"string"}},"required":["idempotency_key","person_id"],"title":"JobTake","type":"object"},"JobTold":{"additionalProperties":false,"description":"The customer was told the job is ready. Sending the message is the messages lane's; this keeps the fact.","properties":{"channel":{"enum":["sms","email","phone","in_person"],"title":"Channel","type":"string"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"reached":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"false for no answer; absent when it is not known","title":"Reached"}},"required":["idempotency_key","channel"],"title":"JobTold","type":"object"},"JobTypeSet":{"additionalProperties":false,"description":"Null hands the job back to the rule.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"type_key":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"title":"Type Key"}},"required":["type_key","expected_version"],"title":"JobTypeSet","type":"object"},"JobTypeSetJob":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version"],"title":"JobTypeSetJob","type":"object"},"JobTypeSetResult":{"additionalProperties":true,"properties":{"job":{"$ref":"#/components/schemas/JobTypeSetJob"},"type":{"anyOf":[{"$ref":"#/components/schemas/ShownType"},{"type":"null"}]}},"required":["job"],"title":"JobTypeSetResult","type":"object"},"JobUpdate":{"additionalProperties":false,"description":"Only the fields present are changed; ``null`` clears the mechanic, the window or the promised date.","properties":{"approval_limit_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Approval Limit Minor"},"blocked_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Blocked Until"},"booking_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Booking Id"},"customer_words":{"anyOf":[{"maxLength":2000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Customer Words"},"diagnosis":{"anyOf":[{"maxLength":5000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Diagnosis"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"kind":{"anyOf":[{"enum":["fix","look_then_call","full_service","rental_check","fitting"],"type":"string"},{"type":"null"}],"title":"Kind"},"mechanic_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Mechanic Id"},"mechanic_note":{"anyOf":[{"maxLength":2000,"minLength":1,"type":"string"},{"type":"null"}],"description":"The mechanic's note, shown on the item's history; may still be written once the job is ready or collected","title":"Mechanic Note"},"needed_by_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The time the customer needs it back; sets the day at the place; null clears it","title":"Needed By At"},"needed_by_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The day the customer needs the item back; null clears it","title":"Needed By On"},"needed_whenever":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True: the customer can leave it (clears the day and the time)","title":"Needed Whenever"},"planned_minutes":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"How long the job takes, in minutes (the timeline's resize sends it with the new window); null clears it","title":"Planned Minutes"},"promised_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Promised On"},"scheduled_ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Scheduled Ends At"},"scheduled_starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Scheduled Starts At"}},"required":["idempotency_key","expected_version"],"title":"JobUpdate","type":"object"},"JsonValue":{},"KindGroup":{"additionalProperties":false,"properties":{"activities":{"items":{"description":"A platform activity key, or custom:<key> for the shop's own","pattern":"^(custom:)?[a-z][a-z0-9-]{1,39}$","type":"string"},"maxItems":6,"minItems":1,"title":"Activities","type":"array"},"experience_kind":{"enum":["shared_tour","private_tour","lesson","multi_day","shuttle","transfer","guided_rental","course"],"title":"Experience Kind","type":"string"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"}},"title":"KindGroup","type":"object"},"KmLog":{"additionalProperties":false,"properties":{"correction":{"default":false,"title":"Correction","type":"boolean"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"km":{"maximum":5000000.0,"minimum":0.0,"title":"Km","type":"integer"},"note":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"Note"},"read_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Read On"}},"required":["expected_version","km"],"title":"KmLog","type":"object"},"Kpis":{"additionalProperties":true,"properties":{"after_direct_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"After Direct Compare Minor"},"after_direct_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money in less direct costs","title":"After Direct Minor"},"booked_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Rentals and tours booked in the period (first day in it), paid or not","title":"Booked Minor"},"compare_covered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"False when the compare period holds no records of the shop (none on or before its last day): no compare figure is given then. Null with compare none","title":"Compare Covered"},"compare_full":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The shop's records reach back to the compare period's start (a week's grace): only then is a change worked out from the compare figures. Null with compare none","title":"Compare Full"},"compare_records_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The shop's first day with records when it falls inside the compare period (\"last year from 15 Sep\"): the compare figures count from it and every change_pct is null. Null when the records reach back to the compare start (a week's grace) or compare_covered is not true","title":"Compare Records From"},"costs_missing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True when the shop has no active cost and none is worked out in money_in_window: kept_pct and left_pct_of_in are null, the screen asks for the costs","title":"Costs Missing"},"direct_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Direct Compare Minor"},"direct_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Costs that grow with every booking (A-PROFIT, D18); null when profit is hidden","title":"Direct Minor"},"fees_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fees Change Pct"},"fees_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fees Compare Minor"},"fees_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fees Minor"},"fees_pct_of_in":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Fees as a share of money in, 0 to 100","title":"Fees Pct Of In"},"fixed_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Compare Minor"},"fixed_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Costs that come every month, a yearly one spread a twelfth a month (D1)","title":"Fixed Minor"},"in_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"In Change Pct"},"in_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The compare period's money in to the same point; null with compare none or when it holds no records (compare_covered false)","title":"In Compare Minor"},"in_minor":{"description":"Money in over money_in_window, as Season counts it: bookings on their first day (paid or not), the till's goods, collected jobs, history months spread over their days","title":"In Minor","type":"integer"},"kept_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"After direct costs as a share of money in, 0 to 100; null when costs_missing","title":"Kept Pct"},"left_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Left Change Pct"},"left_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Left Compare Minor"},"left_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money in less money out","title":"Left Minor"},"left_pct_of_in":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Left Pct Of In"},"money_in_window":{"anyOf":[{"$ref":"#/components/schemas/MoneyInWindow"},{"type":"null"}]},"out_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Out Change Pct"},"out_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Out Compare Minor"},"out_minor":{"title":"Out Minor","type":"integer"},"profit_left_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profit Left Compare Minor"},"profit_left_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money in less direct less fixed costs (Profit's left over); left_minor stays money in less money out","title":"Profit Left Minor"},"received_compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money received in the compare window, when it holds records","title":"Received Compare Minor"},"received_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money received in the tiles' window; in_minor is sales booked, paid or not (QA 27 Oct review)","title":"Received Minor"},"so_far_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Set (today) while the period runs past today: the tiles and their change read to it","title":"So Far To"},"top_rise":{"anyOf":[{"$ref":"#/components/schemas/TopRise"},{"type":"null"}],"description":"The kind of cost that rose most against compare, when one rose"}},"required":["in_minor","out_minor"],"title":"Kpis","type":"object"},"LadderRow":{"additionalProperties":false,"description":"One length of a rental's prices: from_days to to_days (null = open, only on the last row), its price per day or in all.","properties":{"charge":{"enum":["per_day","in_all"],"title":"Charge","type":"string"},"from_days":{"maximum":3660.0,"minimum":1.0,"title":"From Days","type":"integer"},"note":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"preset":{"anyOf":[{"enum":["two_weeks","three_weeks","month","season","weekend","custom"],"type":"string"},{"type":"null"}],"description":"The preset the row was added from, for its label","title":"Preset"},"price_minor":{"maximum":100000000.0,"minimum":1.0,"title":"Price Minor","type":"integer"},"to_days":{"anyOf":[{"maximum":3660.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"To Days"}},"required":["from_days","price_minor","charge"],"title":"LadderRow","type":"object"},"LadderRowDoc":{"additionalProperties":true,"properties":{"charge":{"enum":["per_day","in_all"],"title":"Charge","type":"string"},"from_days":{"title":"From Days","type":"integer"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"preset":{"anyOf":[{"enum":["two_weeks","three_weeks","month","season","weekend","custom"],"type":"string"},{"type":"null"}],"title":"Preset"},"price_minor":{"title":"Price Minor","type":"integer"},"to_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Days"}},"required":["from_days","to_days","price_minor","charge"],"title":"LadderRowDoc","type":"object"},"LatestFit":{"description":"The newest value of each measure on the linked customer record (each may come from a different day).","properties":{"birth_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The family rider's birth year on the record; null when the rider is the customer","title":"Birth Year"},"height_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height Cm"},"level":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"title":"Level"},"measured_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The newest measurement day","title":"Measured On"},"shoe_eu":{"anyOf":[{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"title":"Shoe Eu"},"weight_kg":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weight Kg"}},"required":["height_cm","weight_kg","shoe_eu","level","birth_year","measured_on"],"title":"LatestFit","type":"object"},"LeftOut":{"additionalProperties":true,"description":"A line the start did not add, and why: time off approved (on_leave) or asked (time_off_asked), special needs that day, a person\nno longer rostered here, a position archived, or no position here (usual hours of someone with no position at this place).","properties":{"date":{"format":"date","title":"Date","type":"string"},"ends":{"title":"Ends","type":"string"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"},"position_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Position Id"},"reason":{"enum":["on_leave","time_off_asked","special_needs","person_unavailable","position_archived","no_position"],"title":"Reason","type":"string"},"starts":{"title":"Starts","type":"string"}},"required":["date","starts","ends","reason"],"title":"LeftOut","type":"object"},"Leg":{"additionalProperties":true,"properties":{"at":{"format":"date-time","title":"At","type":"string"},"bikes":{"title":"Bikes","type":"integer"},"bookings":{"description":"The bookings that ride this leg, in the order sent","items":{"$ref":"#/components/schemas/LegBooking"},"title":"Bookings","type":"array"},"driving_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Driving Minutes"},"dropoff":{"title":"Dropoff","type":"string"},"dropoff_location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Dropoff Location Id"},"dropoff_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dropoff Note"},"flight_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flight From"},"flight_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flight Number"},"id":{"format":"uuid","title":"Id","type":"string"},"km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Km"},"people":{"title":"People","type":"integer"},"pickup":{"title":"Pickup","type":"string"},"pickup_location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Pickup Location Id"},"pickup_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pickup Note"},"seq":{"description":"1 is the first leg; the screen shows L1, L2, ...","title":"Seq","type":"integer"},"tolls_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tolls Minor"}},"required":["id","seq","pickup","at","dropoff","people","bikes","bookings"],"title":"Leg","type":"object"},"LegAdd":{"additionalProperties":false,"description":"POST ~/tours/departures/{departure_id}/legs: one leg added at ``position`` (1 is first), at the end when absent.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"leg":{"$ref":"#/components/schemas/LegIn"},"position":{"anyOf":[{"maximum":30.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Position"}},"required":["expected_version","leg"],"title":"LegAdd","type":"object"},"LegBooking":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The lead's first and last name","title":"Lead Name"},"reference":{"description":"The booking's human reference.","title":"Reference","type":"string"}},"required":["id","reference"],"title":"LegBooking","type":"object"},"LegIn":{"additionalProperties":false,"description":"One leg as the screen sends it. A place is either one of the shop's places (``*_location_id``, the name comes from the place\nwhen the text is empty) or typed text (\"Nice airport, T2\"); one of the two is required on each end.","properties":{"at":{"description":"When the pickup is, with its offset","format":"date-time","title":"At","type":"string"},"bikes":{"default":0,"description":"Bikes (or bike boxes) carried on this leg","maximum":100.0,"minimum":0.0,"title":"Bikes","type":"integer"},"booking_ids":{"description":"Bookings seated on this departure that ride this leg","items":{"format":"uuid","type":"string"},"maxItems":20,"title":"Booking Ids","type":"array"},"driving_minutes":{"anyOf":[{"maximum":1440.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Estimated driving time of the leg","title":"Driving Minutes"},"dropoff":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Dropoff"},"dropoff_location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Dropoff Location Id"},"dropoff_note":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"description":"The quiet line under the drop off: 'until L3'","title":"Dropoff Note"},"flight_from":{"anyOf":[{"maxLength":40,"minLength":2,"type":"string"},{"type":"null"}],"description":"Where the flight comes from: 'FRA'","title":"Flight From"},"flight_number":{"anyOf":[{"pattern":"^[A-Z0-9]{2,3}[0-9]{1,4}[A-Z]?$","type":"string"},{"type":"null"}],"description":"Typed only, never tracked: 'LH1068'","title":"Flight Number"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"PATCH only: the leg kept and edited; absent adds a leg","title":"Id"},"km":{"anyOf":[{"maximum":2000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Estimated distance of the leg","title":"Km"},"people":{"default":0,"description":"People in the vehicle on this leg","maximum":60.0,"minimum":0.0,"title":"People","type":"integer"},"pickup":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"description":"Where the driver picks up, as people say it","title":"Pickup"},"pickup_location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Pickup Location Id"},"pickup_note":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"description":"The quiet line under the pickup: 'Hoffmann group, lead Jonas'","title":"Pickup Note"},"tolls_minor":{"anyOf":[{"maximum":1000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Tolls on the leg, in the shop's currency","title":"Tolls Minor"}},"required":["at"],"title":"LegIn","type":"object"},"LegsSave":{"additionalProperties":false,"description":"PATCH ~/tours/departures/{departure_id}/legs: the whole list in driving order. An empty list removes every leg.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"legs":{"items":{"$ref":"#/components/schemas/LegIn"},"maxItems":30,"title":"Legs","type":"array"}},"required":["expected_version","legs"],"title":"LegsSave","type":"object"},"LegsSaved":{"additionalProperties":true,"properties":{"can_send":{"description":"A driver, at least one leg, the departure still to go and no check that fails","title":"Can Send","type":"boolean"},"checks":{"description":"Always the four keys, in the order seats, bikes, driver_allowed, driving_time","items":{"$ref":"#/components/schemas/Check"},"title":"Checks","type":"array"},"departure_id":{"format":"uuid","title":"Departure Id","type":"string"},"drivers":{"items":{"$ref":"#/components/schemas/DriverNotice"},"title":"Drivers","type":"array"},"editable":{"description":"False once the departure is done or cancelled: the legs read only","title":"Editable","type":"boolean"},"ends_at":{"description":"Back at the shop about then","format":"date-time","title":"Ends At","type":"string"},"is_transfer":{"description":"The departure's tour sells as a transfer (rental_products sell_kind transfer)","title":"Is Transfer","type":"boolean"},"key":{"description":"The departure's number, D-0004","title":"Key","type":"string"},"legs":{"description":"In driving order","items":{"$ref":"#/components/schemas/Leg"},"title":"Legs","type":"array"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"starts_at":{"format":"date-time","title":"Starts At","type":"string"},"status":{"enum":["proposed","scheduled","cancelled","done"],"title":"Status","type":"string"},"timezone":{"title":"Timezone","type":"string"},"totals":{"$ref":"#/components/schemas/LegsTotals"},"update_emailed":{"default":0,"description":"Drivers sent the short update because a leg's time moved after the notice","title":"Update Emailed","type":"integer"},"vehicles":{"description":"The departure's vehicle lines, trailers included","items":{"$ref":"#/components/schemas/LegsVehicle"},"title":"Vehicles","type":"array"},"version":{"description":"The departure's version; every write here takes it as expected_version","title":"Version","type":"integer"}},"required":["departure_id","key","version","is_transfer","status","editable","starts_at","ends_at","timezone","legs","totals","vehicles","drivers","checks","can_send"],"title":"LegsSaved","type":"object"},"LegsTotals":{"additionalProperties":true,"properties":{"bookings":{"description":"Bookings seated on the departure","title":"Bookings","type":"integer"},"currency":{"title":"Currency","type":"string"},"driving_minutes":{"description":"Sum over the legs; 0 when none has an estimate","title":"Driving Minutes","type":"integer"},"flights":{"description":"Legs with a flight number","title":"Flights","type":"integer"},"km":{"description":"Sum over the legs; 0 when none has an estimate","title":"Km","type":"integer"},"legs":{"title":"Legs","type":"integer"},"passengers":{"description":"People booked on the departure (seats taken)","title":"Passengers","type":"integer"},"peak_bikes":{"description":"Most bikes carried on one leg","title":"Peak Bikes","type":"integer"},"peak_people":{"description":"Most people in the vehicle on one leg","title":"Peak People","type":"integer"},"seats":{"description":"The departure's seats","title":"Seats","type":"integer"},"tolls_minor":{"description":"Sum over the legs; 0 when none has tolls","title":"Tolls Minor","type":"integer"}},"required":["legs","passengers","seats","bookings","peak_people","peak_bikes","flights","driving_minutes","km","tolls_minor","currency"],"title":"LegsTotals","type":"object"},"LegsVehicle":{"additionalProperties":true,"properties":{"bikes_carried":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bikes Carried"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"description":"van, trailer, ... (vehicle_profiles.kind)","title":"Kind","type":"string"},"name":{"title":"Name","type":"string"},"number":{"description":"V-01","title":"Number","type":"string"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Seats including the driver's; null when not recorded","title":"Seats"}},"required":["id","number","name","kind"],"title":"LegsVehicle","type":"object"},"Line":{"additionalProperties":true,"properties":{"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare Minor"},"key":{"title":"Key","type":"string"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"side":{"enum":["in","out"],"title":"Side","type":"string"},"this_minor":{"title":"This Minor","type":"integer"}},"required":["side","key","this_minor"],"title":"Line","type":"object"},"LineAdd":{"additionalProperties":false,"description":"A service, labour, a part, or other work (``text`` and ``minutes_taken``, priced by the desk later).","properties":{"customer_supplied":{"default":false,"title":"Customer Supplied","type":"boolean"},"description":{"anyOf":[{"$ref":"#/components/schemas/LocalizedName"},{"type":"null"}]},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"from_location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A part: the place to set it aside at (the job's place when absent). Nothing moves between places","title":"From Location Id"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"kind":{"enum":["service","labour","part","other"],"title":"Kind","type":"string"},"mechanic_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Mechanic Id"},"minutes":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Minutes"},"minutes_taken":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"The time the work really took; required for other work","title":"Minutes Taken"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who did it (the tablet's working person); the job's mechanic when absent","title":"Person Id"},"position_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Position Id"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"anyOf":[{"pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","type":"string"},{"type":"null"}],"title":"Quantity"},"service_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Service Id"},"state":{"anyOf":[{"enum":["planned","done"],"type":"string"},{"type":"null"}],"title":"State"},"text":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"description":"Other work: what was done, in the mechanic's words","title":"Text"},"unit_entered_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Unit Entered Minor"}},"required":["idempotency_key","expected_version","kind"],"title":"LineAdd","type":"object"},"LineChange":{"additionalProperties":false,"description":"One change: a line by id (qty null hands the number back to the Oracle), or a product to add by id, or one typed by name.","properties":{"colour":{"anyOf":[{"maxLength":60,"minLength":1,"type":"string"},{"type":"null"}],"title":"Colour"},"label":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Label"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"note":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Note"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"qty":{"anyOf":[{"maximum":100000.0,"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,9}0*$)\\d{0,6}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Qty"},"removed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Removed"},"size":{"anyOf":[{"maxLength":20,"minLength":1,"type":"string"},{"type":"null"}],"title":"Size"},"unit_cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Unit Cost Minor"}},"title":"LineChange","type":"object"},"LineDay":{"additionalProperties":false,"description":"A local date and a full-day, morning or afternoon period for one booking line.","properties":{"date":{"description":"Local calendar date.","format":"date","title":"Date","type":"string"},"period":{"description":"Part of the day covered by this item.","enum":["full","morning","afternoon"],"title":"Period","type":"string"}},"required":["date","period"],"title":"LineDay","type":"object"},"LineDone":{"additionalProperties":false,"description":"Mark a planned line done from the desk: a part is fitted (stock goes down where it is set aside), a service or labour is done.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"LineDone","type":"object"},"LineRemove":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"LineRemove","type":"object"},"LinkedBooking":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"reference":{"title":"Reference","type":"string"}},"required":["id","reference"],"title":"LinkedBooking","type":"object"},"Localized":{"additionalProperties":false,"properties":{"en":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"En"},"it":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"It"}},"title":"Localized","type":"object"},"LocalizedName":{"additionalProperties":false,"properties":{"en":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"En"},"it":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"It"}},"title":"LocalizedName","type":"object"},"LongWordsIn":{"additionalProperties":false,"description":"A description, an SEO description or safety warnings per language.","properties":{"de":{"anyOf":[{"maxLength":16000,"type":"string"},{"type":"null"}],"title":"De"},"en":{"anyOf":[{"maxLength":16000,"type":"string"},{"type":"null"}],"title":"En"},"fr":{"anyOf":[{"maxLength":16000,"type":"string"},{"type":"null"}],"title":"Fr"},"it":{"anyOf":[{"maxLength":16000,"type":"string"},{"type":"null"}],"title":"It"},"pt":{"anyOf":[{"maxLength":16000,"type":"string"},{"type":"null"}],"title":"Pt"}},"title":"LongWordsIn","type":"object"},"LookSettle":{"additionalProperties":false,"description":"Settle one look: ``keep`` leaves the part on the job as it is; ``put_on`` records it on the component named (the change is\napplied then, with its stock already taken, and the money is counted at the completion). The version the screen read goes as\n``expected_version``; ``version`` is the same field under the name the desk sends.","properties":{"action":{"enum":["keep","put_on"],"title":"Action","type":"string"},"component_key":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"description":"The component it goes on; needed for put_on","title":"Component Key"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Version"}},"required":["action"],"title":"LookSettle","type":"object"},"LookSettled":{"additionalProperties":true,"description":"The job after the settle (as the job read answers it), and the desk's review when the RPC sends it.","properties":{"job":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Job"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"review":{"anyOf":[{"$ref":"#/components/schemas/BikeReview"},{"type":"null"}]},"work":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Work"}},"title":"LookSettled","type":"object"},"MainContactIn":{"additionalProperties":false,"description":"Exactly one of ``person_id`` (someone the shop already has) or ``name`` (a new person, made in the people register).","properties":{"name":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"}},"title":"MainContactIn","type":"object"},"MarketingConsent":{"additionalProperties":true,"description":"The customer's recorded marketing consent. Additional response fields may be added.","properties":{"at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it last changed; null while nothing is recorded","title":"At"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"guest_booking, store_checkout, desk or import","title":"Source"},"state":{"enum":["none","granted","withdrawn"],"title":"State","type":"string"},"text_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Version"}},"required":["state"],"title":"MarketingConsent","type":"object"},"MarketingConsentTick":{"additionalProperties":false,"description":"The marketing tick on a customer or booking form. Never tick it for the person. A false value records nothing and does not withdraw consent given before.","properties":{"granted":{"description":"True when the person ticked the box themselves","title":"Granted","type":"boolean"},"text_version":{"anyOf":[{"description":"The version of the consent words shown, for example mc-2026-10-17","pattern":"^[a-z0-9][a-z0-9._-]{0,39}$","type":"string"},{"type":"null"}],"description":"Required when granted","title":"Text Version"}},"required":["granted"],"title":"MarketingConsentTick","type":"object"},"MemberSave":{"additionalProperties":false,"properties":{"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key: the same key and body answer 200 with the first result","format":"uuid","title":"Idempotency Key","type":"string"},"items":{"items":{"additionalProperties":true,"type":"object"},"maxItems":100,"title":"Items","type":"array"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Needed for the positions section","title":"Location Id"}},"required":["idempotency_key","expected_version","items"],"title":"MemberSave","type":"object"},"Merged":{"additionalProperties":true,"description":"The kept record after the merge (its version bumped once) and the duplicate now archived into it.","properties":{"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"merged":{"$ref":"#/components/schemas/MergedRecord"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","merged"],"title":"Merged","type":"object"},"MergedRecord":{"additionalProperties":true,"properties":{"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"}},"required":["id","key"],"title":"MergedRecord","type":"object"},"MinutesBefore":{"additionalProperties":false,"properties":{"kind":{"const":"minutes_before","title":"Kind","type":"string"},"minutes":{"maximum":43200.0,"minimum":0.0,"title":"Minutes","type":"integer"}},"required":["kind","minutes"],"title":"MinutesBefore","type":"object"},"ModelBuildPart":{"additionalProperties":true,"properties":{"key":{"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output"},"more":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"More"},"value":{"title":"Value","type":"string"}},"required":["key","label","value","more"],"title":"ModelBuildPart","type":"object"},"ModelBuildPartIn":{"additionalProperties":false,"properties":{"key":{"description":"motor, battery, fork, shock, brakes, wheels, ...","pattern":"^[a-z][a-z0-9_]{0,23}$","title":"Key","type":"string"},"label":{"additionalProperties":{"maxLength":80,"minLength":1,"type":"string"},"description":"Per language: en, it, de, fr, at least one","maxProperties":4,"minProperties":1,"propertyNames":{"enum":["en","it","de","fr"]},"title":"Label","type":"object"},"more":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"More"},"value":{"maxLength":120,"minLength":1,"title":"Value","type":"string"}},"required":["key","label","value"],"title":"ModelBuildPartIn","type":"object"},"MoneyInWindow":{"additionalProperties":true,"description":"The days a money in figure counts, so two figures over different windows each say theirs.","properties":{"basis":{"const":"booked","description":"booked: bookings on their first day (paid or not), collected jobs, the till's goods, history months spread over their days, as Season counts it","title":"Basis","type":"string"},"from":{"format":"date","title":"From","type":"string"},"includes_ahead":{"description":"True when the window ends after today: bookings still to come are in the figure","title":"Includes Ahead","type":"boolean"},"to":{"description":"Today while the period runs past it (so far), else the period's last day","format":"date","title":"To","type":"string"}},"required":["from","to","includes_ahead","basis"],"title":"MoneyInWindow","type":"object"},"MonthCounts":{"additionalProperties":true,"properties":{"best":{"description":"Places at their best that month, every match before any cut","title":"Best","type":"integer"},"good":{"description":"Places good that month","title":"Good","type":"integer"},"low":{"description":"Places in low season that month (search shows them; best + good + low is search's total)","title":"Low","type":"integer"}},"required":["best","good","low"],"title":"MonthCounts","type":"object"},"MultiDaySaved":{"additionalProperties":true,"description":"A PUT's answer: the record the set hangs on (the tour product, the departure or the booking) and the set's new version.","properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","version"],"title":"MultiDaySaved","type":"object"},"NeededWaiver":{"description":"A waiver the booking needs, from its lines and its place, in signing order.","properties":{"ask_id_photo":{"title":"Ask Id Photo","type":"boolean"},"kind":{"enum":["equipment","tours","both"],"title":"Kind","type":"string"},"parent_signs_minors":{"title":"Parent Signs Minors","type":"boolean"},"template_id":{"format":"uuid","title":"Template Id","type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"wait_for_adults":{"title":"Wait For Adults","type":"boolean"}},"required":["template_id","kind","title","wait_for_adults","parent_signs_minors","ask_id_photo"],"title":"NeededWaiver","type":"object"},"NeedsPerson":{"properties":{"code":{"enum":["paid_online_unconfirmed","paid_after_lapse","late","not_collected","refund_due"],"title":"Code","type":"string"},"since":{"format":"date-time","title":"Since","type":"string"}},"required":["code","since"],"title":"NeedsPerson","type":"object"},"NewGear":{"additionalProperties":false,"description":"Customer gear left at the counter. The tag and the promised date belong to the job.","properties":{"brand":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"title":"Brand"},"colour":{"anyOf":[{"maxLength":60,"minLength":1,"type":"string"},{"type":"null"}],"title":"Colour"},"customer_id":{"format":"uuid","title":"Customer Id","type":"string"},"description":{"maxLength":500,"minLength":1,"title":"Description","type":"string"},"gear_kind":{"default":"other","enum":["ski","snowboard","bike","ebike","kayak","sup","other"],"title":"Gear Kind","type":"string"},"item_type_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Type Id"},"model":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"title":"Model"},"notes":{"anyOf":[{"maxLength":1000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Notes"},"serial":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"title":"Serial"}},"required":["customer_id","description"],"title":"NewGear","type":"object"},"NewStockIn":{"additionalProperties":false,"properties":{"location_id":{"format":"uuid","title":"Location Id","type":"string"},"quantity":{"maximum":9999.0,"minimum":0.0,"title":"Quantity","type":"integer"}},"required":["location_id","quantity"],"title":"NewStockIn","type":"object"},"NewVariantIn":{"additionalProperties":false,"description":"A size with no stock row yet: the stock row is made in the same transaction (named after the title, size and colour, the\nproduct's brand and category), its stock received at each place.","properties":{"barcode":{"anyOf":[{"maxLength":128,"minLength":1,"type":"string"},{"type":"null"}],"description":"EAN or UPC","title":"Barcode"},"colour":{"anyOf":[{"maxLength":60,"minLength":1,"type":"string"},{"type":"null"}],"title":"Colour"},"gross_minor":{"anyOf":[{"description":"Minor units of the market's currency","maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"The home price with VAT","title":"Gross Minor"},"size":{"anyOf":[{"maxLength":20,"minLength":1,"type":"string"},{"type":"null"}],"title":"Size"},"sku":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"description":"Default made","title":"Sku"},"stock":{"anyOf":[{"items":{"$ref":"#/components/schemas/NewStockIn"},"maxItems":50,"type":"array"},{"type":"null"}],"description":"Units at each place now","title":"Stock"}},"title":"NewVariantIn","type":"object"},"NextDeparture":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"seats":{"title":"Seats","type":"integer"},"seats_taken":{"title":"Seats Taken","type":"integer"},"starts_at":{"format":"date-time","title":"Starts At","type":"string"}},"required":["id","key","starts_at","seats_taken","seats"],"title":"NextDeparture","type":"object"},"NextDue":{"additionalProperties":true,"properties":{"amount_minor":{"title":"Amount Minor","type":"integer"},"due_on":{"format":"date","title":"Due On","type":"string"},"kind":{"title":"Kind","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"ref":{"additionalProperties":true,"title":"Ref","type":"object"},"what":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What"}},"required":["kind","amount_minor","due_on","ref"],"title":"NextDue","type":"object"},"Night":{"additionalProperties":false,"properties":{"accommodation_name":{"maxLength":120,"minLength":1,"title":"Accommodation Name","type":"string"},"address":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"title":"Address"},"night_no":{"description":"1 is the night after day 1; each once, below the itinerary's day count","maximum":59.0,"minimum":1.0,"title":"Night No","type":"integer"},"room_types":{"items":{"$ref":"#/components/schemas/RoomType"},"maxItems":12,"minItems":1,"title":"Room Types","type":"array"}},"required":["night_no","accommodation_name","room_types"],"title":"Night","type":"object"},"NightsSave":{"additionalProperties":false,"properties":{"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"nights":{"items":{"$ref":"#/components/schemas/Night"},"maxItems":59,"title":"Nights","type":"array"}},"required":["expected_version","nights"],"title":"NightsSave","type":"object"},"NotBuilt":{"additionalProperties":true,"description":"The requested operation is not available for this request shape.","properties":{"code":{"const":"not_built","default":"not_built","title":"Code","type":"string"},"message":{"default":"This part of the booking flow is not ready yet","title":"Message","type":"string"},"owner":{"description":"The job that builds it (PRDS/booking_flow/BUILD.md)","enum":["A1a","A1b","A1c","A2a","A2b","A2c","A3a","A3b","A4a","A4b","A5a","A5b","A6"],"title":"Owner","type":"string"}},"required":["owner"],"title":"NotBuilt","type":"object"},"NoteAdd":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"},"note":{"$ref":"#/components/schemas/NoteIn"}},"required":["idempotency_key","note"],"title":"NoteAdd","type":"object"},"NoteAdded":{"properties":{"note":{"additionalProperties":true,"title":"Note","type":"object"}},"required":["note"],"title":"NoteAdded","type":"object"},"NoteAuthor":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The staff member's person id; null when they left the shop's people","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"title":"NoteAuthor","type":"object"},"NoteCreate":{"additionalProperties":false,"properties":{"text":{"maxLength":2000,"minLength":1,"title":"Text","type":"string"}},"required":["text"],"title":"NoteCreate","type":"object"},"NoteIn":{"additionalProperties":false,"properties":{"body":{"maxLength":2000,"minLength":1,"title":"Body","type":"string"},"kind":{"anyOf":[{"enum":["note","call","claim"],"type":"string"},{"type":"null"}],"description":"Default note","title":"Kind"},"occurred_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it happened; default now","title":"Occurred At"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who we spoke with: one of the company's people","title":"Person Id"}},"required":["body"],"title":"NoteIn","type":"object"},"NoteSaved":{"additionalProperties":true,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"created_by":{"$ref":"#/components/schemas/NoteAuthor"},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"text":{"title":"Text","type":"string"}},"required":["id","booking_id","text","created_at","created_by"],"title":"NoteSaved","type":"object"},"NoticeEmailed":{"additionalProperties":true,"properties":{"email_id":{"format":"uuid","title":"Email Id","type":"string"},"locale":{"title":"Locale","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"person_id":{"format":"uuid","title":"Person Id","type":"string"}},"required":["person_id","email_id","locale"],"title":"NoticeEmailed","type":"object"},"NoticeNotEmailed":{"additionalProperties":true,"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"person_id":{"format":"uuid","title":"Person Id","type":"string"},"reason":{"enum":["no_email","suppressed","inactive"],"title":"Reason","type":"string"}},"required":["person_id","reason"],"title":"NoticeNotEmailed","type":"object"},"NoticeSend":{"additionalProperties":false,"description":"POST ~/tours/departures/{departure_id}/legs/notice: the notice to every driver on the departure, each in their language.","properties":{"keys_note":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"description":"Where the keys are: 'keys at the desk from 09:00'","title":"Keys Note"},"note":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"description":"A line of the person's own, plain text","title":"Note"}},"title":"NoticeSend","type":"object"},"NoticeSent":{"additionalProperties":true,"properties":{"departure_id":{"format":"uuid","title":"Departure Id","type":"string"},"emailed":{"items":{"$ref":"#/components/schemas/NoticeEmailed"},"title":"Emailed","type":"array"},"key":{"title":"Key","type":"string"},"not_emailed":{"items":{"$ref":"#/components/schemas/NoticeNotEmailed"},"title":"Not Emailed","type":"array"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"sent_at":{"format":"date-time","title":"Sent At","type":"string"},"state":{"enum":["queued","nobody"],"title":"State","type":"string"}},"required":["departure_id","key","sent_at","emailed","not_emailed","state"],"title":"NoticeSent","type":"object"},"OnDemand":{"additionalProperties":false,"properties":{"from":{"description":"HH:MM, the shop's time","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"From","type":"string"},"to":{"description":"HH:MM, the shop's time","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"To","type":"string"}},"required":["from","to"],"title":"OnDemand","type":"object"},"OpenGiveRequest":{"additionalProperties":false,"properties":{"expected_version":{"description":"The week's version, as the week read answers it","minimum":0.0,"title":"Expected Version","type":"integer"},"line_id":{"format":"uuid","title":"Line Id","type":"string"},"person_id":{"description":"Someone who asked for the line","format":"uuid","title":"Person Id","type":"string"}},"required":["line_id","person_id","expected_version"],"title":"OpenGiveRequest","type":"object"},"OpenGiven":{"additionalProperties":true,"properties":{"given_ask_id":{"format":"uuid","title":"Given Ask Id","type":"string"},"id":{"description":"The week (rota)","format":"uuid","title":"Id","type":"string"},"line_id":{"format":"uuid","title":"Line Id","type":"string"},"messages":{"description":"What the change told each person it touches, as the change after publishing answers it","items":{"additionalProperties":true,"type":"object"},"title":"Messages","type":"array"},"not_given":{"title":"Not Given","type":"integer"},"person_id":{"format":"uuid","title":"Person Id","type":"string"},"published_revision_id":{"format":"uuid","title":"Published Revision Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"told":{"description":"People who asked and were told (a notice of kind answer, and shift_answer with an address)","title":"Told","type":"integer"},"version":{"description":"The week's version now","title":"Version","type":"integer"}},"required":["id","rota_id","version","given_ask_id","person_id","line_id","told","not_given","published_revision_id"],"title":"OpenGiven","type":"object"},"Opening":{"additionalProperties":true,"properties":{"name":{"description":"The place's English name","title":"Name","type":"string"},"names":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"description":"The place's name per locale; en always present","title":"Names"},"opens_on":{"description":"The day its lifts open next","format":"date","title":"Opens On","type":"string"},"slug":{"title":"Slug","type":"string"}},"required":["slug","name","opens_on"],"title":"Opening","type":"object"},"OptionAdd":{"additionalProperties":false,"description":"XP-09: a new option; its key is the next free ``opt_N`` (at most 20, ``option_limit``).","properties":{"below_min":{"enum":["new_date_or_refund","run_anyway","ask_me"],"title":"Below Min","type":"string"},"bike_racks":{"anyOf":[{"maximum":200.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Bike Racks"},"decide_at":{"anyOf":[{"discriminator":{"mapping":{"day_before_at":"#/components/schemas/DayBeforeAt","hours_before":"#/components/schemas/HoursBefore"},"propertyName":"kind"},"oneOf":[{"$ref":"#/components/schemas/HoursBefore"},{"$ref":"#/components/schemas/DayBeforeAt"}]},{"type":"null"}],"title":"Decide At"},"duration_minutes":{"maximum":10080.0,"minimum":15.0,"title":"Duration Minutes","type":"integer"},"guests_max":{"maximum":200.0,"minimum":1.0,"title":"Guests Max","type":"integer"},"guests_min":{"maximum":200.0,"minimum":1.0,"title":"Guests Min","type":"integer"},"includes":{"$ref":"#/components/schemas/Includes"},"min_to_run":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Min To Run"},"name":{"maxProperties":8,"minProperties":1,"patternProperties":{"^[a-z]{2}$":{"maxLength":120,"minLength":1,"type":"string"}},"title":"Name","type":"object"},"on_demand":{"anyOf":[{"$ref":"#/components/schemas/OnDemand"},{"type":"null"}],"description":"A private option only: the window guests may pick a start in"},"private":{"default":false,"title":"Private","type":"boolean"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"sort":{"maximum":1000.0,"minimum":0.0,"title":"Sort","type":"integer"}},"required":["name","duration_minutes"],"title":"OptionAdd","type":"object"},"OptionAvailability":{"properties":{"days":{"items":{"$ref":"#/components/schemas/DayFree"},"title":"Days","type":"array"},"option_id":{"format":"uuid","title":"Option Id","type":"string"}},"required":["option_id","days"],"title":"OptionAvailability","type":"object"},"OptionPatch":{"additionalProperties":false,"description":"XP-10: only the fields given change; ``state: archived`` takes an option in use off sale.","properties":{"below_min":{"enum":["new_date_or_refund","run_anyway","ask_me"],"title":"Below Min","type":"string"},"bike_racks":{"anyOf":[{"maximum":200.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Bike Racks"},"decide_at":{"anyOf":[{"discriminator":{"mapping":{"day_before_at":"#/components/schemas/DayBeforeAt","hours_before":"#/components/schemas/HoursBefore"},"propertyName":"kind"},"oneOf":[{"$ref":"#/components/schemas/HoursBefore"},{"$ref":"#/components/schemas/DayBeforeAt"}]},{"type":"null"}],"title":"Decide At"},"duration_minutes":{"maximum":10080.0,"minimum":15.0,"title":"Duration Minutes","type":"integer"},"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"guests_max":{"maximum":200.0,"minimum":1.0,"title":"Guests Max","type":"integer"},"guests_min":{"maximum":200.0,"minimum":1.0,"title":"Guests Min","type":"integer"},"includes":{"$ref":"#/components/schemas/Includes"},"min_to_run":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Min To Run"},"name":{"maxProperties":8,"minProperties":1,"patternProperties":{"^[a-z]{2}$":{"maxLength":120,"minLength":1,"type":"string"}},"title":"Name","type":"object"},"on_demand":{"anyOf":[{"$ref":"#/components/schemas/OnDemand"},{"type":"null"}],"description":"A private option only: the window guests may pick a start in"},"private":{"title":"Private","type":"boolean"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"sort":{"maximum":1000.0,"minimum":0.0,"title":"Sort","type":"integer"},"state":{"enum":["active","archived"],"title":"State","type":"string"}},"required":["expected_version"],"title":"OptionPatch","type":"object"},"OptionRemoved":{"additionalProperties":true,"description":"XP-11: the removed option and the experience's new version.","properties":{"experience_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Experience Version"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"removed":{"default":true,"title":"Removed","type":"boolean"},"replayed":{"default":false,"title":"Replayed","type":"boolean"}},"required":["id","key"],"title":"OptionRemoved","type":"object"},"OptionSaved":{"additionalProperties":true,"description":"XP-09, XP-10: the option's id, its key (``opt_N`` on an add) and version, and the experience's new version.","properties":{"experience_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Experience Version"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["version"],"title":"OptionSaved","type":"object"},"OptionWhen":{"additionalProperties":false,"description":"XP-27: the whole timetable of one option, written in one RPC. One timetable per start time; a time no longer named is\npaused (its departures with no bookings go), a new time gets a timetable, the others take the days, season and closed days.\nThe departures roll from these timetables exactly as the Timetables screen's do (they show on Departures once it sells).","properties":{"closed_dates":{"default":[],"description":"Days in the season with no departure","items":{"format":"date","type":"string"},"maxItems":100,"title":"Closed Dates","type":"array"},"expected_version":{"description":"The option's version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"start_times":{"description":"HH:MM in the shop's time; empty: no timetable (a private option on demand)","items":{"description":"HH:MM, the shop's time","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},"maxItems":24,"title":"Start Times","type":"array"},"valid_from":{"description":"The season's first day","format":"date","title":"Valid From","type":"string"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The season's last day; null: no end","title":"Valid Until"},"weekdays":{"description":"ISO days, 1 Monday to 7 Sunday","items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"minItems":1,"title":"Weekdays","type":"array"}},"required":["expected_version","start_times","weekdays","valid_from"],"title":"OptionWhen","type":"object"},"OptionWhenSaved":{"additionalProperties":true,"description":"XP-27: the option's new version, its timetables after the save and how many departures they still roll.","properties":{"departures":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Departures still to run on this option","title":"Departures"},"experience_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Experience Version"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"kept_on_closed":{"default":0,"description":"Departures on a closed day kept because they have bookings","title":"Kept On Closed","type":"integer"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"option_key":{"title":"Option Key","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"timetables":{"default":[],"items":{"$ref":"#/components/schemas/Timetable"},"title":"Timetables","type":"array"},"version":{"description":"The option's new version","title":"Version","type":"integer"}},"required":["option_key","version"],"title":"OptionWhenSaved","type":"object"},"OrderCreate":{"additionalProperties":false,"properties":{"expected_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Expected On"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"lines":{"default":[],"items":{"$ref":"#/components/schemas/OrderLine"},"maxItems":200,"title":"Lines","type":"array"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"supplier_company_id":{"format":"uuid","title":"Supplier Company Id","type":"string"}},"required":["idempotency_key","supplier_company_id","legal_entity_id","location_id"],"title":"OrderCreate","type":"object"},"OrderEmailResult":{"additionalProperties":true,"properties":{"chased_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Chased On"},"copy_to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Send only: where the copy of the order went, null when none","title":"Copy To"},"email_id":{"description":"The outbox row of the email this press queued","format":"uuid","title":"Email Id","type":"string"},"email_state":{"default":"queued","enum":["queued","sent","failed"],"title":"Email State","type":"string"},"id":{"description":"The order","format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"replayed":{"title":"Replayed","type":"boolean"},"sent_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Sent At"},"sent_channel":{"anyOf":[{"const":"email","type":"string"},{"type":"null"}],"title":"Sent Channel"},"sent_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent To"},"state":{"description":"The order's state after the write (sent after send-email)","title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","replayed","email_id","state"],"title":"OrderEmailResult","type":"object"},"OrderEmailSend":{"additionalProperties":false,"description":"The approved email. Body for both ``send-email`` and ``chase``. ``to`` may be another address than the draft's (one address);\n``body`` is the person's note only, empty for none.","properties":{"body":{"default":"","description":"The person's own note; empty for none","maxLength":2000,"title":"Body","type":"string"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"subject":{"maxLength":200,"minLength":1,"title":"Subject","type":"string"},"to":{"format":"email","title":"To","type":"string"}},"required":["expected_version","to","subject"],"title":"OrderEmailSend","type":"object"},"OrderLine":{"additionalProperties":false,"properties":{"fleet_label":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Fleet Label"},"fleet_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Fleet Product Id"},"fleet_size":{"anyOf":[{"maxLength":40,"minLength":1,"type":"string"},{"type":"null"}],"title":"Fleet Size"},"line_kind":{"default":"part","enum":["part","fleet"],"title":"Line Kind","type":"string"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"}],"title":"Quantity"},"unit_cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Unit Cost Minor"}},"required":["quantity"],"title":"OrderLine","type":"object"},"OrderSend":{"additionalProperties":false,"description":"Send a draft without an email: placed on the supplier's B2B portal or by phone. No channel keeps the older \"marked sent\".","properties":{"channel":{"anyOf":[{"enum":["phone","portal"],"type":"string"},{"type":"null"}],"title":"Channel"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"reason":{"anyOf":[{"maxLength":2000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["idempotency_key","expected_version"],"title":"OrderSend","type":"object"},"OrderStep":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"reason":{"anyOf":[{"maxLength":2000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["idempotency_key","expected_version"],"title":"OrderStep","type":"object"},"OrderUpdate":{"additionalProperties":false,"properties":{"expected_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Expected On"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"lines":{"default":[],"items":{"$ref":"#/components/schemas/OrderLine"},"maxItems":200,"title":"Lines","type":"array"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"supplier_company_id":{"format":"uuid","title":"Supplier Company Id","type":"string"}},"required":["idempotency_key","supplier_company_id","legal_entity_id","location_id","expected_version"],"title":"OrderUpdate","type":"object"},"Out":{"additionalProperties":true,"description":"Responses name what the lane returns; a later additive field does not break a reader.","properties":{},"title":"Out","type":"object"},"OutOfService":{"additionalProperties":false,"properties":{"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Ends At"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"kind":{"default":"out_of_service","enum":["out_of_service","inspection","repair","other"],"title":"Kind","type":"string"},"reason":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Reason"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Starts At"}},"required":["expected_version"],"title":"OutOfService","type":"object"},"OverviewAccess":{"additionalProperties":true,"properties":{"hidden_parts":{"items":{"type":"string"},"title":"Hidden Parts","type":"array"},"left_out_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Level own_place: the company wide costs left out of the figures","title":"Left Out Minor"},"level":{"enum":["none","totals","own_place","everything"],"title":"Level","type":"string"},"note":{"anyOf":[{"const":"company_costs_left_out","type":"string"},{"type":"null"}],"title":"Note"},"parts":{"anyOf":[{"additionalProperties":{"enum":["hidden","see","change"],"type":"string"},"type":"object"},{"type":"null"}],"description":"Each Finance part (D15) for the caller","title":"Parts"}},"required":["level"],"title":"OverviewAccess","type":"object"},"OverviewNumber":{"additionalProperties":true,"properties":{"compare":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Compare"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"},"key":{"enum":["per_rental_day","average_booking","booked_ahead_days","cancel_rate","guests_back","cover_ratio"],"title":"Key","type":"string"},"ready_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"When the count reaches the next state at the pace so far","title":"Ready On"},"state":{"enum":["steady","settling","too_early"],"title":"State","type":"string"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"value_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value Minor"}},"required":["key","state"],"title":"OverviewNumber","type":"object"},"OverviewOwed":{"additionalProperties":true,"properties":{"ages":{"items":{"$ref":"#/components/schemas/OwedAge"},"title":"Ages","type":"array"},"next_due":{"anyOf":[{"$ref":"#/components/schemas/NextDue"},{"type":"null"}]},"over_30_minor":{"title":"Over 30 Minor","type":"integer"},"to_you_minor":{"title":"To You Minor","type":"integer"},"you_owe_minor":{"title":"You Owe Minor","type":"integer"}},"required":["to_you_minor","over_30_minor","ages","you_owe_minor"],"title":"OverviewOwed","type":"object"},"OverviewProfit":{"additionalProperties":true,"description":"The Profit card: the kpis' profit split in one block, with the window its money in counts.","properties":{"after_direct_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"After Direct Minor"},"costs_missing":{"title":"Costs Missing","type":"boolean"},"direct_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Direct Minor"},"fixed_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Minor"},"in_minor":{"title":"In Minor","type":"integer"},"kept_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Null when costs_missing","title":"Kept Pct"},"money_in_window":{"$ref":"#/components/schemas/MoneyInWindow"},"profit_left_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profit Left Minor"}},"required":["in_minor","costs_missing","money_in_window"],"title":"OverviewProfit","type":"object"},"OverviewSetup":{"additionalProperties":true,"properties":{"done_count":{"title":"Done Count","type":"integer"},"steps":{"items":{"$ref":"#/components/schemas/SetupStep"},"title":"Steps","type":"array"}},"required":["done_count","steps"],"title":"OverviewSetup","type":"object"},"OverviewTiles":{"additionalProperties":true,"properties":{"cash13":{"enum":["empty","ready"],"title":"Cash13","type":"string"},"fees":{"enum":["empty","ready"],"title":"Fees","type":"string"},"in":{"enum":["empty","ready"],"title":"In","type":"string"},"left":{"enum":["empty","ready"],"title":"Left","type":"string"},"numbers":{"enum":["empty","ready"],"title":"Numbers","type":"string"},"out":{"enum":["empty","ready"],"title":"Out","type":"string"},"owed":{"enum":["empty","ready"],"title":"Owed","type":"string"},"profit":{"enum":["empty","ready"],"title":"Profit","type":"string"},"winter":{"enum":["empty","ready"],"title":"Winter","type":"string"}},"required":["in","out","fees","left","cash13","profit","winter","numbers","owed"],"title":"OverviewTiles","type":"object"},"OwedAge":{"additionalProperties":true,"properties":{"amount_minor":{"title":"Amount Minor","type":"integer"},"bucket":{"enum":["not_due","d1_30","d31_60","d60_plus"],"title":"Bucket","type":"string"},"pct":{"title":"Pct","type":"integer"}},"required":["bucket","amount_minor","pct"],"title":"OwedAge","type":"object"},"OwnBike":{"additionalProperties":false,"description":"Kind and optional make of a bike a rider brings on a tour.","properties":{"kind":{"anyOf":[{"description":"A kind of ride's id (booking.kinds of the site read)","pattern":"^[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?$","type":"string"},{"const":"other","type":"string"}],"description":"One of the shop's kinds of ride (booking.kinds), or other","title":"Kind"},"make":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"description":"Brand of the bike the rider brings; null when not supplied.","title":"Make"}},"required":["kind"],"title":"OwnBike","type":"object"},"PaceAccess":{"additionalProperties":true,"properties":{"level":{"enum":["none","totals","own_place","everything"],"title":"Level","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"part":{"description":"The overview part of finance for this login (D15); Season and its Pace belong to it","enum":["hidden","see","change"],"title":"Part","type":"string"}},"required":["level","part"],"title":"PaceAccess","type":"object"},"PaceCompareOption":{"additionalProperties":true,"properties":{"available":{"description":"Bookings exist for its days (the average: for two of the three years or more)","title":"Available","type":"boolean"},"from_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Year"},"key":{"enum":["last_year","years_2","years_3","avg_3","budget"],"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/PaceWords"},"on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"On"},"to_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Year"}},"required":["key","label","available"],"title":"PaceCompareOption","type":"object"},"PaceCompared":{"additionalProperties":true,"properties":{"minor":{"title":"Minor","type":"integer"},"on":{"format":"date","title":"On","type":"string"},"years_back":{"title":"Years Back","type":"integer"}},"required":["years_back","on","minor"],"title":"PaceCompared","type":"object"},"PaceExpected":{"additionalProperties":true,"properties":{"high_minor":{"description":"The Forecast's Bold scenario for the same days","title":"High Minor","type":"integer"},"low_minor":{"description":"The Forecast's Careful scenario for the same days (each month counts its share of days)","title":"Low Minor","type":"integer"},"minor":{"description":"Expected for the window, the Forecast's scenario Expected","title":"Minor","type":"integer"},"on_books_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"On the books today as a share of Expected","title":"On Books Pct"},"range_label":{"anyOf":[{"$ref":"#/components/schemas/PaceWords"},{"type":"null"}],"description":"What the range is, in plain words: from Careful to Bold"},"read":{"description":"What the figure was read from","items":{"type":"string"},"title":"Read","type":"array"},"sure":{"enum":["low","medium","high"],"title":"Sure","type":"string"},"why":{"items":{"$ref":"#/components/schemas/PaceWhyStep"},"title":"Why","type":"array"}},"required":["sure","minor","low_minor","high_minor"],"title":"PaceExpected","type":"object"},"PaceExplained":{"additionalProperties":true,"properties":{"read":{"description":"What the figure was read from","items":{"type":"string"},"title":"Read","type":"array"},"sure":{"enum":["low","medium","high"],"title":"Sure","type":"string"},"why":{"items":{"$ref":"#/components/schemas/PaceWhyStep"},"title":"Why","type":"array"}},"required":["sure"],"title":"PaceExplained","type":"object"},"PaceLine":{"additionalProperties":true,"properties":{"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare Minor"},"line":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"title":"Line","type":"string"},"on_books_minor":{"title":"On Books Minor","type":"integer"},"state":{"enum":["ahead","like","behind","building"],"title":"State","type":"string"}},"required":["line","on_books_minor","state"],"title":"PaceLine","type":"object"},"PaceNote":{"additionalProperties":true,"properties":{"ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Ends On"},"event_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Event Id"},"kind":{"enum":["holiday","event","snow","rain"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/PaceWords"},"starts_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Starts On"}},"required":["kind","label"],"title":"PaceNote","type":"object"},"PaceWeek":{"additionalProperties":true,"properties":{"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The same week 52 weeks per year back, as it stood on the day compared","title":"Compare Minor"},"note":{"anyOf":[{"$ref":"#/components/schemas/PaceWords"},{"type":"null"}],"description":"The holidays and events the week touches; null for nothing special"},"notes":{"items":{"$ref":"#/components/schemas/PaceNote"},"title":"Notes","type":"array"},"on_books_minor":{"title":"On Books Minor","type":"integer"},"state":{"enum":["ahead","like","behind","building"],"title":"State","type":"string"},"week_end":{"format":"date","title":"Week End","type":"string"},"week_start":{"description":"The Monday; the week is cut to the window","format":"date","title":"Week Start","type":"string"}},"required":["week_start","week_end","on_books_minor","state"],"title":"PaceWeek","type":"object"},"PaceWhyStep":{"additionalProperties":true,"properties":{"amount_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Minor"},"key":{"title":"Key","type":"string"},"kind":{"enum":["start","change","total"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/PaceWords"}},"required":["key","kind","label"],"title":"PaceWhyStep","type":"object"},"PaceWindow":{"additionalProperties":true,"properties":{"compare":{"enum":["last_year","years_2","years_3","avg_3","day"],"title":"Compare","type":"string"},"compare_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare From"},"compare_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The day compared with; null for the average or with nothing to compare","title":"Compare On"},"compare_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare To"},"from":{"format":"date","title":"From","type":"string"},"period":{"title":"Period","type":"string"},"so_far_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"So Far To"},"to":{"format":"date","title":"To","type":"string"}},"required":["period","from","to","compare"],"title":"PaceWindow","type":"object"},"PaceWords":{"additionalProperties":true,"properties":{"en":{"title":"En","type":"string"},"it":{"title":"It","type":"string"}},"required":["en","it"],"title":"PaceWords","type":"object"},"PackageComponent":{"additionalProperties":false,"properties":{"choice_group":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,31}$","type":"string"},{"type":"null"}],"description":"Components sharing a group are alternatives: the guest picks one","title":"Choice Group"},"component_key":{"pattern":"^[a-z][a-z0-9_]{0,31}$","title":"Component Key","type":"string"},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Option Id"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"quantity":{"default":1,"maximum":20.0,"minimum":1.0,"title":"Quantity","type":"integer"},"sort":{"anyOf":[{"maximum":1000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sort"}},"required":["component_key","product_id"],"title":"PackageComponent","type":"object"},"PackageDoc":{"additionalProperties":true,"properties":{"components":{"items":{"$ref":"#/components/schemas/PackagePart"},"title":"Components","type":"array"},"discount_percent":{"title":"Discount Percent","type":"number"},"package_product_id":{"format":"uuid","title":"Package Product Id","type":"string"},"pricing_mode":{"enum":["fixed","sum_less_discount"],"title":"Pricing Mode","type":"string"},"product_version":{"title":"Product Version","type":"integer"},"version":{"description":"Send as expected_version to PUT /products/{slug}/package; 0 before the first save","title":"Version","type":"integer"}},"required":["package_product_id","product_version","pricing_mode","discount_percent","version","components"],"title":"PackageDoc","type":"object"},"PackagePart":{"additionalProperties":true,"properties":{"choice_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Choice Group"},"component_key":{"title":"Component Key","type":"string"},"name":{"$ref":"#/components/schemas/Words-Output"},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Option Id"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"quantity":{"title":"Quantity","type":"integer"},"sort":{"title":"Sort","type":"integer"}},"required":["component_key","product_id","quantity","sort","name"],"title":"PackagePart","type":"object"},"PackageSave":{"additionalProperties":false,"properties":{"components":{"items":{"$ref":"#/components/schemas/PackageComponent"},"maxItems":12,"minItems":1,"title":"Components","type":"array"},"discount_percent":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Discount Percent"},"expected_version":{"description":"0 for a package that has no components yet","minimum":0.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"pricing_mode":{"anyOf":[{"enum":["fixed","sum_less_discount"],"type":"string"},{"type":"null"}],"title":"Pricing Mode"}},"required":["idempotency_key","expected_version","components"],"title":"PackageSave","type":"object"},"Page":{"additionalProperties":true,"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"tab":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tab"}},"required":["items"],"title":"Page","type":"object"},"PartBatch":{"additionalProperties":false,"properties":{"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"partial":{"default":false,"description":"Write the good rows and report the bad ones; otherwise any bad row writes nothing","title":"Partial","type":"boolean"},"rows":{"items":{"$ref":"#/components/schemas/PartRow"},"maxItems":500,"minItems":1,"title":"Rows","type":"array"}},"required":["idempotency_key","rows"],"title":"PartBatch","type":"object"},"PartCreate":{"additionalProperties":false,"properties":{"barcode":{"anyOf":[{"maxLength":128,"minLength":1,"type":"string"},{"type":"null"}],"title":"Barcode"},"barcodes":{"anyOf":[{"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},{"type":"null"}],"title":"Barcodes"},"brand":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Brand"},"brand_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Brand Id"},"category":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Category"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Category Id"},"cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"internal_code":{"maxLength":64,"minLength":1,"title":"Internal Code","type":"string"},"is_service":{"default":false,"title":"Is Service","type":"boolean"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"min_qty":{"anyOf":[{"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Min Qty"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"opening_qty":{"anyOf":[{"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Opening Qty"},"reorder_qty":{"anyOf":[{"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Reorder Qty"},"sale_price_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Price Minor"},"sold_at_till":{"default":false,"title":"Sold At Till","type":"boolean"},"tracks_serials":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracks Serials"},"unit":{"enum":["piece","pair","set","ml","litre","metre"],"title":"Unit","type":"string"},"used_in_workshop":{"default":true,"title":"Used In Workshop","type":"boolean"},"vat_category":{"default":"standard","enum":["standard","reduced","super_reduced","zero","exempt"],"title":"Vat Category","type":"string"}},"required":["idempotency_key","internal_code","name","unit","location_id"],"title":"PartCreate","type":"object"},"PartFind":{"additionalProperties":false,"description":"Part search fields that the part form does not write. Omitted fields stay unchanged; shelf needs location_id.","properties":{"aliases":{"anyOf":[{"items":{"maxLength":80,"minLength":1,"type":"string"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Aliases"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"fit_attributes":{"anyOf":[{"additionalProperties":{"maxLength":40,"minLength":1,"type":"string"},"propertyNames":{"enum":["wheel_size","speeds","pad_shape","rotor_size","rotor_mount","stance","length","position","pistons","axle","din_range","brake_width"]},"type":"object"},{"type":"null"}],"title":"Fit Attributes"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"model":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Model"},"shelf":{"anyOf":[{"maxLength":24,"type":"string"},{"type":"null"}],"title":"Shelf"}},"required":["idempotency_key","expected_version"],"title":"PartFind","type":"object"},"PartRequestResolve":{"additionalProperties":false,"properties":{"action":{"enum":["received","cancel"],"title":"Action","type":"string"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version","action"],"title":"PartRequestResolve","type":"object"},"PartRequestSave":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"order":{"default":true,"title":"Order","type":"boolean"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"quantity":{"pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"},"set_waiting":{"default":true,"title":"Set Waiting","type":"boolean"},"supplier_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Supplier Company Id"}},"required":["idempotency_key","expected_version","product_id","quantity"],"title":"PartRequestSave","type":"object"},"PartRow":{"additionalProperties":false,"description":"One part of a batch. ``row`` is yours: the answer names it in every created part and every error.","properties":{"barcode":{"anyOf":[{"maxLength":128,"minLength":1,"type":"string"},{"type":"null"}],"title":"Barcode"},"barcodes":{"anyOf":[{"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},{"type":"null"}],"title":"Barcodes"},"brand":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Brand"},"brand_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Brand Id"},"category":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Category"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Category Id"},"cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"internal_code":{"maxLength":64,"minLength":1,"title":"Internal Code","type":"string"},"is_service":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Service"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Owns the opening stock; also the business whose VAT rate turns a gross price into net","title":"Legal Entity Id"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"min_qty":{"anyOf":[{"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Min Qty"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"opening_qty":{"anyOf":[{"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Opening Qty"},"reorder_qty":{"anyOf":[{"minimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Reorder Qty"},"row":{"minimum":0.0,"title":"Row","type":"integer"},"sale_price_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"In the shop's own price basis (with or without VAT)","title":"Sale Price Minor"},"serials":{"anyOf":[{"items":{"maxLength":80,"minLength":1,"type":"string"},"maxItems":500,"type":"array"},{"type":"null"}],"title":"Serials"},"sold_at_till":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sold At Till"},"state":{"anyOf":[{"enum":["active","inactive"],"type":"string"},{"type":"null"}],"title":"State"},"suppliers":{"anyOf":[{"items":{"$ref":"#/components/schemas/SupplierLine"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Suppliers"},"tracks_serials":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracks Serials"},"unit":{"enum":["piece","pair","set","ml","litre","metre"],"title":"Unit","type":"string"},"used_in_workshop":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Used In Workshop"},"vat_category":{"anyOf":[{"enum":["standard","reduced","super_reduced","zero","exempt"],"type":"string"},{"type":"null"}],"title":"Vat Category"}},"required":["row","internal_code","name","unit","location_id"],"title":"PartRow","type":"object"},"PartScan":{"additionalProperties":false,"properties":{"code":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Code"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who fitted it (the tablet's mechanic); an active team member","title":"Person Id"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"default":"1","pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"},"unit_entered_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Unit Entered Minor"}},"required":["idempotency_key","expected_version"],"title":"PartScan","type":"object"},"PartUpdate":{"additionalProperties":false,"description":"Only the fields that are sent change.","properties":{"barcode":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}],"title":"Barcode"},"barcodes":{"anyOf":[{"items":{"maxLength":128,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},{"type":"null"}],"title":"Barcodes"},"brand":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"title":"Brand"},"brand_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Brand Id"},"category":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"title":"Category"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Category Id"},"cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"internal_code":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Internal Code"},"is_service":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Service"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The business whose VAT turns a typed gross price into net; the shop's first business when left out","title":"Legal Entity Id"},"name":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"sale_price_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Price Minor"},"sold_at_till":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sold At Till"},"state":{"anyOf":[{"enum":["active","inactive"],"type":"string"},{"type":"null"}],"title":"State"},"tracks_serials":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracks Serials"},"unit":{"anyOf":[{"enum":["piece","pair","set","ml","litre","metre"],"type":"string"},{"type":"null"}],"title":"Unit"},"used_in_workshop":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Used In Workshop"},"vat_category":{"anyOf":[{"enum":["standard","reduced","super_reduced","zero","exempt"],"type":"string"},{"type":"null"}],"title":"Vat Category"}},"required":["idempotency_key","expected_version"],"title":"PartUpdate","type":"object"},"PartWait":{"additionalProperties":false,"description":"Wait for a part that is not on the shelf. The mechanic never orders: the job waits on the open order, or the part goes to order once.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"quantity":{"default":"1","pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"}},"required":["idempotency_key","expected_version"],"title":"PartWait","type":"object"},"Payment":{"additionalProperties":true,"properties":{"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare Minor"},"method":{"enum":["cash","card","online","invoice"],"title":"Method","type":"string"},"n":{"title":"N","type":"integer"},"share_pct":{"title":"Share Pct","type":"number"},"this_minor":{"title":"This Minor","type":"integer"}},"required":["method","this_minor","share_pct","n"],"title":"Payment","type":"object"},"PaymentsOut":{"additionalProperties":true,"description":"A SQL composite passed through unchanged.","properties":{},"title":"PaymentsOut","type":"object"},"PickupIn":{"additionalProperties":false,"properties":{"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"minutes_before_start":{"default":0,"maximum":720.0,"minimum":0.0,"title":"Minutes Before Start","type":"integer"},"name":{"maxLength":120,"minLength":1,"title":"Name","type":"string"}},"required":["name"],"title":"PickupIn","type":"object"},"PlaceCard":{"additionalProperties":true,"properties":{"activity":{"description":"The activity type key, for example \"mountain-biking\"","title":"Activity","type":"string"},"calendar":{"description":"Twelve months, January first: best, good, low, closed, or null when not known","items":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":"Calendar","type":"array"},"facets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The place's facets for the activity (1.2.1): {style: [style keys, the type's order], up: [lift, shuttle, pedal], ebike: welcome, allowed, restricted, banned, not_published (no published rule, never read as allowed) or null}","title":"Facets"},"fit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The fit and its breakdown (scoring rubric 1.1), null when the facts cannot be read; status scored, not_enough_data or excluded","title":"Fit"},"month":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The picked month: {calendar, reason, temp_high_c, rain_days, snow_days, daylight_h, stale}; temp_high_c, rain_days, snow_days (days with snow) and daylight_h are null when not known; null without a picked month or its calendar","title":"Month"},"names":{"additionalProperties":{"type":"string"},"description":"The place's name per locale; en always present","title":"Names","type":"object"},"opens_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"On search and best-month lists (15.3): for a lift-served place whose lifts do not run all of the month asked, the soonest season opening on or after that month's first day; null otherwise","title":"Opens On"},"slug":{"description":"The place's address under /ride","title":"Slug","type":"string"}},"required":["slug","activity","names","calendar"],"title":"PlaceCard","type":"object"},"PlaceListings":{"additionalProperties":true,"properties":{"others":{"description":"Bike shops and rentals on the open map, nearest first, at most 12","items":{"$ref":"#/components/schemas/PlaceOther"},"title":"Others","type":"array"},"outdoor_grid":{"description":"Shops on Outdoor Grid listed here, nearest first, at most 12","items":{"$ref":"#/components/schemas/PlaceShop"},"title":"Outdoor Grid","type":"array"}},"required":["outdoor_grid","others"],"title":"PlaceListings","type":"object"},"PlaceMoney":{"additionalProperties":true,"properties":{"in_minor":{"title":"In Minor","type":"integer"},"location_id":{"format":"uuid","title":"Location Id","type":"string"}},"required":["location_id","in_minor"],"title":"PlaceMoney","type":"object"},"PlaceOther":{"additionalProperties":true,"properties":{"claim_state":{"description":"unclaimed, requested, verified or declined","title":"Claim State","type":"string"},"name":{"title":"Name","type":"string"},"osm":{"description":"The OpenStreetMap business, \"node/123\", for \"Your shop? Claim it\"","title":"Osm","type":"string"},"services":{"items":{"type":"string"},"title":"Services","type":"array"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"required":["name","services","osm","claim_state"],"title":"PlaceOther","type":"object"},"PlaceRow":{"additionalProperties":true,"properties":{"after_direct_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"After Direct Minor"},"in_minor":{"title":"In Minor","type":"integer"},"left_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money in less the place's own direct and fixed costs","title":"Left Minor"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"name":{"title":"Name","type":"string"},"pace_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The next season's books against a year back","title":"Pace Pct"},"per_rental_day_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Rental Day Minor"},"status":{"anyOf":[{"enum":["on_track","behind","ahead"],"type":"string"},{"type":"null"}],"title":"Status"}},"required":["location_id","name","in_minor"],"title":"PlaceRow","type":"object"},"PlaceSections":{"additionalProperties":true,"properties":{"bring_or_rent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{verdict: rent | either | bring, rent: {shops_on_outdoor_grid, shops_elsewhere, ebike, median_day_minor, currency}, bring: {bike_boxes}, ebike_rule}","title":"Bring Or Rent"},"costs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{currency, level, day_all_in_minor, lines: [{key: bike | uplift | bed | food, amount_minor, estimate}], rental_day_minor, guide_half_day_minor, lift_pass_day_minor, lift_pass_name, as_of, typical_day (TypicalDay on AtlasCompare's items, the same receipt)}","title":"Costs"},"getting_there":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{airports, stations, buses, drives: [{ref, name, city, size: large | medium | small | null, country_code, primary: boolean, distance_km, transfer_minutes, transfer_modes, bike_boxes}] (size and country_code from the airport, null on other rows; primary true on the place's arrival airport as its editors set it, false on every other row: headline the first primary airport, else fall back), base_towns, timezone, currency, languages}","title":"Getting There"},"gravel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Gravel (GR1), only on the gravel activity, null with none of its facts: {total_km, route_count, km_by_surface: {gravel, compacted, dirt, paved}, unpaved_share, tagged_share, routes: [{name, km, unpaved_share}] (at most 12, longest first), loops: [{name, km, climb_m, unpaved_percent, start, scenery, level}], scenery: {kinds, note}, traffic: {level, note}, heat_wind: [{month, heat, wind}], resupply: {villages, water, note}, rental: {gravel_bikes, businesses, note}, links: {featured: {kind, id, name, embed_url, url} | null, komoot, ridewithgps, bikepacking: [{name, url}], komoot_region_url}, checked_at, source_key, stale}","title":"Gravel"},"guides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{need: required | recommended | not_needed, shops: [{slug, name, town, logo_url, rating, booking_page}], median_half_day_minor, currency}","title":"Guides"},"trails":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{total_km, km_basis (verified | mapped | published | null, docs 14.1), trail_count, km_by_level, level_percent, descent_day_m, altitude_min_m, altitude_max_m, terrain, terrain_mix, terrain_shown, first_day, ebike, areas: [{name, km, descent_day_m, lifts, character, levels, ability: {from, to}, up, descent_run_m, surface, restrictions, first_day: {text, checked_by, checked_at, source_key, stale}}], by_style: {<style>: {km, trails}} | null (mountain biking, the style_counts fact), checked_at, source_key, stale}; null on gravel","title":"Trails"},"where_to_stay":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"ACC0: {currency, converted?, stays: [{key: group_3 | group_4 | double, people, month, night_low_minor, night_high_minor, person_low_minor, person_high_minor, person_eur_minor, checked_on, stale, sources: [{url, name}]}]}: only stays with a source, null with none","title":"Where To Stay"}},"required":["trails","getting_there","bring_or_rent","guides","costs"],"title":"PlaceSections","type":"object"},"PlaceShop":{"additionalProperties":true,"properties":{"booking_page":{"description":"Where Book opens: the shop's own page, else the environment's page for its slug","title":"Booking Page","type":"string"},"distance_km":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"From the place's centre","title":"Distance Km"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A public link to the shop's logo, null without one","title":"Logo Url"},"name":{"title":"Name","type":"string"},"rating":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{average (1 decimal, 1 to 5), count} of its reviews, null without","title":"Rating"},"services":{"description":"rental, ebike, tours, shuttle, workshop, lessons, ski_rental, guides","items":{"type":"string"},"title":"Services","type":"array"},"slug":{"description":"The shop's address name","title":"Slug","type":"string"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town"}},"required":["slug","name","services","booking_page"],"title":"PlaceShop","type":"object"},"PlanStopIn":{"additionalProperties":false,"properties":{"at":{"anyOf":[{"description":"HH:MM, the shop's time","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"title":"At"},"note":{"anyOf":[{"description":"Text per written language","maxProperties":8,"patternProperties":{"^[a-z]{2}$":{"maxLength":300,"type":"string"}},"type":"object"},{"type":"null"}],"title":"Note"},"option_key":{"anyOf":[{"description":"default, then opt_2 to opt_20","pattern":"^(default|opt_([2-9]|1[0-9]|20))$","type":"string"},{"type":"null"}],"description":"null: every option","title":"Option Key"},"title":{"description":"Text per written language","maxProperties":8,"patternProperties":{"^[a-z]{2}$":{"maxLength":300,"type":"string"}},"title":"Title","type":"object"}},"required":["title"],"title":"PlanStopIn","type":"object"},"PoolAdjust":{"additionalProperties":false,"properties":{"capacity":{"maximum":1000000.0,"minimum":0.0,"title":"Capacity","type":"integer"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version","capacity"],"title":"PoolAdjust","type":"object"},"PoolRecord":{"additionalProperties":true,"properties":{"free_per_day":{"items":{"additionalProperties":true,"type":"object"},"title":"Free Per Day","type":"array"},"id":{"format":"uuid","title":"Id","type":"string"},"in_open_transfers":{"title":"In Open Transfers","type":"integer"},"model_name":{"title":"Model Name","type":"string"},"next_14_days":{"items":{"additionalProperties":true,"type":"object"},"title":"Next 14 Days","type":"array"},"on_hand":{"title":"On Hand","type":"integer"},"version":{"title":"Version","type":"integer"}},"required":["id","version","model_name","on_hand","in_open_transfers","next_14_days","free_per_day"],"title":"PoolRecord","type":"object"},"PoolSave":{"additionalProperties":false,"description":"A counted pool: so many of one model at one place, no tag per unit.","properties":{"capacity":{"maximum":1000000.0,"minimum":0.0,"title":"Capacity","type":"integer"},"item_type_id":{"format":"uuid","title":"Item Type Id","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"model_name":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Model Name"},"variant_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Variant Id"}},"required":["item_type_id","location_id","capacity"],"title":"PoolSave","type":"object"},"PoolSaved":{"additionalProperties":true,"properties":{"capacity":{"title":"Capacity","type":"integer"},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"title":"Version","type":"integer"}},"required":["id","version","capacity"],"title":"PoolSaved","type":"object"},"PossibleDuplicate":{"properties":{"duplicates":{"items":{"additionalProperties":true,"type":"object"},"title":"Duplicates","type":"array"},"error":{"const":"possible_duplicate","default":"possible_duplicate","title":"Error","type":"string"}},"required":["duplicates"],"title":"PossibleDuplicate","type":"object"},"PreviewCounts":{"additionalProperties":true,"properties":{"already":{"title":"Already","type":"integer"},"app":{"title":"App","type":"integer"},"email":{"title":"Email","type":"integer"},"nobody":{"title":"Nobody","type":"integer"},"offer_emails":{"description":"shift_open_offer emails that 'offer the open shifts' would send","title":"Offer Emails","type":"integer"},"open_lines":{"title":"Open Lines","type":"integer"},"people":{"title":"People","type":"integer"}},"required":["people","email","app","nobody","already","open_lines","offer_emails"],"title":"PreviewCounts","type":"object"},"PreviewPerson":{"additionalProperties":true,"description":"One person of the draft or of the week published now: their shifts, and who is told how when the draft goes out.","properties":{"change":{"description":"Against the week published now: new (no shift there), changed, same, removed (shifts there, none in the draft)","enum":["new","changed","same","removed"],"title":"Change","type":"string"},"days":{"description":"Their shifts in the draft; empty when the draft takes them off the week","items":{"$ref":"#/components/schemas/ShiftWords"},"title":"Days","type":"array"},"has_email":{"title":"Has Email","type":"boolean"},"has_login":{"title":"Has Login","type":"boolean"},"minutes":{"default":0,"description":"Their minutes in the draft","title":"Minutes","type":"integer"},"name":{"title":"Name","type":"string"},"person_id":{"format":"uuid","title":"Person Id","type":"string"},"told":{"description":"email: a shift_week email and the app; app: no address, the app only; nobody: neither; already: same week and told about the published one, nobody is told again","enum":["email","app","nobody","already"],"title":"Told","type":"string"}},"required":["person_id","name","has_email","has_login","change","told"],"title":"PreviewPerson","type":"object"},"PreviewRequest":{"additionalProperties":false,"properties":{"location_id":{"format":"uuid","title":"Location Id","type":"string"}},"required":["location_id"],"title":"PreviewRequest","type":"object"},"PriceLadder":{"additionalProperties":true,"properties":{"currency":{"pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"custom":{"description":"False while the ladder is the plain day prices (one in-all row per day)","title":"Custom","type":"boolean"},"extra_day_minor":{"title":"Extra Day Minor","type":"integer"},"max_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The product's own longest booking; null is no limit","title":"Max Days"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"product_version":{"description":"Send as expected_version when saving","title":"Product Version","type":"integer"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"revision":{"title":"Revision","type":"integer"},"rows":{"items":{"$ref":"#/components/schemas/LadderRowDoc"},"title":"Rows","type":"array"},"saving_changes_prices":{"description":"True when the plain day prices go down somewhere: saving them as a ladder caps them","title":"Saving Changes Prices","type":"boolean"},"usual_lengths":{"description":"The shop's usual lengths (booking rules), or the platform presets","items":{"$ref":"#/components/schemas/UsualLengthDoc"},"title":"Usual Lengths","type":"array"}},"required":["product_id","product_version","currency","custom","revision","rows","extra_day_minor","max_days","saving_changes_prices","usual_lengths"],"title":"PriceLadder","type":"object"},"PriceLadderSave":{"additionalProperties":false,"description":"The whole ladder, saved in one go. Rows are sorted by from_days; the first starts at 1 day; rows never overlap.","properties":{"expected_version":{"description":"The product version (product_version of the ladder read)","minimum":1.0,"title":"Expected Version","type":"integer"},"extra_day_minor":{"description":"Each day after a row until the next one, and after the longest row","maximum":100000000.0,"minimum":0.0,"title":"Extra Day Minor","type":"integer"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"max_days":{"anyOf":[{"maximum":36500.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"The product's own longest booking; null is no limit. Not sent keeps the current one","title":"Max Days"},"rows":{"items":{"$ref":"#/components/schemas/LadderRow"},"maxItems":20,"minItems":1,"title":"Rows","type":"array"}},"required":["idempotency_key","expected_version","rows","extra_day_minor"],"title":"PriceLadderSave","type":"object"},"PriceListSave":{"additionalProperties":false,"properties":{"channel":{"anyOf":[{"enum":["desk","online","assistant","operator"],"type":"string"},{"type":"null"}],"title":"Channel"},"company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Company Id"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"location_editable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Location Editable"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"name":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"on_account":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Account"},"region_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Region Id"},"scope":{"anyOf":[{"enum":["base","location","region","channel","season","company"],"type":"string"},{"type":"null"}],"title":"Scope"},"season_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Season Id"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"PriceListSave","type":"object"},"PriceRuleArchive":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"PriceRuleArchive","type":"object"},"PriceRuleSave":{"additionalProperties":false,"properties":{"bands_per_person":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The group bands are a price per person, picked by the party size","title":"Bands Per Person"},"day_prices_minor":{"anyOf":[{"items":{"maximum":100000000.0,"minimum":0.0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},{"type":"null"}],"title":"Day Prices Minor"},"deposit_percent":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Deposit Percent"},"duration":{"anyOf":[{"enum":["day_ladder","per_day","hour","half_day","fixed","season_total"],"type":"string"},{"type":"null"}],"title":"Duration"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"extra_day_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Extra Day Minor"},"group_bands":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroupBand"},"maxItems":20,"minItems":1,"type":"array"},{"type":"null"}],"title":"Group Bands"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"max_group":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Max Group"},"min_group":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Min Group"},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Option Id"},"price_list_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Price List Id"},"priority":{"anyOf":[{"maximum":1000.0,"minimum":-1000.0,"type":"integer"},{"type":"null"}],"title":"Priority"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"season_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Season Id"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"},"unit":{"anyOf":[{"enum":["rider","item","item_day","group","booking","seat","vehicle_day","service"],"type":"string"},{"type":"null"}],"title":"Unit"},"unit_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Unit Minor"},"valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid Until"},"weekdays":{"anyOf":[{"items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},{"type":"null"}],"description":"ISO days the rule is for, 1 Monday to 7 Sunday; null every day","title":"Weekdays"}},"required":["idempotency_key"],"title":"PriceRuleSave","type":"object"},"PriceTableCell":{"additionalProperties":false,"properties":{"band_prices_minor":{"anyOf":[{"items":{"maximum":100000000.0,"minimum":0.0,"type":"integer"},"maxItems":8,"minItems":1,"type":"array"},{"type":"null"}],"description":"One price per person for each people band","title":"Band Prices Minor"},"duration":{"enum":["per_day","half_day","hour","fixed","season_total"],"title":"Duration","type":"string"},"season_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Season Id"},"unit_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"The price when the table has no people bands","title":"Unit Minor"},"weekdays":{"anyOf":[{"items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},{"type":"null"}],"title":"Weekdays"}},"required":["duration"],"title":"PriceTableCell","type":"object"},"PriceTableRead":{"additionalProperties":false,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"version":{"minimum":1.0,"title":"Version","type":"integer"}},"required":["id","version"],"title":"PriceTableRead","type":"object"},"PriceTableSave":{"additionalProperties":false,"description":"The Prices tab grid of one product, saved whole: the base list's plain rules of the product become exactly these cells.","properties":{"cells":{"items":{"$ref":"#/components/schemas/PriceTableCell"},"maxItems":80,"title":"Cells","type":"array"},"deposit_percent":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Null: the booking rules decide","title":"Deposit Percent"},"expected":{"description":"The grid rules as read; any other state is a clash (409)","items":{"$ref":"#/components/schemas/PriceTableRead"},"maxItems":80,"title":"Expected","type":"array"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"people_from":{"anyOf":[{"items":{"maximum":999.0,"minimum":1.0,"type":"integer"},"maxItems":8,"minItems":1,"type":"array"},{"type":"null"}],"description":"First party size of each people band, from 1 ([1, 2, 4]); null: one price","title":"People From"},"product_id":{"format":"uuid","title":"Product Id","type":"string"}},"required":["idempotency_key","product_id","expected","cells"],"title":"PriceTableSave","type":"object"},"PricesSave":{"additionalProperties":false,"description":"XP-13: the whole walk-in set of the experience.","properties":{"expected_revision":{"description":"revision of the set you read","maxLength":64,"minLength":1,"title":"Expected Revision","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/WalkinRow"},"maxItems":2000,"title":"Rows","type":"array"}},"required":["expected_revision","rows"],"title":"PricesSave","type":"object"},"PricesSaved":{"additionalProperties":true,"description":"XP-13: the experience's version, the set's new revision and how many rows it holds.","properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows"},"version":{"title":"Version","type":"integer"}},"required":["version"],"title":"PricesSaved","type":"object"},"PriorityEntry":{"additionalProperties":false,"properties":{"active":{"default":true,"title":"Active","type":"boolean"},"person_id":{"format":"uuid","title":"Person Id","type":"string"}},"required":["person_id"],"title":"PriorityEntry","type":"object"},"PrioritySave":{"additionalProperties":false,"properties":{"entries":{"anyOf":[{"items":{"$ref":"#/components/schemas/PriorityEntry"},"maxItems":50,"type":"array"},{"type":"null"}],"title":"Entries"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"label":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"title":"Label"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"product_kind":{"anyOf":[{"enum":["group","private","shuttle"],"type":"string"},{"type":"null"}],"title":"Product Kind"},"role":{"anyOf":[{"enum":["guide","driver"],"type":"string"},{"type":"null"}],"title":"Role"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"},"valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid Until"}},"title":"PrioritySave","type":"object"},"PrivacyConsentSave":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"state":{"description":"withdrawn when they asked to stop. granted is refused (400, state): a yes is the rider's own tick on the booking site or at the store checkout (B35)","enum":["granted","withdrawn"],"title":"State","type":"string"},"text_version":{"anyOf":[{"description":"The version of the consent words shown, for example mc-2026-10-17","pattern":"^[a-z0-9][a-z0-9._-]{0,39}$","type":"string"},{"type":"null"}],"description":"The version of the words the person agreed to; required when granted","title":"Text Version"}},"required":["expected_version","state"],"title":"PrivacyConsentSave","type":"object"},"PrivacyConsentSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"marketing_consent":{"$ref":"#/components/schemas/MarketingConsent"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","marketing_consent"],"title":"PrivacyConsentSaved","type":"object"},"ProductBuying":{"additionalProperties":false,"description":"Only the fields that are sent change; an empty string clears one.","properties":{"buying":{"anyOf":[{"enum":["reorder","season"],"type":"string"},{"type":"null"}],"title":"Buying"},"colour":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Colour"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"fit":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"title":"Fit"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"size":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"title":"Size"},"style":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"title":"Style"}},"required":["idempotency_key"],"title":"ProductBuying","type":"object"},"ProductCreate":{"additionalProperties":false,"properties":{"all_locations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Sold at every place, also places added later; then location_ids is empty","title":"All Locations"},"booking_rules_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Booking Rules Id"},"description":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"includes":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"item_type_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Type Id"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"location_ids":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":100,"type":"array"},{"type":"null"}],"description":"Other places the product is sold","title":"Location Ids"},"name":{"$ref":"#/components/schemas/Localized"},"online":{"default":false,"title":"Online","type":"boolean"},"sell_kind":{"enum":["sale","group_tour","private_tour","lesson","shuttle","transfer","vehicle_hire","extra","package","storage"],"title":"Sell Kind","type":"string"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","type":"string"},{"type":"null"}],"title":"Slug"},"sort":{"anyOf":[{"maximum":1000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sort"},"unit":{"anyOf":[{"enum":["rider","item","item_day","group","booking","seat","vehicle_day","service"],"type":"string"},{"type":"null"}],"title":"Unit"},"vat_category":{"default":"standard","enum":["standard","reduced","super_reduced","zero","exempt"],"title":"Vat Category","type":"string"}},"required":["idempotency_key","sell_kind","name","location_id","legal_entity_id"],"title":"ProductCreate","type":"object"},"ProductDoc":{"additionalProperties":true,"properties":{"all_locations":{"default":false,"description":"Sold at every place, also places added later","title":"All Locations","type":"boolean"},"booking_rules_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Booking Rules Id"},"currency":{"pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"from_price":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Lowest active rule price in the entered basis","title":"From Price"},"id":{"format":"uuid","title":"Id","type":"string"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"location_ids":{"description":"The other places it is sold; every active place when all_locations","items":{"format":"uuid","type":"string"},"title":"Location Ids","type":"array"},"name":{"$ref":"#/components/schemas/Words-Output"},"online":{"title":"Online","type":"boolean"},"package":{"anyOf":[{"$ref":"#/components/schemas/PackageDoc"},{"type":"null"}],"description":"A package's saved parts, on the one-product read only"},"price_ladder":{"anyOf":[{"$ref":"#/components/schemas/PriceLadder"},{"type":"null"}],"description":"A rental's price ladder, on the one-product read only"},"sale_status":{"enum":["on_sale","desk_only","no_price","archived"],"title":"Sale Status","type":"string"},"sell_kind":{"enum":["rental","sale","group_tour","private_tour","lesson","shuttle","transfer","vehicle_hire","extra","package","storage"],"title":"Sell Kind","type":"string"},"slug":{"title":"Slug","type":"string"},"state":{"enum":["active","archived"],"title":"State","type":"string"},"unit":{"enum":["rider","item","item_day","group","booking","seat","vehicle_day","service"],"title":"Unit","type":"string"},"uses":{"anyOf":[{"$ref":"#/components/schemas/ProductUses"},{"type":"null"}],"description":"What it uses, on the list only"},"vat_category":{"enum":["standard","reduced","super_reduced","zero","exempt"],"title":"Vat Category","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","version","slug","sell_kind","name","unit","vat_category","online","state","currency","location_id","legal_entity_id","sale_status"],"title":"ProductDoc","type":"object"},"ProductFit":{"additionalProperties":true,"description":"A product's build, geometry and size ranges. Empty lists mean no fit data is available.","properties":{"build":{"items":{"$ref":"#/components/schemas/ModelBuildPart"},"title":"Build","type":"array"},"geometry":{"items":{"$ref":"#/components/schemas/GeometryRow"},"title":"Geometry","type":"array"},"ranges":{"items":{"$ref":"#/components/schemas/FitRange"},"title":"Ranges","type":"array"}},"required":["build","geometry","ranges"],"title":"ProductFit","type":"object"},"ProductFitRecord":{"additionalProperties":true,"properties":{"build":{"items":{"$ref":"#/components/schemas/ModelBuildPart"},"title":"Build","type":"array"},"geometry":{"items":{"$ref":"#/components/schemas/GeometryRow"},"title":"Geometry","type":"array"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"ranges":{"items":{"$ref":"#/components/schemas/FitRange"},"title":"Ranges","type":"array"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["build","geometry","ranges","product_id","version"],"title":"ProductFitRecord","type":"object"},"ProductFitSave":{"additionalProperties":false,"description":"A rental model's build, geometry and fit ranges from its catalog page.","properties":{"build":{"items":{"$ref":"#/components/schemas/ModelBuildPartIn"},"maxItems":16,"title":"Build","type":"array"},"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"geometry":{"items":{"$ref":"#/components/schemas/GeometryRowIn"},"maxItems":16,"title":"Geometry","type":"array"},"ranges":{"items":{"$ref":"#/components/schemas/FitRangeIn"},"maxItems":12,"title":"Ranges","type":"array"}},"required":["expected_version","build","geometry","ranges"],"title":"ProductFitSave","type":"object"},"ProductGuestTypeIn":{"additionalProperties":false,"properties":{"group_capacity":{"anyOf":[{"maximum":100.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"A group only: groups one departure sells (default 1)","title":"Group Capacity"},"guest_type_id":{"format":"uuid","title":"Guest Type Id","type":"string"},"max_quantity":{"anyOf":[{"maximum":40.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Default 40","title":"Max Quantity"},"min_quantity":{"anyOf":[{"maximum":40.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Default 0","title":"Min Quantity"},"price_minor":{"anyOf":[{"description":"Minor units of the shop's currency","maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Per guest or per group; null for a person: the seat price","title":"Price Minor"}},"required":["guest_type_id"],"title":"ProductGuestTypeIn","type":"object"},"ProductGuestTypeItem":{"additionalProperties":true,"properties":{"group_capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Capacity"},"group_max_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Max Size"},"group_min_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Group Min Size"},"guest_type_id":{"format":"uuid","title":"Guest Type Id","type":"string"},"key":{"title":"Key","type":"string"},"kind":{"enum":["person","group"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/GuestTypeLabel"},"max_quantity":{"title":"Max Quantity","type":"integer"},"min_quantity":{"title":"Min Quantity","type":"integer"},"octo_type":{"title":"Octo Type","type":"string"},"price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Minor"}},"required":["guest_type_id","key","label","kind","octo_type","min_quantity","max_quantity"],"title":"ProductGuestTypeItem","type":"object"},"ProductGuestTypesSave":{"additionalProperties":false,"description":"GT-05: the whole set, in screen order, replaces the product's.","properties":{"expected_revision":{"description":"revision of the set you read","maxLength":64,"minLength":1,"title":"Expected Revision","type":"string"},"items":{"items":{"$ref":"#/components/schemas/ProductGuestTypeIn"},"maxItems":10,"title":"Items","type":"array"}},"required":["expected_revision","items"],"title":"ProductGuestTypesSave","type":"object"},"ProductGuestTypesSaved":{"additionalProperties":true,"properties":{"available":{"description":"Active guest types the product does not sell yet","items":{"$ref":"#/components/schemas/GuestType"},"title":"Available","type":"array"},"currency":{"title":"Currency","type":"string"},"items":{"items":{"$ref":"#/components/schemas/ProductGuestTypeItem"},"title":"Items","type":"array"},"prices_entered":{"enum":["gross","net"],"title":"Prices Entered","type":"string"},"product":{"$ref":"#/components/schemas/GuestTypeProduct"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"revision":{"title":"Revision","type":"string"}},"required":["product","currency","prices_entered","revision","items","available"],"title":"ProductGuestTypesSaved","type":"object"},"ProductPatch":{"additionalProperties":false,"properties":{"all_locations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Sold at every place, also places added later; false keeps only the home place unless location_ids is sent","title":"All Locations"},"booking_rules_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Booking Rules Id"},"description":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"includes":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"item_type_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Type Id"},"location_ids":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":100,"type":"array"},{"type":"null"}],"description":"Other places the product is sold (replaces the list)","title":"Location Ids"},"name":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"online":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Online"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","type":"string"},{"type":"null"}],"title":"Slug"},"sort":{"anyOf":[{"maximum":1000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sort"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"},"unit":{"anyOf":[{"enum":["rider","item","item_day","group","booking","seat","vehicle_day","service"],"type":"string"},{"type":"null"}],"title":"Unit"},"vat_category":{"anyOf":[{"enum":["standard","reduced","super_reduced","zero","exempt"],"type":"string"},{"type":"null"}],"title":"Vat Category"}},"required":["idempotency_key","expected_version"],"title":"ProductPatch","type":"object"},"ProductSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"slug":{"title":"Slug","type":"string"},"state":{"enum":["draft","live","archived"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","slug","state","version"],"title":"ProductSaved","type":"object"},"ProductUses":{"additionalProperties":true,"properties":{"item_types":{"description":"The item types the product draws from","items":{"$ref":"#/components/schemas/UsesItemType"},"title":"Item Types","type":"array"},"parts":{"description":"A package's parts, each named by the product it is","items":{"$ref":"#/components/schemas/UsesPart"},"title":"Parts","type":"array"}},"required":["item_types","parts"],"title":"ProductUses","type":"object"},"ProgressStep":{"additionalProperties":true,"description":"One step on the booking's line of steps.","properties":{"at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the step was done; null while it is not","title":"At"},"fact":{"additionalProperties":true,"description":"What the step shows, by key. booked: {at, source}; details: {named, total}; waivers: {signed, total}; set_aside: {set, total, tags, on}; paid: {paid_minor, total_minor, due_minor, currency} (amounts null without booking_money:read); handed_over: {at, due_at}; checked_in: {at, arrived, total}; back: {at, due_at, late_by_minutes}; cancelled: {at, by_name, by_kind, how, why, kept_minor, refund_minor}","title":"Fact","type":"object"},"key":{"enum":["booked","details","waivers","set_aside","paid","handed_over","checked_in","back","cancelled"],"title":"Key","type":"string"},"state":{"description":"now: the first step not done","enum":["done","now","todo"],"title":"State","type":"string"}},"required":["key","state"],"title":"ProgressStep","type":"object"},"PromoCodeSave":{"additionalProperties":false,"properties":{"channels":{"anyOf":[{"items":{"enum":["desk","online","assistant","operator"],"type":"string"},"type":"array"},{"type":"null"}],"title":"Channels"},"code":{"anyOf":[{"maxLength":32,"minLength":3,"type":"string"},{"type":"null"}],"title":"Code"},"discount_rule_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Discount Rule Id"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"max_uses":{"anyOf":[{"maximum":1000000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Max Uses"},"max_uses_per_customer":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Max Uses Per Customer"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"},"valid_from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Valid Until"}},"required":["idempotency_key"],"title":"PromoCodeSave","type":"object"},"ProposalCounts":{"additionalProperties":true,"properties":{"all":{"default":0,"title":"All","type":"integer"},"documents":{"default":0,"title":"Documents","type":"integer"},"groups":{"default":0,"title":"Groups","type":"integer"},"models":{"default":0,"description":"Distinct models across the whole proposal: the store products, new models and unmatched stock lines its price, same and new lines name (two sizes of one product are one model)","title":"Models","type":"integer"},"need_you":{"default":0,"description":"Lines marked check that no one decided yet","title":"Need You","type":"integer"},"new":{"default":0,"title":"New","type":"integer"},"photos":{"default":0,"title":"Photos","type":"integer"},"price":{"default":0,"title":"Price","type":"integer"},"same":{"default":0,"title":"Same","type":"integer"},"specs":{"default":0,"title":"Specs","type":"integer"},"words":{"default":0,"title":"Words","type":"integer"}},"title":"ProposalCounts","type":"object"},"ProposalFailure":{"additionalProperties":true,"properties":{"code":{"enum":["bot_check","link_unreachable","link_not_supported","too_long","nothing_found","file_unreadable","not_a_price_list","scan_unreadable","encrypted_document","no_photos","nothing_to_clean","no_facts","nothing_to_write","model_unavailable"],"title":"Code","type":"string"},"message":{"title":"Message","type":"string"}},"required":["code","message"],"title":"ProposalFailure","type":"object"},"ProposalHead":{"additionalProperties":true,"properties":{"applied":{"anyOf":[{"$ref":"#/components/schemas/AppliedCounts"},{"type":"null"}]},"applied_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Applied At"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"counts":{"$ref":"#/components/schemas/ProposalCounts"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"discarded_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Discarded At"},"effective_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Effective On"},"hidden_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Not now: hidden until this day of the shop (OI-01)","title":"Hidden Until"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["price_list","link","photos","words","grouping","markdown","stranded"],"title":"Kind","type":"string"},"read":{"anyOf":[{"$ref":"#/components/schemas/ProposalRead"},{"type":"null"}]},"refusal":{"anyOf":[{"$ref":"#/components/schemas/ProposalRefusal"},{"type":"null"}],"description":"No: why the person said no (OI-01)"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"source":{"anyOf":[{"$ref":"#/components/schemas/ProposalSource"},{"type":"null"}]},"state":{"enum":["to_review","applied","undone","discarded"],"title":"State","type":"string"},"store_product":{"anyOf":[{"$ref":"#/components/schemas/ProposalProduct"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"undo_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Undo Until"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Updated At"},"version":{"title":"Version","type":"integer"}},"required":["id","kind","state","created_at","version"],"title":"ProposalHead","type":"object"},"ProposalPick":{"additionalProperties":true,"description":"One of the models a page or a kit holds; start again with its ``index`` as ``model_index``.","properties":{"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"index":{"title":"Index","type":"integer"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Minor"},"sizes":{"items":{"type":"string"},"title":"Sizes","type":"array"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"required":["index"],"title":"ProposalPick","type":"object"},"ProposalProduct":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"slug":{"title":"Slug","type":"string"},"title":{"anyOf":[{"$ref":"#/components/schemas/StoreWords"},{"type":"null"}]}},"required":["id","slug"],"title":"ProposalProduct","type":"object"},"ProposalRead":{"additionalProperties":true,"description":"What the reader could and could not read.","properties":{"reasons":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reasons"},"rows_left_out":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows Left Out"},"rows_read":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows Read"},"rows_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows Total"},"unread_pages":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"integer"},{"type":"null"}],"title":"Unread Pages"}},"title":"ProposalRead","type":"object"},"ProposalRefusal":{"additionalProperties":true,"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"reason":{"enum":["wrong","already_done","too_small","not_our_way","too_risky","never_item","other"],"title":"Reason","type":"string"}},"required":["reason"],"title":"ProposalRefusal","type":"object"},"ProposalSource":{"additionalProperties":true,"properties":{"duplicate_of":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Duplicate Of"},"fetched_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Fetched At"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"kit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Kit"},"mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime"},"pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pages"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"sheet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"title":"ProposalSource","type":"object"},"ProposalStart":{"additionalProperties":true,"description":"``ready``: a proposal was stored (201, 200 on a replay). ``pick``: several models, nothing stored (200). ``failed``: nothing\nstored, ``failure`` says why (200).","properties":{"failure":{"anyOf":[{"$ref":"#/components/schemas/ProposalFailure"},{"type":"null"}]},"models":{"items":{"$ref":"#/components/schemas/ProposalPick"},"title":"Models","type":"array"},"proposal":{"anyOf":[{"$ref":"#/components/schemas/ProposalHead"},{"type":"null"}]},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"enum":["ready","pick","failed"],"title":"State","type":"string"}},"required":["state"],"title":"ProposalStart","type":"object"},"PublicAlternative":{"description":"Another size, date, half day or product the guest may choose when a requested rental is unavailable.","properties":{"day_set":{"anyOf":[{"items":{"$ref":"#/components/schemas/DaySlot"},"type":"array"},{"type":"null"}],"description":"Dates and parts of day covered by this alternative.","title":"Day Set"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of days covered by this alternative, when it differs by date.","title":"Days"},"difference_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Extra or reduced cost of a stand-in product, in minor currency units; zero means the same price.","title":"Difference Minor"},"first_day":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First local rental day.","title":"First Day"},"free":{"$ref":"#/components/schemas/FreeWords","description":"Availability expressed in words."},"kind":{"description":"Alternative offered: other_size, other_days, other_period, neighbour_size or stand_in.","enum":["other_size","other_days","other_period","neighbour_size","stand_in"],"title":"Kind","type":"string"},"name":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"Guest-visible name of a stand-in product, when offered."},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Public rental option identifier.","title":"Option Id"},"period":{"anyOf":[{"$ref":"#/components/schemas/PublicAlternativePeriod"},{"type":"null"}],"description":"Part of the day covered by this item."},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Identifier of the stand-in product, when offered.","title":"Product Id"},"riders":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Person keys of the riders this alternative fits.","title":"Riders"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest-visible size offered as an alternative; null when it does not apply.","title":"Size"}},"required":["kind","free"],"title":"PublicAlternative","type":"object"},"PublicAlternativePeriod":{"properties":{"kind":{"description":"Alternative half day: morning or afternoon.","enum":["morning","afternoon"],"title":"Kind","type":"string"}},"required":["kind"],"title":"PublicAlternativePeriod","type":"object"},"PublicAskedLine":{"description":"A line the guest asked the shop to supply, including any offer and its answer deadline.","properties":{"answer_by":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The shop answers by then (the running short settings)","title":"Answer By"},"days":{"description":"Dates and parts of day requested by the guest.","items":{"$ref":"#/components/schemas/DaySlot"},"title":"Days","type":"array"},"difference_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"offered: what the guest pays more (0: the same)","title":"Difference Minor"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client key of the line the guest asked the shop to supply.","title":"Key"},"label":{"$ref":"#/components/schemas/Words-Output","description":"Guest-visible name of the requested item."},"line":{"description":"The 1-based line of the request","title":"Line","type":"integer"},"riders":{"description":"Person keys","items":{"type":"string"},"title":"Riders","type":"array"},"sizes":{"description":"The size asked first, then the other sizes that would do","items":{"type":"string"},"title":"Sizes","type":"array"},"status":{"description":"State of the request: asked, offered, assigned, declined, expired or withdrawn.","enum":["asked","offered","assigned","declined","expired","withdrawn"],"title":"Status","type":"string"}},"required":["key","line","label","sizes","riders","days","status","answer_by"],"title":"PublicAskedLine","type":"object"},"PublicAvailabilityOption":{"properties":{"days":{"description":"Availability for each requested local day, expressed in words.","items":{"$ref":"#/components/schemas/PublicFreeDay"},"title":"Days","type":"array"},"id":{"description":"The option_id a rental line books","format":"uuid","title":"Id","type":"string"},"max_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The highest rider height it fits, in cm; null: open or unknown","title":"Max Cm"},"min_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The lowest rider height it fits, in cm: from rider_hint, else the size of the same label on a height chart of the product's parts; null: open or unknown","title":"Min Cm"},"rider_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who the size fits, in the shop's words ('180 to 193 cm')","title":"Rider Hint"},"size_label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest-visible size name.","title":"Size Label"}},"required":["id","size_label","days"],"title":"PublicAvailabilityOption","type":"object"},"PublicAvailabilityProduct":{"properties":{"asks":{"description":"What a guest booking it answers; answers name the ask's item_type_id","items":{"$ref":"#/components/schemas/GuestAsk"},"title":"Asks","type":"array"},"blurb":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"The longer words of the product"},"charts":{"description":"One per part with a size chart","items":{"$ref":"#/components/schemas/PublicSizeChart"},"title":"Charts","type":"array"},"closed_days":{"description":"Days a closure of the product's place covers","items":{"format":"date","type":"string"},"title":"Closed Days","type":"array"},"facts":{"description":"The guest visible fields of its item types with its values, in part order then field order, at most 24","items":{"$ref":"#/components/schemas/GearFact"},"title":"Facts","type":"array"},"fit":{"anyOf":[{"$ref":"#/components/schemas/ProductFit"},{"type":"null"}],"description":"The product's build, geometry and fit ranges, when the catalog has them; null when no fit data is available."},"gear":{"anyOf":[{"enum":["ski","bike","other"],"type":"string"},{"type":"null"}],"description":"What the product rents: bike or ski (its kind, else its words), other for anything else; the guest flow names its tabs and offers extras by it. Null from a read that does not say","title":"Gear"},"id":{"description":"Identifier of the rental product whose availability is shown.","format":"uuid","title":"Id","type":"string"},"image":{"anyOf":[{"$ref":"#/components/schemas/PublicImage"},{"type":"null"}],"description":"The product's photo for the Bikes step (the one the fleet shows as its model's): its cover, else its first; null when it has none or the link cannot be made"},"line":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"The short line under the name: what is included"},"model":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"'Allround, 2026 model': the model the product rents"},"name":{"$ref":"#/components/schemas/Words-Output","description":"Name shown to guests."},"notice":{"anyOf":[{"$ref":"#/components/schemas/PublicSiteNotice"},{"type":"null"}],"description":"The notice rules its quote uses (its own booking rules, else the shop's), in its place's time zone; days before first_day are too_soon. Null from a read that does not say"},"options":{"description":"Bookable sizes or options.","items":{"$ref":"#/components/schemas/PublicAvailabilityOption"},"title":"Options","type":"array"},"parts":{"description":"Product parts and their guest-visible labels.","items":{"$ref":"#/components/schemas/PublicProductPart"},"title":"Parts","type":"array"},"pick_size":{"default":false,"description":"The guest picks the size of at least one part","title":"Pick Size","type":"boolean"}},"required":["id","name","closed_days","options"],"title":"PublicAvailabilityProduct","type":"object"},"PublicBookingCreate":{"additionalProperties":false,"description":"A booking request for rentals, extras or tour seats. Lines can use the shared date range or supply their own days.","properties":{"answers":{"description":"Questions the shop asks once per booking for rented products, based on their categories.","items":{"$ref":"#/components/schemas/AnswerInput"},"maxItems":20,"title":"Answers","type":"array"},"days":{"anyOf":[{"maximum":36500.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Number of whole rental days; optional when each line supplies its own dates.","title":"Days"},"first_day":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First local rental day.","title":"First Day"},"guest":{"$ref":"#/components/schemas/Guest-Input","description":"Contact details for the person making the booking."},"idempotency_key":{"description":"Unique UUID for a safe retry of this request.","format":"uuid","title":"Idempotency Key","type":"string"},"lines":{"description":"Items in the booking.","items":{"$ref":"#/components/schemas/PublicLineInput"},"maxItems":20,"minItems":1,"title":"Lines","type":"array"},"mode":{"default":"book","description":"Choose book to reserve now or request to ask the shop to confirm.","enum":["book","request"],"title":"Mode","type":"string"},"origin":{"anyOf":[{"$ref":"#/components/schemas/BookingOrigin"},{"type":"null"}],"description":"Where the booking came from: the store product the guest pressed Rent this on. Kept on a new booking of the same shop only; an unknown id books the same and keeps nothing; a replay changes nothing"},"payment_choice":{"anyOf":[{"enum":["deposit","full","at_shop"],"type":"string"},{"type":"null"}],"description":"How the guest pays: deposit, full or at_shop.","title":"Payment Choice"},"promo_code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest's promotion code, three to 32 letters, digits, underscores or hyphens; surrounding spaces are removed.","title":"Promo Code"},"riders":{"description":"People taking part in the booked lines.","items":{"$ref":"#/components/schemas/PublicRiderInput"},"maxItems":40,"title":"Riders","type":"array"}},"required":["idempotency_key","lines","guest"],"title":"PublicBookingCreate","type":"object"},"PublicBookingProfile":{"description":"How the shop takes online bookings, and where and when guests meet it.","properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Main address displayed on the booking page, if supplied.","title":"Address"},"cancellation_text":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"Cancellation terms displayed before booking, if supplied."},"currency":{"description":"ISO currency code for all money amounts in this answer.","pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"default_locale":{"description":"Default language for the shop's guest pages.","title":"Default Locale","type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest or shop email address.","title":"Email"},"intro_text":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"Introductory text displayed on the booking page, if supplied."},"locales":{"description":"Languages offered on the shop's guest pages.","items":{"type":"string"},"title":"Locales","type":"array"},"name":{"description":"Name shown to guests.","title":"Name","type":"string"},"online_booking":{"default":"book","description":"How the site takes guests: \"book\" books online; \"ask\" takes booking requests instead (POST /v1/public/booking-requests); a booking then answers 409 online_booking_ask","enum":["book","ask"],"title":"Online Booking","type":"string"},"payment":{"$ref":"#/components/schemas/PublicPayment","description":"Online payment mode and choices offered by the shop."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest or shop telephone number.","title":"Phone"},"places":{"description":"The shop first, then meeting and pick-up points, at most 20","items":{"$ref":"#/components/schemas/PublicPlace"},"title":"Places","type":"array"},"rental_day":{"$ref":"#/components/schemas/RentalDay","description":"Rentals are picked up from opens on the first day and brought back by closes on the last"},"rental_periods":{"$ref":"#/components/schemas/PublicRentalPeriods","description":"Half-day and custom-hour options guests may book."},"time_zone":{"description":"The shop's time zone: local days of every public read are in it","title":"Time Zone","type":"string"}},"required":["name","currency","time_zone","default_locale","locales","phone","email","address","payment","rental_day","cancellation_text","intro_text","places"],"title":"PublicBookingProfile","type":"object"},"PublicBookingRiderDetails":{"additionalProperties":false,"description":"What a shop asks about a rider beyond sizes. Stored as one object; every field is optional.","properties":{"brakes":{"anyOf":[{"enum":["front_left","front_right"],"type":"string"},{"type":"null"}],"description":"The lever that works the front brake","title":"Brakes"},"first_visit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"First time riding with this shop","title":"First Visit"},"own_bike":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The rider brings their own bike","title":"Own Bike"},"pedals":{"anyOf":[{"enum":["flat","clipless","own_pedals"],"type":"string"},{"type":"null"}],"description":"Pedal choice: flat, clipless or own_pedals; null when not supplied.","title":"Pedals"},"wheel_size":{"anyOf":[{"enum":["20","24","26","27.5","29","mixed"],"type":"string"},{"type":"null"}],"description":"Of the bike the rider brings","title":"Wheel Size"}},"title":"PublicBookingRiderDetails","type":"object"},"PublicBookingState":{"properties":{"asked":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicAskedLine"},"type":"array"},{"type":"null"}],"description":"Lines the guest has asked the shop to supply and each line's current state. They are not charged until assigned.","title":"Asked"},"at_shop_minor":{"description":"Amount due at the shop, in minor currency units.","title":"At Shop Minor","type":"integer"},"currency":{"description":"ISO currency code for all money amounts in this answer.","pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"days":{"description":"Number of days covered by the booking.","title":"Days","type":"integer"},"deposit_minor":{"description":"What is paid online: the deposit, or the total for full; 0 at the shop or for a request","title":"Deposit Minor","type":"integer"},"first_day":{"description":"First local rental day.","format":"date","title":"First Day","type":"string"},"hold_expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Null once confirmed","title":"Hold Expires At"},"next":{"description":"Next action: done, pay_deposit, pay_full or requested.","enum":["done","pay_deposit","pay_full","requested"],"title":"Next","type":"string"},"paid_minor":{"description":"Amount already paid, in minor currency units.","title":"Paid Minor","type":"integer"},"payment_choice":{"anyOf":[{"enum":["deposit","full","at_shop"],"type":"string"},{"type":"null"}],"description":"Null for a request","title":"Payment Choice"},"promo":{"anyOf":[{"$ref":"#/components/schemas/PublicPromo"},{"type":"null"}],"description":"Promotion code applied to the booking, when available."},"reference":{"description":"Guest-facing booking reference.","title":"Reference","type":"string"},"stage":{"description":"Current booking stage.","enum":["request","lapsed","waiting_payment","not_finished","needs_you","booked","not_collected","out","late","back","cancelled"],"title":"Stage","type":"string"},"total_minor":{"description":"Total price in minor currency units.","title":"Total Minor","type":"integer"},"view_token":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Confirmation view token, returned when a booking is confirmed immediately for payment at the shop.","title":"View Token"}},"required":["reference","stage","next","first_day","days","currency","total_minor","deposit_minor","at_shop_minor","paid_minor","hold_expires_at"],"title":"PublicBookingState","type":"object"},"PublicBookingView":{"properties":{"currency":{"description":"ISO currency code for all money amounts in this answer.","pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"days":{"description":"Number of days covered by the confirmed booking.","title":"Days","type":"integer"},"first_day":{"description":"First local rental day.","format":"date","title":"First Day","type":"string"},"lines":{"description":"Items in the booking.","items":{"$ref":"#/components/schemas/ViewLine"},"title":"Lines","type":"array"},"locale":{"description":"Language used for this guest's booking and messages: en, it, de or fr.","enum":["en","it","de","fr"],"title":"Locale","type":"string"},"money":{"$ref":"#/components/schemas/BookingMoney","description":"Booking totals, payment state and amounts due."},"payments":{"anyOf":[{"items":{"$ref":"#/components/schemas/ViewPayment"},"type":"array"},{"type":"null"}],"description":"BC1: the paid payments and refunds, oldest first (at most 20); null from a read that does not say","title":"Payments"},"pickup":{"anyOf":[{"$ref":"#/components/schemas/ViewPickup"},{"type":"null"}],"description":"Pickup place or meeting point; null when none is specified."},"pickup_at":{"description":"Date and time the guest can collect rented equipment.","format":"date-time","title":"Pickup At","type":"string"},"reference":{"description":"Guest-facing booking reference.","title":"Reference","type":"string"},"return_by_at":{"description":"Date and time rented equipment is due back.","format":"date-time","title":"Return By At","type":"string"},"riders":{"description":"Riders and their recorded details on this booking.","items":{"$ref":"#/components/schemas/ViewRider"},"title":"Riders","type":"array"},"shop":{"$ref":"#/components/schemas/ViewShop","description":"Shop contact details and cancellation terms."},"stage":{"description":"Current booking stage.","enum":["request","lapsed","waiting_payment","not_finished","needs_you","booked","not_collected","out","late","back","cancelled"],"title":"Stage","type":"string"},"trip_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The guest trip page of this booking (/trip/{token}); null once its link is revoked or expired","title":"Trip Url"}},"required":["reference","stage","locale","first_day","days","pickup_at","return_by_at","currency","lines","riders","money","shop"],"title":"PublicBookingView","type":"object"},"PublicCatalog":{"properties":{"booking_locales":{"description":"Languages accepted when a guest creates a booking.","items":{"enum":["en","it","de","fr"],"type":"string"},"title":"Booking Locales","type":"array"},"currency":{"description":"ISO currency code for all money amounts in this answer.","pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Length of the requested rental, or null when dates were not supplied.","title":"Days"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Default language offered on guest pages; null when this read does not supply it.","title":"Default Locale"},"first_day":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First local rental day.","title":"First Day"},"guest_locales":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Languages the shop offers on guest pages; null when this read does not supply them.","title":"Guest Locales"},"products":{"description":"Products offered online.","items":{"$ref":"#/components/schemas/PublicProduct"},"title":"Products","type":"array"},"rental_day":{"$ref":"#/components/schemas/RentalDay","description":"Local pickup and return times used for whole-day rentals."}},"required":["currency","first_day","days","rental_day","products"],"title":"PublicCatalog","type":"object"},"PublicClosure":{"properties":{"ends_on":{"description":"Last local day the place is closed.","format":"date","title":"Ends On","type":"string"},"starts_on":{"description":"First local day the place is closed.","format":"date","title":"Starts On","type":"string"}},"required":["starts_on","ends_on"],"title":"PublicClosure","type":"object"},"PublicDayHalf":{"properties":{"ends":{"description":"Local end time.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Ends","type":"string"},"starts":{"description":"Local start time.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Starts","type":"string"}},"required":["starts","ends"],"title":"PublicDayHalf","type":"object"},"PublicDayHours":{"description":"Local rental opening, closing, morning and afternoon times for one day at a product's place.","properties":{"afternoon":{"anyOf":[{"$ref":"#/components/schemas/PublicDayHalf"},{"type":"null"}],"description":"That day's afternoon; null when the day has none"},"closes":{"description":"and brought back by this","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Closes","type":"string"},"morning":{"anyOf":[{"$ref":"#/components/schemas/PublicDayHalf"},{"type":"null"}],"description":"That day's morning; null when the day has none"},"opens":{"description":"Rentals that day are picked up from this","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Opens","type":"string"}},"required":["opens","closes"],"title":"PublicDayHours","type":"object"},"PublicDeparture":{"properties":{"ends_at":{"description":"Departure end date and time.","format":"date-time","title":"Ends At","type":"string"},"id":{"description":"The departure_id a tour_seat line books","format":"uuid","title":"Id","type":"string"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Language spoken on this departure, if specified.","title":"Language"},"price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"One seat; null when the tour has no price for that day","title":"Price Minor"},"seats_left":{"description":"0 when full, or when a private departure already has its party","title":"Seats Left","type":"integer"},"starts_at":{"description":"Departure start date and time.","format":"date-time","title":"Starts At","type":"string"}},"required":["id","starts_at","ends_at","language","seats_left","price_minor"],"title":"PublicDeparture","type":"object"},"PublicFreeDay":{"properties":{"afternoon":{"anyOf":[{"$ref":"#/components/schemas/FreeWords"},{"type":"null"}],"description":"Afternoon availability in words; null when the product does not offer afternoons."},"day":{"description":"Local calendar day.","format":"date","title":"Day","type":"string"},"free":{"$ref":"#/components/schemas/FreeWords","description":"Free for a one day rental of that day, in words"},"hours":{"anyOf":[{"$ref":"#/components/schemas/PublicDayHours"},{"type":"null"}],"description":"Local pickup, return and half-day times at the product's place, when available."},"morning":{"anyOf":[{"$ref":"#/components/schemas/FreeWords"},{"type":"null"}],"description":"Morning availability in words; null when the product does not offer mornings."},"periods":{"anyOf":[{"items":{"enum":["full","morning","afternoon"],"type":"string"},"type":"array"},{"type":"null"}],"description":"Parts of this day the product offers: full, morning or afternoon.","title":"Periods"}},"required":["day","free"],"title":"PublicFreeDay","type":"object"},"PublicHalfDay":{"properties":{"ends":{"description":"Local end time.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Ends","type":"string"},"kind":{"description":"Named half day: morning or afternoon.","enum":["morning","afternoon"],"title":"Kind","type":"string"},"starts":{"description":"Local start time.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Starts","type":"string"}},"required":["kind","starts","ends"],"title":"PublicHalfDay","type":"object"},"PublicHalfDays":{"properties":{"product_ids":{"description":"Products of the rental catalog with a half-day price online","items":{"format":"uuid","type":"string"},"title":"Product Ids","type":"array"},"slots":{"description":"The shop's morning and afternoon start and end times, in local time.","items":{"$ref":"#/components/schemas/PublicHalfDay"},"title":"Slots","type":"array"}},"required":["slots","product_ids"],"title":"PublicHalfDays","type":"object"},"PublicHourly":{"properties":{"closes":{"description":"and ends at or before this","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Closes","type":"string"},"min_minutes":{"description":"The shortest chosen time","title":"Min Minutes","type":"integer"},"opens":{"description":"A chosen time starts at or after this","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Opens","type":"string"},"product_ids":{"description":"Products of the rental catalog with an hourly price online","items":{"format":"uuid","type":"string"},"title":"Product Ids","type":"array"},"step_minutes":{"description":"Times fall on these steps","title":"Step Minutes","type":"integer"}},"required":["opens","closes","step_minutes","min_minutes","product_ids"],"title":"PublicHourly","type":"object"},"PublicHoursSet":{"properties":{"days":{"description":"A weekday that is not listed is closed","items":{"$ref":"#/components/schemas/PublicOpeningDay"},"title":"Days","type":"array"},"valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Null: since always","title":"Valid From"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Null: until further notice","title":"Valid Until"}},"required":["valid_from","valid_until","days"],"title":"PublicHoursSet","type":"object"},"PublicImage":{"description":"A photo on a guest page: a cacheable URL that stays the same for days, the alt text and the pixel size.","properties":{"alt":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"Alternative text for this photo, by language."},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Image height in pixels.","title":"Height"},"url":{"description":"Link to the guest-facing image rendition; the link remains usable for several days.","title":"Url","type":"string"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Image width in pixels.","title":"Width"}},"required":["url"],"title":"PublicImage","type":"object"},"PublicLineInput":{"additionalProperties":false,"description":"One rental, extra, tour seat, kit item, guide choice or tour request. Each kind accepts its own matching fields.","properties":{"asked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True to ask the shop for a rental instead of reserving it immediately.","title":"Asked"},"bikes":{"anyOf":[{"patternProperties":{"^[a-z0-9][a-z0-9_-]{0,23}$":{"pattern":"^(own|line:[a-z0-9][a-z0-9_-]{0,23})$","type":"string"}},"propertyNames":{"description":"A person's key, set by the client, unique in the booking"},"type":"object"},{"type":"null"}],"description":"For each rider on a tour line, own means their bike or line:<key> names a rental line.","title":"Bikes"},"days":{"anyOf":[{"items":{"$ref":"#/components/schemas/LineDay"},"maxItems":62,"minItems":1,"type":"array"},{"type":"null"}],"description":"This line's dates and parts of day; omit to use the booking's whole date range.","title":"Days"},"departure_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Departure ID from the tour departures read for a tour seat.","title":"Departure Id"},"fit_at_shop":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True when a kit size will be chosen at the shop instead of by option ID.","title":"Fit At Shop"},"group":{"anyOf":[{"enum":["new_group","private"],"type":"string"},{"type":"null"}],"description":"Tour request type: new_group or private.","title":"Group"},"key":{"anyOf":[{"description":"A line's key, set by the client, stable across edits, unique in the booking","pattern":"^[a-z0-9][a-z0-9_-]{0,23}$","type":"string"},{"type":"null"}],"description":"Client-assigned line key, stable across edits to the booking.","title":"Key"},"kind":{"default":"rental","description":"Line to book: rental, extra, tour_seat, kit, guide_pick or tour_request.","enum":["rental","extra","tour_seat","kit","guide_pick","tour_request"],"title":"Kind","type":"string"},"kit_item_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Identifier of the kit item shown in availability.","title":"Kit Item Id"},"note":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"description":"Optional note for a guide choice or tour request.","title":"Note"},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Public rental option identifier.","title":"Option Id"},"or_options":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":3,"minItems":1,"type":"array"},{"type":"null"}],"description":"Other rental option IDs the guest would accept if the first is unavailable.","title":"Or Options"},"parent_line_key":{"anyOf":[{"description":"A line's key, set by the client, stable across edits, unique in the booking","pattern":"^[a-z0-9][a-z0-9_-]{0,23}$","type":"string"},{"type":"null"}],"description":"Key of the rental or tour line this extra or kit item belongs with.","title":"Parent Line Key"},"parent_line_no":{"anyOf":[{"maximum":20.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"One-based number of the rental or tour line this extra follows.","title":"Parent Line No"},"period":{"anyOf":[{"$ref":"#/components/schemas/PublicPeriod"},{"type":"null"}],"description":"Part of the day covered by this item."},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Public product identifier.","title":"Product Id"},"quantity":{"description":"Number of units requested.","maximum":20.0,"minimum":1.0,"title":"Quantity","type":"integer"},"riders":{"anyOf":[{"items":{"description":"A person's key, set by the client, unique in the booking","pattern":"^[a-z0-9][a-z0-9_-]{0,23}$","type":"string"},"maxItems":40,"minItems":1,"type":"array"},{"type":"null"}],"description":"Person keys assigned to this line; each appears once and the count matches quantity.","title":"Riders"}},"required":["quantity"],"title":"PublicLineInput","type":"object"},"PublicLinesUnavailable":{"description":"A conflict response that names unavailable lines and alternative choices without exposing exact stock counts.","properties":{"can_ask":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the shop allows guests to ask for unavailable lines.","title":"Can Ask"},"can_save":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the shop allows guests to save a trip for later.","title":"Can Save"},"error":{"const":"lines_unavailable","default":"lines_unavailable","description":"Machine-readable refusal code.","title":"Error","type":"string"},"lines":{"description":"Items in the booking.","items":{"$ref":"#/components/schemas/PublicUnavailableLine"},"title":"Lines","type":"array"},"ok":{"const":false,"default":false,"description":"Whether the request succeeded.","title":"Ok","type":"boolean"}},"required":["lines"],"title":"PublicLinesUnavailable","type":"object"},"PublicOpeningDay":{"properties":{"closes":{"description":"Local closing time.","title":"Closes","type":"string"},"opens":{"description":"Local opening time.","title":"Opens","type":"string"},"weekday":{"description":"ISO weekday: 1 is Monday, 7 is Sunday. A weekday may appear twice (a lunch break)","maximum":7.0,"minimum":1.0,"title":"Weekday","type":"integer"}},"required":["weekday","opens","closes"],"title":"PublicOpeningDay","type":"object"},"PublicOption":{"properties":{"free":{"anyOf":[{"$ref":"#/components/schemas/FreeWords"},{"type":"null"}],"description":"Null without days"},"id":{"description":"Use this option ID in a rental booking line.","format":"uuid","title":"Id","type":"string"},"price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null without days","title":"Price Minor"},"rider_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Advice to help a guest choose this size; null when no hint is set.","title":"Rider Hint"},"size_label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest-visible size name.","title":"Size Label"}},"required":["id","size_label","rider_hint","price_minor","free"],"title":"PublicOption","type":"object"},"PublicPayment":{"properties":{"at_shop_without_rentals":{"description":"A basket without rented sizes (tour seats, extras without sizes) may also choose at_shop","title":"At Shop Without Rentals","type":"boolean"},"choices":{"description":"Payment choices accepted for a basket under the shop's default rules; a product can narrow them.","items":{"enum":["deposit","full","at_shop"],"type":"string"},"title":"Choices","type":"array"},"deposit_min_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Deposit mode only: the least deposit of a booking","title":"Deposit Min Minor"},"deposit_percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Deposit mode only: the share of the total paid online, rounded up to whole units","title":"Deposit Percent"},"mode":{"description":"The shop's online mode","enum":["pay_at_shop","deposit"],"title":"Mode","type":"string"}},"required":["mode","choices","at_shop_without_rentals","deposit_percent","deposit_min_minor"],"title":"PublicPayment","type":"object"},"PublicPaymentAccountMissing":{"description":"A conflict response when the shop cannot take the chosen online payment. Use a listed fallback choice.","properties":{"error":{"const":"payment_account_missing","default":"payment_account_missing","description":"Machine-readable refusal code.","title":"Error","type":"string"},"fallback":{"description":"The choices that still work: `request` always, `at_shop` when the booking rules allow it","items":{"enum":["at_shop","request"],"type":"string"},"title":"Fallback","type":"array"},"ok":{"const":false,"default":false,"description":"Whether the request succeeded.","title":"Ok","type":"boolean"},"payment_choice":{"description":"Online payment choice that the shop cannot currently accept: deposit or full.","enum":["deposit","full"],"title":"Payment Choice","type":"string"}},"required":["payment_choice","fallback"],"title":"PublicPaymentAccountMissing","type":"object"},"PublicPeriod":{"additionalProperties":false,"description":"A morning, afternoon or custom time within one rental day. Custom times need a start and an end.","properties":{"ends":{"anyOf":[{"description":"Local \"HH:MM\" of the shop","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"description":"Local end time.","title":"Ends"},"kind":{"description":"Rental period: morning, afternoon or custom hours.","enum":["morning","afternoon","custom"],"title":"Kind","type":"string"},"starts":{"anyOf":[{"description":"Local \"HH:MM\" of the shop","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"description":"Local start time.","title":"Starts"}},"required":["kind"],"title":"PublicPeriod","type":"object"},"PublicPeriodPrice":{"properties":{"from_minor":{"description":"Lowest online price for this rental period; the final booking price depends on the full basket.","title":"From Minor","type":"integer"}},"required":["from_minor"],"title":"PublicPeriodPrice","type":"object"},"PublicPlace":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Address of this place; null when the shop has not supplied it.","title":"Address"},"closures":{"description":"Closures that have not ended, at most 30","items":{"$ref":"#/components/schemas/PublicClosure"},"title":"Closures","type":"array"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest or shop email address.","title":"Email"},"hours":{"description":"Hours sets still in force or still to come, at most 10","items":{"$ref":"#/components/schemas/PublicHoursSet"},"title":"Hours","type":"array"},"id":{"description":"Identifier of this shop place or meeting point.","format":"uuid","title":"Id","type":"string"},"kind":{"description":"Place type: rental, retail, rental_retail, workshop, depot, meeting_point, pickup, office or partner_desk.","enum":["rental","retail","rental_retail","workshop","depot","meeting_point","pickup","office","partner_desk"],"title":"Kind","type":"string"},"name":{"description":"Name shown to guests.","title":"Name","type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest or shop telephone number.","title":"Phone"},"return_allowed":{"description":"Whether guests may return rentals at this place.","title":"Return Allowed","type":"boolean"},"time_zone":{"description":"IANA time zone used for this place's opening hours.","title":"Time Zone","type":"string"}},"required":["id","name","kind","time_zone","address","phone","email","return_allowed","hours","closures"],"title":"PublicPlace","type":"object"},"PublicProduct":{"properties":{"asks":{"description":"Questions a guest answers for this product, based on its parts.","items":{"$ref":"#/components/schemas/GuestAsk"},"title":"Asks","type":"array"},"bike_type":{"anyOf":[{"enum":["e_bike","mountain_bike","kids_bike"],"type":"string"},{"type":"null"}],"description":"Kind of bike, from the starter item the shop chose: e_bike, mountain_bike or kids_bike; null for any other product.","title":"Bike Type"},"from_price_minor":{"description":"Lowest displayed rental price, in minor currency units.","title":"From Price Minor","type":"integer"},"id":{"description":"Use this product ID when referring to this rental product.","format":"uuid","title":"Id","type":"string"},"images":{"description":"The product's photos, cover first; empty when it has none","items":{"$ref":"#/components/schemas/PublicImage"},"title":"Images","type":"array"},"includes":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"What is included with the rental; null when the shop has not supplied it."},"kind":{"description":"Product category: ski, bike or other.","enum":["ski","bike","other"],"title":"Kind","type":"string"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Maker and model as the shop wrote them on the product, e.g. \"Pivot Shuttle AMPD\"; null when not set.","title":"Model"},"name":{"$ref":"#/components/schemas/Words-Output","description":"Name shown to guests."},"options":{"description":"Bookable sizes or options.","items":{"$ref":"#/components/schemas/PublicOption"},"title":"Options","type":"array"},"pick_size":{"default":false,"description":"Whether the guest selects the size of at least one part.","title":"Pick Size","type":"boolean"},"price_for_days_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Price for the requested number of days, in minor currency units; null without dates.","title":"Price For Days Minor"},"size_mode":{"description":"When size is selected: at_counter at pickup or at_booking while booking.","enum":["at_counter","at_booking"],"title":"Size Mode","type":"string"}},"required":["id","name","kind","size_mode","includes","from_price_minor","price_for_days_minor","options"],"title":"PublicProduct","type":"object"},"PublicProductPart":{"description":"A named part of a rental product, such as skis or boots.","properties":{"asks":{"description":"The category's booking questions (its effective guest_fields)","items":{"$ref":"#/components/schemas/GuestAsk"},"title":"Asks","type":"array"},"glyph":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A key of the frontend glyph catalogue; null when the category has none","title":"Glyph"},"item_type_id":{"description":"Identifier of this type of product part.","format":"uuid","title":"Item Type Id","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output","description":"Guest-visible name of the product part, by language."},"pick_size":{"default":false,"description":"The guest picks a size of this part: the category lets guests pick and has a chart","title":"Pick Size","type":"boolean"}},"required":["item_type_id","label","glyph"],"title":"PublicProductPart","type":"object"},"PublicProductPeriods":{"properties":{"half_day":{"anyOf":[{"$ref":"#/components/schemas/PublicPeriodPrice"},{"type":"null"}],"description":"Lowest online half-day price for this product; null when unavailable."},"hourly":{"anyOf":[{"$ref":"#/components/schemas/PublicPeriodPrice"},{"type":"null"}],"description":"Lowest online hourly price for this product; null when unavailable."}},"required":["half_day","hourly"],"title":"PublicProductPeriods","type":"object"},"PublicPromo":{"description":"A promotion code applied to this booking; totals already include the discount.","properties":{"capped":{"description":"The shop's most discount per booking limited the basket","title":"Capped","type":"boolean"},"code":{"description":"Promotion code that reduced the booking total.","title":"Code","type":"string"},"discount_minor":{"description":"What the code took off the total, VAT included","title":"Discount Minor","type":"integer"}},"required":["code","discount_minor","capped"],"title":"PublicPromo","type":"object"},"PublicPromoRefused":{"description":"A refusal explaining why a promotion code does not apply. No booking was written.","properties":{"code":{"description":"The code as sent, upper-cased","title":"Code","type":"string"},"error":{"const":"promo_refused","default":"promo_refused","description":"Machine-readable refusal code.","title":"Error","type":"string"},"ok":{"const":false,"default":false,"description":"Whether the request succeeded.","title":"Ok","type":"boolean"},"reason":{"description":"Why the promotion code cannot be applied.","enum":["unknown","expired","not_for_dates","not_for_basket","used_up","limit_reached"],"title":"Reason","type":"string"}},"required":["code","reason"],"title":"PublicPromoRefused","type":"object"},"PublicQuoteRefused":{"description":"A conflict response listing the pricing or booking rules that refused a requested line.","properties":{"error":{"const":"quote_refused","default":"quote_refused","description":"Machine-readable refusal code.","title":"Error","type":"string"},"ok":{"const":false,"default":false,"description":"Whether the request succeeded.","title":"Ok","type":"boolean"},"refusals":{"description":"Reasons the shop cannot price or accept the requested lines.","items":{"$ref":"#/components/schemas/PublicRefusal"},"title":"Refusals","type":"array"}},"required":["refusals"],"title":"PublicQuoteRefused","type":"object"},"PublicRefusal":{"properties":{"code":{"description":"Pricing refusal code, such as too_soon, no_price, no_half_day_price or no_hourly_price.","title":"Code","type":"string"},"line":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The 1-based line of the request; null for the whole basket","title":"Line"}},"required":["line","code"],"title":"PublicRefusal","type":"object"},"PublicRentalAvailability":{"description":"Every option of the rental catalog, every local day from ``from`` to ``to``.","properties":{"from":{"description":"First local day included in this answer.","format":"date","title":"From","type":"string"},"products":{"description":"Products offered online.","items":{"$ref":"#/components/schemas/PublicAvailabilityProduct"},"title":"Products","type":"array"},"to":{"description":"Last local day included in this answer.","format":"date","title":"To","type":"string"}},"required":["from","to","products"],"title":"PublicRentalAvailability","type":"object"},"PublicRentalPeriods":{"description":"Half-day and custom-hour rental periods offered by the shop.","properties":{"half_day":{"anyOf":[{"$ref":"#/components/schemas/PublicHalfDays"},{"type":"null"}],"description":"Morning and afternoon periods offered for rentals; null when unavailable."},"hourly":{"anyOf":[{"$ref":"#/components/schemas/PublicHourly"},{"type":"null"}],"description":"Rules for choosing custom rental hours; null when unavailable."}},"required":["half_day","hourly"],"title":"PublicRentalPeriods","type":"object"},"PublicRentalSlots":{"description":"One local day: every option of the rental catalog, free for the whole day, each half day and a chosen time, in words.","properties":{"custom":{"anyOf":[{"$ref":"#/components/schemas/PublicSlotTimes"},{"type":"null"}],"description":"Custom time window requested by the caller; null when none was requested."},"day":{"description":"Local calendar day.","format":"date","title":"Day","type":"string"},"products":{"description":"Products offered online.","items":{"$ref":"#/components/schemas/PublicSlotProduct"},"title":"Products","type":"array"},"rental_day":{"$ref":"#/components/schemas/RentalDay","description":"Local pickup and return times for the requested day."},"slots":{"$ref":"#/components/schemas/PublicShopSlots","description":"The shop's morning and afternoon time windows."}},"required":["day","rental_day","slots","custom","products"],"title":"PublicRentalSlots","type":"object"},"PublicRiderInput":{"additionalProperties":false,"description":"A rider on a booking line, with optional measurements and equipment choices.","properties":{"answers":{"description":"Questions the shop asks about this rider for the category of their booked line.","items":{"$ref":"#/components/schemas/AnswerInput"},"maxItems":20,"title":"Answers","type":"array"},"details":{"anyOf":[{"$ref":"#/components/schemas/PublicBookingRiderDetails"},{"type":"null"}],"description":"Equipment choices and measurements supplied by the rider."},"first_time":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether this is the rider's first time riding at this shop's place.","title":"First Time"},"head_cm":{"anyOf":[{"maximum":70.0,"minimum":40.0,"type":"integer"},{"type":"null"}],"description":"Rider's head circumference in centimetres for a helmet.","title":"Head Cm"},"height_cm":{"anyOf":[{"maximum":250.0,"minimum":50.0,"type":"integer"},{"type":"null"}],"description":"Rider height in centimetres, used to choose a suitable size.","title":"Height Cm"},"key":{"anyOf":[{"description":"A person's key, set by the client, unique in the booking","pattern":"^[a-z0-9][a-z0-9_-]{0,23}$","type":"string"},{"type":"null"}],"description":"Client-assigned key that identifies this rider within the booking request.","title":"Key"},"kit_own":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":20,"type":"array"},{"type":"null"}],"description":"Identifiers of kit items the rider is bringing rather than renting.","title":"Kit Own"},"level":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"description":"Rider's skill level as supplied by the guest.","title":"Level"},"line":{"anyOf":[{"maximum":20.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"One-based number of the booking line this rider joins.","title":"Line"},"name":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"description":"Name shown to guests.","title":"Name"},"note":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"description":"Optional note about this rider for the shop.","title":"Note"},"own_bike":{"anyOf":[{"$ref":"#/components/schemas/OwnBike"},{"type":"null"}],"description":"Kind and make of the bike the rider is bringing."},"shoe_eu":{"anyOf":[{"maximum":52.0,"minimum":15.0,"multipleOf":0.5,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","type":"string"},{"type":"null"}],"description":"Rider's European shoe size in half-size steps.","title":"Shoe Eu"},"stance":{"anyOf":[{"enum":["regular","goofy","unsure"],"type":"string"},{"type":"null"}],"description":"Snowboard lines only: regular, goofy or unsure (dropped on other lines)","title":"Stance"},"weight_kg":{"anyOf":[{"maximum":250.0,"minimum":10.0,"type":"integer"},{"type":"null"}],"description":"Rider weight in kilograms when needed to prepare equipment.","title":"Weight Kg"}},"title":"PublicRiderInput","type":"object"},"PublicShopDirectory":{"additionalProperties":true,"properties":{"shops":{"description":"Nearest first with coordinates, else by name; at most limit. Empty is a normal answer","items":{"$ref":"#/components/schemas/DirectoryShop"},"title":"Shops","type":"array"}},"required":["shops"],"title":"PublicShopDirectory","type":"object"},"PublicShopSlots":{"properties":{"afternoon":{"anyOf":[{"$ref":"#/components/schemas/PublicSlotTimes"},{"type":"null"}],"description":"Local start and end of the afternoon slot; null when unavailable."},"morning":{"anyOf":[{"$ref":"#/components/schemas/PublicSlotTimes"},{"type":"null"}],"description":"Null when the shop's half days leave no morning"}},"required":["morning","afternoon"],"title":"PublicShopSlots","type":"object"},"PublicSiteNotice":{"additionalProperties":true,"description":"Notice rules for the booking calendar. Days and times use the shop's local time zone.","properties":{"cutoff_today":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"HH:MM: a rental starting today can be booked until then; null when today is already too soon or closed","title":"Cutoff Today"},"first_day":{"description":"The first local day a whole-day rental can start (today or later)","format":"date","title":"First Day","type":"string"},"max_booking_lead_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The latest start is today plus this many days; null when the shop sets no limit","title":"Max Booking Lead Days"},"max_rental_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The longest rental in days; null when the shop sets none","title":"Max Rental Days"},"min_notice_minutes":{"description":"The least notice before a start","title":"Min Notice Minutes","type":"integer"},"timezone":{"description":"The shop's time zone","title":"Timezone","type":"string"},"today":{"description":"The shop's local date now","format":"date","title":"Today","type":"string"}},"required":["timezone","today","min_notice_minutes","first_day"],"title":"PublicSiteNotice","type":"object"},"PublicSizeChart":{"description":"Size ranges for one product part, from the product or its category.","properties":{"item_type_id":{"description":"Identifier of the product part this size chart describes.","format":"uuid","title":"Item Type Id","type":"string"},"measure":{"anyOf":[{"enum":["height_cm","weight_kg","shoe_eu","mondopoint","age_years","head_cm"],"type":"string"},{"type":"null"}],"description":"What the ranges measure; null when the chart has no ranges","title":"Measure"},"sizes":{"description":"Smallest first","items":{"$ref":"#/components/schemas/PublicSizeRange"},"title":"Sizes","type":"array"}},"required":["item_type_id","measure","sizes"],"title":"PublicSizeChart","type":"object"},"PublicSizeRange":{"properties":{"fits":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who the size fits, in the chart's words; null when it has none","title":"Fits"},"label":{"description":"Size label displayed to the guest for this fit range.","title":"Label","type":"string"},"max":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Not included; null: open above","title":"Max"},"min":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Included; null: open below","title":"Min"}},"required":["label","min","max"],"title":"PublicSizeRange","type":"object"},"PublicSlotOption":{"properties":{"afternoon":{"anyOf":[{"$ref":"#/components/schemas/FreeWords"},{"type":"null"}],"description":"Availability for this option in the afternoon; null when unavailable."},"custom":{"anyOf":[{"$ref":"#/components/schemas/FreeWords"},{"type":"null"}],"description":"The chosen time; null without starts and ends or without an hourly price"},"day":{"$ref":"#/components/schemas/FreeWords","description":"Free for the whole rental day"},"id":{"description":"The option_id a rental line books","format":"uuid","title":"Id","type":"string"},"morning":{"anyOf":[{"$ref":"#/components/schemas/FreeWords"},{"type":"null"}],"description":"Null when the product has no half-day price"},"size_label":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest-visible size name.","title":"Size Label"}},"required":["id","size_label","day","morning","afternoon","custom"],"title":"PublicSlotOption","type":"object"},"PublicSlotProduct":{"properties":{"closed":{"description":"A closure of the product's place covers the day","title":"Closed","type":"boolean"},"id":{"description":"Identifier of the rental product these slots belong to.","format":"uuid","title":"Id","type":"string"},"name":{"$ref":"#/components/schemas/Words-Output","description":"Name shown to guests."},"options":{"description":"Bookable sizes or options.","items":{"$ref":"#/components/schemas/PublicSlotOption"},"title":"Options","type":"array"},"periods":{"$ref":"#/components/schemas/PublicProductPeriods","description":"Half-day and hourly prices available on the product."}},"required":["id","name","periods","closed","options"],"title":"PublicSlotProduct","type":"object"},"PublicSlotTimes":{"properties":{"ends":{"description":"Local end time.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Ends","type":"string"},"starts":{"description":"Local start time.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Starts","type":"string"}},"required":["starts","ends"],"title":"PublicSlotTimes","type":"object"},"PublicTour":{"properties":{"description":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"Description shown to guests."},"duration_minutes":{"description":"Length of the tour in minutes.","title":"Duration Minutes","type":"integer"},"id":{"description":"Identifier of this tour, used in tour listings.","format":"uuid","title":"Id","type":"string"},"images":{"description":"The tour's photos, cover first; empty when it has none","items":{"$ref":"#/components/schemas/PublicImage"},"title":"Images","type":"array"},"kind":{"description":"Tour type: group_tour, private_tour, lesson, shuttle or transfer.","enum":["group_tour","private_tour","shuttle","transfer","lesson"],"title":"Kind","type":"string"},"name":{"$ref":"#/components/schemas/Words-Output","description":"Name shown to guests."},"next_departure_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Start of the next open departure; null when none is open.","title":"Next Departure At"},"price_from_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"One seat on the next open departure; null when none is open or it has no price","title":"Price From Minor"},"slug":{"description":"Public address name used in the URL.","title":"Slug","type":"string"}},"required":["id","slug","name","description","kind","duration_minutes","price_from_minor","next_departure_at"],"title":"PublicTour","type":"object"},"PublicTourDepartures":{"description":"Departures still open for booking (scheduled, not started, before the online cut-off) between two local days, at most 40.","properties":{"currency":{"description":"ISO currency code for all money amounts in this answer.","pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"departures":{"description":"Open departures for this tour in the requested date range, at most 40.","items":{"$ref":"#/components/schemas/PublicDeparture"},"title":"Departures","type":"array"},"from":{"description":"First local day included in this answer.","format":"date","title":"From","type":"string"},"name":{"$ref":"#/components/schemas/Words-Output","description":"Name shown to guests."},"slug":{"description":"Public address name used in the URL.","title":"Slug","type":"string"},"to":{"description":"Last local day included in this answer.","format":"date","title":"To","type":"string"}},"required":["slug","name","currency","from","to","departures"],"title":"PublicTourDepartures","type":"object"},"PublicTours":{"description":"At most 40 tours, in the shop's order.","properties":{"currency":{"description":"ISO currency code for all money amounts in this answer.","pattern":"^[A-Z]{3}$","title":"Currency","type":"string"},"tours":{"description":"Bookable tours in the shop's display order, at most 40.","items":{"$ref":"#/components/schemas/PublicTour"},"title":"Tours","type":"array"}},"required":["currency","tours"],"title":"PublicTours","type":"object"},"PublicUnavailableDay":{"description":"A date and period on which fewer units are free than the guest requested.","properties":{"date":{"description":"Local calendar date.","format":"date","title":"Date","type":"string"},"free":{"$ref":"#/components/schemas/FreeWords","description":"Availability expressed in words."},"period":{"description":"Part of the day covered by this item.","enum":["full","morning","afternoon"],"title":"Period","type":"string"}},"required":["date","period","free"],"title":"PublicUnavailableDay","type":"object"},"PublicUnavailableLine":{"properties":{"alternatives":{"description":"Up to six other sizes, periods or products the guest could choose.","items":{"$ref":"#/components/schemas/PublicAlternative"},"maxItems":6,"title":"Alternatives","type":"array"},"asked":{"description":"Number of units the guest requested on this line.","title":"Asked","type":"integer"},"days":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicUnavailableDay"},"type":"array"},{"type":"null"}],"description":"Only the dates and parts of day on which this line has too few units.","title":"Days"},"free":{"$ref":"#/components/schemas/FreeWords","description":"Availability expressed in words."},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client-assigned key of the unavailable line, if provided.","title":"Key"},"line":{"description":"One-based number of the booking line that could not be filled.","title":"Line","type":"integer"},"option_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Rental option ID; null for a kit fitted at the shop, a guide choice or a tour request.","title":"Option Id"},"riders":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Person keys of riders who cannot be assigned a unit on an unavailable day.","title":"Riders"}},"required":["line","option_id","asked","free","alternatives"],"title":"PublicUnavailableLine","type":"object"},"PublishPreview":{"additionalProperties":true,"properties":{"counts":{"$ref":"#/components/schemas/PreviewCounts"},"draft_revision_id":{"format":"uuid","title":"Draft Revision Id","type":"string"},"errors":{"title":"Errors","type":"integer"},"issues":{"description":"schedules_issues of the draft, as the week read answers them","items":{"additionalProperties":true,"type":"object"},"title":"Issues","type":"array"},"items":{"items":{"$ref":"#/components/schemas/PreviewPerson"},"title":"Items","type":"array"},"kept":{"title":"Kept","type":"integer"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"published_revision_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Published Revision Id"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"version":{"title":"Version","type":"integer"},"warnings":{"description":"Warnings not kept","title":"Warnings","type":"integer"},"week_start":{"format":"date","title":"Week Start","type":"string"}},"required":["location_id","week_start","rota_id","version","draft_revision_id","errors","warnings","kept","items","counts"],"title":"PublishPreview","type":"object"},"PublishRequest":{"additionalProperties":false,"properties":{"confirm_warnings":{"default":false,"description":"Publish with the remaining warnings accepted.","title":"Confirm Warnings","type":"boolean"},"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key: the same key and body answer 200 with the first result","format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"offer_open_shifts":{"default":false,"description":"Email the open shifts to people who can take them.","title":"Offer Open Shifts","type":"boolean"}},"required":["idempotency_key","expected_version","location_id"],"title":"PublishRequest","type":"object"},"QuickPart":{"additionalProperties":false,"properties":{"code":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Code"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"default":"1","pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"}},"title":"QuickPart","type":"object"},"QuickService":{"additionalProperties":false,"properties":{"quantity":{"default":"1","pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"},"service_id":{"format":"uuid","title":"Service Id","type":"string"}},"required":["service_id"],"title":"QuickService","type":"object"},"QuickWork":{"additionalProperties":false,"description":"Pick the subject, tap services, scan parts, done. Add ``job`` and ``expected_version`` to continue an open job.","properties":{"binding":{"anyOf":[{"$ref":"#/components/schemas/BindingResult"},{"type":"null"}]},"done":{"default":true,"title":"Done","type":"boolean"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"job":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Job"},"labour_minutes":{"anyOf":[{"maximum":10080.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Labour Minutes"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"mechanic_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Mechanic Id"},"note":{"anyOf":[{"maxLength":5000,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"parts":{"default":[],"items":{"$ref":"#/components/schemas/QuickPart"},"maxItems":50,"title":"Parts","type":"array"},"promised_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Promised On"},"services":{"default":[],"items":{"$ref":"#/components/schemas/QuickService"},"maxItems":30,"title":"Services","type":"array"},"subject":{"anyOf":[{"$ref":"#/components/schemas/Subject"},{"type":"null"}]}},"required":["idempotency_key"],"title":"QuickWork","type":"object"},"RaceItem":{"additionalProperties":true,"description":"A race at a live place (job UCI1, ``guide_events``).","properties":{"activity_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The activity type the race is for; null is the place's","title":"Activity Key"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the race was last checked against its source, else null","title":"Checked At"},"discipline":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"DHI, XCO, XCC, EDR, E-EDR, XCM, XCE; snow: DH, SG, GS, SL, AC, AL-PAR, AL, PGS, PSL, SBX, SB-HP, SB-SS, SB-BA, SB, MO, DM, AE, SX, FS-HP, FS-SS, FS-BA, FS, CC, JP, NK, FR, SKIMO; or null when not known","title":"Discipline"},"edition_year":{"title":"Edition Year","type":"integer"},"ends_on":{"format":"date","title":"Ends On","type":"string"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"xc, enduro, downhill, gravel, marathon, stage, festival or race; snow: alpine, snowboard, freestyle, freeride, nordic, skimo, classic: from the discipline, else the series, else the race's name (job FX7, FXC, SNOW-1)","title":"Kind"},"name":{"title":"Name","type":"string"},"place":{"anyOf":[{"$ref":"#/components/schemas/RacePlace"},{"type":"null"}],"description":"Without place in the address: the place the race is at"},"series":{"description":"uci_dh_wc, uci_xc_wc, edr_wc, e_edr_wc, uci_wch, local or other; snow (SNOW-1): fis_wc, fis_wch, fis_ec, fis_nac, fwt_pro, fwt_q4, fwt_qualifier, fwt_junior, ismf_wc, ismf_wch, ski_classics, worldloppet, classic","title":"Series","type":"string"},"source_key":{"description":"Where the race was read, for example operator_page","title":"Source Key","type":"string"},"starts_on":{"format":"date","title":"Starts On","type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"scheduled, or on_hold while the event waits for its weather window (the Freeride World Tour's own state, SNOW-1)","title":"Status"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The organiser's own page, else null","title":"Url"}},"required":["series","name","edition_year","starts_on","ends_on","source_key"],"title":"RaceItem","type":"object"},"RacePhoto":{"additionalProperties":true,"description":"The place's photo on a home race card (board R4Races); ``file`` is added when it is stored (job PH3).","properties":{"author":{"title":"Author","type":"string"},"licence":{"description":"cc0, cc_by, cc_by_sa, public_domain, own or shop","title":"Licence","type":"string"},"licence_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence Url"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"url":{"title":"Url","type":"string"}},"required":["url","author","licence"],"title":"RacePhoto","type":"object"},"RacePlace":{"additionalProperties":true,"properties":{"centre":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"description":"The place's {lat, lng}, for Near you (job FX7)","title":"Centre"},"country_codes":{"description":"ISO 3166-1 alpha-2 codes of the place's countries","items":{"type":"string"},"title":"Country Codes","type":"array"},"name":{"description":"The place's name in the locale asked, else English","title":"Name","type":"string"},"photo":{"anyOf":[{"$ref":"#/components/schemas/RacePhoto"},{"type":"null"}],"description":"The place's first live photo for its card, else null"},"slug":{"description":"The place's address under /ride","title":"Slug","type":"string"},"timezone":{"description":"IANA timezone used to decide the race's local day","title":"Timezone","type":"string"}},"required":["slug","name","country_codes","timezone"],"title":"RacePlace","type":"object"},"RaceWeek":{"additionalProperties":true,"properties":{"races":{"description":"Races not over that start this week; the first week also counts the races on now","title":"Races","type":"integer"},"starts_on":{"description":"The week's Monday","format":"date","title":"Starts On","type":"string"}},"required":["starts_on","races"],"title":"RaceWeek","type":"object"},"RacesAnswer":{"additionalProperties":true,"description":"AT-24 (job UCI1): a place's next races and its most recent one, or without ``place`` the next races at every live place.","properties":{"next":{"description":"Races not yet over in the place's own day, soonest first, at most limit","items":{"$ref":"#/components/schemas/RaceItem"},"title":"Next","type":"array"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place's slug, when one was asked","title":"Place"},"recent":{"anyOf":[{"$ref":"#/components/schemas/RaceItem"},{"type":"null"}],"description":"With a place: the race that ended last before today, else null"},"weeks":{"anyOf":[{"items":{"$ref":"#/components/schemas/RaceWeek"},"type":"array"},{"type":"null"}],"description":"Without a place: this week (from its Monday, the UTC day) and the next seven, with how many races start in each","title":"Weeks"}},"required":["next"],"title":"RacesAnswer","type":"object"},"ReadyJob":{"additionalProperties":true,"properties":{"currency":{"title":"Currency","type":"string"},"customer":{"anyOf":[{"$ref":"#/components/schemas/Ref"},{"type":"null"}]},"customer_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only for roles that may read customer contact (people:read or people:write)","title":"Customer Phone"},"done":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What was done: the services and other work, in order","title":"Done"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"kind":{"enum":["fix","look_then_call","full_service","rental_check","fitting"],"title":"Kind","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"ready_at":{"format":"date-time","title":"Ready At","type":"string"},"subject":{"additionalProperties":true,"title":"Subject","type":"object"},"to_pay_gross_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The final bill, gross; only for roles that see money","title":"To Pay Gross Minor"},"told":{"$ref":"#/components/schemas/Told"},"told_state":{"anyOf":[{"$ref":"#/components/schemas/TellState"},{"type":"null"}],"description":"A person's tell, else the ready email's state"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","kind","location_id","subject","ready_at","told","currency"],"title":"ReadyJob","type":"object"},"ReadyToCollect":{"additionalProperties":true,"properties":{"jobs":{"description":"Ready and not collected, oldest first","items":{"$ref":"#/components/schemas/ReadyJob"},"title":"Jobs","type":"array"},"not_told":{"description":"Jobs nobody has told yet: told_state not_told or failed (a queued or sent ready email counts as told)","title":"Not Told","type":"integer"},"total":{"title":"Total","type":"integer"}},"required":["total","not_told","jobs"],"title":"ReadyToCollect","type":"object"},"ReceivedLine":{"additionalProperties":false,"properties":{"line_no":{"maximum":400.0,"minimum":1.0,"title":"Line No","type":"integer"},"missing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Missing"},"quantity":{"anyOf":[{"maximum":1000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Quantity"}},"required":["line_no"],"title":"ReceivedLine","type":"object"},"Record":{"additionalProperties":true,"description":"`rail.custom_fields` holds the values; `rail.custom_field_groups` and `rail.custom_field_definitions` are the vehicle's category's groups\nand active attributes (id, field_ref, key, label, kind, config with the options, required, group_key, sort), so the page needs no category read.","properties":{"can":{"additionalProperties":true,"title":"Can","type":"object"},"header":{"additionalProperties":true,"title":"Header","type":"object"},"hidden":{"default":[],"items":{"type":"string"},"title":"Hidden","type":"array"},"id":{"format":"uuid","title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"overview":{"additionalProperties":true,"title":"Overview","type":"object"},"rail":{"additionalProperties":true,"title":"Rail","type":"object"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","header","rail","overview","can"],"title":"Record","type":"object"},"RecordMessage":{"additionalProperties":false,"description":"POST ~/customers/{key}/message and ~/companies/{key}/message: one email in the shop's words.","properties":{"body":{"description":"Plain text; a blank line starts a new paragraph","maxLength":4000,"minLength":1,"title":"Body","type":"string"},"sender":{"anyOf":[{"pattern":"^(?:shop|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","type":"string"},{"type":"null"}],"description":"Who the email is from: shop (the default) or the id of a place from the options' senders. Its address is the reply address, its phone the email's phone","title":"Sender"},"subject":{"maxLength":150,"minLength":1,"title":"Subject","type":"string"}},"required":["subject","body"],"title":"RecordMessage","type":"object"},"Ref":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"required":["id"],"title":"Ref","type":"object"},"ReferralIn":{"additionalProperties":false,"properties":{"base_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"The amount a percent fee applies to","title":"Base Minor"},"booking_key":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"title":"Booking Key"},"customer_key":{"anyOf":[{"pattern":"^[Cc]-[0-9]{1,12}$","type":"string"},{"type":"null"}],"title":"Customer Key"},"description":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Description"},"direction":{"anyOf":[{"enum":["in","out"],"type":"string"},{"type":"null"}],"description":"in: they sent us a guest; out: we sent them one","title":"Direction"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"fee_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Overrides the fee from the company's terms","title":"Fee Minor"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"occurred_on":{"anyOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},{"type":"null"}],"title":"Occurred On"},"settled_note":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Settled Note"},"settled_on":{"anyOf":[{"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","type":"string"},{"type":"null"}],"title":"Settled On"},"state":{"anyOf":[{"enum":["owed","paid","void"],"type":"string"},{"type":"null"}],"title":"State"}},"title":"ReferralIn","type":"object"},"ReferralSave":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"},"referral":{"$ref":"#/components/schemas/ReferralIn"}},"required":["idempotency_key","referral"],"title":"ReferralSave","type":"object"},"ReferralSaved":{"properties":{"referral":{"additionalProperties":true,"title":"Referral","type":"object"}},"required":["referral"],"title":"ReferralSaved","type":"object"},"ReferralTermsIn":{"additionalProperties":false,"properties":{"currency":{"anyOf":[{"pattern":"^[A-Z]{3}$","type":"string"},{"type":"null"}],"title":"Currency"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Required once terms exist","title":"Expected Version"},"fee_bp":{"anyOf":[{"maximum":10000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"Basis points of the base amount","title":"Fee Bp"},"fee_kind":{"anyOf":[{"enum":["none","fixed","percent"],"type":"string"},{"type":"null"}],"title":"Fee Kind"},"fee_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Fee Minor"},"notes":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"title":"Notes"},"tracking_code":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{2,31}$","type":"string"},{"type":"null"}],"title":"Tracking Code"}},"title":"ReferralTermsIn","type":"object"},"ReferralTermsSave":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"},"terms":{"$ref":"#/components/schemas/ReferralTermsIn"}},"required":["idempotency_key","terms"],"title":"ReferralTermsSave","type":"object"},"RentalAvailability":{"properties":{"options":{"items":{"$ref":"#/components/schemas/OptionAvailability"},"title":"Options","type":"array"}},"required":["options"],"title":"RentalAvailability","type":"object"},"RentalDay":{"properties":{"closes":{"format":"time","title":"Closes","type":"string"},"opens":{"format":"time","title":"Opens","type":"string"}},"required":["opens","closes"],"title":"RentalDay","type":"object"},"RentalLength":{"additionalProperties":false,"description":"A length the shop usually prices (booking rules); preset keys come with days, `custom` is a length of the shop's own.","properties":{"charge":{"default":"in_all","enum":["per_day","in_all"],"title":"Charge","type":"string"},"from_days":{"maximum":3660.0,"minimum":1.0,"title":"From Days","type":"integer"},"key":{"enum":["two_weeks","three_weeks","month","season","weekend","custom"],"title":"Key","type":"string"},"label":{"anyOf":[{"maxLength":40,"minLength":1,"type":"string"},{"type":"null"}],"title":"Label"},"to_days":{"anyOf":[{"maximum":3660.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"To Days"}},"required":["key","from_days"],"title":"RentalLength","type":"object"},"Report":{"additionalProperties":true,"properties":{"report":{"additionalProperties":true,"title":"Report","type":"object"}},"required":["report"],"title":"Report","type":"object"},"ReportSent":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"ReportSent","type":"object"},"Restore":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version"],"title":"Restore","type":"object"},"Retire":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"reason":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Reason"},"retired_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Retired On"}},"required":["expected_version"],"title":"Retire","type":"object"},"ReturnCheckDraftDeleted":{"additionalProperties":true,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"deleted":{"description":"False when no draft was saved","title":"Deleted","type":"boolean"},"replayed":{"default":false,"title":"Replayed","type":"boolean"}},"required":["booking_id","deleted"],"title":"ReturnCheckDraftDeleted","type":"object"},"ReturnCheckDraftSave":{"additionalProperties":false,"description":"RC-13: the desk's own shape, never read by the API; at most 32 KiB as text (the SQL measures it, OGX03 ``document``).","properties":{"document":{"additionalProperties":true,"description":"The check as the desk keeps it, an object","title":"Document","type":"object"},"expected_version":{"description":"The draft's version read from RC-12; 0 when none is saved","minimum":0.0,"title":"Expected Version","type":"integer"}},"required":["document","expected_version"],"title":"ReturnCheckDraftSave","type":"object"},"ReturnCheckDraftSaved":{"additionalProperties":true,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"updated_at":{"format":"date-time","title":"Updated At","type":"string"},"updated_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Name"},"version":{"title":"Version","type":"integer"}},"required":["booking_id","version","updated_at"],"title":"ReturnCheckDraftSaved","type":"object"},"ReturnPriceLineIn":{"additionalProperties":false,"properties":{"damage_price_id":{"format":"uuid","title":"Damage Price Id","type":"string"},"quantity":{"maximum":10.0,"minimum":1.0,"title":"Quantity","type":"integer"}},"required":["damage_price_id","quantity"],"title":"ReturnPriceLineIn","type":"object"},"Rider":{"properties":{"birth_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birth Year"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"relation":{"title":"Relation","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","name","relation","birth_year","version"],"title":"Rider","type":"object"},"RiderGear":{"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/components/schemas/GearItem-Input"},"maxItems":12,"title":"Items","type":"array"},"person_key":{"description":"A rider on this booking; each once","pattern":"^[A-Za-z0-9_-]{1,40}$","title":"Person Key","type":"string"}},"required":["person_key","items"],"title":"RiderGear","type":"object"},"RiderIn":{"additionalProperties":false,"properties":{"birth_year":{"anyOf":[{"maximum":2100.0,"minimum":1900.0,"type":"integer"},{"type":"null"}],"title":"Birth Year"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"name":{"maxLength":120,"minLength":1,"title":"Name","type":"string"},"relation":{"anyOf":[{"enum":["child","partner","parent","friend","other"],"type":"string"},{"type":"null"}],"title":"Relation"}},"required":["name"],"title":"RiderIn","type":"object"},"RiderNotEmailed":{"additionalProperties":true,"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"}},"required":["booking_id"],"title":"RiderNotEmailed","type":"object"},"RiderRemove":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"RiderRemove","type":"object"},"RiderRemoved":{"properties":{"rider_id":{"format":"uuid","title":"Rider Id","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["rider_id","version"],"title":"RiderRemoved","type":"object"},"RiderSave":{"additionalProperties":false,"properties":{"idempotency_key":{"description":"Client key; the same key and body replays the first answer","format":"uuid","title":"Idempotency Key","type":"string"},"rider":{"$ref":"#/components/schemas/RiderIn"}},"required":["idempotency_key","rider"],"title":"RiderSave","type":"object"},"RiderSaved":{"properties":{"rider":{"$ref":"#/components/schemas/Rider"}},"required":["rider"],"title":"RiderSaved","type":"object"},"RiderSetup":{"additionalProperties":true,"description":"How the rider's bike is set up; null when not said.","properties":{"brakes":{"anyOf":[{"enum":["moto","normal"],"type":"string"},{"type":"null"}],"description":"moto: front brake on the right; normal: front brake on the left","title":"Brakes"},"helmet_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Helmet Size"},"pedals":{"anyOf":[{"enum":["flat","clipless"],"type":"string"},{"type":"null"}],"title":"Pedals"}},"title":"RiderSetup","type":"object"},"RiderUnit":{"additionalProperties":true,"description":"The unit held for the rider.","properties":{"fit_from_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The smallest rider height the unit fits","title":"Fit From Cm"},"fit_to_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The tallest rider height the unit fits","title":"Fit To Cm"},"item_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size"},"state":{"anyOf":[{"enum":["waiting","out","back","needs_check","damaged"],"type":"string"},{"type":"null"}],"title":"State"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The unit's tag, for example #24","title":"Tag"}},"title":"RiderUnit","type":"object"},"RiderWaiver":{"properties":{"minor":{"description":"Someone else on the booking signs for this rider","title":"Minor","type":"boolean"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"request_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Request Id"},"rider_no":{"title":"Rider No","type":"integer"},"signed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Signed At"},"signed_by_rider_no":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Who signed: the rider, or the adult who signs for them","title":"Signed By Rider No"},"signed_via":{"anyOf":[{"enum":["trip_page","tablet"],"type":"string"},{"type":"null"}],"description":"Where the rider's latest signature was given: the guest's trip page or the shop tablet; null unless signed","title":"Signed Via"},"signs_for":{"description":"The riders this rider signs for","items":{"type":"integer"},"title":"Signs For","type":"array"},"state":{"description":"The worst of their waivers: not_sent, then on_tablet, then signed","enum":["not_sent","on_tablet","signed"],"title":"State","type":"string"},"waivers":{"description":"Each waiver the booking needs, for this rider","items":{"$ref":"#/components/schemas/RiderWaiverStep"},"title":"Waivers","type":"array"}},"required":["rider_no","name","minor","state","request_id","signed_at","signed_by_rider_no","signs_for"],"title":"RiderWaiver","type":"object"},"RiderWaiverStep":{"description":"One waiver a rider signs (or is signed for), in signing order.","properties":{"id_photo":{"default":"none","description":"Whether an ID photo is kept for this waiver","enum":["none","kept"],"title":"Id Photo","type":"string"},"kind":{"enum":["equipment","tours","both"],"title":"Kind","type":"string"},"request_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Request Id"},"signed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Signed At"},"signed_via":{"anyOf":[{"enum":["trip_page","tablet"],"type":"string"},{"type":"null"}],"description":"Where this waiver was signed: the guest's trip page or the shop tablet; null unless signed","title":"Signed Via"},"state":{"enum":["not_sent","on_tablet","signed"],"title":"State","type":"string"},"template_id":{"format":"uuid","title":"Template Id","type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"required":["template_id","kind","title","state","request_id","signed_at"],"title":"RiderWaiverStep","type":"object"},"RidersMessage":{"additionalProperties":false,"description":"An email to the riders of a departure: one per booking, to its customer. booking_ids null or absent writes to every booking.","properties":{"body":{"description":"Plain text; a blank line starts a new paragraph","maxLength":4000,"minLength":1,"title":"Body","type":"string"},"booking_ids":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"minItems":1,"type":"array"},{"type":"null"}],"title":"Booking Ids"},"subject":{"maxLength":150,"minLength":1,"title":"Subject","type":"string"}},"required":["subject","body"],"title":"RidersMessage","type":"object"},"RidersMessaged":{"additionalProperties":true,"properties":{"departure_id":{"format":"uuid","title":"Departure Id","type":"string"},"emailed":{"description":"Emails queued, one per booking whose customer has an address","title":"Emailed","type":"integer"},"key":{"title":"Key","type":"string"},"not_emailed":{"description":"Bookings whose customer has no address, or one that cannot be written to","items":{"$ref":"#/components/schemas/RiderNotEmailed"},"title":"Not Emailed","type":"array"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"state":{"const":"queued","title":"State","type":"string"}},"required":["departure_id","key","emailed","not_emailed","state"],"title":"RidersMessaged","type":"object"},"RoomType":{"additionalProperties":false,"properties":{"allotment":{"description":"Rooms of this type held for the trip that night","maximum":200.0,"minimum":0.0,"title":"Allotment","type":"integer"},"key":{"description":"Unique within its night, for example double or single","pattern":"^[a-z0-9][a-z0-9_-]{0,39}$","title":"Key","type":"string"},"label":{"maxLength":80,"minLength":1,"title":"Label","type":"string"},"single_supplement_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"In the shop's currency","title":"Single Supplement Minor"},"sleeps":{"maximum":12.0,"minimum":1.0,"title":"Sleeps","type":"integer"}},"required":["key","label","sleeps","allotment"],"title":"RoomType","type":"object"},"RotaBreak":{"additionalProperties":true,"properties":{"from":{"title":"From","type":"string"},"to":{"title":"To","type":"string"}},"required":["from","to"],"title":"RotaBreak","type":"object"},"Row":{"additionalProperties":true,"properties":{"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"companies":{"description":"The split by company, largest first","items":{"$ref":"#/components/schemas/RowCompany"},"title":"Companies","type":"array"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The one company's name, null for several (the screen says Both)","title":"Company"},"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare Minor"},"computed_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Money out only: the part worked out from the shop's records (the source); this_minor less computed_minor is the costs the shop added to this kind","title":"Computed Minor"},"estimated":{"default":false,"title":"Estimated","type":"boolean"},"key":{"description":"A stream (money in) or a cost kind key (money out)","title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/FinanceWords"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The one company, null for several","title":"Legal Entity Id"},"open_path":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where Open goes, after the shop: /finance?tab=in&stream=.. or tab=out&kind=..","title":"Open Path"},"share_pct":{"description":"Share of its side's total, 0 to 100","title":"Share Pct","type":"number"},"side":{"enum":["in","out"],"title":"Side","type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Money out computed from the shop's records: rota, deliveries, fee_receipts, vehicle_service, damage_cover (the cover's share of settled damage, kind damage_cover); null for costs the shop adds","title":"Source"},"this_minor":{"title":"This Minor","type":"integer"}},"required":["side","key","label","this_minor","share_pct"],"title":"Row","type":"object"},"RowCompany":{"additionalProperties":true,"properties":{"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"this_minor":{"title":"This Minor","type":"integer"}},"required":["this_minor"],"title":"RowCompany","type":"object"},"RulesSave":{"additionalProperties":false,"properties":{"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key: the same key and body answer 200 with the first result","format":"uuid","title":"Idempotency Key","type":"string"},"items":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Items"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"settings":{"anyOf":[{"$ref":"#/components/schemas/RulesSettings"},{"type":"null"}]}},"required":["idempotency_key","expected_version","location_id"],"title":"RulesSave","type":"object"},"RulesSettings":{"additionalProperties":false,"properties":{"break_required_after_minutes":{"anyOf":[{"maximum":1440.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Break Required After Minutes"},"company_days":{"anyOf":[{"maximum":366.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Company Days"},"day_end":{"anyOf":[{"examples":["08:15"],"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"title":"Day End"},"day_start":{"anyOf":[{"examples":["08:15"],"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"title":"Day Start"},"max_off_at_once":{"anyOf":[{"maximum":500.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Max Off At Once"},"min_shift_minutes":{"anyOf":[{"maximum":720.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Min Shift Minutes"},"notice_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Notice Days"},"slot_minutes":{"anyOf":[{"enum":[5,10,15,20,30,60],"type":"integer"},{"type":"null"}],"title":"Slot Minutes"},"worker_days":{"anyOf":[{"maximum":366.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Worker Days"}},"title":"RulesSettings","type":"object"},"RunningGroup":{"additionalProperties":false,"description":"The tour's run rules; the SQL checks them as the tour save does.","properties":{"auto_ask":{"description":"Offer the missing guide or driver by itself once a departure is booked: off, everyone who can go at once, or in the tour's priority order (XP-OPS-A); leave out to keep it","enum":["off","everyone","priority"],"title":"Auto Ask","type":"string"},"auto_assign":{"title":"Auto Assign","type":"boolean"},"buffer_after_minutes":{"maximum":720.0,"minimum":0.0,"title":"Buffer After Minutes","type":"integer"},"buffer_before_minutes":{"maximum":720.0,"minimum":0.0,"title":"Buffer Before Minutes","type":"integer"},"carries_bikes":{"title":"Carries Bikes","type":"boolean"},"drivers_needed":{"maximum":4.0,"minimum":0.0,"title":"Drivers Needed","type":"integer"},"guides_needed":{"maximum":6.0,"minimum":0.0,"title":"Guides Needed","type":"integer"},"off_road":{"title":"Off Road","type":"boolean"},"required_qualifications":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":10,"title":"Required Qualifications","type":"array"},"riders_per_guide":{"anyOf":[{"maximum":50.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Riders Per Guide"},"skill_needs":{"title":"Skill Needs"},"vehicle_needed":{"title":"Vehicle Needed","type":"boolean"}},"title":"RunningGroup","type":"object"},"SaleSave":{"additionalProperties":false,"description":"Put up for sale or change the prices. A price left out keeps the item's, else takes the model's resale row. A null as is price\ncounts as left out; a null rebuilt price clears it.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"sale_price_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Price Minor"},"sale_rebuilt_minor":{"anyOf":[{"maximum":1000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Rebuilt Minor"}},"required":["expected_version"],"title":"SaleSave","type":"object"},"SaleSaved":{"additionalProperties":true,"properties":{"for_sale_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"For Sale Since"},"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"sale_price_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sale Price Minor"},"sale_rebuilt_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sale Rebuilt Minor"},"use":{"title":"Use","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","key","version","use"],"title":"SaleSaved","type":"object"},"Saved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"title":"Version","type":"integer"}},"required":["id","version"],"title":"Saved","type":"object"},"ScenarioTotal":{"additionalProperties":true,"properties":{"description":{"description":"\"What usually happens\", \"A slow autumn, like 2023\", \"Like the best year so far\", ...","title":"Description","type":"string"},"key":{"description":"expected, careful, bold, or a shop scenario's id","title":"Key","type":"string"},"kind":{"enum":["built_in","shop"],"title":"Kind","type":"string"},"name":{"description":"Expected, Careful, Bold, or the shop's name","title":"Name","type":"string"},"total_minor":{"title":"Total Minor","type":"integer"}},"required":["key","kind","name","description","total_minor"],"title":"ScenarioTotal","type":"object"},"ScheduleBlocked":{"properties":{"action":{"title":"Action","type":"string"},"blockers":{"items":{"additionalProperties":true,"type":"object"},"title":"Blockers","type":"array"},"blockers_total":{"title":"Blockers Total","type":"integer"},"detail":{"description":"A plain sentence; the blockers say what","title":"Detail","type":"string"},"error":{"const":"blocked","default":"blocked","title":"Error","type":"string"},"issues":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Issues"},"keep_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"leave.enter: may be saved anyway with keep_duties","title":"Keep Allowed"},"override_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Override Allowed"}},"required":["detail","action","blockers","blockers_total"],"title":"ScheduleBlocked","type":"object"},"Season":{"additionalProperties":true,"properties":{"from":{"format":"date","title":"From","type":"string"},"to":{"format":"date","title":"To","type":"string"}},"required":["from","to"],"title":"Season","type":"object"},"SeasonAccess":{"additionalProperties":true,"properties":{"level":{"enum":["none","totals","own_place","everything"],"title":"Level","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"part":{"description":"The overview part of finance for this login (D15); Season belongs to it","enum":["hidden","see","change"],"title":"Part","type":"string"}},"required":["level","part"],"title":"SeasonAccess","type":"object"},"SeasonBiggest":{"additionalProperties":true,"properties":{"minor":{"title":"Minor","type":"integer"},"month":{"format":"date","title":"Month","type":"string"},"pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pct"}},"required":["month","minor"],"title":"SeasonBiggest","type":"object"},"SeasonCreate":{"additionalProperties":false,"properties":{"compare_ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare Ends On"},"compare_starts_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Last season's window; the same dates a year earlier when left out","title":"Compare Starts On"},"ends_on":{"format":"date","title":"Ends On","type":"string"},"growth_pct":{"anyOf":[{"maximum":300.0,"minimum":-90.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,4}|(?=[\\d.]{1,6}0*$)\\d{0,4}\\.\\d{0,1}0*$)","type":"string"},{"type":"null"}],"description":"Override; the shop's own sales growth when left out","title":"Growth Pct"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"name":{"maxLength":80,"minLength":1,"title":"Name","type":"string"},"starts_on":{"format":"date","title":"Starts On","type":"string"}},"required":["idempotency_key","name","starts_on","ends_on"],"title":"SeasonCreate","type":"object"},"SeasonExplained":{"additionalProperties":true,"properties":{"read":{"description":"What the figure was read from","items":{"type":"string"},"title":"Read","type":"array"},"sure":{"enum":["low","medium","high"],"title":"Sure","type":"string"},"why":{"items":{"$ref":"#/components/schemas/SeasonWhyStep"},"title":"Why","type":"array"}},"required":["sure"],"title":"SeasonExplained","type":"object"},"SeasonMarker":{"additionalProperties":true,"properties":{"ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Ends On"},"event_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Event Id"},"kind":{"enum":["holiday","event","snow","rain","best"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/SeasonWords"},"starts_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Starts On"},"week_start":{"format":"date","title":"Week Start","type":"string"}},"required":["week_start","kind","label"],"title":"SeasonMarker","type":"object"},"SeasonMonth":{"additionalProperties":true,"properties":{"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"last_minor":{"title":"Last Minor","type":"integer"},"month":{"format":"date","title":"Month","type":"string"},"normal_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Normal Minor"},"pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Share of the window's expected money in","title":"Pct"},"planned":{"title":"Planned","type":"boolean"},"so_far_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The month holding today: money in up to today","title":"So Far Minor"},"this_minor":{"title":"This Minor","type":"integer"}},"required":["month","this_minor","last_minor","planned"],"title":"SeasonMonth","type":"object"},"SeasonNormal":{"additionalProperties":true,"properties":{"high_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"High Minor"},"low_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Low Minor"},"minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minor"},"read":{"description":"What the figure was read from","items":{"type":"string"},"title":"Read","type":"array"},"source":{"enum":["median3","median2","budget","area","none"],"title":"Source","type":"string"},"sure":{"enum":["low","medium","high"],"title":"Sure","type":"string"},"why":{"items":{"$ref":"#/components/schemas/SeasonWhyStep"},"title":"Why","type":"array"},"years":{"description":"Seasons with money in among the last three","title":"Years","type":"integer"}},"required":["sure","source","years"],"title":"SeasonNormal","type":"object"},"SeasonOrderBuild":{"additionalProperties":false,"properties":{"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"season_id":{"format":"uuid","title":"Season Id","type":"string"},"supplier_company_id":{"format":"uuid","title":"Supplier Company Id","type":"string"}},"required":["idempotency_key","season_id","supplier_company_id"],"title":"SeasonOrderBuild","type":"object"},"SeasonOrderLines":{"additionalProperties":false,"properties":{"changes":{"items":{"$ref":"#/components/schemas/LineChange"},"maxItems":200,"minItems":1,"title":"Changes","type":"array"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","changes"],"title":"SeasonOrderLines","type":"object"},"SeasonOrderUpdate":{"additionalProperties":false,"properties":{"deliver_by":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Deliver By"},"email_language":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Email Language"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"factor":{"anyOf":[{"enum":["expected","careful","bold"],"type":"string"},{"type":"null"}],"title":"Factor"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"order_by":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Order By"},"state":{"anyOf":[{"enum":["cancelled","received"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"SeasonOrderUpdate","type":"object"},"SeasonRun":{"additionalProperties":true,"properties":{"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare Minor"},"expected":{"description":"Runs past today: part of minor is still expected","title":"Expected","type":"boolean"},"from":{"format":"date","title":"From","type":"string"},"key":{"description":"summer-2026 or winter-2026-27","title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/SeasonWords"},"minor":{"title":"Minor","type":"integer"},"to":{"format":"date","title":"To","type":"string"}},"required":["key","label","from","to","minor","expected"],"title":"SeasonRun","type":"object"},"SeasonSave":{"additionalProperties":false,"properties":{"ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Ends On"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"name":{"anyOf":[{"$ref":"#/components/schemas/Localized"},{"type":"null"}]},"recurs_yearly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recurs Yearly"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","type":"string"},{"type":"null"}],"title":"Slug"},"starts_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Starts On"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"SeasonSave","type":"object"},"SeasonShape":{"additionalProperties":true,"properties":{"quiet_month":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Quiet Month"},"steady_years":{"description":"Of the last three seasons, those whose top and quiet month were these","title":"Steady Years","type":"integer"},"summer_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"May to October","title":"Summer Pct"},"top_month":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Top Month"},"winter_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"November to April","title":"Winter Pct"}},"required":["steady_years"],"title":"SeasonShape","type":"object"},"SeasonToDate":{"additionalProperties":true,"properties":{"as_of":{"format":"date","title":"As Of","type":"string"},"compare_full":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"The shop's records reach back to the compare span's start (a week of grace): only then is a change worked out against it (QA 27 Oct)","title":"Compare Full"},"compare_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The compare window over the same span; null for budget and none","title":"Compare Minor"},"compare_records_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The shop's first day with records when it falls inside the compare span: the compare figure is given from that day, with no change","title":"Compare Records From"},"last_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Last year over the same days","title":"Last Minor"},"minor":{"description":"Money in from the window's first day to today (or its last day when it is over)","title":"Minor","type":"integer"},"normal_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"A normal year over the same days; null with no normal year yet","title":"Normal Minor"}},"required":["minor","as_of"],"title":"SeasonToDate","type":"object"},"SeasonUpdate":{"additionalProperties":false,"properties":{"compare_ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare Ends On"},"compare_starts_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare Starts On"},"ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Ends On"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"growth_pct":{"anyOf":[{"maximum":300.0,"minimum":-90.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,4}|(?=[\\d.]{1,6}0*$)\\d{0,4}\\.\\d{0,1}0*$)","type":"string"},{"type":"null"}],"title":"Growth Pct"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"name":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"starts_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Starts On"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"SeasonUpdate","type":"object"},"SeasonWeek":{"additionalProperties":true,"properties":{"last_minor":{"description":"The same week 52 weeks back","title":"Last Minor","type":"integer"},"normal_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Normal Minor"},"planned":{"description":"Holds days still to come: on the books plus what is still expected","title":"Planned","type":"boolean"},"season":{"anyOf":[{"enum":["high","mid","low","closed"],"type":"string"},{"type":"null"}],"description":"The busy calendar's level of the month holding the week's Thursday","title":"Season"},"this_minor":{"title":"This Minor","type":"integer"},"week_end":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Week End"},"week_start":{"description":"The Monday; the week is cut to the window","format":"date","title":"Week Start","type":"string"}},"required":["week_start","this_minor","last_minor","planned"],"title":"SeasonWeek","type":"object"},"SeasonWhyStep":{"additionalProperties":true,"properties":{"amount_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Minor"},"key":{"title":"Key","type":"string"},"kind":{"enum":["start","change","total"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/SeasonWords"}},"required":["key","kind","label"],"title":"SeasonWhyStep","type":"object"},"SeasonWindow":{"additionalProperties":true,"properties":{"compare":{"title":"Compare","type":"string"},"compare_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare From"},"compare_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Compare To"},"from":{"format":"date","title":"From","type":"string"},"period":{"title":"Period","type":"string"},"so_far_to":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"So Far To"},"to":{"format":"date","title":"To","type":"string"}},"required":["period","from","to","compare"],"title":"SeasonWindow","type":"object"},"SeasonWords":{"additionalProperties":true,"properties":{"en":{"title":"En","type":"string"},"it":{"title":"It","type":"string"}},"required":["en","it"],"title":"SeasonWords","type":"object"},"SeatsCap":{"additionalProperties":false,"description":"A limit on the seats sold, below what the vans hold. Null takes the vans' seats, or the planned seats with no van.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"seats_cap":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats Cap"}},"required":["expected_version","seats_cap"],"title":"SeatsCap","type":"object"},"SeenOffer":{"additionalProperties":false,"properties":{"currency":{"anyOf":[{"pattern":"^[A-Z]{3}$","type":"string"},{"type":"null"}],"description":"ISO 4217, of the total shown","title":"Currency"},"picks":{"description":"Exactly one per rider, in rider order, as shown","items":{"$ref":"#/components/schemas/SeenPick"},"maxItems":20,"minItems":1,"title":"Picks","type":"array"},"total_minor":{"anyOf":[{"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"The crew's total shown, in minor units; null when none was","title":"Total Minor"}},"required":["picks"],"title":"SeenOffer","type":"object"},"SeenPick":{"additionalProperties":false,"properties":{"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The bike shown for this rider; null when none was","title":"Product Id"},"size_label":{"anyOf":[{"maxLength":20,"minLength":1,"pattern":"^[A-Za-z0-9 ./-]+$","type":"string"},{"type":"null"}],"description":"The size shown for this rider; null when none was","title":"Size Label"}},"title":"SeenPick","type":"object"},"Sell":{"additionalProperties":false,"properties":{"buyer":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"Buyer"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"sale_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Sale Minor"},"sold_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Sold On"}},"required":["expected_version"],"title":"Sell","type":"object"},"SendWaivers":{"additionalProperties":false,"properties":{"channel":{"const":"tablet","default":"tablet","title":"Channel","type":"string"},"device_id":{"description":"An enrolled tablet at the booking's place","format":"uuid","title":"Device Id","type":"string"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"riders":{"items":{"$ref":"#/components/schemas/SignerInput"},"maxItems":40,"minItems":1,"title":"Riders","type":"array"}},"required":["idempotency_key","device_id","riders"],"title":"SendWaivers","type":"object"},"SentRequest":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"device_id":{"format":"uuid","title":"Device Id","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["equipment","tours","both"],"title":"Kind","type":"string"},"rider_no":{"title":"Rider No","type":"integer"},"signs_for":{"items":{"type":"integer"},"title":"Signs For","type":"array"},"state":{"const":"on_tablet","title":"State","type":"string"},"step":{"description":"This signer's waiver step n of steps","title":"Step","type":"integer"},"steps":{"title":"Steps","type":"integer"},"template_id":{"format":"uuid","title":"Template Id","type":"string"}},"required":["id","rider_no","signs_for","state","device_id","created_at","template_id","kind","step","steps"],"title":"SentRequest","type":"object"},"ServiceChecklist":{"additionalProperties":true,"properties":{"custom":{"title":"Custom","type":"boolean"},"items":{"items":{"additionalProperties":true,"type":"object"},"title":"Items","type":"array"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"description":"0 while the service uses the default list","title":"Version","type":"integer"}},"required":["product_id","version","custom","items"],"title":"ServiceChecklist","type":"object"},"ServiceChecklistItem":{"additionalProperties":false,"properties":{"key":{"pattern":"^[a-z0-9_]{1,30}$","title":"Key","type":"string"},"label":{"additionalProperties":{"maxLength":60,"type":"string"},"minProperties":1,"propertyNames":{"enum":["en","it"]},"title":"Label","type":"object"}},"required":["key","label"],"title":"ServiceChecklistItem","type":"object"},"ServiceChecklistSave":{"additionalProperties":false,"properties":{"expected_version":{"description":"0 the first time (the default list was never saved)","minimum":0.0,"title":"Expected Version","type":"integer"},"items":{"items":{"$ref":"#/components/schemas/ServiceChecklistItem"},"maxItems":12,"title":"Items","type":"array"}},"required":["expected_version","items"],"title":"ServiceChecklistSave","type":"object"},"ServiceLine":{"additionalProperties":false,"properties":{"quantity":{"default":"1","pattern":"^[0-9]{1,10}(?:\\.[0-9]{1,2})?$","title":"Quantity","type":"string"},"service_id":{"format":"uuid","title":"Service Id","type":"string"},"state":{"default":"planned","enum":["planned","done"],"title":"State","type":"string"},"unit_entered_minor":{"anyOf":[{"maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Unit Entered Minor"}},"required":["service_id"],"title":"ServiceLine","type":"object"},"ServiceLog":{"additionalProperties":false,"properties":{"cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"document_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A ready file attached to this vehicle (the invoice)","title":"Document Id"},"done_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Done On"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"kind":{"enum":["service","inspection","tyres","repair","other"],"title":"Kind","type":"string"},"km":{"anyOf":[{"maximum":5000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Km"},"notes":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Notes"},"parts":{"anyOf":[{"items":{"maxLength":80,"minLength":1,"type":"string"},"maxItems":20,"type":"array"},{"type":"null"}],"title":"Parts"},"supplier_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Supplier Company Id"}},"required":["expected_version","kind"],"title":"ServiceLog","type":"object"},"SetupStep":{"additionalProperties":true,"properties":{"fills":{"description":"The tiles this step fills","items":{"type":"string"},"title":"Fills","type":"array"},"key":{"enum":["stripe","bank","costs","history"],"title":"Key","type":"string"},"state":{"enum":["todo","done","optional"],"title":"State","type":"string"}},"required":["key","state","fills"],"title":"SetupStep","type":"object"},"ShiftIn":{"additionalProperties":false,"properties":{"date":{"format":"date","title":"Date","type":"string"},"ends":{"examples":["08:15"],"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Ends","type":"string"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The stable identifier this shift keeps through revisions.","title":"Line Id"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Omit for an open shift in a draft.","title":"Person Id"},"pinned":{"default":false,"title":"Pinned","type":"boolean"},"position_id":{"format":"uuid","title":"Position Id","type":"string"},"starts":{"examples":["08:15"],"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","title":"Starts","type":"string"}},"required":["position_id","date","starts","ends"],"title":"ShiftIn","type":"object"},"ShiftLineChange":{"additionalProperties":false,"description":"One line of the published week. With ``line_id``: change the fields sent (``person_id: null`` makes it an open line), or\n``remove``. Without: a new line, which needs ``position_id``, ``date``, ``starts`` and ``ends``.","properties":{"date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Date"},"ends":{"anyOf":[{"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"title":"Ends"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"},"position_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Position Id"},"remove":{"default":false,"title":"Remove","type":"boolean"},"starts":{"anyOf":[{"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"title":"Starts"}},"title":"ShiftLineChange","type":"object"},"ShiftWords":{"additionalProperties":true,"description":"One shift of a person's day: a day of two rows at one position reads as one shift with its break.","properties":{"break_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Break From"},"break_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Break To"},"day":{"format":"date","title":"Day","type":"string"},"from":{"description":"HH:MM in the place's timezone","title":"From","type":"string"},"position":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"description":"The position's label, {en, it}","title":"Position"},"to":{"description":"HH:MM","title":"To","type":"string"}},"required":["day","from","to"],"title":"ShiftWords","type":"object"},"ShortWordsIn":{"additionalProperties":false,"description":"A title, a name or a label per language.","properties":{"de":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"De"},"en":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"En"},"fr":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"Fr"},"it":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"It"},"pt":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"Pt"}},"title":"ShortWordsIn","type":"object"},"ShownType":{"additionalProperties":true,"properties":{"chosen":{"description":"The job shows the type it chose; false when its rule picked it","title":"Chosen","type":"boolean"},"icon":{"title":"Icon","type":"string"},"key":{"title":"Key","type":"string"},"label":{"additionalProperties":{"type":"string"},"title":"Label","type":"object"},"tone":{"enum":["lake","heather","clay","glacier","moss","fern","rose","bark","slate"],"title":"Tone","type":"string"}},"required":["key","label","tone","icon","chosen"],"title":"ShownType","type":"object"},"SignerInput":{"additionalProperties":false,"properties":{"rider_no":{"maximum":40.0,"minimum":1.0,"title":"Rider No","type":"integer"},"signs_for":{"description":"Other riders (kids) this rider signs for","items":{"maximum":40.0,"minimum":1.0,"type":"integer"},"maxItems":39,"title":"Signs For","type":"array"}},"required":["rider_no"],"title":"SignerInput","type":"object"},"SitemapBlueprint":{"additionalProperties":true,"properties":{"slug":{"title":"Slug","type":"string"},"updated_at":{"title":"Updated At","type":"string"}},"required":["slug","updated_at"],"title":"SitemapBlueprint","type":"object"},"SitemapMonth":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"month":{"maximum":12.0,"minimum":1.0,"title":"Month","type":"integer"}},"required":["activity","month"],"title":"SitemapMonth","type":"object"},"SitemapPlace":{"additionalProperties":true,"properties":{"activity":{"title":"Activity","type":"string"},"image":{"anyOf":[{"$ref":"#/components/schemas/AtlasSitemapImage"},{"type":"null"}],"description":"The photo the place page leads with: the activity's live hero, else its first live photo, else the place's, by position; null without a live photo"},"name":{"description":"The place's English name","title":"Name","type":"string"},"region_path":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place's region when live, else null","title":"Region Path"},"slug":{"title":"Slug","type":"string"},"updated_at":{"description":"The newest change of the place, the activity or its published copy","title":"Updated At","type":"string"}},"required":["slug","activity","name","region_path","updated_at"],"title":"SitemapPlace","type":"object"},"SitemapRegion":{"additionalProperties":true,"properties":{"level":{"enum":["country","region"],"title":"Level","type":"string"},"name":{"description":"The region's English name","title":"Name","type":"string"},"path":{"title":"Path","type":"string"},"updated_at":{"title":"Updated At","type":"string"}},"required":["path","level","name","updated_at"],"title":"SitemapRegion","type":"object"},"SizeGroup":{"additionalProperties":false,"properties":{"count":{"maximum":400.0,"minimum":1.0,"title":"Count","type":"integer"},"size_label":{"anyOf":[{"maxLength":20,"minLength":1,"type":"string"},{"type":"null"}],"title":"Size Label"}},"required":["count"],"title":"SizeGroup","type":"object"},"SkiMapFeature":{"additionalProperties":true,"properties":{"geometry":{"additionalProperties":true,"description":"LineString, MultiLineString or Point, [lng, lat], lines rounded to 4 decimals, points to 5","title":"Geometry","type":"object"},"id":{"description":"\"openskimap/<id>\" for runs and lifts, \"shop/<listing id>\" for a shop","title":"Id","type":"string"},"properties":{"$ref":"#/components/schemas/SkiMapProperties"},"type":{"const":"Feature","title":"Type","type":"string"}},"required":["type","id","geometry","properties"],"title":"SkiMapFeature","type":"object"},"SkiMapProperties":{"additionalProperties":true,"properties":{"difficulty":{"anyOf":[{"enum":["novice","easy","intermediate","advanced","expert","freeride","extreme"],"type":"string"},{"type":"null"}],"description":"Runs: OpenSkiMap's difficulty; else null","title":"Difficulty"},"grade":{"anyOf":[{"enum":["green","blue","red","black","double"],"type":"string"},{"type":"null"}],"description":"Runs: the colour the resort's own map shows, by the area's convention (12.3); null for a freeride run, nordic and touring routes","title":"Grade"},"kind":{"anyOf":[{"enum":["downhill","nordic","skitour"],"type":"string"},{"type":"null"}],"description":"Runs: what the run is for; else null","title":"Kind"},"km":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Lines: the length in km","title":"Km"},"layer":{"enum":["run","lift","shop"],"title":"Layer","type":"string"},"lift_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lifts: OpenSkiMap's lift type (chair_lift, gondola, ...); else null","title":"Lift Type"},"lit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Runs: lit for night skiing, null when not known","title":"Lit"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shops: the Outdoor Grid shop's slug when it books here, else null","title":"Slug"}},"required":["layer"],"title":"SkiMapProperties","type":"object"},"SkiTileFeature":{"additionalProperties":true,"properties":{"geometry":{"additionalProperties":true,"description":"LineString or MultiLineString for lines, Point (the place's centre) for an area","title":"Geometry","type":"object"},"id":{"description":"\"openskimap/<id>\" for runs and lifts (as AT-26, so a line in two tiles is one feature), \"place/<slug>\" for an area's name","title":"Id","type":"string"},"properties":{"$ref":"#/components/schemas/SkiTileProperties"},"type":{"const":"Feature","title":"Type","type":"string"}},"required":["type","id","geometry","properties"],"title":"SkiTileFeature","type":"object"},"SkiTileProperties":{"additionalProperties":true,"properties":{"activity":{"anyOf":[{"enum":["skiing","ski-touring"],"type":"string"},{"type":"null"}],"description":"Areas: the place's live ski activity (skiing first), for the link to its Pistes tab; else null","title":"Activity"},"difficulty":{"anyOf":[{"enum":["novice","easy","intermediate","advanced","expert","freeride","extreme"],"type":"string"},{"type":"null"}],"description":"Runs: OpenSkiMap's difficulty; else null","title":"Difficulty"},"grade":{"anyOf":[{"enum":["green","blue","red","black","double"],"type":"string"},{"type":"null"}],"description":"Runs: the colour the resort's own map shows, by the area's convention (12.3); null for a freeride run, nordic and touring routes","title":"Grade"},"kind":{"anyOf":[{"enum":["downhill","nordic","skitour"],"type":"string"},{"type":"null"}],"description":"Runs: what the run is for; else null","title":"Kind"},"km":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Lines: the length in km","title":"Km"},"layer":{"enum":["run","lift","area"],"title":"Layer","type":"string"},"lift_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lifts: OpenSkiMap's lift type (chair_lift, gondola, ...); else null","title":"Lift Type"},"lit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Runs: lit for night skiing, null when not known","title":"Lit"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Runs and lifts: the slug of the atlas place they belong to","title":"Place"},"ski_areas":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Areas: the OpenSkiMap ski area ids of the place's shown ski_area facts (at most 10), so the map highlights every place of the page's own ski area; else null","title":"Ski Areas"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shops: the Outdoor Grid shop's slug when it books here, else null","title":"Slug"}},"required":["layer"],"title":"SkiTileProperties","type":"object"},"SkillNeed":{"additionalProperties":false,"description":"A skill required by a tour role, identified by the shop's skill key and minimum option or option_keys.","properties":{"attribute_key":{"pattern":"^[a-z][a-z0-9_]{0,31}$","title":"Attribute Key","type":"string"},"min_option_key":{"anyOf":[{"pattern":"^[a-z0-9][a-z0-9_]{0,31}$","type":"string"},{"type":"null"}],"title":"Min Option Key"},"option_keys":{"items":{"pattern":"^[a-z0-9][a-z0-9_]{0,31}$","type":"string"},"maxItems":20,"title":"Option Keys","type":"array"},"role":{"enum":["guide","driver"],"title":"Role","type":"string"}},"required":["role","attribute_key"],"title":"SkillNeed","type":"object"},"SpecFill":{"additionalProperties":false,"description":"A gap of the spec filled on every bike of the intake: a part in Stock, or words for a part not in Stock; or the gaps copied from\nanother model of the category.","properties":{"component_key":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"title":"Component Key"},"copy_spec_from":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Another model (variant) of the category: its parts fill this intake's gaps","title":"Copy Spec From"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"spec":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Spec"}},"title":"SpecFill","type":"object"},"SplitRuleSave":{"additionalProperties":false,"properties":{"component_key":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,31}$","type":"string"},{"type":"null"}],"title":"Component Key"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"package_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Package Product Id"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"scope":{"anyOf":[{"enum":["product","component","location"],"type":"string"},{"type":"null"}],"title":"Scope"},"shares":{"anyOf":[{"items":{"$ref":"#/components/schemas/SplitShare"},"maxItems":8,"minItems":1,"type":"array"},{"type":"null"}],"description":"Basis points; they must total 10000","title":"Shares"},"state":{"anyOf":[{"enum":["active","archived"],"type":"string"},{"type":"null"}],"title":"State"}},"required":["idempotency_key"],"title":"SplitRuleSave","type":"object"},"SplitShare":{"additionalProperties":false,"properties":{"is_lead":{"default":false,"title":"Is Lead","type":"boolean"},"legal_entity_id":{"format":"uuid","title":"Legal Entity Id","type":"string"},"share_bp":{"maximum":10000.0,"minimum":1.0,"title":"Share Bp","type":"integer"}},"required":["legal_entity_id","share_bp"],"title":"SplitShare","type":"object"},"StateSet":{"additionalProperties":false,"description":"XP-08: pause, or sell again.","properties":{"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"state":{"enum":["paused","selling"],"title":"State","type":"string"}},"required":["expected_version","state"],"title":"StateSet","type":"object"},"StoreBundleCreate":{"additionalProperties":false,"description":"STB-02: a draft bundle with its components and price rule.","properties":{"components":{"description":"The whole set, in order","items":{"$ref":"#/components/schemas/BundleComponentIn"},"maxItems":8,"minItems":1,"title":"Components","type":"array"},"department_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Department Id"},"description":{"anyOf":[{"$ref":"#/components/schemas/LongWordsIn"},{"type":"null"}]},"kind":{"anyOf":[{"enum":["bundle","kit"],"type":"string"},{"type":"null"}],"description":"bundle when absent","title":"Kind"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The selling business; default the shop's only active one","title":"Legal Entity Id"},"margin_floor_percent":{"anyOf":[{"description":"The margin the net price keeps over the cost, in percent","maximum":90.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Margin Floor Percent"},"price_amount_minor":{"anyOf":[{"description":"Minor units of the market's currency","maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"sum_minus_amount: off the list; fixed: the price","title":"Price Amount Minor"},"price_percent":{"anyOf":[{"description":"Percent off the list price","maximum":100.0,"minimum":0.0,"type":"number"},{"type":"null"}],"description":"sum_minus_percent","title":"Price Percent"},"price_rule":{"enum":["sum_minus_amount","sum_minus_percent","fixed"],"title":"Price Rule","type":"string"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$","type":"string"},{"type":"null"}],"description":"Default made from the title","title":"Slug"},"title":{"$ref":"#/components/schemas/ShortWordsIn"}},"required":["title","price_rule","components"],"title":"StoreBundleCreate","type":"object"},"StoreBundleSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"slug":{"title":"Slug","type":"string"},"state":{"enum":["draft","live","archived"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","slug","state","version"],"title":"StoreBundleSaved","type":"object"},"StoreFeed":{"additionalProperties":true,"description":"A feed: its counts and state; never its token.","properties":{"blocked":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"store_not_live, orders_closed, no_site, market_archived; null when it builds","title":"Blocked"},"build_failed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The last failed build; the worker leaves the feed for 30 minutes","title":"Build Failed At"},"build_revision":{"default":0,"title":"Build Revision","type":"integer"},"built_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Built At"},"channel":{"enum":["google","meta","idealo","classifieds"],"title":"Channel","type":"string"},"created_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Created At"},"dirty":{"default":false,"title":"Dirty","type":"boolean"},"format":{"enum":["xml","tsv","csv"],"title":"Format","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"items":{"default":0,"title":"Items","type":"integer"},"last_fetched_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Last Fetched At"},"left_out":{"default":0,"title":"Left Out","type":"integer"},"locale":{"enum":["en","it","de","fr"],"title":"Locale","type":"string"},"market":{"$ref":"#/components/schemas/StoreFeedMarket"},"state":{"enum":["active","paused","archived"],"title":"State","type":"string"},"token_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Hint"},"version":{"title":"Version","type":"integer"},"warnings":{"default":0,"title":"Warnings","type":"integer"}},"required":["id","channel","market","locale","format","state","version"],"title":"StoreFeed","type":"object"},"StoreFeedFactsSave":{"additionalProperties":false,"description":"STF-08: absent leaves a fact, null clears it; ``variants`` changes only the variants listed.","properties":{"age_group":{"anyOf":[{"enum":["newborn","infant","toddler","kids","adult"],"type":"string"},{"type":"null"}],"title":"Age Group"},"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"feed_excluded":{"default":false,"description":"True keeps the product out of every feed","title":"Feed Excluded","type":"boolean"},"gender":{"anyOf":[{"enum":["male","female","unisex"],"type":"string"},{"type":"null"}],"title":"Gender"},"google_category":{"anyOf":[{"description":"Google's product category id, 1 to 6 digits","pattern":"^[0-9]{1,6}$","type":"string"},{"type":"null"}],"title":"Google Category"},"variants":{"items":{"$ref":"#/components/schemas/StoreFeedVariantMpn"},"maxItems":200,"title":"Variants","type":"array"}},"required":["expected_version"],"title":"StoreFeedFactsSave","type":"object"},"StoreFeedFactsSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"title":"Replayed","type":"boolean"},"slug":{"title":"Slug","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","slug","version","replayed"],"title":"StoreFeedFactsSaved","type":"object"},"StoreFeedMarket":{"additionalProperties":true,"properties":{"countries":{"default":[],"items":{"type":"string"},"title":"Countries","type":"array"},"currency":{"title":"Currency","type":"string"},"key":{"title":"Key","type":"string"},"name":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"string"},{"type":"null"}],"title":"Name"}},"required":["key","currency"],"title":"StoreFeedMarket","type":"object"},"StoreFeedSaved":{"additionalProperties":true,"description":"STF-03, STF-05.","properties":{"feed":{"anyOf":[{"$ref":"#/components/schemas/StoreFeed"},{"type":"null"}]},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","version","replayed"],"title":"StoreFeedSaved","type":"object"},"StoreFeedVariantMpn":{"additionalProperties":false,"properties":{"mpn":{"anyOf":[{"description":"The maker's part number","maxLength":70,"minLength":1,"type":"string"},{"type":"null"}],"description":"Null clears it","title":"Mpn"},"stock_product_id":{"format":"uuid","title":"Stock Product Id","type":"string"}},"required":["stock_product_id","mpn"],"title":"StoreFeedVariantMpn","type":"object"},"StoreLineSpecialOrder":{"additionalProperties":false,"description":"PO-S1: order the line's item from this supplier. The line must be open or missing and not held in stock, not on a purchase\norder already and not on its way from another place.","properties":{"expected_version":{"description":"The order's version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"supplier_id":{"description":"The supplier company","format":"uuid","title":"Supplier Id","type":"string"}},"required":["supplier_id","expected_version"],"title":"StoreLineSpecialOrder","type":"object"},"StoreLineSpecialOrdered":{"additionalProperties":true,"description":"PO-S1: the order and the line as the write left them, the order's exception and the purchase order.","properties":{"covered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Covered"},"exception":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exception"},"id":{"format":"uuid","title":"Id","type":"string"},"line":{"$ref":"#/components/schemas/StoreLineState"},"on_hand":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"On Hand"},"purchase_order":{"$ref":"#/components/schemas/StoreSpecialOrderRef"},"ready_by":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Ready By"},"reference":{"title":"Reference","type":"string"},"refund":{"anyOf":[{"$ref":"#/components/schemas/StoreRefundState"},{"type":"null"}]},"refund_due_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refund Due Minor"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"state":{"title":"State","type":"string"},"transfer":{"anyOf":[{"$ref":"#/components/schemas/StoreLineTransferRef"},{"type":"null"}]},"version":{"title":"Version","type":"integer"},"workshop_job":{"anyOf":[{"$ref":"#/components/schemas/StoreWorkshopJob"},{"type":"null"}]}},"required":["id","reference","version","state","line","purchase_order"],"title":"StoreLineSpecialOrdered","type":"object"},"StoreLineState":{"additionalProperties":true,"description":"A line as a line write leaves it.","properties":{"frame_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Number"},"line_no":{"title":"Line No","type":"integer"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"picked_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Picked At"},"picked_quantity":{"default":0,"description":"Pieces picked so far; the line stays open until it reaches the quantity","title":"Picked Quantity","type":"integer"},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity"},"returned_quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Returned Quantity"},"serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial"},"state":{"title":"State","type":"string"},"version":{"title":"Version","type":"integer"},"workshop_job_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Workshop Job Id"}},"required":["line_no","state","version"],"title":"StoreLineState","type":"object"},"StoreLineTransferRef":{"additionalProperties":true,"description":"TR-S1: the draft transfer order that carries the line; it is picked, sent and received on the transfer screen.","properties":{"from_location_id":{"format":"uuid","title":"From Location Id","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"reference":{"description":"TR-0042","title":"Reference","type":"string"},"state":{"title":"State","type":"string"},"to_location_id":{"format":"uuid","title":"To Location Id","type":"string"}},"required":["id","reference","state","from_location_id","to_location_id"],"title":"StoreLineTransferRef","type":"object"},"StoreProductCreate":{"additionalProperties":false,"description":"STC-04: a draft. A used unit names its fleet unit (``asset_id``), never variants.","properties":{"asset_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A used unit's ex-rental fleet unit","title":"Asset Id"},"brand_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Brand Id"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Category Id"},"department_id":{"format":"uuid","title":"Department Id","type":"string"},"kind":{"enum":["goods","used_unit"],"title":"Kind","type":"string"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The selling business; default the shop's only active one","title":"Legal Entity Id"},"slug":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$","type":"string"},{"type":"null"}],"description":"Default made from the title","title":"Slug"},"title":{"$ref":"#/components/schemas/ShortWordsIn"},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantIn"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Variants"}},"required":["kind","department_id","title"],"title":"StoreProductCreate","type":"object"},"StoreProductRentalSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"rental_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Rental Product Id"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"version":{"title":"Version","type":"integer"}},"required":["id","version","rental_product_id"],"title":"StoreProductRentalSaved","type":"object"},"StoreProductRentalSet":{"additionalProperties":false,"description":"STC-98: both keys are required; a null twin clears it.","properties":{"expected_version":{"description":"The version you read","minimum":1.0,"title":"Expected Version","type":"integer"},"rental_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"One of the shop's rental products, or null to clear the twin","title":"Rental Product Id"}},"required":["expected_version","rental_product_id"],"title":"StoreProductRentalSet","type":"object"},"StoreRefundState":{"additionalProperties":true,"description":"A refund a write made: requested (online, through the payment port) or done (at the counter).","properties":{"amount_minor":{"title":"Amount Minor","type":"integer"},"currency":{"title":"Currency","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"method":{"description":"online or counter","title":"Method","type":"string"},"return_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Return Id"},"state":{"title":"State","type":"string"}},"required":["id","amount_minor","currency","method","state"],"title":"StoreRefundState","type":"object"},"StoreSpecialOrderRef":{"additionalProperties":true,"description":"The purchase order the line now waits on, and its line.","properties":{"expected_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Expected On"},"id":{"format":"uuid","title":"Id","type":"string"},"line_no":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Line No"},"reference":{"description":"PO-0042","title":"Reference","type":"string"},"state":{"title":"State","type":"string"},"supplier":{"anyOf":[{"$ref":"#/components/schemas/StoreSupplierRef"},{"type":"null"}]}},"required":["id","reference","state"],"title":"StoreSpecialOrderRef","type":"object"},"StoreSupplierRef":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"required":["id"],"title":"StoreSupplierRef","type":"object"},"StoreWords":{"additionalProperties":true,"properties":{"de":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"De"},"en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"En"},"fr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fr"},"it":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"It"},"pt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pt"}},"title":"StoreWords","type":"object"},"StoreWorkshopJob":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},"required":["id"],"title":"StoreWorkshopJob","type":"object"},"StoredAnswer":{"additionalProperties":true,"description":"An answer as the booking keeps it: as given, with a copy of the question, so a later change to the category changes nothing.","properties":{"item_type_id":{"format":"uuid","title":"Item Type Id","type":"string"},"key":{"title":"Key","type":"string"},"kind":{"anyOf":[{"enum":["text","number","choice","multi_choice","boolean","date"],"type":"string"},{"type":"null"}],"title":"Kind"},"label":{"$ref":"#/components/schemas/Words-Output"},"text":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"The answer in words: option labels, Yes or No, the number with its unit, the date"},"value":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"maxLength":300,"type":"string"},{"items":{"maxLength":300,"type":"string"},"maxItems":30,"type":"array"},{"type":"null"}],"title":"Value"}},"required":["item_type_id","key","label"],"title":"StoredAnswer","type":"object"},"StoryGroup":{"additionalProperties":false,"properties":{"by_locale":{"maxProperties":8,"patternProperties":{"^[a-z]{2}$":{"$ref":"#/components/schemas/StoryText"}},"title":"By Locale","type":"object"},"locales":{"description":"Written languages in order; the first is the main one","items":{"pattern":"^[a-z]{2}$","type":"string"},"maxItems":8,"title":"Locales","type":"array"}},"title":"StoryGroup","type":"object"},"StoryText":{"additionalProperties":false,"properties":{"bring":{"default":[],"items":{"maxLength":300,"minLength":1,"type":"string"},"maxItems":20,"title":"Bring","type":"array"},"highlights":{"default":[],"items":{"maxLength":300,"minLength":1,"type":"string"},"maxItems":8,"title":"Highlights","type":"array"},"included":{"default":[],"items":{"maxLength":300,"minLength":1,"type":"string"},"maxItems":20,"title":"Included","type":"array"},"know_before":{"default":[],"items":{"maxLength":300,"minLength":1,"type":"string"},"maxItems":20,"title":"Know Before","type":"array"},"long":{"anyOf":[{"maxLength":6000,"type":"string"},{"type":"null"}],"title":"Long"},"not_included":{"default":[],"items":{"maxLength":300,"minLength":1,"type":"string"},"maxItems":20,"title":"Not Included","type":"array"},"not_suitable_for":{"default":[],"items":{"maxLength":300,"minLength":1,"type":"string"},"maxItems":20,"title":"Not Suitable For","type":"array"},"short":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"title":"Short"},"title":{"maxLength":120,"minLength":1,"title":"Title","type":"string"}},"title":"StoryText","type":"object"},"StreamPart":{"additionalProperties":true,"properties":{"stream":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"title":"Stream","type":"string"},"value_minor":{"title":"Value Minor","type":"integer"}},"required":["stream","value_minor"],"title":"StreamPart","type":"object"},"StyleFit":{"additionalProperties":true,"properties":{"candidates":{"description":"The places the search read before the style kept some; 0: nothing to score (where, dates or filters found none), never \"not scored\"","title":"Candidates","type":"integer"},"min_fit":{"description":"An untagged place is kept when its fit for a picked style is at least this","title":"Min Fit","type":"number"},"name":{"description":"The score's name: Enduro fit, Trail fit, Bike park fit, Downhill fit or Cross country fit","title":"Name","type":"string"},"preset":{"description":"Its fit preset (1.10): enduro, trail, park, downhill or xc","title":"Preset","type":"string"},"scored":{"description":"How many of the search's candidates have a fit for the style; 0 with candidates: nothing scored for it yet","title":"Scored","type":"integer"},"style":{"description":"The first mountain biking style picked in doing, as the activity's style key","title":"Style","type":"string"}},"required":["style","preset","name","min_fit","scored","candidates"],"title":"StyleFit","type":"object"},"Subject":{"additionalProperties":false,"description":"Exactly one of: an item (id or tag), a vehicle (id), known customer gear, or new customer gear.","properties":{"customer_equipment_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Customer Equipment Id"},"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"kind":{"enum":["item","vehicle","customer_gear"],"title":"Kind","type":"string"},"new_gear":{"anyOf":[{"$ref":"#/components/schemas/NewGear"},{"type":"null"}]},"tag":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Tag"}},"required":["kind"],"title":"Subject","type":"object"},"SuggestionAccept":{"additionalProperties":false,"properties":{"from_location_id":{"format":"uuid","title":"From Location Id","type":"string"},"needed_by":{"format":"date","title":"Needed By","type":"string"},"quantity":{"maximum":400.0,"minimum":1.0,"title":"Quantity","type":"integer"},"to_location_id":{"format":"uuid","title":"To Location Id","type":"string"},"variant_id":{"format":"uuid","title":"Variant Id","type":"string"}},"required":["variant_id","from_location_id","to_location_id","quantity","needed_by"],"title":"SuggestionAccept","type":"object"},"SuggestionLine":{"additionalProperties":false,"properties":{"location_id":{"format":"uuid","title":"Location Id","type":"string"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"quantity":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"}],"title":"Quantity"},"supplier_company_id":{"format":"uuid","title":"Supplier Company Id","type":"string"}},"required":["product_id","location_id","supplier_company_id","quantity"],"title":"SuggestionLine","type":"object"},"SupplierLine":{"additionalProperties":false,"properties":{"company_id":{"format":"uuid","title":"Company Id","type":"string"},"cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"currency":{"anyOf":[{"pattern":"^[A-Z]{3}$","type":"string"},{"type":"null"}],"title":"Currency"},"lead_time_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Lead Time Days"},"moq":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Moq"},"pack_size":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Pack Size"},"preferred":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preferred"},"supplier_code":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Supplier Code"}},"required":["company_id"],"title":"SupplierLine","type":"object"},"SupplierPart":{"additionalProperties":false,"properties":{"cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Cost Minor"},"currency":{"anyOf":[{"pattern":"^[A-Z]{3}$","type":"string"},{"type":"null"}],"title":"Currency"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"lead_time_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Lead Time Days"},"moq":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Moq"},"pack_size":{"anyOf":[{"exclusiveMinimum":0.0,"type":"number"},{"pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,10}|(?=[\\d.]{1,13}0*$)\\d{0,10}\\.\\d{0,2}0*$)","type":"string"},{"type":"null"}],"title":"Pack Size"},"preferred":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preferred"},"supplier_code":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Supplier Code"}},"required":["idempotency_key"],"title":"SupplierPart","type":"object"},"SupplierTerms":{"additionalProperties":false,"properties":{"account_number":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"title":"Account Number"},"currency":{"anyOf":[{"pattern":"^[A-Z]{3}$","type":"string"},{"type":"null"}],"title":"Currency"},"delivery_note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Delivery Note"},"discount_note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Discount Note"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"min_order_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Min Order Minor"},"notes":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Notes"},"order_address":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Order Address"},"order_channel":{"anyOf":[{"enum":["email","phone","portal"],"type":"string"},{"type":"null"}],"title":"Order Channel"},"order_copy_to":{"anyOf":[{"maxLength":254,"type":"string"},{"type":"null"}],"title":"Order Copy To"},"order_cutoff":{"anyOf":[{"pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"title":"Order Cutoff"},"order_days":{"anyOf":[{"items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"type":"array"},{"type":"null"}],"title":"Order Days"},"order_language":{"anyOf":[{"enum":["en","it","de"],"type":"string"},{"type":"null"}],"title":"Order Language"},"payment_basis":{"default":"net","enum":["net","end_of_month"],"title":"Payment Basis","type":"string"},"payment_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Payment Days"},"promised_lead_days":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Promised Lead Days"},"promised_lead_days_max":{"anyOf":[{"maximum":365.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Promised Lead Days Max"},"returns_fee_bp":{"anyOf":[{"maximum":10000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Returns Fee Bp"},"returns_note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Returns Note"},"returns_until_md":{"anyOf":[{"pattern":"^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$","type":"string"},{"type":"null"}],"title":"Returns Until Md"},"warranty_note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"title":"Warranty Note"}},"required":["idempotency_key"],"title":"SupplierTerms","type":"object"},"SwapDecided":{"additionalProperties":true,"properties":{"emailed":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"shift_answer emails written","title":"Emailed"},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"revisions":{"description":"The new published revision of each week the swap touched","items":{"$ref":"#/components/schemas/SwapRevision"},"title":"Revisions","type":"array"},"state":{"anyOf":[{"enum":["asked","declined","agreed","approved","rejected","withdrawn","void"],"type":"string"},{"type":"null"}],"title":"State"},"version":{"title":"Version","type":"integer"}},"required":["id","version"],"title":"SwapDecided","type":"object"},"SwapRevision":{"additionalProperties":true,"properties":{"published_revision_id":{"format":"uuid","title":"Published Revision Id","type":"string"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["rota_id","version","published_revision_id"],"title":"SwapRevision","type":"object"},"Task":{"additionalProperties":true,"properties":{"action":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The subject's one action: {key: decide, assign, set, call or open, code}","title":"Action"},"area":{"enum":["desk","tours","equipment","workshop","stock","vehicles","till","customers","team","schedules","money","inbox","selling","setup","other"],"title":"Area","type":"string"},"assignee":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"{person_id, name, initials}","title":"Assignee"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"done_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Done At"},"done_by":{"anyOf":[{"$ref":"#/components/schemas/TaskPerson"},{"type":"null"}]},"due":{"enum":["late","today","this_week","later","none","done"],"title":"Due","type":"string"},"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Due At"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the one action button goes","title":"Href"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["manual","system"],"title":"Kind","type":"string"},"live":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"Read live on the list, never stored: {who, phone} for a desk task","title":"Live"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"module_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module Key"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The words of a subject's title: time, name, number, code, riders, missing","title":"Params"},"sample":{"description":"Up to 3 of the provider's rows: {id, key, title}","items":{"additionalProperties":true,"type":"object"},"title":"Sample","type":"array"},"severity":{"anyOf":[{"enum":["blocking","attention","info"],"type":"string"},{"type":"null"}],"title":"Severity"},"source_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The needs-you provider that made it","title":"Source Provider"},"state":{"enum":["open","done","cleared"],"title":"State","type":"string"},"subject_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What a provider task is about (a departure, a booking, an item id); null for a task of the whole provider. One open task per provider and subject","title":"Subject Key"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"manual tasks; system tasks use title_key and count","title":"Title"},"title_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Key"},"version":{"title":"Version","type":"integer"}},"required":["id","version","kind","title","body","source_provider","title_key","count","severity","sample","href","module_key","area","location_id","due_at","due","assignee","state","done_at","done_by","created_at"],"title":"Task","type":"object"},"TaskActivity":{"additionalProperties":true,"properties":{"args":{"$ref":"#/components/schemas/TaskActivityArgs"},"at":{"format":"date-time","title":"At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"description":"task.created, task.updated, task.done, task.reopened, task.file_added, task.file_removed, task.note_added, task.deleted or task.synced","title":"Kind","type":"string"},"who":{"anyOf":[{"$ref":"#/components/schemas/TaskWho"},{"type":"null"}],"description":"Null for the system (task.synced)"}},"required":["id","at","kind","who","args"],"title":"TaskActivity","type":"object"},"TaskActivityArgs":{"additionalProperties":true,"properties":{"assignee_from":{"anyOf":[{"$ref":"#/components/schemas/TaskWho"},{"type":"null"}]},"assignee_to":{"anyOf":[{"$ref":"#/components/schemas/TaskWho"},{"type":"null"}]},"changed":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Changed"},"due_from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Due From"},"due_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Due To"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"title":"TaskActivityArgs","type":"object"},"TaskChange":{"additionalProperties":false,"description":"Absent keeps, null clears. A shop-made task (kind system) takes only assignee_id and due_at.","properties":{"area":{"anyOf":[{"enum":["desk","tours","equipment","workshop","stock","vehicles","till","customers","team","schedules","money","inbox","selling","setup","other"],"type":"string"},{"type":"null"}],"title":"Area"},"assignee_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Assignee Id"},"body":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Body"},"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Due At"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"links":{"anyOf":[{"items":{"$ref":"#/components/schemas/TaskLinkRef"},"maxItems":10,"type":"array"},{"type":"null"}],"description":"Absent keeps; a list replaces the task's links (an empty list removes them). At most 10, no duplicates; each record in the shop and within the writer's place bounds. A shop-made task refuses links","title":"Links"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"title":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Title"}},"required":["expected_version"],"title":"TaskChange","type":"object"},"TaskCounts":{"additionalProperties":true,"properties":{"done_today":{"title":"Done Today","type":"integer"},"mine":{"title":"Mine","type":"integer"},"open":{"title":"Open","type":"integer"}},"required":["open","mine","done_today"],"title":"TaskCounts","type":"object"},"TaskCreate":{"additionalProperties":false,"properties":{"area":{"default":"other","enum":["desk","tours","equipment","workshop","stock","vehicles","till","customers","team","schedules","money","inbox","selling","setup","other"],"title":"Area","type":"string"},"assignee_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"An active team member","title":"Assignee Id"},"body":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Body"},"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Due At"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Null means the whole shop","title":"Location Id"},"title":{"maxLength":200,"minLength":1,"title":"Title","type":"string"}},"required":["title"],"title":"TaskCreate","type":"object"},"TaskDeleted":{"additionalProperties":true,"properties":{"deleted":{"title":"Deleted","type":"boolean"},"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"}},"required":["id","deleted"],"title":"TaskDeleted","type":"object"},"TaskDone":{"additionalProperties":false,"properties":{"done":{"title":"Done","type":"boolean"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version","done"],"title":"TaskDone","type":"object"},"TaskLinkRef":{"additionalProperties":false,"description":"A record the task is about: a booking (bookings.id), an item (equipment_assets.id) or a customer (organization_people.id),\nas the header search (``POST ~/shop-search``) answers them.","properties":{"id":{"format":"uuid","title":"Id","type":"string"},"kind":{"enum":["booking","item","customer"],"title":"Kind","type":"string"}},"required":["kind","id"],"title":"TaskLinkRef","type":"object"},"TaskList":{"additionalProperties":true,"properties":{"counts":{"$ref":"#/components/schemas/TaskCounts"},"items":{"items":{"$ref":"#/components/schemas/Task"},"title":"Items","type":"array"},"me":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The caller's team person id (Mine), null when the login has none","title":"Me"},"synced":{"description":"False for a reader bound to some locations: shop-made tasks are not shown to them; always false under an API key, whose call never syncs","title":"Synced","type":"boolean"},"truncated":{"title":"Truncated","type":"boolean"}},"required":["items","truncated","counts","me","synced"],"title":"TaskList","type":"object"},"TaskNoteAdd":{"additionalProperties":false,"properties":{"text":{"maxLength":500,"minLength":1,"title":"Text","type":"string"}},"required":["text"],"title":"TaskNoteAdd","type":"object"},"TaskPerson":{"additionalProperties":true,"properties":{"name":{"title":"Name","type":"string"},"person_id":{"format":"uuid","title":"Person Id","type":"string"}},"required":["person_id","name"],"title":"TaskPerson","type":"object"},"TaskWho":{"additionalProperties":true,"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"}},"required":["person_id","name"],"title":"TaskWho","type":"object"},"TellState":{"additionalProperties":true,"description":"How the customer knows the job is ready. ``told`` is a person's tell (``Told`` holds its channel and\nwhether they were reached) and wins; otherwise the ready email's outbox row: ``queued`` (on its way), ``sent``\n(with ``sent_at``) or ``failed`` (it did not go, with ``failure_reason``); ``not_told`` with no tell and no email\n(no customer, or no email on file).","properties":{"email_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The ready email's outbox row, when one was queued","title":"Email Id"},"email_on_file":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"FW-13: whether the customer's record holds an email today (jobs with a customer only); never the address","title":"Email On File"},"failure_reason":{"anyOf":[{"enum":["not_confirmed","incomplete","held_back"],"type":"string"},{"type":"null"}],"description":"Why the ready email did not go (state failed), from email_states","title":"Failure Reason"},"sent_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the ready email went (state sent)","title":"Sent At"},"state":{"enum":["told","queued","sent","failed","not_told"],"title":"State","type":"string"}},"required":["state"],"title":"TellState","type":"object"},"TermsSaved":{"properties":{"terms":{"additionalProperties":true,"title":"Terms","type":"object"}},"required":["terms"],"title":"TermsSaved","type":"object"},"TimerCommand":{"additionalProperties":false,"description":"One person's timer on the job. ``person_id`` (absent or null) defaults to the person linked to the login. ``switch`` closes the\nperson's running timer on another job first; without it, or when that job is outside the caller's bounds, the answer is 409 naming\nthe job (only when the caller may see it). A null field is the same as one left out.","properties":{"action":{"enum":["start","pause","wait_part","resume","stop"],"title":"Action","type":"string"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Person Id"},"source":{"anyOf":[{"enum":["tablet","desk","phone"],"type":"string"},{"type":"null"}],"title":"Source"},"switch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Switch"}},"required":["action"],"title":"TimerCommand","type":"object"},"TimerResult":{"additionalProperties":true,"properties":{"job":{"$ref":"#/components/schemas/JobKey"},"minutes":{"description":"The job's minutes on the timer, every person, paused and waiting time left out","title":"Minutes","type":"integer"},"my_minutes":{"title":"My Minutes","type":"integer"},"person_id":{"title":"Person Id","type":"string"},"running":{"title":"Running","type":"boolean"},"since":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Since"},"state":{"enum":["not_started","running","paused","waiting_part","stopped"],"title":"State","type":"string"},"switched_from":{"anyOf":[{"$ref":"#/components/schemas/JobKey"},{"type":"null"}],"description":"The job the person's timer ran on before a switch"},"working_now":{"items":{"$ref":"#/components/schemas/WorkingNow"},"title":"Working Now","type":"array"}},"required":["job","person_id","running","state","minutes","my_minutes","working_now"],"title":"TimerResult","type":"object"},"Timetable":{"additionalProperties":true,"properties":{"closed_dates":{"default":[],"description":"Days in the season with no departure (XP-27)","items":{"format":"date","type":"string"},"title":"Closed Dates","type":"array"},"departures":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Departures still to run","title":"Departures"},"id":{"format":"uuid","title":"Id","type":"string"},"option_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Option Key"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"title":{"title":"Title"},"valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid Until"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"weekdays":{"default":[],"items":{"type":"integer"},"title":"Weekdays","type":"array"}},"required":["id"],"title":"Timetable","type":"object"},"TimetableCreate":{"additionalProperties":false,"properties":{"language":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Language"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Meeting Point Id"},"option_key":{"anyOf":[{"pattern":"^(default|opt_([2-9]|1[0-9]|20))$","type":"string"},{"type":"null"}],"description":"default, opt_2 to opt_20; null is the default option","title":"Option Key"},"product_id":{"format":"uuid","title":"Product Id","type":"string"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"start_time":{"format":"time","title":"Start Time","type":"string"},"state":{"default":"active","enum":["active","paused"],"title":"State","type":"string"},"title":{"maxLength":120,"minLength":1,"title":"Title","type":"string"},"valid_from":{"format":"date","title":"Valid From","type":"string"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid Until"},"weekdays":{"items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"minItems":1,"title":"Weekdays","type":"array"}},"required":["product_id","title","weekdays","start_time","valid_from"],"title":"TimetableCreate","type":"object"},"TimetablePatch":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"language":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Language"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Meeting Point Id"},"option_key":{"anyOf":[{"pattern":"^(default|opt_([2-9]|1[0-9]|20))$","type":"string"},{"type":"null"}],"description":"default, opt_2 to opt_20; null is the default option","title":"Option Key"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"start_time":{"anyOf":[{"format":"time","type":"string"},{"type":"null"}],"title":"Start Time"},"state":{"anyOf":[{"enum":["active","paused"],"type":"string"},{"type":"null"}],"title":"State"},"title":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Title"},"valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid Until"},"weekdays":{"anyOf":[{"items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},{"type":"null"}],"title":"Weekdays"}},"required":["expected_version"],"title":"TimetablePatch","type":"object"},"Told":{"additionalProperties":true,"properties":{"at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"At"},"channel":{"anyOf":[{"enum":["sms","email","phone","in_person"],"type":"string"},{"type":"null"}],"title":"Channel"},"count":{"default":0,"title":"Count","type":"integer"},"reached":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reached"},"state":{"enum":["not_told","told"],"title":"State","type":"string"}},"required":["state"],"title":"Told","type":"object"},"TopRise":{"additionalProperties":true,"properties":{"change_pct":{"title":"Change Pct","type":"number"},"key":{"description":"A cost kind key","title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/FinanceWords"}},"required":["key","label","change_pct"],"title":"TopRise","type":"object"},"TourCheckIn":{"additionalProperties":true,"properties":{"activity":{"items":{"$ref":"#/components/schemas/CheckInActivity"},"title":"Activity","type":"array"},"can":{"$ref":"#/components/schemas/CheckInCan"},"checklist":{"items":{"$ref":"#/components/schemas/CheckInItem"},"title":"Checklist","type":"array"},"counts":{"$ref":"#/components/schemas/CheckInCounts"},"departure":{"$ref":"#/components/schemas/CheckInDeparture"},"ready":{"$ref":"#/components/schemas/CheckInReady"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"On a write: true when the same Idempotency-Key was already applied","title":"Replayed"},"riders":{"items":{"$ref":"#/components/schemas/CheckInRider"},"title":"Riders","type":"array"},"sent":{"anyOf":[{"$ref":"#/components/schemas/CheckInSent"},{"type":"null"}],"description":"On a waiver send: what went out and what was skipped"},"waivers":{"$ref":"#/components/schemas/CheckInWaivers"}},"required":["departure","riders","counts","waivers","checklist","ready","can","activity"],"title":"TourCheckIn","type":"object"},"TourList":{"additionalProperties":true,"properties":{"items":{"items":{"$ref":"#/components/schemas/TourSummary"},"title":"Items","type":"array"}},"required":["items"],"title":"TourList","type":"object"},"TourRequestDecline":{"additionalProperties":false,"description":"Decline a tour request.","properties":{"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"note":{"anyOf":[{"maxLength":300,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"}},"required":["expected_version"],"title":"TourRequestDecline","type":"object"},"TourRequestWritten":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"status":{"enum":["asked","placed","declined","expired","withdrawn"],"title":"Status","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","version","status"],"title":"TourRequestWritten","type":"object"},"TourSettings":{"additionalProperties":false,"description":"The run rules and crew needs of a tour product. Only the keys sent change; the first save sets the defaults for the rest.","properties":{"auto_ask":{"anyOf":[{"enum":["off","everyone","priority"],"type":"string"},{"type":"null"}],"description":"Automatically ask freelancers when a departure needs crew.","title":"Auto Ask"},"auto_assign":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Assign"},"buffer_after_minutes":{"anyOf":[{"maximum":720.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Buffer After Minutes"},"buffer_before_minutes":{"anyOf":[{"maximum":720.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Buffer Before Minutes"},"carries_bikes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Carries Bikes"},"drivers_needed":{"anyOf":[{"maximum":4.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Drivers Needed"},"duration_minutes":{"anyOf":[{"maximum":10080.0,"minimum":15.0,"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"end_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"End Point Id"},"expected_version":{"anyOf":[{"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Expected Version"},"extra_confirm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Extra Confirm"},"extra_start_time":{"anyOf":[{"format":"time","type":"string"},{"type":"null"}],"title":"Extra Start Time"},"go_no_go_hours":{"anyOf":[{"maximum":720.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Go No Go Hours"},"guided":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"False only on a private tour or a shuttle, and then guides_needed must be 0","title":"Guided"},"guides_needed":{"anyOf":[{"maximum":6.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Guides Needed"},"language":{"anyOf":[{"pattern":"^[a-z]{2}$","type":"string"},{"type":"null"}],"title":"Language"},"languages":{"anyOf":[{"items":{"pattern":"^[a-z]{2}$","type":"string"},"maxItems":12,"type":"array"},{"type":"null"}],"title":"Languages"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Meeting Point Id"},"min_level":{"anyOf":[{"enum":["new","some","confident","expert"],"type":"string"},{"type":"null"}],"description":"Lowest rider level that can book; null clears it","title":"Min Level"},"min_riders":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Min Riders"},"off_road":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Off Road"},"online_cutoff_minutes":{"anyOf":[{"maximum":43200.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Online Cutoff Minutes"},"required_attributes":{"anyOf":[{"items":{"pattern":"^[a-z][a-z0-9_]{0,31}$","type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"title":"Required Attributes"},"required_qualifications":{"anyOf":[{"items":{"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"title":"Required Qualifications"},"riders_per_guide":{"anyOf":[{"maximum":50.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"The number of riders each guide takes.","title":"Riders Per Guide"},"seats":{"anyOf":[{"maximum":200.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"sell_kind":{"anyOf":[{"enum":["group_tour","private_tour","shuttle","transfer","lesson"],"type":"string"},{"type":"null"}],"description":"Change the kind between the tour kinds; departures ahead with no booking follow it, booked ones keep theirs","title":"Sell Kind"},"skill_needs":{"anyOf":[{"items":{"$ref":"#/components/schemas/SkillNeed"},"maxItems":30,"type":"array"},{"type":"null"}],"description":"Skills required by each tour role, replacing the previous list.","title":"Skill Needs"},"vehicle_needed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vehicle Needed"}},"title":"TourSettings","type":"object"},"TourSummary":{"additionalProperties":true,"properties":{"drivers_needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drivers Needed"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"guides_needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Guides Needed"},"id":{"format":"uuid","title":"Id","type":"string"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"min_riders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Riders"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"names":{"additionalProperties":{"type":"string"},"description":"The tour name per language","title":"Names","type":"object"},"next_departure":{"anyOf":[{"$ref":"#/components/schemas/NextDeparture"},{"type":"null"}]},"online":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Bookable on the shop's site and channels (the product's online switch)","title":"Online"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"},"sell_kind":{"title":"Sell Kind","type":"string"},"selling":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True when the product is active and online; a draft is not selling","title":"Selling"},"slug":{"title":"Slug","type":"string"},"state":{"title":"State","type":"string"},"timetables":{"title":"Timetables","type":"integer"}},"required":["id","slug","names","sell_kind","state","location_id","timetables"],"title":"TourSummary","type":"object"},"TourWish":{"additionalProperties":false,"properties":{"length":{"anyOf":[{"enum":["full","half"],"type":"string"},{"type":"null"}],"title":"Length"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Private"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A tour product of the shop; another shop's or an unknown one is dropped","title":"Product Id"}},"title":"TourWish","type":"object"},"TrailMapFeature":{"additionalProperties":true,"properties":{"geometry":{"additionalProperties":true,"description":"Point, LineString or MultiLineString, [lng, lat]: a point rounded to 5 decimals, a line simplified to 4 (about 11 m) with repeats dropped","title":"Geometry","type":"object"},"id":{"description":"\"way/123\" (or node, relation) for OpenStreetMap rows, \"shop/<listing id>\" for a shop","title":"Id","type":"string"},"properties":{"$ref":"#/components/schemas/TrailMapProperties"},"type":{"const":"Feature","title":"Type","type":"string"}},"required":["type","id","geometry","properties"],"title":"TrailMapFeature","type":"object"},"TrailMapProperties":{"additionalProperties":true,"properties":{"area":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Trails: for a way the name of the longest route relation on the map holding it; for a relation its network (not an OSM network code such as lcn or mtb, at least 4 characters), else its operator; else null","title":"Area"},"grade":{"anyOf":[{"enum":["green","blue","red","black","double"],"type":"string"},{"type":"null"}],"description":"Trails: the harder of mtb:scale (0 green, 1 blue, 2 red, 3 black, 4 to 6 double) and mtb:scale:imba (0 and 1 green, 2 blue, 3 black, 4 double); a route relation with neither takes the grade most of its member ways' km carry; else from trail_visibility (excellent green, good blue, intermediate red, bad black, horrible or no double); else null","title":"Grade"},"kind":{"anyOf":[{"enum":["singletrack","doubletrack"],"type":"string"},{"type":"null"}],"description":"Trails: highway path or track; a route relation with no highway the kind most of its member km carry; else null","title":"Kind"},"km":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Lines: the length in km, 1 decimal","title":"Km"},"layer":{"enum":["trail","lift","shop"],"title":"Layer","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lines: the OSM name:en when it differs from name; else null","title":"Name En"},"routes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Trail ways: up to 3 names of route relations on the map holding it, longest first; null for a relation and when none","title":"Routes"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shops: the Outdoor Grid shop's slug when it books here, else null","title":"Slug"}},"required":["layer"],"title":"TrailMapProperties","type":"object"},"TransferActed":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"reference":{"title":"Reference","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"state":{"enum":["draft","picked","in_transit","received","received_short","cancelled"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["id","reference","version","state"],"title":"TransferActed","type":"object"},"TransferAction":{"additionalProperties":false,"properties":{"action":{"enum":["pick","ship","receive","cancel","resolve_missing"],"title":"Action","type":"string"},"arrived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Arrived At"},"expected_arrival_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expected Arrival At"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"line_no":{"anyOf":[{"maximum":400.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Line No"},"outcome":{"anyOf":[{"enum":["found","lost"],"type":"string"},{"type":"null"}],"title":"Outcome"},"received":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReceivedLine"},"type":"array"},{"type":"null"}],"title":"Received"}},"required":["action","expected_version"],"title":"TransferAction","type":"object"},"TransferEdit":{"additionalProperties":false,"properties":{"expected_arrival_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expected Arrival At"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"from_location_id":{"format":"uuid","title":"From Location Id","type":"string"},"lines":{"items":{"$ref":"#/components/schemas/TransferLine"},"maxItems":400,"title":"Lines","type":"array"},"note":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"title":"Note"},"to_location_id":{"format":"uuid","title":"To Location Id","type":"string"}},"required":["from_location_id","to_location_id","expected_version"],"title":"TransferEdit","type":"object"},"TransferLine":{"additionalProperties":false,"properties":{"asset_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Asset Id"},"key":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","type":"string"},{"type":"null"}],"description":"An item by its number (kind asset)","title":"Key"},"kind":{"enum":["asset","pool"],"title":"Kind","type":"string"},"pool_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Pool Id"},"quantity":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Quantity"}},"required":["kind"],"title":"TransferLine","type":"object"},"TransferSave":{"additionalProperties":false,"properties":{"expected_arrival_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expected Arrival At"},"from_location_id":{"format":"uuid","title":"From Location Id","type":"string"},"lines":{"items":{"$ref":"#/components/schemas/TransferLine"},"maxItems":400,"title":"Lines","type":"array"},"note":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}],"title":"Note"},"to_location_id":{"format":"uuid","title":"To Location Id","type":"string"}},"required":["from_location_id","to_location_id"],"title":"TransferSave","type":"object"},"TransferSaved":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"reference":{"title":"Reference","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"title":"Version","type":"integer"}},"required":["id","reference","version"],"title":"TransferSaved","type":"object"},"Transition":{"additionalProperties":false,"properties":{"binding":{"anyOf":[{"$ref":"#/components/schemas/BindingResult"},{"type":"null"}]},"collection":{"anyOf":[{"$ref":"#/components/schemas/Collection"},{"type":"null"}]},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"format":"uuid","title":"Idempotency Key","type":"string"},"parts":{"anyOf":[{"enum":["keep","return"],"type":"string"},{"type":"null"}],"title":"Parts"},"reason":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Reason"},"state":{"enum":["booked","checked_in","in_progress","waiting_for_customer","waiting_parts","ready","collected","cancelled"],"title":"State","type":"string"}},"required":["idempotency_key","expected_version","state"],"title":"Transition","type":"object"},"TripGearSave":{"additionalProperties":false,"properties":{"expected_version":{"minimum":0.0,"title":"Expected Version","type":"integer"},"riders":{"items":{"$ref":"#/components/schemas/RiderGear"},"maxItems":40,"title":"Riders","type":"array"}},"required":["expected_version","riders"],"title":"TripGearSave","type":"object"},"UsesItemType":{"additionalProperties":true,"properties":{"id":{"format":"uuid","title":"Id","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output"}},"required":["id","label"],"title":"UsesItemType","type":"object"},"UsesPart":{"additionalProperties":true,"properties":{"choice_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Choice Group"},"key":{"title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output"},"quantity":{"title":"Quantity","type":"integer"}},"required":["key","label","quantity"],"title":"UsesPart","type":"object"},"UsualLengthDoc":{"additionalProperties":true,"properties":{"charge":{"enum":["per_day","in_all"],"title":"Charge","type":"string"},"from_days":{"title":"From Days","type":"integer"},"key":{"enum":["two_weeks","three_weeks","month","season","weekend","custom"],"title":"Key","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"to_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"To Days"}},"required":["key","from_days","to_days","charge"],"title":"UsualLengthDoc","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"VariantIn":{"additionalProperties":false,"description":"A variant over a stock row: an existing one (``stock_product_id``) or one made with the product (``new``), exactly one.","properties":{"fit":{"anyOf":[{"$ref":"#/components/schemas/FitIn"},{"type":"null"}]},"new":{"anyOf":[{"$ref":"#/components/schemas/NewVariantIn"},{"type":"null"}]},"options":{"anyOf":[{"maxProperties":10,"patternProperties":{"^[a-z][a-z0-9_]{1,39}$":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"integer"},{"type":"number"}]}},"type":"object"},{"type":"null"}],"description":"Axis key to value, for example frame_size M","title":"Options"},"stock_product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Stock Product Id"}},"title":"VariantIn","type":"object"},"VehicleCategoryList":{"additionalProperties":true,"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"title":"Items","type":"array"}},"required":["items"],"title":"VehicleCategoryList","type":"object"},"VehicleChanges":{"additionalProperties":false,"description":"Only the fields present are changed; null clears an optional one.","properties":{"bikes_carried":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Bikes Carried"},"bought_from_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Bought From Company Id"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The shop's vehicle category; the vehicle's kind follows it","title":"Category Id"},"crew_vehicle":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Crew Vehicle"},"fuel":{"anyOf":[{"enum":["petrol","diesel","electric","hybrid","lpg","none"],"type":"string"},{"type":"null"}],"title":"Fuel"},"hire_to_guests":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hire To Guests"},"kind":{"anyOf":[{"enum":["van","off_roader","car","pickup","trailer","e_scooter","boat","other"],"type":"string"},{"type":"null"}],"description":"The older way to sort a vehicle; a category sets it. Send kind or category_id","title":"Kind"},"lease_ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Lease Ends On"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"},"make":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Model"},"name":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Name"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"off_road_capable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Off Road Capable"},"ownership":{"anyOf":[{"enum":["owned","leased"],"type":"string"},{"type":"null"}],"title":"Ownership"},"plate":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"title":"Plate"},"purchase_cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Purchase Cost Minor"},"purchased_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Purchased On"},"residual_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Residual Minor"},"seats":{"anyOf":[{"maximum":60.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"service_interval_km":{"anyOf":[{"maximum":200000.0,"minimum":100.0,"type":"integer"},{"type":"null"}],"title":"Service Interval Km"},"service_interval_months":{"anyOf":[{"maximum":60.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Service Interval Months"},"useful_life_years":{"anyOf":[{"maximum":30.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Useful Life Years"},"vin":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"title":"Vin"},"year":{"anyOf":[{"maximum":2100.0,"minimum":1950.0,"type":"integer"},{"type":"null"}],"title":"Year"}},"title":"VehicleChanges","type":"object"},"VehicleCreate":{"additionalProperties":false,"properties":{"bikes_carried":{"anyOf":[{"maximum":100.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Bikes Carried"},"bought_from_company_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Bought From Company Id"},"category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The shop's vehicle category; the vehicle's kind follows it","title":"Category Id"},"crew_vehicle":{"default":false,"title":"Crew Vehicle","type":"boolean"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"fuel":{"anyOf":[{"enum":["petrol","diesel","electric","hybrid","lpg","none"],"type":"string"},{"type":"null"}],"title":"Fuel"},"hire_to_guests":{"default":false,"title":"Hire To Guests","type":"boolean"},"kind":{"anyOf":[{"enum":["van","off_roader","car","pickup","trailer","e_scooter","boat","other"],"type":"string"},{"type":"null"}],"description":"The older way to sort a vehicle; a category sets it. Send kind or category_id","title":"Kind"},"last_service_km":{"anyOf":[{"maximum":5000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Last Service Km"},"last_service_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Last Service On"},"lease_ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Lease Ends On"},"legal_entity_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Legal Entity Id"},"location_id":{"format":"uuid","title":"Location Id","type":"string"},"make":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Model"},"name":{"maxLength":120,"minLength":1,"title":"Name","type":"string"},"notes":{"anyOf":[{"maxLength":4000,"type":"string"},{"type":"null"}],"title":"Notes"},"odometer_km":{"anyOf":[{"maximum":5000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Odometer Km"},"odometer_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Odometer On"},"off_road_capable":{"default":false,"title":"Off Road Capable","type":"boolean"},"ownership":{"default":"owned","enum":["owned","leased"],"title":"Ownership","type":"string"},"plate":{"anyOf":[{"maxLength":15,"type":"string"},{"type":"null"}],"title":"Plate"},"purchase_cost_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Purchase Cost Minor"},"purchased_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Purchased On"},"residual_minor":{"anyOf":[{"maximum":100000000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Residual Minor"},"seats":{"anyOf":[{"maximum":60.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Seats"},"service_interval_km":{"anyOf":[{"maximum":200000.0,"minimum":100.0,"type":"integer"},{"type":"null"}],"title":"Service Interval Km"},"service_interval_months":{"anyOf":[{"maximum":60.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Service Interval Months"},"useful_life_years":{"anyOf":[{"maximum":30.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Useful Life Years"},"vin":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"title":"Vin"},"year":{"anyOf":[{"maximum":2100.0,"minimum":1950.0,"type":"integer"},{"type":"null"}],"title":"Year"}},"required":["name","location_id"],"title":"VehicleCreate","type":"object"},"VehicleCreated":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"key":{"title":"Key","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"required":["key"],"title":"VehicleCreated","type":"object"},"VehiclePatch":{"additionalProperties":false,"properties":{"changes":{"$ref":"#/components/schemas/VehicleChanges"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version"],"title":"VehiclePatch","type":"object"},"VehicleSaved":{"additionalProperties":true,"properties":{"id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Id"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"title":"VehicleSaved","type":"object"},"Versioned":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"}},"required":["expected_version"],"title":"Versioned","type":"object"},"VersionedCommand":{"additionalProperties":false,"properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"idempotency_key":{"description":"Idempotency key of the command","format":"uuid","title":"Idempotency Key","type":"string"}},"required":["idempotency_key","expected_version"],"title":"VersionedCommand","type":"object"},"ViewDeparture":{"description":"BC1: one departure of a tour seat line.","properties":{"date":{"description":"The local day it runs","format":"date","title":"Date","type":"string"},"ends_at":{"description":"Its end","format":"date-time","title":"Ends At","type":"string"},"meeting":{"anyOf":[{"$ref":"#/components/schemas/ViewMeeting"},{"type":"null"}],"description":"Its meeting point (the departure's, else the tour's); null when none or hidden from guests: it meets at the booking's place"},"starts_at":{"description":"Its start","format":"date-time","title":"Starts At","type":"string"}},"required":["date","starts_at","ends_at"],"title":"ViewDeparture","type":"object"},"ViewFact":{"description":"BC1: one guest visible fact of the booked product, ready to show (\"Wheels\", \"29 inch\").","properties":{"key":{"description":"The field's key in its item type","title":"Key","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output","description":"The field's label"},"text":{"$ref":"#/components/schemas/Words-Output","description":"The value in plain words"}},"required":["key","label","text"],"title":"ViewFact","type":"object"},"ViewLine":{"properties":{"bikes":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"description":"For a tour seat, the bike each rider takes: own or line:<key> for a rented bike.","title":"Bikes"},"days":{"anyOf":[{"items":{"$ref":"#/components/schemas/DaySlot"},"type":"array"},{"type":"null"}],"description":"Dates and parts of day for this line; null means the whole booking date range.","title":"Days"},"departures":{"anyOf":[{"items":{"$ref":"#/components/schemas/ViewDeparture"},"type":"array"},{"type":"null"}],"description":"BC1, a tour seat: each departure of the line in start order (date, start, end, meeting point); null on other lines","title":"Departures"},"drop_off_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Day a guest leaves gear for a service; null for other lines.","title":"Drop Off On"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client-assigned key of this booking line, if provided.","title":"Key"},"kind":{"default":"rental","description":"Booked line type: rental, extra, tour_seat, service, kit, guide_pick or tour_request.","enum":["rental","extra","tour_seat","service","kit","guide_pick","tour_request"],"title":"Kind","type":"string"},"label":{"$ref":"#/components/schemas/Words-Output","description":"Guest-visible name of the booked product or tour."},"product":{"anyOf":[{"$ref":"#/components/schemas/ViewProduct"},{"type":"null"}],"description":"BC1: the product booked, for its picture and facts; null on a service"},"quantity":{"description":"Number of units requested.","title":"Quantity","type":"integer"},"ready_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Day serviced gear is ready; null for other lines.","title":"Ready On"},"riders":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Person keys of the riders on this line.","title":"Riders"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Size on this booking line; null for items without sizes.","title":"Size"},"starts_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"A tour seat's start","title":"Starts At"},"status":{"anyOf":[{"enum":["booked","asked","offered","declined","expired","withdrawn"],"type":"string"},{"type":"null"}],"description":"Booked state or the current state of a line the guest asked for.","title":"Status"},"total_minor":{"description":"Total price in minor currency units.","title":"Total Minor","type":"integer"},"unit":{"anyOf":[{"enum":["day","place","item"],"type":"string"},{"type":"null"}],"description":"BC1: what one unit is; null with unit_minor","title":"Unit"},"unit_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"BC1: the price of one unit (one day of one rental, one place on a tour, one extra) as booked; null when the line has no single unit price (a service, an asked line)","title":"Unit Minor"},"units":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"BC1: how many units the line's total covers (rental: days times quantity; tour seat: places over all its departures; extra and kit: quantity); null with unit_minor","title":"Units"}},"required":["label","size","quantity","total_minor"],"title":"ViewLine","type":"object"},"ViewMeeting":{"description":"BC1: where a departure meets, when guests may see it.","properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its address, when shown to guests","title":"Address"},"directions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Google Maps directions to it","title":"Directions Url"},"name":{"description":"The meeting point's name","title":"Name","type":"string"}},"required":["name"],"title":"ViewMeeting","type":"object"},"ViewPayment":{"description":"BC1: one paid payment or refund of the booking, as the guest sees it.","properties":{"amount_minor":{"description":"In minor units of the booking's currency","title":"Amount Minor","type":"integer"},"deposit":{"default":false,"description":"It was the deposit","title":"Deposit","type":"boolean"},"kind":{"description":"A payment or money given back","enum":["payment","refund"],"title":"Kind","type":"string"},"method":{"description":"card: online by card or the card terminal; other: anything else","enum":["card","cash","bank_transfer","other"],"title":"Method","type":"string"},"paid_at":{"description":"When it was taken","format":"date-time","title":"Paid At","type":"string"}},"required":["kind","method","amount_minor","paid_at"],"title":"ViewPayment","type":"object"},"ViewPickup":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The meeting point's address when the shop shows it to guests; null for a pick up","title":"Address"},"directions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Google Maps directions to the place, else to the shop's address","title":"Directions Url"},"meeting":{"default":false,"description":"True when pickup is the meeting point for a tour-only booking.","title":"Meeting","type":"boolean"},"name":{"description":"Name shown to guests.","title":"Name","type":"string"},"opens":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Local \"HH:MM\" the place opens on the first day, else the shop's pick up time","title":"Opens"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null until a place can have a photo","title":"Photo Url"}},"required":["name"],"title":"ViewPickup","type":"object"},"ViewProduct":{"description":"BC1: the booked product as the confirmed page draws it.","properties":{"ebike":{"default":false,"description":"The model is an e-bike","title":"Ebike","type":"boolean"},"facts":{"description":"The guest visible facts (product_gear_facts), at most 6, in part then field order","items":{"$ref":"#/components/schemas/ViewFact"},"title":"Facts","type":"array"},"glyph":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A key of the frontend glyph catalogue (its first part's category glyph); null when none","title":"Glyph"},"id":{"description":"The product","format":"uuid","title":"Id","type":"string"},"image":{"anyOf":[{"$ref":"#/components/schemas/PublicImage"},{"type":"null"}],"description":"The product's cover photo (its studio image), else its first; null when it has none"},"model":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"'Pivot Firebird': the model the product rents; null when it names none"}},"required":["id"],"title":"ViewProduct","type":"object"},"ViewRider":{"properties":{"details":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"description":"Recorded equipment choices and measurements, if supplied.","title":"Details"},"form":{"anyOf":[{"enum":["signed","signed_by","link_sent","at_pick_up"],"type":"string"},{"type":"null"}],"description":"The rider's rental form: signed (by them), signed_by (someone of the booking signed for them), link_sent (the shop emailed the link, not signed yet), at_pick_up (they sign at the shop); null when the booking needs no form","title":"Form"},"height_cm":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Recorded rider height in centimetres, if supplied.","title":"Height Cm"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client-assigned person key for this rider, if provided.","title":"Key"},"level":{"anyOf":[{"pattern":"^[a-z][a-z0-9_]{0,39}$","type":"string"},{"type":"null"}],"description":"Recorded rider skill level, if supplied.","title":"Level"},"line":{"description":"One-based booking line this rider is assigned to.","title":"Line","type":"integer"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name shown to guests.","title":"Name"},"own_bike":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"description":"Kind and make of the bike this rider brings.","title":"Own Bike"},"signed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First name of who signed (signed_by) or signs (at_pick_up, link_sent) for this rider, when someone else","title":"Signed By"},"weight_kg":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Recorded rider weight in kilograms, if supplied.","title":"Weight Kg"}},"required":["line","name","height_cm","weight_kg","level"],"title":"ViewRider","type":"object"},"ViewShop":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Shop address shown on the booking confirmation.","title":"Address"},"cancellation_text":{"$ref":"#/components/schemas/Words-Output","description":"Shop cancellation terms shown to the guest."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest or shop email address.","title":"Email"},"name":{"description":"Name shown to guests.","title":"Name","type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Guest or shop telephone number.","title":"Phone"}},"required":["name","phone","email","address","cancellation_text"],"title":"ViewShop","type":"object"},"WaiverOverrideRecord":{"description":"A hand over that went out without every adult's waiver.","properties":{"actor_id":{"format":"uuid","title":"Actor Id","type":"string"},"at":{"format":"date-time","title":"At","type":"string"},"reason":{"title":"Reason","type":"string"},"rider_nos":{"items":{"type":"integer"},"title":"Rider Nos","type":"array"}},"required":["at","reason","rider_nos","actor_id"],"title":"WaiverOverrideRecord","type":"object"},"WaiverStatus":{"properties":{"adults_unsigned":{"description":"Adults (riders nobody else signs for) without a signed waiver","title":"Adults Unsigned","type":"integer"},"overrides":{"description":"Hand overs without every waiver, newest first: who, why, when","items":{"$ref":"#/components/schemas/WaiverOverrideRecord"},"title":"Overrides","type":"array"},"required":{"description":"Hand over needs every adult's waiver signed (one of its waivers waits for adults)","title":"Required","type":"boolean"},"riders":{"items":{"$ref":"#/components/schemas/RiderWaiver"},"title":"Riders","type":"array"},"set_up":{"description":"The booking needs at least one waiver (its lines and its place)","title":"Set Up","type":"boolean"},"tablets":{"description":"The enrolled tablets at the booking's place, by name","items":{"$ref":"#/components/schemas/WaiverTablet"},"title":"Tablets","type":"array"},"waivers":{"description":"The waivers this booking needs, in signing order","items":{"$ref":"#/components/schemas/NeededWaiver"},"title":"Waivers","type":"array"}},"required":["set_up","required","adults_unsigned","riders"],"title":"WaiverStatus","type":"object"},"WaiverTablet":{"description":"An enrolled shop tablet at the booking's place, and whether it is on now.","properties":{"device_id":{"format":"uuid","title":"Device Id","type":"string"},"name":{"title":"Name","type":"string"},"online":{"description":"The tablet read its list of names in the last 45 seconds","title":"Online","type":"boolean"},"seen_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the tablet last read its list of names; null if it never has","title":"Seen At"}},"required":["device_id","name","seen_at","online"],"title":"WaiverTablet","type":"object"},"WaiversSent":{"properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"replayed":{"title":"Replayed","type":"boolean"},"requests":{"items":{"$ref":"#/components/schemas/SentRequest"},"title":"Requests","type":"array"},"waivers":{"$ref":"#/components/schemas/WaiverStatus"}},"required":["booking_id","requests","waivers","replayed"],"title":"WaiversSent","type":"object"},"WalkInHold":{"additionalProperties":true,"description":"The hold as the walk-in screen reads it.","properties":{"booking_id":{"format":"uuid","title":"Booking Id","type":"string"},"booking_state":{"enum":["open","cancelled"],"title":"Booking State","type":"string"},"held_until":{"description":"When the things are let go if nothing stops the clock","format":"date-time","title":"Held Until","type":"string"},"minutes":{"description":"How long a walk-in hold runs (15); a pending card hold runs it again from held_until","title":"Minutes","type":"integer"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Keep only: true when the same key was sent again","title":"Replayed"},"state":{"description":"holding: the clock runs; kept: staff kept it; lapsed: it ran out and the booking was cancelled; settled: something else stopped the clock (paid, a deposit, a card hold, handed over, or the booking dropped)","enum":["holding","kept","lapsed","settled"],"title":"State","type":"string"},"version":{"title":"Version","type":"integer"}},"required":["booking_id","held_until","state","booking_state","minutes","version"],"title":"WalkInHold","type":"object"},"WalkinRow":{"additionalProperties":false,"properties":{"amount_minor":{"description":"Minor units of the shop's currency","maximum":100000000.0,"minimum":0.0,"title":"Amount Minor","type":"integer"},"extra_guest_max":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Extra Guest Max"},"extra_guest_minor":{"anyOf":[{"description":"Minor units of the shop's currency","maximum":100000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"description":"A group price: each guest past max_group","title":"Extra Guest Minor"},"max_group":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"A group price: up to N","title":"Max Group"},"option_key":{"description":"default, then opt_2 to opt_20","pattern":"^(default|opt_([2-9]|1[0-9]|20))$","title":"Option Key","type":"string"},"per":{"default":"guest","enum":["guest","group"],"title":"Per","type":"string"},"season_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Season Id"},"unit_category_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A guest type; null: every guest type (one price for all guests, as prices set before guest types are)","title":"Unit Category Id"},"valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Valid Until"},"weekdays":{"anyOf":[{"items":{"maximum":7.0,"minimum":1.0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},{"type":"null"}],"description":"ISO days, 1 Monday to 7 Sunday; null: every day","title":"Weekdays"}},"required":["option_key","amount_minor"],"title":"WalkinRow","type":"object"},"Warranty":{"additionalProperties":true,"properties":{"days_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Left"},"ends_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Ends On"},"id":{"format":"uuid","title":"Id","type":"string"},"removed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Removed"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replayed"},"state":{"anyOf":[{"enum":["running","ending","ended"],"type":"string"},{"type":"null"}],"title":"State"},"version":{"title":"Version","type":"integer"},"what":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What"}},"required":["id","version"],"title":"Warranty","type":"object"},"WarrantyAdd":{"additionalProperties":false,"properties":{"from_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"The purchase date, or today, when absent","title":"From Date"},"item_part_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The part of this item it covers; absent for the whole item","title":"Item Part Id"},"maker":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Maker"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Until"},"what":{"maxLength":120,"minLength":1,"title":"What","type":"string"},"years":{"anyOf":[{"exclusiveMinimum":0.0,"maximum":50.0,"type":"number"},{"type":"null"}],"title":"Years"}},"required":["what"],"title":"WarrantyAdd","type":"object"},"WarrantyChange":{"additionalProperties":false,"description":"Only the fields sent change. Send years or until to switch how it ends; remove takes it off the item.","properties":{"expected_version":{"minimum":1.0,"title":"Expected Version","type":"integer"},"from_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"From Date"},"item_part_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Part Id"},"maker":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"Maker"},"note":{"anyOf":[{"maxLength":500,"minLength":1,"type":"string"},{"type":"null"}],"title":"Note"},"remove":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Remove"},"until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Until"},"what":{"anyOf":[{"maxLength":120,"minLength":1,"type":"string"},{"type":"null"}],"title":"What"},"years":{"anyOf":[{"exclusiveMinimum":0.0,"maximum":50.0,"type":"number"},{"type":"null"}],"title":"Years"}},"required":["expected_version"],"title":"WarrantyChange","type":"object"},"WeekStart":{"additionalProperties":false,"properties":{"expected_version":{"description":"0 when nothing is stored yet; otherwise the version you read","minimum":0.0,"title":"Expected Version","type":"integer"},"from":{"description":"last_week, usual_hours or empty","enum":["last_week","usual_hours","empty"],"title":"From","type":"string"},"location_id":{"description":"The place whose week this is","format":"uuid","title":"Location Id","type":"string"}},"required":["location_id","from","expected_version"],"title":"WeekStart","type":"object"},"WeekStarted":{"additionalProperties":true,"properties":{"added":{"description":"Lines in the new draft","title":"Added","type":"integer"},"draft_revision_id":{"format":"uuid","title":"Draft Revision Id","type":"string"},"from":{"enum":["last_week","usual_hours","empty"],"title":"From","type":"string"},"id":{"description":"The week's rota","format":"uuid","title":"Id","type":"string"},"issues":{"items":{"additionalProperties":true,"type":"object"},"title":"Issues","type":"array"},"left_out":{"items":{"$ref":"#/components/schemas/LeftOut"},"title":"Left Out","type":"array"},"replayed":{"default":false,"title":"Replayed","type":"boolean"},"rota_id":{"format":"uuid","title":"Rota Id","type":"string"},"version":{"title":"Version","type":"integer"},"week_start":{"format":"date","title":"Week Start","type":"string"}},"required":["id","rota_id","version","draft_revision_id","week_start","from","added","left_out","issues"],"title":"WeekStarted","type":"object"},"WhereGroup":{"additionalProperties":false,"properties":{"end_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"End Point Id"},"ends_at_start":{"title":"Ends At Start","type":"boolean"},"meeting_point_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Meeting Point Id"},"pickup_mode":{"enum":["meet","pickup","both"],"title":"Pickup Mode","type":"string"},"pickups":{"items":{"$ref":"#/components/schemas/PickupIn"},"maxItems":30,"title":"Pickups","type":"array"},"plan":{"items":{"$ref":"#/components/schemas/PlanStopIn"},"maxItems":30,"title":"Plan","type":"array"}},"title":"WhereGroup","type":"object"},"WhoGroup":{"additionalProperties":false,"properties":{"accessibility":{"maxProperties":20,"patternProperties":{"^[a-z_]{1,40}$":{"type":"boolean"}},"title":"Accessibility","type":"object"},"adult_needed_under":{"anyOf":[{"maximum":21.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Adult Needed Under"},"age_max":{"anyOf":[{"maximum":120.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Age Max"},"age_min":{"anyOf":[{"maximum":99.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Age Min"},"difficulty":{"anyOf":[{"enum":["easy","moderate","hard"],"type":"string"},{"type":"null"}],"title":"Difficulty"},"guide_languages":{"items":{"pattern":"^[a-z]{2}$","type":"string"},"maxItems":12,"title":"Guide Languages","type":"array"},"height_max_cm":{"anyOf":[{"maximum":250.0,"minimum":50.0,"type":"integer"},{"type":"null"}],"title":"Height Max Cm"},"height_min_cm":{"anyOf":[{"maximum":250.0,"minimum":50.0,"type":"integer"},{"type":"null"}],"title":"Height Min Cm"},"min_level":{"anyOf":[{"enum":["new","some","confident","expert"],"type":"string"},{"type":"null"}],"title":"Min Level"},"weight_max_kg":{"anyOf":[{"maximum":300.0,"minimum":10.0,"type":"integer"},{"type":"null"}],"title":"Weight Max Kg"}},"title":"WhoGroup","type":"object"},"Winter":{"additionalProperties":true,"description":"The next busy season: on the books today against the same day a year back, and Expected (A-PACE's helpers).","properties":{"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"compare_on":{"format":"date","title":"Compare On","type":"string"},"compare_on_books_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Null with no booking at all for those days a year back","title":"Compare On Books Minor"},"expected_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Minor"},"from":{"format":"date","title":"From","type":"string"},"high_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"High Minor"},"low_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Low Minor"},"months":{"items":{"$ref":"#/components/schemas/WinterMonth"},"title":"Months","type":"array"},"name":{"enum":["winter","summer","next_months"],"title":"Name","type":"string"},"on_books_minor":{"title":"On Books Minor","type":"integer"},"other_currency":{"default":false,"title":"Other Currency","type":"boolean"},"to":{"format":"date","title":"To","type":"string"}},"required":["from","to","name","on_books_minor","compare_on","months"],"title":"Winter","type":"object"},"WinterMonth":{"additionalProperties":true,"properties":{"compare_on_books_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Compare On Books Minor"},"month":{"format":"date","title":"Month","type":"string"},"on_books_minor":{"title":"On Books Minor","type":"integer"}},"required":["month","on_books_minor"],"title":"WinterMonth","type":"object"},"Words-Output":{"description":"Translated words in English, Italian, German and French, with fallback to another available language.","properties":{"de":{"title":"De","type":"string"},"en":{"title":"En","type":"string"},"fr":{"title":"Fr","type":"string"},"it":{"title":"It","type":"string"}},"required":["en","it","de","fr"],"title":"Words","type":"object"},"WordsStart":{"additionalProperties":false,"description":"STC-70: which languages and fields to draft; none given: the store's languages and every field.","properties":{"fields":{"anyOf":[{"items":{"enum":["title","subtitle","description","key_facts"],"type":"string"},"maxItems":4,"minItems":1,"type":"array"},{"type":"null"}],"title":"Fields"},"languages":{"anyOf":[{"items":{"enum":["en","it","de","fr"],"type":"string"},"maxItems":4,"minItems":1,"type":"array"},{"type":"null"}],"title":"Languages"}},"title":"WordsStart","type":"object"},"WorkDoc":{"additionalProperties":true,"properties":{"extra_requests":{"default":[],"description":"Questions to the customer, newest first, with the line_ids each one added (net_minor for money roles)","items":{"additionalProperties":true,"type":"object"},"title":"Extra Requests","type":"array"},"lines":{"items":{"$ref":"#/components/schemas/WorkLine"},"title":"Lines","type":"array"},"open_part_requests":{"title":"Open Part Requests","type":"integer"},"other_to_price":{"default":0,"title":"Other To Price","type":"integer"},"people":{"default":[],"items":{"$ref":"#/components/schemas/Ref"},"title":"People","type":"array"},"planned_parts":{"title":"Planned Parts","type":"integer"},"surcharge_lines":{"items":{"$ref":"#/components/schemas/WorkLine"},"title":"Surcharge Lines","type":"array"},"time":{"additionalProperties":{"type":"integer"},"description":"standard_minutes (usual), extra_minutes (labour lines), taken_minutes (what it really took)","title":"Time","type":"object"},"totals":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Totals"},"warnings":{"items":{"additionalProperties":true,"type":"object"},"title":"Warnings","type":"array"}},"required":["lines","surcharge_lines","time","planned_parts","open_part_requests","warnings"],"title":"WorkDoc","type":"object"},"WorkLine":{"additionalProperties":true,"properties":{"added_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the line was added","title":"Added At"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The service's price list key or the part's product code","title":"Code"},"customer_supplied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Supplied"},"description":{"anyOf":[{"$ref":"#/components/schemas/Words-Output"},{"type":"null"}],"description":"Absent for an API key without the customer contact details tick"},"kind":{"enum":["service","labour","part","other","surcharge"],"title":"Kind","type":"string"},"line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Line Id"},"line_ref":{"title":"Line Ref","type":"string"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes"},"minutes_taken":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The time it really took","title":"Minutes Taken"},"net_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Minor"},"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"manual, service_usual, scan, quick, return or extra (agreed with the customer after an extra-found question)","title":"Origin"},"parent_line_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Parent Line Id"},"person_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Who did it; the name is in work.people","title":"Person Id"},"price_pending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Other work the desk has not priced yet","title":"Price Pending"},"product_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"},"quantity":{"title":"Quantity","type":"string"},"service_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Service Id"},"shelf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"On a part line, the shelf it sits on at its place","title":"Shelf"},"standard_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The usual time, from the price list","title":"Standard Minutes"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"stock_place":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"On a part line, the place it is set aside at or was taken from: {id, name}","title":"Stock Place"},"unit":{"title":"Unit","type":"string"},"unit_net_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Net Minor"},"vat_category":{"anyOf":[{"enum":["standard","reduced","super_reduced","zero","exempt"],"type":"string"},{"type":"null"}],"title":"Vat Category"},"vat_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vat Minor"},"vat_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vat Rate"}},"required":["line_ref","kind","quantity","unit"],"title":"WorkLine","type":"object"},"WorkingNow":{"additionalProperties":true,"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"person_id":{"title":"Person Id","type":"string"},"since":{"format":"date-time","title":"Since","type":"string"}},"required":["person_id","since"],"title":"WorkingNow","type":"object"},"WorkshopBlocked":{"additionalProperties":true,"properties":{"action":{"title":"Action","type":"string"},"blockers":{"items":{"$ref":"#/components/schemas/WorkshopBlocker"},"title":"Blockers","type":"array"},"blockers_total":{"title":"Blockers Total","type":"integer"},"error":{"const":"blocked","title":"Error","type":"string"}},"required":["error","action","blockers","blockers_total"],"title":"WorkshopBlocked","type":"object"},"WorkshopBlocker":{"additionalProperties":true,"properties":{"entity_type":{"title":"Entity Type","type":"string"},"id":{"title":"Id","type":"string"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The blocking record's key: the open job's W number when another workshop job holds it","title":"Key"},"reason":{"description":"occupied, out_of_service (the item is taken out of service), or the step's own reason","title":"Reason","type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"required":["entity_type","id","reason"],"title":"WorkshopBlocker","type":"object"},"WorkshopDay":{"additionalProperties":true,"properties":{"counts":{"additionalProperties":{"type":"integer"},"description":"in_workshop, waiting_parts, waiting_for_customer, mechanics_in (mechanics working now), mechanics_total (mechanics on the rota), late, booked_today, not_scheduled","title":"Counts","type":"object"},"date":{"format":"date","title":"Date","type":"string"},"location":{"additionalProperties":true,"title":"Location","type":"object"},"now":{"format":"date-time","title":"Now","type":"string"},"tracks":{"items":{"$ref":"#/components/schemas/DayTrack"},"title":"Tracks","type":"array"},"unassigned":{"description":"Nobody yet: open jobs with no mechanic, promised for the day or earlier or not at all","items":{"$ref":"#/components/schemas/DayJob"},"title":"Unassigned","type":"array"}},"required":["date","location","now","tracks","unassigned","counts"],"title":"WorkshopDay","type":"object"},"Written":{"additionalProperties":true,"description":"A tour write's answer: the record it made or changed, with the version to send next.","properties":{"id":{"format":"uuid","title":"Id","type":"string"},"replayed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True when the same Idempotency-Key was already applied","title":"Replayed"},"version":{"title":"Version","type":"integer"}},"required":["id","version"],"title":"Written","type":"object"}},"securitySchemes":{"ApiKey":{"description":"Personal og_live_ API key.","scheme":"bearer","type":"http"},"BookingCapability":{"description":"Authorization: Booking <token> for the current guest booking.","in":"header","name":"Authorization","type":"apiKey"},"BookingView":{"description":"The view token from the guest's confirmation link.","in":"header","name":"X-Booking-View","type":"apiKey"},"SiteKey":{"description":"A shop site key sent by the shop's server. The published host also works without a key.","in":"header","name":"X-Outdoor-Grid-Site-Key","type":"apiKey"}}},"info":{"title":"Outdoor Grid API","version":"0.23.18","x-og-contract-revision":"9cbbea987a111ae2d43570d9dcd10125292313b5398659d57216be5e5a553ab4"},"openapi":"3.1.0","paths":{"/v1/public/atlas/airports":{"get":{"description":"Where do you fly from: the exact IATA code first, then the exact metro code (NYC), then the city, then the name; large airports before medium and small ones.","operationId":"search_atlas_airports","parameters":[{"description":"2 to 60 characters","in":"query","name":"q","required":true,"schema":{"description":"2 to 60 characters","maxLength":60,"minLength":2,"pattern":"^[^\\x00-\\x1f\\x7f]*$","title":"Q","type":"string"}},{"description":"Default 8","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":12,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Default 8","title":"Limit"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasAirports"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Airports whose code, metro code, city or name holds the text (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/best/{activity}/{month}":{"get":{"description":"At its best first, then good, each ranked by the fit for that month. The activity may be a style (/best/enduro/june is mountain biking, style enduro); doing, up and ebike narrow it by its facets, invalid values dropped.","operationId":"read_atlas_best","parameters":[{"description":"An activity key or one of its styles","in":"path","name":"activity","required":true,"schema":{"description":"An activity key or one of its styles","pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"}},{"description":"january to december","in":"path","name":"month","required":true,"schema":{"description":"january to december","title":"Month","type":"string"}},{"description":"Default 24","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":40,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Default 24","title":"Limit"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}},{"description":"Styles of the activity, comma separated (any of)","in":"query","name":"doing","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Styles of the activity, comma separated (any of)","title":"Doing"}},{"description":"Ways up: lift, shuttle, pedal, comma separated (any of)","in":"query","name":"up","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Ways up: lift, shuttle, pedal, comma separated (any of)","title":"Up"}},{"description":"E-bike rules: allowed, restricted, comma separated (any of; the old welcome reads as allowed)","in":"query","name":"ebike","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"E-bike rules: allowed, restricted, comma separated (any of; the old welcome reads as allowed)","title":"Ebike"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasBest"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"The best places for an activity in a month (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/bikes-free":{"get":{"description":"One chip per place asked (up to 24, each once): the shops with a bike free for the party, the bikes free and the best offer, from the same rules as the place page.","operationId":"list_atlas_bikes_free","parameters":[{"description":"Place address names, comma separated, 1 to 24, each once","in":"query","name":"places","required":true,"schema":{"description":"Place address names, comma separated, 1 to 24, each once","title":"Places","type":"string"}},{"description":"The activity key, such as mtb","in":"query","name":"activity","required":true,"schema":{"description":"The activity key, such as mtb","pattern":"^[a-z0-9](?:[a-z0-9_-]{0,38}[a-z0-9])?$","title":"Activity","type":"string"}},{"description":"The first day","in":"query","name":"first","required":true,"schema":{"description":"The first day","format":"date","title":"First","type":"string"}},{"description":"The last day","in":"query","name":"last","required":true,"schema":{"description":"The last day","format":"date","title":"Last","type":"string"}},{"description":"How many riders, 1 to 20","in":"query","name":"riders","required":false,"schema":{"default":1,"description":"How many riders, 1 to 20","maximum":20,"minimum":1,"title":"Riders","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasBikesFreeMany"}}},"description":"Successful Response"},"404":{"description":"place_not_found: the place or activity is not in the atlas"},"422":{"description":"dates_invalid, or invalid_request (context.field names the field)"},"429":{"description":"Too many requests"},"503":{"description":"The atlas is not available right now"}},"security":[],"summary":"How many shops and bikes are free at several riding places on your dates (no sign-in)","tags":["atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/blueprints/{slug}":{"get":{"description":"The plan's days, months and bike strategy, and its live legs in order, each card with the fit.","operationId":"read_atlas_blueprint","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},{"description":"The month the fit and the card's month are for","in":"query","name":"month","required":false,"schema":{"anyOf":[{"maximum":12,"minimum":1,"type":"integer"},{"type":"null"}],"description":"The month the fit and the card's month are for","title":"Month"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasBlueprint"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A trip plan across places, with each leg's card (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/claims":{"post":{"description":"Someone who runs a shop the atlas lists from OpenStreetMap asks Outdoor Grid to show it. Outdoor Grid emails them what happens next and checks the claim by hand. The answer is the same whether or not a claim was stored.","operationId":"create_atlas_claim","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasClaimRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasClaimRequested"}}},"description":"Successful Response"},"404":{"description":"place_not_found, or listing_not_found: the business is not one of the place's OpenStreetMap listings"},"409":{"description":"listing_claimed: this shop is already on Outdoor Grid"},"422":{"description":"invalid_request: context.field names the field to put right"},"429":{"description":"Too many requests"},"503":{"description":"The atlas is not available right now"}},"security":[],"summary":"Ask to show a shop listed on a riding place on the atlas (no sign-in). Always 202 alike","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/claims/confirm":{"post":{"description":"The person who asked to show a listed shop pressed Confirm my email. Outdoor Grid then checks by hand that they run the shop. The link works for 7 days.","operationId":"confirm_atlas_claim","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasClaimConfirm"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasClaimConfirmed"}}},"description":"Successful Response"},"404":{"description":"claim_link_expired: no claim has this link, or it is older than 7 days"},"409":{"description":"listing_claimed: this shop is already on Outdoor Grid; claim_taken: someone else already asked for it"},"422":{"description":"invalid_request: the token is not 64 lower case hex characters"},"429":{"description":"Too many requests"},"503":{"description":"The atlas is not available right now"}},"security":[],"summary":"Confirm the email of a claim with the link's token (no sign-in); pressing again answers the same, replayed true","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/compare":{"get":{"description":"The same facts and the fit for each place, in the order asked, with an editor's line when there is one.","operationId":"compare_atlas_places","parameters":[{"description":"2 or 3 place slugs, comma separated","in":"query","name":"places","required":true,"schema":{"description":"2 or 3 place slugs, comma separated","maxLength":200,"title":"Places","type":"string"}},{"description":"Default: the first activity live at every place","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"pattern":"^[a-z][a-z0-9-]{1,39}$","type":"string"},{"type":"null"}],"description":"Default: the first activity live at every place","title":"Activity"}},{"description":"With last: the trip's dates, at most 28 days","in":"query","name":"first","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"With last: the trip's dates, at most 28 days","title":"First"}},{"in":"query","name":"last","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Last"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}},{"description":"The crew's size: each place's where_to_stay.crew is the stay for that many, built from the rooms held when their size is not","in":"query","name":"riders","required":false,"schema":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"description":"The crew's size: each place's where_to_stay.crew is the stay for that many, built from the rooms held when their size is not","title":"Riders"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCompare"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Two or three places side by side (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/counts":{"get":{"description":"Places in all, per activity and per region; with doing, only places with that activity. An invalid doing is dropped.","operationId":"count_atlas_places","parameters":[{"description":"An activity key: only places with it; an invalid one is dropped","in":"query","name":"doing","required":false,"schema":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"description":"An activity key: only places with it; an invalid one is dropped","title":"Doing"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCounts"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"How many places the riding atlas holds (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/data":{"get":{"description":"Every active data source with its licence and attribution, OpenStreetMap first, and the downloads ready.","operationId":"read_atlas_data","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasCredits"}}},"description":"Successful Response"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login or file storage is not configured"}},"security":[],"summary":"The riding atlas sources, licences and downloads (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/data/{key}/download":{"get":{"description":"The OpenStreetMap layer as one gzipped GeoJSON file under the ODbL, through a link valid for five minutes.","operationId":"download_atlas_data","parameters":[{"in":"path","name":"key","required":true,"schema":{"pattern":"^osm_odbl$","title":"Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasDownload"}}},"description":"Successful Response"},"404":{"description":"export_not_ready: no export is saved yet"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login or file storage is not configured"}},"security":[],"summary":"A signed link to the ODbL download (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/events":{"post":{"description":"Counts what riders looked at, with no personal data. A place that is not live is ignored. Past 60 a minute 429.","operationId":"record_atlas_event","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasEvent"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"invalid_request, or a body that does not fit"},"429":{"description":"Too many requests"},"503":{"description":"Online booking is not available right now"}},"security":[],"summary":"Count a place view or a shops view on the riding atlas (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/feed":{"get":{"description":"Live places per activity with their season, trail metrics, costs, sources, photos and licences, each with its canonical address. Facts CC BY 4.0, trail metrics ODbL 1.0.","operationId":"read_atlas_feed","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasFeed"}}},"description":"Successful Response"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"The riding atlas public data feed, version 1 (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/feed.csv":{"get":{"description":"The same items as the JSON feed, one row per place and activity; lists inside a cell joined by ';'.","operationId":"read_atlas_feed_csv","responses":{"200":{"content":{"text/csv":{}},"description":"One row per place and activity"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"The riding atlas public data feed as CSV (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/find":{"get":{"description":"One indexed read: names in every locale, accents and case folded, prefix and typo tolerant. Exact and starting names first, then countries, regions, places by fame; a country matched brings its regions and places. Nothing by name: the region and places nearest to an airport city the text names.","operationId":"find_atlas_where","parameters":[{"description":"2 to 60 characters","in":"query","name":"q","required":true,"schema":{"description":"2 to 60 characters","maxLength":60,"minLength":2,"pattern":"^[^\\x00-\\x1f\\x7f]*$","title":"Q","type":"string"}},{"description":"Default 8","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":12,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Default 8","title":"Limit"}},{"description":"An activity key: only places with it; an invalid one is dropped","in":"query","name":"doing","required":false,"schema":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"description":"An activity key: only places with it; an invalid one is dropped","title":"Doing"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasFind"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Countries, regions and places for the Where box (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/globe":{"get":{"description":"AT-02's where=anywhere&shape=map items for the month and the locale, in its order, cut to what the globe and its list draw. Made once per version; with v equal to the answer's version it is cached a year (immutable), else 60 s. ETag names the version, month and locale.","operationId":"read_atlas_globe","parameters":[{"description":"YYYY-MM; anything else is no month","in":"query","name":"when","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM; anything else is no month","title":"When"}},{"description":"en, it, de, fr, pt or es; anything else is en","in":"query","name":"locale","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"en, it, de, fr, pt or es; anything else is en","title":"Locale"}},{"description":"The version AT-33 answered: the answer is then cached a year","in":"query","name":"v","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The version AT-33 answered: the answer is then cached a year","title":"V"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasGlobe"}}},"description":"Successful Response"},"304":{"description":"Not modified: If-None-Match names this answer's ETag"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Every place on the globe with no filter (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/globe/version":{"get":{"description":"Changes whenever a place on the globe changes (or the drafts switch flips); the globe's address names it so browsers and the CDN keep each version's answer.","operationId":"read_atlas_globe_version","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasGlobeVersion"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"The no filter globe's version (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/handoffs":{"post":{"description":"Opens the shop's own booking page with the dates, riders, sizes and the bike or tour picked. The link carries no personal data. For bikes the offer is checked again first: with `seen`, bikes or a total that changed since are 409 offer_changed and nothing is made. Unknown places and shops not listed there are 404; dates or a pick the shop cannot take are 422; past 20 a minute, or with too many riders booking the shop this hour, 429.","operationId":"create_atlas_handoff","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffMade"}}},"description":"Successful Response"},"404":{"description":"place_not_found or shop_not_listed"},"409":{"description":"offer_changed: the bikes or the total are no longer what was seen (context.total, context.seated)"},"422":{"description":"dates_invalid, product_not_offered, invalid_request, or a body that does not fit (sizes need one entry per rider)"},"429":{"description":"rate_limited (this client), or shop_busy: too many riders booking this shop this hour"},"503":{"description":"Online booking is not available right now"}},"security":[],"summary":"Book with a shop from the riding atlas: its own booking page, filled in (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/home":{"get":{"description":"At its best this month, short hops from the home airports and summer down south, each ranked by the fit.","operationId":"read_atlas_home","parameters":[{"description":"The reader's month, 1 to 12 (the page sends its own, never the server's)","in":"query","name":"month","required":true,"schema":{"description":"The reader's month, 1 to 12 (the page sends its own, never the server's)","maximum":12,"minimum":1,"title":"Month","type":"integer"}},{"description":"Default: the first activity type","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"pattern":"^[a-z][a-z0-9-]{1,39}$","type":"string"},{"type":"null"}],"description":"Default: the first activity type","title":"Activity"}},{"description":"Home airports, IATA codes comma separated, at most 5","in":"query","name":"home","required":false,"schema":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"description":"Home airports, IATA codes comma separated, at most 5","title":"Home"}},{"description":"The reader's year, for the days a lift runs in the month","in":"query","name":"year","required":false,"schema":{"anyOf":[{"maximum":2100,"minimum":2000,"type":"integer"},{"type":"null"}],"description":"The reader's year, for the days a lift runs in the month","title":"Year"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasHome"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"The riding atlas home lists (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/names":{"get":{"description":"Typed where on the search: countries and regions first among equals, names starting with the text first.","operationId":"search_atlas_names","parameters":[{"description":"2 to 60 characters","in":"query","name":"q","required":true,"schema":{"description":"2 to 60 characters","maxLength":60,"minLength":2,"pattern":"^[^\\x00-\\x1f\\x7f]*$","title":"Q","type":"string"}},{"description":"Default 8","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":12,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Default 8","title":"Limit"}},{"description":"An activity key or a style: only places with it live, regions counting only those; an invalid one is dropped","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"description":"An activity key or a style: only places with it live, regions counting only those; an invalid one is dropped","title":"Activity"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasNames"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Places, regions and countries whose name holds the text (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places":{"get":{"description":"The search of /ride, ranked by the fit. Unknown keys and invalid values are dropped, never an error.","operationId":"search_atlas_places","parameters":[{"description":"A region path, a country, a place slug or anywhere","in":"query","name":"where","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A region path, a country, a place slug or anywhere","title":"Where"}},{"description":"YYYY-MM, YYYY-MM-DD..YYYY-MM-DD or flexible:<n>w","in":"query","name":"when","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM, YYYY-MM-DD..YYYY-MM-DD or flexible:<n>w","title":"When"}},{"description":"With flexible: months 1 to 12, comma separated","in":"query","name":"months","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With flexible: months 1 to 12, comma separated","title":"Months"}},{"description":"An activity key, then styles of that activity, comma separated (mountain-biking,enduro); a style alone means its activity (bike-park is mountain biking, style bike park)","in":"query","name":"doing","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"An activity key, then styles of that activity, comma separated (mountain-biking,enduro); a style alone means its activity (bike-park is mountain biking, style bike park)","title":"Doing"}},{"description":"A rider count, or levels b2,r2,k3","in":"query","name":"who","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A rider count, or levels b2,r2,k3","title":"Who"}},{"description":"With where=near: the home airports, IATA codes comma separated, at most 5","in":"query","name":"from","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With where=near: the home airports, IATA codes comma separated, at most 5","title":"From"}},{"description":"fit (default: the month's judgement, then the fit, then fame), closest, cheapest, next_window, name (A to Z)","in":"query","name":"sort","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"fit (default: the month's judgement, then the fit, then fame), closest, cheapest, next_window, name (A to Z)","title":"Sort"}},{"description":"1 to 200, default 120; with shape=map 1 to 2000, default 2000","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"1 to 200, default 120; with shape=map 1 to 2000, default 2000","title":"Limit"}},{"description":"en, it, de, fr, pt or es; anything else is en","in":"query","name":"locale","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"en, it, de, fr, pt or es; anything else is en","title":"Locale"}},{"description":"map: every place the search finds, not its most famous 120, each card without what only a list or a place page draws (photos, subscores, facets but the styles, the fit's breakdown); what the globe reads","in":"query","name":"shape","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"map: every place the search finds, not its most famous 120, each card without what only a list or a place page draws (photos, subscores, facets but the styles, the fit's breakdown); what the globe reads","title":"Shape"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasSearch"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Places to ride for a search (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places/{slug}":{"get":{"description":"The page /ride/<place> redirects from: the activity is the place's first live one.","operationId":"read_atlas_place_default","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},{"description":"The month the fit and the card's month are for","in":"query","name":"month","required":false,"schema":{"anyOf":[{"maximum":12,"minimum":1,"type":"integer"},{"type":"null"}],"description":"The month the fit and the card's month are for","title":"Month"}},{"in":"query","name":"year","required":false,"schema":{"anyOf":[{"maximum":2100,"minimum":2000,"type":"integer"},{"type":"null"}],"title":"Year"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}},{"description":"AT-02's doing, for the fit only: the first of enduro, trail, bike-park, downhill, cross-country or xc sets its preset (else Enduro fit); the old ebike style makes the bike an e-bike","in":"query","name":"doing","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's doing, for the fit only: the first of enduro, trail, bike-park, downhill, cross-country or xc sets its preset (else Enduro fit); the old ebike style makes the bike an e-bike","title":"Doing"}},{"description":"AT-02's up, a search filter: it never changes the fit (lift laps follow the style)","in":"query","name":"up","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's up, a search filter: it never changes the fit (lift laps follow the style)","title":"Up"}},{"description":"AT-02's lifts_open, a search filter: it never changes the fit","in":"query","name":"lifts_open","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's lifts_open, a search filter: it never changes the fit","title":"Lifts Open"}},{"description":"AT-02's ebike, for the fit only: allowed (or the old welcome) makes the bike an e-bike","in":"query","name":"ebike","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's ebike, for the fit only: allowed (or the old welcome) makes the bike an e-bike","title":"Ebike"}},{"description":"AT-02's who (levels b2,r2,k3), for the fit's crew line only: the least experienced rider's km; it never changes the score","in":"query","name":"who","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's who (levels b2,r2,k3), for the fit's crew line only: the least experienced rider's km; it never changes the score","title":"Who"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasPlace"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A place for its first live activity (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places/{slug}/{activity}":{"get":{"description":"Place, activity, months, season windows, facts with source and checked date, and the fit breakdown.","operationId":"read_atlas_place","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},{"in":"path","name":"activity","required":true,"schema":{"pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"}},{"description":"The month the fit and the card's month are for","in":"query","name":"month","required":false,"schema":{"anyOf":[{"maximum":12,"minimum":1,"type":"integer"},{"type":"null"}],"description":"The month the fit and the card's month are for","title":"Month"}},{"in":"query","name":"year","required":false,"schema":{"anyOf":[{"maximum":2100,"minimum":2000,"type":"integer"},{"type":"null"}],"title":"Year"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}},{"description":"AT-02's doing, for the fit only: the first of enduro, trail, bike-park, downhill, cross-country or xc sets its preset (else Enduro fit); the old ebike style makes the bike an e-bike","in":"query","name":"doing","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's doing, for the fit only: the first of enduro, trail, bike-park, downhill, cross-country or xc sets its preset (else Enduro fit); the old ebike style makes the bike an e-bike","title":"Doing"}},{"description":"AT-02's up, a search filter: it never changes the fit (lift laps follow the style)","in":"query","name":"up","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's up, a search filter: it never changes the fit (lift laps follow the style)","title":"Up"}},{"description":"AT-02's lifts_open, a search filter: it never changes the fit","in":"query","name":"lifts_open","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's lifts_open, a search filter: it never changes the fit","title":"Lifts Open"}},{"description":"AT-02's ebike, for the fit only: allowed (or the old welcome) makes the bike an e-bike","in":"query","name":"ebike","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's ebike, for the fit only: allowed (or the old welcome) makes the bike an e-bike","title":"Ebike"}},{"description":"AT-02's who (levels b2,r2,k3), for the fit's crew line only: the least experienced rider's km; it never changes the score","in":"query","name":"who","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"AT-02's who (levels b2,r2,k3), for the fit's crew line only: the least experienced rider's km; it never changes the score","title":"Who"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasPlace"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A place for one activity (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places/{slug}/{activity}/bikes-free":{"get":{"description":"The Outdoor Grid shops listed on a place, nearest first, with the bikes free for every day of the range and the riders' sizes or heights, and their tours in the range. Counts and prices only; a height is used for this read only.","operationId":"read_atlas_bikes_free","parameters":[{"description":"The place's address name","in":"path","name":"slug","required":true,"schema":{"description":"The place's address name","pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$","title":"Slug","type":"string"}},{"description":"The activity key, such as mtb","in":"path","name":"activity","required":true,"schema":{"description":"The activity key, such as mtb","pattern":"^[a-z0-9](?:[a-z0-9_-]{0,38}[a-z0-9])?$","title":"Activity","type":"string"}},{"description":"The first day, the place's local date","in":"query","name":"first","required":true,"schema":{"description":"The first day, the place's local date","format":"date","title":"First","type":"string"}},{"description":"The last day, at most 28 days after first","in":"query","name":"last","required":true,"schema":{"description":"The last day, at most 28 days after first","format":"date","title":"Last","type":"string"}},{"description":"How many riders, 1 to 20","in":"query","name":"riders","required":false,"schema":{"default":1,"description":"How many riders, 1 to 20","maximum":20,"minimum":1,"title":"Riders","type":"integer"}},{"description":"Frame sizes, one per rider, comma separated (empty for any)","in":"query","name":"sizes","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Frame sizes, one per rider, comma separated (empty for any)","title":"Sizes"}},{"description":"Heights in cm, one per rider, comma separated (empty for unknown)","in":"query","name":"heights","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Heights in cm, one per rider, comma separated (empty for unknown)","title":"Heights"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasBikesFree"}}},"description":"Successful Response"},"404":{"description":"place_not_found: the place or activity is not in the atlas"},"422":{"description":"dates_invalid, or invalid_request (context.field names the field)"},"429":{"description":"Too many requests"},"503":{"description":"The atlas is not available right now"}},"security":[],"summary":"Bikes and tours free at the shops of a riding place on your dates (no sign-in)","tags":["atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places/{slug}/{activity}/ski-map":{"get":{"description":"One GeoJSON FeatureCollection for skiing or ski touring: OpenSkiMap runs (colour, difficulty, kind, km) and lifts as lines, the place's shops as points, with the OpenSkiMap credit and link. Any other activity is 404 activity_not_live. locale is accepted for the page's address and changes nothing.","operationId":"read_atlas_ski_map","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},{"in":"path","name":"activity","required":true,"schema":{"pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasSkiMap"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A ski place's runs, lifts and shops on a map (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places/{slug}/{activity}/trail-map":{"get":{"description":"One GeoJSON FeatureCollection: OpenStreetMap trails (grade, kind, km) and lifts as lines, the place's shops as points, at most 4000 features (the longest trails first). locale is accepted for the page's address and changes nothing: no text here is translated.","operationId":"read_atlas_trail_map","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},{"in":"path","name":"activity","required":true,"schema":{"pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasTrailMap"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A place's trails, lifts and shops on a map (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/places/{slug}/{activity}/trail-map/around":{"get":{"description":"The trail sheet's map: the place's trail lines named in ids (the trail map's feature ids, as public_atlas_trail_matches gives them), then the rideable ways and the lifts in a frame three times their box (at least about 650 m), longest first, at most 800 trails and 100 lifts. bbox is the frame, or the place's when no id is one of its trail lines (then features is empty). No shops.","operationId":"read_atlas_trail_map_around","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Slug","type":"string"}},{"in":"path","name":"activity","required":true,"schema":{"pattern":"^[a-z][a-z0-9-]{1,39}$","title":"Activity","type":"string"}},{"description":"1 to 50 line ids, comma separated: way/123,relation/45","in":"query","name":"ids","required":true,"schema":{"description":"1 to 50 line ids, comma separated: way/123,relation/45","maxLength":1500,"title":"Ids","type":"string"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasTrailMap"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"One trail's lines with the trails and lifts around it (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/races":{"get":{"description":"With place: its next races (not yet over in the place's own day, soonest first) and the one that ended last. Without: the next races at every live place, each with its place. activity narrows to that live activity (a race with none is the place's).","operationId":"read_atlas_races","parameters":[{"description":"A live place's slug; default every live place","in":"query","name":"place","required":false,"schema":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","type":"string"},{"type":"null"}],"description":"A live place's slug; default every live place","title":"Place"}},{"description":"Only races of this live activity","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"pattern":"^[a-z][a-z0-9-]{1,39}$","type":"string"},{"type":"null"}],"description":"Only races of this live activity","title":"Activity"}},{"description":"Default 6 with a place, 8 without; at most 12 with a place, 120 without","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":120,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Default 6 with a place, 8 without; at most 12 with a place, 120 without","title":"Limit"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RacesAnswer"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Races at a place, or soon at every live place (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/referrals":{"post":{"description":"Counts the press, with no personal data, apart from bookings, and answers the website the atlas holds for that business. Availability is not checked. A place that is not live is 404 place_not_found; a business that is not one of its listings with a website, or whose website was found not answering (a 4xx, a 5xx or no answer), is 404 listing_not_found. Past 30 a minute 429.","operationId":"record_atlas_referral","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasReferral"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasReferralMade"}}},"description":"Successful Response"},"404":{"description":"place_not_found, or listing_not_found: the business is not one of the place's open map listings with a website"},"422":{"description":"invalid_request, or a body that does not fit"},"429":{"description":"Too many requests"},"503":{"description":"Online booking is not available right now"}},"security":[],"summary":"Send a rider to an open map business's own website from the riding atlas (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/sitemap":{"get":{"description":"Live places per activity, live regions, month pages and trip blueprints, for the sitemap and llms.txt.","operationId":"read_atlas_sitemap","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasSitemap"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Every live page of the riding atlas (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/ski-tiles/{z}/{x}/{y}":{"get":{"description":"One GeoJSON FeatureCollection: every OpenSkiMap run and lift of a live atlas place whose box meets web map tile z/x/y (z 7, 9 or 11; z 7 simplified), with AT-26's properties and the place's slug, then each such place's name at its centre with its live ski activity. Any other zoom or a tile off the map is 404 tile_not_found.","operationId":"read_atlas_ski_tile","parameters":[{"in":"path","name":"z","required":true,"schema":{"maximum":22,"minimum":0,"title":"Z","type":"integer"}},{"in":"path","name":"x","required":true,"schema":{"minimum":0,"title":"X","type":"integer"}},{"in":"path","name":"y","required":true,"schema":{"minimum":0,"title":"Y","type":"integer"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasSkiTile"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Ski runs, lifts and ski area names in one map tile (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/where/{country}":{"get":{"description":"The country page: its live regions with their counts and its live places, ranked by the fit.","operationId":"read_atlas_country","parameters":[{"in":"path","name":"country","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Country","type":"string"}},{"description":"Default: each place's first live activity","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"pattern":"^[a-z][a-z0-9-]{1,39}$","type":"string"},{"type":"null"}],"description":"Default: each place's first live activity","title":"Activity"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasWhere"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A country's regions and places (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/atlas/where/{country}/{region}":{"get":{"description":"The region page: its live places, ranked by the fit.","operationId":"read_atlas_region","parameters":[{"in":"path","name":"country","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Country","type":"string"}},{"in":"path","name":"region","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,58}[a-z0-9])$","title":"Region","type":"string"}},{"description":"Default: each place's first live activity","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"pattern":"^[a-z][a-z0-9-]{1,39}$","type":"string"},{"type":"null"}],"description":"Default: each place's first live activity","title":"Activity"}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","enum":["en","it","de","fr","pt","es"],"title":"Locale","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AtlasWhere"}}},"description":"Successful Response"},"404":{"description":"place_not_found: an unknown or not live place, activity or region; blueprint_not_found: a trip plan"},"422":{"description":"invalid_request, dates_invalid or compare_places"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"A region's places (no sign-in)","tags":["riding atlas"],"x-og-group":"atlas","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/booking-profile":{"get":{"description":"A shop website reads booking rules, payment choices and meeting places using its published host or site key; an unavailable shop returns 404.","operationId":"read_public_booking_profile","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingProfile"}}},"description":"Successful Response"},"404":{"description":"The shop has no published booking page or online booking is closed."}},"security":[{},{"SiteKey":[]}],"summary":"How the shop takes online bookings: payment, hours, places and cancellation terms","tags":["public site"],"x-og-group":"Site","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/booking-requests":{"post":{"description":"A shop website sends a guest's booking request with its published host or site key; the shop and the guest get an email and nothing is booked. Works whether the shop books online or takes requests.","operationId":"create_booking_request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestSent"}}},"description":"Successful Response"},"404":{"description":"booking_unavailable: no shop on this host; online_booking_closed: the shop takes nothing online"},"413":{"description":"too_large: the body is over 16 KB"},"422":{"description":"invalid_request (context.field)"},"429":{"description":"too_many_requests: from this guest address (5 a minute, 20 an hour) for this email (5 an hour) or for the shop (60 an hour)"}},"security":[{},{"SiteKey":[]}],"summary":"Ask the shop for a booking: the guest's dates, riders, bikes and tour (no sign-in)","tags":["booking requests"],"x-og-group":"Bookings","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/booking-view":{"get":{"description":"A confirmation page reads booking details with X-Booking-View; a missing or invalid view token returns 404.","operationId":"read_public_booking_view","parameters":[{"description":"The view token from the confirmation link","in":"header","name":"X-Booking-View","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The view token from the confirmation link","title":"X-Booking-View"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingView"}}},"description":"Successful Response"},"404":{"description":"The view token or booking was not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"BookingView":[]},{"BookingView":[],"SiteKey":[]}],"summary":"Your booking: the confirmation page data","tags":["public bookings"],"x-og-group":"Bookings","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/bookings":{"post":{"description":"A guest books rentals or tour seats with Authorization: Booking and a published shop host; unavailable lines return 409 and unfinished shapes return 501.","operationId":"create_public_booking","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingState"}}},"description":"Successful Response"},"404":{"description":"The booking page or Booking capability is unavailable."},"409":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublicLinesUnavailable"},{"$ref":"#/components/schemas/PublicQuoteRefused"},{"$ref":"#/components/schemas/PublicPaymentAccountMissing"},{"$ref":"#/components/schemas/PublicPromoRefused"}],"title":"Response 409 Create Public Booking"}}},"description":"Some lines are no longer free (lines_unavailable), the shop's prices or rules refuse a line (quote_refused), a business cannot take online payments yet (payment_account_missing), the promo code does not apply (promo_refused), or a coded conflict: departure_full, departure_closed, payment_choice_unavailable, promo_used_up"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"429":{"description":"too_many_codes: too many promo codes were refused from this client or shop"},"501":{"description":"not_built: this booking shape is not available yet"}},"security":[{"BookingCapability":[]},{"BookingCapability":[],"SiteKey":[]}],"summary":"Book online: rentals, extras and tour seats, held or taken for this capability","tags":["public bookings"],"x-og-group":"Bookings","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/bookings/current":{"get":{"description":"A guest reads the current booking with Authorization: Booking; a missing or invalid booking returns 404.","operationId":"read_public_booking","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingState"}}},"description":"Successful Response"},"404":{"description":"The Booking capability or current booking was not found."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"BookingCapability":[]},{"BookingCapability":[],"SiteKey":[]}],"summary":"This capability's booking: state, money and hold expiry","tags":["public bookings"],"x-og-group":"Bookings","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/bookings/current/deposit":{"post":{"description":"A guest starts Stripe Checkout for the current booking with Authorization: Booking; an invalid capability returns 404 and payment conflicts return 409.","operationId":"begin_public_deposit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositBegin"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositCheckout"}}},"description":"Successful Response"},"404":{"description":"The Booking capability or current booking was not found."},"409":{"description":"The booking or payment account cannot start this payment."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"BookingCapability":[]},{"BookingCapability":[],"SiteKey":[]}],"summary":"Start the online payment (deposit or full) for the whole booking","tags":["deposits"],"x-og-group":"Payments","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/directory/shops":{"get":{"description":"The ChatGPT app or a website lists published shops near a place without signing in; invalid filters return 422 and rate limits return 429.","operationId":"list_public_shops","parameters":[{"description":"Degrees; with longitude","in":"query","name":"latitude","required":false,"schema":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"description":"Degrees; with longitude","title":"Latitude"}},{"description":"Degrees; with latitude","in":"query","name":"longitude","required":false,"schema":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"description":"Degrees; with latitude","title":"Longitude"}},{"description":"With coordinates only; default 50","in":"query","name":"radius_km","required":false,"schema":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"description":"With coordinates only; default 50","title":"Radius Km"}},{"description":"2 to 80 characters (trimmed): a town, province, region or country, or a two letter country code","in":"query","name":"place","required":false,"schema":{"anyOf":[{"maxLength":200,"pattern":"^[^\\x00-\\x1f\\x7f]*$","type":"string"},{"type":"null"}],"description":"2 to 80 characters (trimmed): a town, province, region or country, or a two letter country code","title":"Place"}},{"description":"rentals, tours, or a kind of ride id such as e-bike","in":"query","name":"activity","required":false,"schema":{"anyOf":[{"pattern":"^[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?$","type":"string"},{"type":"null"}],"description":"rentals, tours, or a kind of ride id such as e-bike","title":"Activity"}},{"description":"The language of kind names; default en","in":"query","name":"language","required":false,"schema":{"anyOf":[{"enum":["en","it","de","fr"],"type":"string"},{"type":"null"}],"description":"The language of kind names; default en","title":"Language"}},{"description":"Default 8","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":8,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Default 8","title":"Limit"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShopDirectory"}}},"description":"Successful Response"},"422":{"description":"invalid_request: a bound, latitude without longitude (or the reverse), or radius_km without coordinates"},"429":{"description":"Too many requests"},"503":{"description":"The public booking login is not configured"}},"security":[],"summary":"Shops listed in the ChatGPT app near a place (no sign-in)","tags":["shop directory"],"x-og-group":"Directory","x-og-public":true,"x-og-stability":"preview"}},"/v1/public/rental-availability":{"get":{"description":"A shop website reads daily rental availability using its published host or site key; invalid date ranges return 422 and unavailable shops return 404.","operationId":"read_public_rental_availability","parameters":[{"description":"First local day, default today","in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First local day, default today","title":"From"}},{"description":"Last local day, default 29 days after from; at most 62 days in all","in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Last local day, default 29 days after from; at most 62 days in all","title":"To"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRentalAvailability"}}},"description":"Successful Response"},"404":{"description":"The shop has no published booking page or online booking is closed."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{},{"SiteKey":[]}],"summary":"Free sizes per option per day over a date range, in words","tags":["public site"],"x-og-group":"Availability","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/rental-catalog":{"get":{"description":"A shop website reads rental products, prices and availability using its published host or site key; an unpublished or closed shop returns 404.","operationId":"read_public_rental_catalog","parameters":[{"in":"query","name":"first_day","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"First Day"}},{"in":"query","name":"days","required":false,"schema":{"anyOf":[{"maximum":36500,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Days"}},{"description":"Language requested for the catalog: en, it, de or fr. Product names include all languages the shop supplied.","in":"query","name":"locale","required":false,"schema":{"anyOf":[{"enum":["en","it","de","fr"],"type":"string"},{"type":"null"}],"description":"Language requested for the catalog: en, it, de or fr. Product names include all languages the shop supplied.","title":"Locale"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalog"}}},"description":"Successful Response"},"404":{"description":"The shop has no published booking page or online booking is closed."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{},{"SiteKey":[]}],"summary":"What the shop rents online, with prices and availability in words","tags":["public bookings"],"x-og-group":"Catalog","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/rental-slots":{"get":{"description":"A shop website reads whole day and timed rental slots using its published host or site key; incomplete times return 422 and unavailable shops return 404.","operationId":"read_public_rental_slots","parameters":[{"description":"The local day","in":"query","name":"day","required":true,"schema":{"description":"The local day","format":"date","title":"Day","type":"string"}},{"description":"A chosen time: local \"HH:MM\" start, with ends","in":"query","name":"starts","required":false,"schema":{"anyOf":[{"description":"Local \"HH:MM\" of the shop","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"description":"A chosen time: local \"HH:MM\" start, with ends","title":"Starts"}},{"description":"A chosen time: local \"HH:MM\" end, with starts","in":"query","name":"ends","required":false,"schema":{"anyOf":[{"description":"Local \"HH:MM\" of the shop","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},{"type":"null"}],"description":"A chosen time: local \"HH:MM\" end, with starts","title":"Ends"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRentalSlots"}}},"description":"Successful Response"},"404":{"description":"The shop has no published booking page or online booking is closed."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{},{"SiteKey":[]}],"summary":"One day's free sizes per option: the whole day, the morning, the afternoon and a chosen time, in words","tags":["public site"],"x-og-group":"Availability","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/tours":{"get":{"description":"A shop website lists bookable tours using its published host or site key; an unpublished or closed shop returns 404.","operationId":"list_public_tours","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTours"}}},"description":"Successful Response"},"404":{"description":"The shop has no published booking page or online booking is closed."}},"security":[{},{"SiteKey":[]}],"summary":"The tours the shop sells online, with a price from","tags":["public tours"],"x-og-group":"Tours","x-og-public":true,"x-og-stability":"stable"}},"/v1/public/tours/{slug}/departures":{"get":{"description":"A shop website reads open departures for one tour using its published host or site key; unknown tours and closed shops return 404.","operationId":"list_public_tour_departures","parameters":[{"in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Slug","type":"string"}},{"description":"First local day, default today","in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First local day, default today","title":"From"}},{"description":"Last local day, default 30 days after from; at most 62 days","in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Last local day, default 30 days after from; at most 62 days","title":"To"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTourDepartures"}}},"description":"Successful Response"},"404":{"description":"The tour or published booking page was not found, or online booking is closed."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{},{"SiteKey":[]}],"summary":"One tour's departures open for booking: seats left and the price of a seat","tags":["public tours"],"x-og-group":"Tours","x-og-public":true,"x-og-stability":"stable"}},"/v1/shops/{organization_id}/asked-lines/{asked_line_id}/assign":{"post":{"description":"Give a unit: the asked line becomes a booked line. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"assign_asked_line_v1_shops__organization_id__asked_lines__asked_line_id__assign_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"asked_line_id","required":true,"schema":{"format":"uuid","title":"Asked Line Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per write; a retry sends the same one","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskedAssign"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskedWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown, another shop's, or outside the places you may see"},"409":{"description":"stale_version, asked_line_answered, unit_not_free, offer_needed (offer it instead), asked_not_taken or offer_payment_open (the guest is paying the offer's difference now)"},"422":{"description":"invalid_input, or no Idempotency-Key header"}},"security":[{"ApiKey":[]}],"summary":"Give a unit: the asked line becomes a booked line","tags":["booking flow"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/asked-lines/{asked_line_id}/decline":{"post":{"description":"Say no, with a note; nothing is charged. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"decline_asked_line_v1_shops__organization_id__asked_lines__asked_line_id__decline_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"asked_line_id","required":true,"schema":{"format":"uuid","title":"Asked Line Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per write; a retry sends the same one","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskedDecline"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskedWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown, another shop's, or outside the places you may see"},"409":{"description":"stale_version, asked_line_answered, unit_not_free, offer_needed (offer it instead), asked_not_taken or offer_payment_open (the guest is paying the offer's difference now)"},"422":{"description":"invalid_input, or no Idempotency-Key header"}},"security":[{"ApiKey":[]}],"summary":"Say no, with a note; nothing is charged","tags":["booking flow"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/asked-lines/{asked_line_id}/offer":{"post":{"description":"Offer another unit; the guest accepts it and any difference by email. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"offer_asked_line_v1_shops__organization_id__asked_lines__asked_line_id__offer_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"asked_line_id","required":true,"schema":{"format":"uuid","title":"Asked Line Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per write; a retry sends the same one","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskedOffer"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskedWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown, another shop's, or outside the places you may see"},"409":{"description":"stale_version, asked_line_answered, unit_not_free, offer_needed (offer it instead), asked_not_taken or offer_payment_open (the guest is paying the offer's difference now)"},"422":{"description":"invalid_input, or no Idempotency-Key header"}},"security":[{"ApiKey":[]}],"summary":"Offer another unit; the guest accepts it and any difference by email","tags":["booking flow"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/availability":{"get":{"description":"How many units of each rental option are free on each day, for up to 30 options and 62 days. Days are the shop's local days.","operationId":"read_availability_v1_shops__organization_id__availability_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"from","required":true,"schema":{"format":"date","title":"From","type":"string"}},{"in":"query","name":"to","required":true,"schema":{"format":"date","title":"To","type":"string"}},{"in":"query","name":"option_ids","required":true,"schema":{"items":{"format":"uuid","type":"string"},"maxItems":30,"minItems":1,"title":"Option Ids","type":"array"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalAvailability"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Check rental availability","tags":["rental catalog"],"x-og-group":"Shop bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-requests/{ref}":{"patch":{"description":"Correct what the guest asked, or mark the request new, answered or closed. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"booking_request_update_v1_shops__organization_id__booking_requests__ref__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The request's ref, \"R-0042\"","in":"path","name":"ref","required":true,"schema":{"description":"The request's ref, \"R-0042\"","pattern":"^R-[0-9]{4,9}$","title":"Ref","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestWritten"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown request, or ASK-06: a booking that is not this shop's"},"409":{"description":"stale_version"},"422":{"description":"invalid_input (context.field)"}},"security":[{"ApiKey":[]}],"summary":"Correct what the guest asked, or mark the request new, answered or closed","tags":["booking requests"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-requests/{ref}/booked":{"post":{"description":"Link the booking made from the request. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"booking_request_booked_v1_shops__organization_id__booking_requests__ref__booked_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The request's ref, \"R-0042\"","in":"path","name":"ref","required":true,"schema":{"description":"The request's ref, \"R-0042\"","pattern":"^R-[0-9]{4,9}$","title":"Ref","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestBooked"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestWritten"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown request, or ASK-06: a booking that is not this shop's"},"409":{"description":"stale_version; request_already_booked: the request already has a booking, or the booking is already on another request"},"422":{"description":"invalid_input (context.field)"}},"security":[{"ApiKey":[]}],"summary":"Link the booking made from the request","tags":["booking requests"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-requests/{ref}/reply":{"post":{"description":"Answer the guest by email. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"booking_request_reply_v1_shops__organization_id__booking_requests__ref__reply_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The request's ref, \"R-0042\"","in":"path","name":"ref","required":true,"schema":{"description":"The request's ref, \"R-0042\"","pattern":"^R-[0-9]{4,9}$","title":"Ref","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestReply"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestWritten"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRequestWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown request, or ASK-06: a booking that is not this shop's"},"409":{"description":"stale_version"},"422":{"description":"invalid_input (context.field)"}},"security":[{"ApiKey":[]}],"summary":"Answer the guest by email","tags":["booking requests"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-rules":{"post":{"description":"Start booking rules as a draft. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_rules_v1_shops__organization_id__booking_rules_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRulesCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRulesDoc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Start booking rules as a draft","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-rules/{slug}":{"patch":{"description":"Edit the draft (a new draft when none is open). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"draft_rules_v1_shops__organization_id__booking_rules__slug__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"title":"Slug","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRulesDraft"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRulesDoc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Edit the draft (a new draft when none is open)","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-rules/{slug}/default":{"post":{"description":"Make these the shop's default rules. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"default_rules_v1_shops__organization_id__booking_rules__slug__default_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"title":"Slug","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionedCommand"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRulesDoc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Make these the shop's default rules","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/booking-rules/{slug}/publish":{"post":{"description":"Publish the draft: it can never change again. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"publish_rules_v1_shops__organization_id__booking_rules__slug__publish_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"title":"Slug","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionedCommand"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRulesDoc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Publish the draft: it can never change again","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings":{"get":{"description":"Bookings in one view (upcoming, out, past, cancelled or needing you), a page at a time (at most 100). Pass the answer's cursor as `after` for the next page. Customer names need the Customers and companies area. Every booking returned counts toward the key's daily customer budget. Days are the shop's local days.","operationId":"list_bookings_v1_shops__organization_id__bookings_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"view","required":false,"schema":{"default":"upcoming","enum":["upcoming","out","past","cancelled","needs_you"],"title":"View","type":"string"}},{"in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"From"}},{"in":"query","name":"until","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Until"}},{"in":"query","name":"source","required":false,"schema":{"anyOf":[{"enum":["desk","online"],"type":"string"},{"type":"null"}],"title":"Source"}},{"description":"Opaque keyset cursor (first_day, id) from next_cursor","in":"query","name":"after","required":false,"schema":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"description":"Opaque keyset cursor (first_day, id) from next_cursor","title":"After"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingList"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List bookings","tags":["bookings"],"x-og-group":"Shop bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}":{"get":{"description":"One booking by its id or by its reference (the number on the booking confirmation) with its lines, riders, money and history. Needs the Bookings area; customer and rider names need the Customers and companies area, and the customer's phone and email, the notes and the email a message went to need the Customer contact details tick. Money needs the person's booking money access. Counts one record toward the key's daily customer budget. Money is in integer minor units of the booking's currency.","operationId":"read_booking_v1_shops__organization_id__bookings__booking_id__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingDetail"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a booking","tags":["bookings"],"x-og-group":"Shop bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/guest-link":{"post":{"description":"A link for the guest: their trip, the shop's rules, and the rider details they can fill in. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"issue_guest_link_v1_shops__organization_id__bookings__booking_id__guest_link_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestLink"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"A link for the guest: their trip, the shop's rules, and the rider details they can fill in","tags":["guest trips"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/guest-link/revoke":{"post":{"description":"Turn off every guest link of this booking. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"revoke_guest_links_v1_shops__organization_id__bookings__booking_id__guest_link_revoke_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Turn off every guest link of this booking","tags":["guest trips"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/guest-link/send":{"post":{"description":"Email the booking's guest a fresh trip link. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"send_guest_link_v1_shops__organization_id__bookings__booking_id__guest_link_send_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID for each send or save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each send or save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"description":"A replay of the same Idempotency-Key: nothing was sent again"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestLinkSent"}}},"description":"Successful Response"},"404":{"description":"Not in this shop or outside the caller's bounds"},"409":{"description":"no_email: the guest has no email address; booking_cancelled: the booking is cancelled"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"429":{"description":"rate_limited: sent a few times already (3 an hour, and 6 a day per booking or the guest's own 10 an hour)"}},"security":[{"ApiKey":[]}],"summary":"Email the booking's guest a fresh trip link","tags":["guest trips"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/incidents":{"post":{"description":"Report a crash: the item goes out of service and to the workshop; priced now or the amount follows. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"open_incident_v1_shops__organization_id__bookings__booking_id__incidents_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID per command; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per command; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOpenIn"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOpened"}}},"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOpened"}}},"description":"Successful Response"},"404":{"description":"Not found, or outside the caller's places"},"409":{"description":"incident_open (one is already open for this item), stale_version, or units_refused (the B10 body, nothing written)"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Report a crash: the item goes out of service and to the workshop; priced now or the amount follows","tags":["returns"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/notes":{"post":{"description":"Add a note to a booking (who wrote it and when are kept); a cancelled booking still takes notes. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"note_add_v1_shops__organization_id__bookings__booking_id__notes_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID for each note; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each note; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteSaved"}}},"description":"A replay of the same key: the same note"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteSaved"}}},"description":"Successful Response"},"404":{"description":"Not one of the shop's bookings"},"422":{"description":"invalid_input: the text is empty or longer than 2000 characters, or the key is missing"}},"security":[{"ApiKey":[]}],"summary":"Add a note to a booking (who wrote it and when are kept); a cancelled booking still takes notes","tags":["bookings"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/people/{person}/plan/email":{"post":{"description":"Email one person their plan (their things, days and times) to their own address, else the payer's. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"plan_email_v1_shops__organization_id__bookings__booking_id__people__person__plan_email_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"person","required":true,"schema":{"pattern":"^[a-z][a-z0-9_]{0,15}$","title":"Person","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID for each press; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each press; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentEmailAsk"},{"type":"null"}],"description":"Nothing, or an empty object","title":"Body"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentEmailQueued"}}},"description":"A replay of the same key: the same outbox row, nothing new queued"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentEmailQueued"}}},"description":"Successful Response"},"404":{"description":"Not this booking's document or person, or not one of the shop's bookings"},"422":{"description":"no_email (context.field to): nobody to send it to; invalid_input: a missing key or a body with fields"}},"security":[{"ApiKey":[]}],"summary":"Email one person their plan (their things, days and times) to their own address, else the payer's","tags":["booking flow"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/record":{"get":{"description":"One booking by its id or by its reference (the number on the booking confirmation) with every line as it was sold: the booking as `Get a booking` answers it, plus each line's product, size, period and, with booking money access, its prices, discounts and rules. Needs the Bookings area; names, contact details and notes follow the same areas and tick as `Get a booking`. Counts one record toward the key's daily customer budget.","operationId":"booking_record_v1_shops__organization_id__bookings__booking_id__record_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a booking's record","tags":["selling"],"x-og-group":"Shop bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/return-check/draft":{"delete":{"description":"Throw the saved check away. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"delete_draft_v1_shops__organization_id__bookings__booking_id__return_check_draft_delete","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID per command; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per command; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnCheckDraftDeleted"}}},"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnCheckDraftDeleted"}}},"description":"Successful Response"},"404":{"description":"Not found, or outside the caller's places"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Throw the saved check away","tags":["returns"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"},"put":{"description":"Save the check to finish later: the desk's own document, at most 32 KiB. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"save_draft_v1_shops__organization_id__bookings__booking_id__return_check_draft_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID per command; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per command; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnCheckDraftSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnCheckDraftSaved"}}},"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnCheckDraftSaved"}}},"description":"Successful Response"},"404":{"description":"Not found, or outside the caller's places"},"409":{"description":"stale_version: the draft changed since it was read (or another desk saved one first)"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Save the check to finish later: the desk's own document, at most 32 KiB","tags":["returns"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/waivers":{"post":{"description":"Send waivers to a shop tablet: each listed rider signs every waiver the booking needs, for themselves and their kids. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"send_waivers_v1_shops__organization_id__bookings__booking_id__waivers_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWaivers"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiversSent"}}},"description":"Successful Response"},"409":{"description":"waivers_not_set_up, waiver_signed (someone listed already signed) or tablet_unavailable"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Send waivers to a shop tablet: each listed rider signs every waiver the booking needs, for themselves and their kids","tags":["waivers"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{booking_id}/walk-in-hold/keep":{"post":{"description":"Keep a walk-in's hold: its things stay set aside even though nothing is paid yet; a replay answers 200. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"walk_in_hold_keep_v1_shops__organization_id__bookings__booking_id__walk_in_hold_keep_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking id, or its reference (the number on the booking confirmation)","in":"path","name":"booking_id","required":true,"schema":{"description":"The booking id, or its reference (the number on the booking confirmation)","title":"Booking Id","type":"string"}},{"description":"A fresh UUID for each press; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each press; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkInHold"}}},"description":"A replay of the same key"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkInHold"}}},"description":"Successful Response"},"404":{"description":"Not one of the shop's bookings, or it has no walk-in hold"},"409":{"description":"hold_lapsed: the hold already ran out and the booking was cancelled; invalid_state: the booking was dropped or cancelled otherwise"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Keep a walk-in's hold: its things stay set aside even though nothing is paid yet; a replay answers 200","tags":["booking flow"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/bookings/{reference}/trip-gear":{"put":{"description":"Save each rider's trip gear; an exact item is held on the calendar for the whole trip. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"gear_save_v1_shops__organization_id__bookings__reference__trip_gear_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The booking's reference, for example DS-1042","in":"path","name":"reference","required":true,"schema":{"description":"The booking's reference, for example DS-1042","maxLength":20,"pattern":"^[A-Za-z]{2,4}-[0-9]{1,12}$","title":"Reference","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripGearSave"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing saved twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiDaySaved"}}},"description":"Successful Response"},"404":{"description":"No such booking in this shop, or outside your places"},"409":{"description":"stale_version: someone saved this since it was read; gear_busy (context.field riders.N.items.M.asset_id); booking_closed"},"422":{"description":"rider_unknown (context.field riders.N.person_key); gear_unknown (context.field riders.N.items.M.product_id, option_id or asset_id)"}},"security":[{"ApiKey":[]}],"summary":"Save each rider's trip gear; an exact item is held on the calendar for the whole trip","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/orders/{key}/chase":{"post":{"description":"Email the approved chase for a sent order and record the day. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"order_chase_v1_shops__organization_id__buying_orders__key__chase_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The order's number, PO-0144","in":"path","name":"key","required":true,"schema":{"description":"The order's number, PO-0144","maxLength":64,"minLength":1,"title":"Key","type":"string"}},{"description":"A fresh UUID for each press; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each press; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEmailSend"}}},"required":true},"responses":{"200":{"description":"A replay of the same press: nothing more was queued"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderEmailResult"}}},"description":"Successful Response"},"404":{"description":"No such order here"},"409":{"description":"stale_version: someone changed the order, reload; order_not_draft; order_not_sent; no_open_lines; chased_today (chase: one a day at the order's place)"},"422":{"description":"invalid_input (context.field names the field); not_a_supplier"}},"security":[{"ApiKey":[]}],"summary":"Email the approved chase for a sent order and record the day","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/products/{key}":{"put":{"description":"`buying`: `season` (bought once a season, in Season buy) or `reorder` (keeps a minimum, in To order).","operationId":"product_buying_v1_shops__organization_id__buying_products__key__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBuying"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Product Buying V1 Shops  Organization Id  Buying Products  Key  Put","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"A product's style, colour, size, fit and how it is bought","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/season-orders":{"post":{"description":"Computed from last season's sales by product, colour and size, sold-out weeks counted as lost sales. A rebuild keeps every number, removal and note a person made.","operationId":"build_season_order_v1_shops__organization_id__buying_season_orders_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonOrderBuild"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Build Season Order V1 Shops  Organization Id  Buying Season Orders Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Build (or rebuild) the Oracle's season draft for a supplier","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/season-orders/{order_id}":{"patch":{"description":"How bold, the dates, the place, the email language; cancel or received. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"update_season_order_v1_shops__organization_id__buying_season_orders__order_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"order_id","required":true,"schema":{"format":"uuid","title":"Order Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonOrderUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Update Season Order V1 Shops  Organization Id  Buying Season Orders  Order Id  Patch","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"How bold, the dates, the place, the email language; cancel or received","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/season-orders/{order_id}/lines":{"post":{"description":"Change, remove or add lines in one go. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"season_order_lines_v1_shops__organization_id__buying_season_orders__order_id__lines_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"order_id","required":true,"schema":{"format":"uuid","title":"Order Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonOrderLines"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Season Order Lines V1 Shops  Organization Id  Buying Season Orders  Order Id  Lines Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change, remove or add lines in one go","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/seasons":{"post":{"description":"Add a buying season. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_season_v1_shops__organization_id__buying_seasons_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Create Season V1 Shops  Organization Id  Buying Seasons Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a buying season","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/buying/seasons/{season_id}":{"patch":{"description":"Change or archive a buying season. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"update_season_v1_shops__organization_id__buying_seasons__season_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"season_id","required":true,"schema":{"format":"uuid","title":"Season Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Update Season V1 Shops  Organization Id  Buying Seasons  Season Id  Patch","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change or archive a buying season","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/catalog/products/{product_id}/fit":{"put":{"description":"Save a rental model's build, geometry and fit ranges. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_product_fit_v1_shops__organization_id__catalog_products__product_id__fit_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"product_id","required":true,"schema":{"format":"uuid","title":"Product Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per write; a retry sends the same one","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductFitSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductFitRecord"}}},"description":"A replay of the same Idempotency-Key: the first answer"},"409":{"description":"stale_version: someone saved meanwhile"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotBuilt"}}},"description":"not_built: the job named by owner builds this route"}},"security":[{"ApiKey":[]}],"summary":"Save a rental model's build, geometry and fit ranges","tags":["booking flow"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies":{"post":{"description":"Add a company: roles, name, country, VAT number with what VIES filled, contact details and a main contact. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"company_create_v1_shops__organization_id__companies_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyCreated"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyCreated"}}},"description":"Successful Response"},"403":{"description":"The caller does not hold companies:write"},"409":{"description":"idempotency_key_reused: the same key was sent with a different body"},"422":{"description":"invalid_input: context.field names the value refused (for example vat_number, main_contact.person_id)"}},"security":[{"ApiKey":[]}],"summary":"Add a company: roles, name, country, VAT number with what VIES filled, contact details and a main contact","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/activity":{"post":{"description":"Add a note, a call or a claim to the company's activity. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"add_note_v1_shops__organization_id__companies__key__activity_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteAdd"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteAdded"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a note, a call or a claim to the company's activity","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/archive":{"post":{"description":"Archive a company: it leaves the lists and pickers, nothing it holds is removed. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"archive_company_v1_shops__organization_id__companies__key__archive_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyStateChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyStateSaved"}}},"description":"Successful Response"},"404":{"description":"No such company in this shop"},"409":{"description":"stale_version: someone changed the company since it was read"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Archive a company: it leaves the lists and pickers, nothing it holds is removed","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/deals/{deal_id}/new-version":{"post":{"description":"A draft copy of a signed deal that replaces it once signed; answers the existing draft when there is one. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"new_version_v1_shops__organization_id__companies__key__deals__deal_id__new_version_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example schwalbe","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example schwalbe","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"in":"path","name":"deal_id","required":true,"schema":{"format":"uuid","title":"Deal Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealVersion"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealSaved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"A draft copy of a signed deal that replaces it once signed; answers the existing draft when there is one","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/deliverables":{"put":{"description":"Add or change a sponsor deliverable and mark it done. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_deliverable_v1_shops__organization_id__companies__key__deliverables_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add or change a sponsor deliverable and mark it done","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/fields":{"patch":{"description":"Change any fields of a company in place; each value is checked by its type; a replay answers the same. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_company_fields_v1_shops__organization_id__companies__key__fields_patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldsPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldsSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version (stale_version) or an archived customer (customer_archived)"},"422":{"description":"invalid_input: context.field names the key that is unknown, read only, a list, or whose value does not fit"}},"security":[{"ApiKey":[]}],"summary":"Change any fields of a company in place; each value is checked by its type; a replay answers the same","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/group-terms":{"put":{"description":"Set a group operator's agreed price list reference and payment terms. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_group_terms_v1_shops__organization_id__companies__key__group_terms_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupTermsSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Set a group operator's agreed price list reference and payment terms","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/merge":{"post":{"description":"Merge a duplicate company into this one: roles, people, customers, orders and deals move; the duplicate is archived. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"merge_company_v1_shops__organization_id__companies__key__merge_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyMerge"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Merged"}}},"description":"Successful Response"},"409":{"description":"A stale version (stale_version), an erased customer (customer_erased) or the kept record archived (customer_archived, company_archived)"},"422":{"description":"invalid_input: context.field duplicate when the duplicate is unknown, of another shop, the kept record itself or already merged; context.field merged when the kept record was itself merged into another"}},"security":[{"ApiKey":[]}],"summary":"Merge a duplicate company into this one: roles, people, customers, orders and deals move; the duplicate is archived","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/message":{"post":{"description":"Email the company at its email, else its invoice email, in the shop's language. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"message_company_v1_shops__organization_id__companies__key__message_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordMessage"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing queued twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyMessaged"}}},"description":"Successful Response"},"404":{"description":"No such record in this shop"},"422":{"description":"invalid_input: context.field sender when the place is not one of the options' senders"},"429":{"description":"rate_limited: 5 messages an hour to one record, or 30 an hour from one staff member, were already sent"}},"security":[{"ApiKey":[]}],"summary":"Email the company at its email, else its invoice email, in the shop's language","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/referral-terms":{"put":{"description":"Set a partner, hotel or referrer's fee and tracking code. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_referral_terms_v1_shops__organization_id__companies__key__referral_terms_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralTermsSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Set a partner, hotel or referrer's fee and tracking code","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/referrals":{"put":{"description":"Log a referral either way, or mark one paid. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_referral_v1_shops__organization_id__companies__key__referrals_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Log a referral either way, or mark one paid","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/restore":{"post":{"description":"Restore an archived company to the lists and pickers. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"restore_company_v1_shops__organization_id__companies__key__restore_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyStateChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyStateSaved"}}},"description":"Successful Response"},"404":{"description":"No such company in this shop"},"409":{"description":"stale_version: someone changed the company since it was read"},"422":{"description":"invalid_input: context.field merged when the company was merged into another (it stays archived)"}},"security":[{"ApiKey":[]}],"summary":"Restore an archived company to the lists and pickers","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/sponsor-agreements":{"put":{"description":"Add or change a sponsor agreement (period, what they give, what we owe). With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_agreement_v1_shops__organization_id__companies__key__sponsor_agreements_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example alpi-ricambi","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example alpi-ricambi","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add or change a sponsor agreement (period, what they give, what we owe)","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/companies/{key}/sponsor-report/{report_id}/sent":{"post":{"description":"Mark the season report sent, after the person sent it. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"report_sent_v1_shops__organization_id__companies__key__sponsor_report__report_id__sent_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The company's slug, for example schwalbe","in":"path","name":"key","required":true,"schema":{"description":"The company's slug, for example schwalbe","pattern":"^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$","title":"Key","type":"string"}},{"in":"path","name":"report_id","required":true,"schema":{"format":"uuid","title":"Report Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportSent"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}},"description":"Successful Response"},"409":{"description":"A stale version, or a signed deal (deal_signed_read_only)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Mark the season report sent, after the person sent it","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/change-requests/{request_id}/decision":{"post":{"description":"Approve or reject a change request: other hours, or giving a shift away with no colleague named. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"change_decide_v1_shops__organization_id__crew_shifts_change_requests__request_id__decision_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","title":"Request Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDecisionRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDecided"}}},"description":"A replay of the same decision"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDecided"}}},"description":"Successful Response"},"404":{"description":"Not a request of this shop"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBlocked"}}},"description":"blocked: the change brings in an error (nothing was written); stale_version; shift_not_open; request_closed"},"422":{"description":"decided_elsewhere; invalid_input"}},"security":[{"ApiKey":[]}],"summary":"Approve or reject a change request: other hours, or giving a shift away with no colleague named","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/open/give":{"post":{"description":"Give an open shift to someone who asked: the week changes, everyone who asked is told. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"open_give_v1_shops__organization_id__crew_shifts_open_give_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenGiveRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenGiven"}}},"description":"A replay of the same give"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenGiven"}}},"description":"Successful Response"},"404":{"description":"Not a published line of this shop"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBlocked"}}},"description":"blocked: the change brings in an error (nothing was written); stale_version; shift_not_open; request_closed"},"422":{"description":"not_asked; person_not_here; invalid_input"}},"security":[{"ApiKey":[]}],"summary":"Give an open shift to someone who asked: the week changes, everyone who asked is told","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/swaps/{swap_id}/decision":{"post":{"description":"Approve or reject a swap the colleague said yes to: approving swaps both lines in one new revision; both are told. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"swap_decide_v1_shops__organization_id__crew_shifts_swaps__swap_id__decision_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"swap_id","required":true,"schema":{"format":"uuid","title":"Swap Id","type":"string"}},{"description":"A fresh UUID for each write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideSwap"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapDecided"}}},"description":"A replay of the same decision"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapDecided"}}},"description":"Successful Response"},"404":{"description":"Not a swap of my places"},"409":{"description":"colleague_not_agreed; swap_moved_on; swap_no_longer_fits; stale_version"},"422":{"description":"invalid_input"}},"security":[{"ApiKey":[]}],"summary":"Approve or reject a swap the colleague said yes to: approving swaps both lines in one new revision; both are told","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/weeks/{week}/change":{"post":{"description":"Change a published week: a new published revision, and each person it touches is told what changed. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"change_published_v1_shops__organization_id__crew_shifts_weeks__week__change_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week","required":true,"schema":{"format":"date","title":"Week","type":"string"}},{"description":"A fresh UUID for each change; a retry sends the same one. Not needed for a dry run","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID for each change; a retry sends the same one. Not needed for a dry run","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePublished"}}},"description":"A dry run, or a replay of the same change"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePublished"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBlocked"}}},"description":"blocked: the change brings in an error (nothing was written); stale_version; week_not_published; line_gone"},"422":{"description":"invalid_input (context.field names the field); person_not_here; position_not_here; nothing_changes"}},"security":[{"ApiKey":[]}],"summary":"Change a published week: a new published revision, and each person it touches is told what changed","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/weeks/{week}/issues/ack":{"post":{"description":"Keep a warning of the week with a note (\"Keep, he agreed\"), or take the keep back. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"issue_ack_v1_shops__organization_id__crew_shifts_weeks__week__issues_ack_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week","required":true,"schema":{"format":"date","title":"Week","type":"string"}},{"description":"A fresh UUID for each keep; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each keep; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueAck"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueAcked"}}},"description":"A replay of the same keep"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueAcked"}}},"description":"Successful Response"},"409":{"description":"stale_version: someone changed the week, reload; issue_gone; week_not_started"},"422":{"description":"invalid_input (context.field names the field); error_cannot_be_kept; coverage_cannot_be_kept"}},"security":[{"ApiKey":[]}],"summary":"Keep a warning of the week with a note (\"Keep, he agreed\"), or take the keep back","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/weeks/{week}/publish-preview":{"post":{"description":"Before publishing: each person's shifts and hours, and who is told by email, in the app or not at all. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"publish_preview_v1_shops__organization_id__crew_shifts_weeks__week__publish_preview_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week","required":true,"schema":{"format":"date","title":"Week","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishPreview"}}},"description":"Successful Response"},"409":{"description":"no_draft: the week has no draft to publish"},"422":{"description":"invalid_input: week is not a Monday"}},"security":[{"ApiKey":[]}],"summary":"Before publishing: each person's shifts and hours, and who is told by email, in the app or not at all","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/crew/shifts/weeks/{week}/start":{"post":{"description":"Start an empty week as a draft: from last week, from usual hours, or empty; clashes with time off or special needs are left out. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"week_start_v1_shops__organization_id__crew_shifts_weeks__week__start_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week","required":true,"schema":{"format":"date","title":"Week","type":"string"}},{"description":"A fresh UUID for each start; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each start; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeekStart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeekStarted"}}},"description":"A replay of the same start"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeekStarted"}}},"description":"Successful Response"},"409":{"description":"stale_version: someone changed the week, reload; week_started"},"422":{"description":"invalid_input (context.field names the field); last_week_empty; no_usual_hours"}},"security":[{"ApiKey":[]}],"summary":"Start an empty week as a draft: from last week, from usual hours, or empty; clashes with time off or special needs are left out","tags":["crew-shifts"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customer-segments":{"post":{"description":"Add a customer segment. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"segment_create_v1_shops__organization_id__customer_segments_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSegmentCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSegmentSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSegmentSaved"}}},"description":"Successful Response"},"403":{"description":"segment_needs_money: a rule about money without the money totals permission"},"404":{"description":"Unknown segment"},"409":{"description":"stale_version; segment_name_taken, too_many_segments"},"422":{"description":"invalid_input (context.field, for example rules.0.op)"}},"security":[{"ApiKey":[]}],"summary":"Add a customer segment","tags":["customer-segments"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customer-segments/refresh":{"post":{"description":"Rebuild the shop's customer facts and recount every segment now (at most once a minute). With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"facts_refresh_v1_shops__organization_id__customer_segments_refresh_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerFactsRefreshed"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerFactsRefreshed"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Rebuild the shop's customer facts and recount every segment now (at most once a minute)","tags":["customer-segments"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customer-segments/{segment_id}":{"patch":{"description":"Change a customer segment, or archive it. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"segment_update_v1_shops__organization_id__customer_segments__segment_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"segment_id","required":true,"schema":{"format":"uuid","title":"Segment Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSegmentPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSegmentSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSegmentSaved"}}},"description":"Successful Response"},"403":{"description":"segment_needs_money: a rule about money without the money totals permission"},"404":{"description":"Unknown segment"},"409":{"description":"stale_version; segment_name_taken, too_many_segments"},"422":{"description":"invalid_input (context.field, for example rules.0.op)"}},"security":[{"ApiKey":[]}],"summary":"Change a customer segment, or archive it","tags":["customer-segments"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers":{"get":{"description":"Customers by name, a page at a time (at most 100). Pass the answer's cursor for the next page. Phone numbers and emails need the Customer contact details area. Every customer returned counts toward the key's daily customer budget.","operationId":"list_customers_v1_shops__organization_id__customers_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Opaque keyset cursor from next_cursor","in":"query","name":"after","required":false,"schema":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"description":"Opaque keyset cursor from next_cursor","title":"After"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerList"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List customers","tags":["customers"],"x-og-group":"Shop customers","x-og-public":true,"x-og-stability":"preview"},"post":{"description":"Add a customer with several phones and emails; a replay answers 200. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"create_customer_v1_shops__organization_id__customers_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Created"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PossibleDuplicate"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a customer with several phones and emails; a replay answers 200","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{customer_id}":{"get":{"description":"One customer with their recent bookings (at most 100; bookings need the Bookings area). Phone numbers and emails need the Customer contact details area. Counts as one record toward the key's daily customer budget.","operationId":"read_customer_v1_shops__organization_id__customers__customer_id__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"customer_id","required":true,"schema":{"format":"uuid","title":"Customer Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDetail"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a customer","tags":["customers"],"x-og-group":"Shop customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}":{"patch":{"description":"Change the rail fields of a customer. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"update_customer_v1_shops__organization_id__customers__key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change the rail fields of a customer","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/archive":{"post":{"description":"Archive a customer; open bookings block it and are named. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"archive_customer_v1_shops__organization_id__customers__key__archive_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerArchive"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveDone"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmBlocked"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Archive a customer; open bookings block it and are named","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/contacts":{"put":{"description":"Replace a customer's phones and emails (one primary of each kind). With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_contacts_v1_shops__organization_id__customers__key__contacts_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Replace a customer's phones and emails (one primary of each kind)","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/fields":{"patch":{"description":"Change any fields of a customer in place; each value is checked by its type; a replay answers the same. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_customer_fields_v1_shops__organization_id__customers__key__fields_patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number (C-0042) or the customer's id","in":"path","name":"key","required":true,"schema":{"description":"The customer number (C-0042) or the customer's id","pattern":"^(?:[Cc]-[0-9]{1,12}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldsPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldsSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version (stale_version) or an archived customer (customer_archived)"},"422":{"description":"invalid_input: context.field names the key that is unknown, read only, a list, or whose value does not fit"}},"security":[{"ApiKey":[]}],"summary":"Change any fields of a customer in place; each value is checked by its type; a replay answers the same","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/marketing-consent":{"put":{"description":"Record that the customer agreed to marketing, or withdraw it, with the version of the words they were shown. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_marketing_consent_v1_shops__organization_id__customers__key__marketing_consent_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyConsentSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyConsentSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version (stale_version) or an erased customer (customer_erased)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Record that the customer agreed to marketing, or withdraw it, with the version of the words they were shown","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/merge":{"post":{"description":"Merge a duplicate customer into this one: bookings, contacts, sizes, notes and payments move; the duplicate is archived. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"merge_customer_v1_shops__organization_id__customers__key__merge_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number (C-0042) or the customer's id","in":"path","name":"key","required":true,"schema":{"description":"The customer number (C-0042) or the customer's id","pattern":"^(?:[Cc]-[0-9]{1,12}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerMerge"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Merged"}}},"description":"Successful Response"},"409":{"description":"A stale version (stale_version), an erased customer (customer_erased) or the kept record archived (customer_archived, company_archived)"},"422":{"description":"invalid_input: context.field duplicate when the duplicate is unknown, of another shop, the kept record itself or already merged; context.field merged when the kept record was itself merged into another"}},"security":[{"ApiKey":[]}],"summary":"Merge a duplicate customer into this one: bookings, contacts, sizes, notes and payments move; the duplicate is archived","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/message":{"post":{"description":"Email the customer at their main email, in their language; an archived customer is not written to. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"message_customer_v1_shops__organization_id__customers__key__message_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number (C-0042) or the customer's id","in":"path","name":"key","required":true,"schema":{"description":"The customer number (C-0042) or the customer's id","pattern":"^(?:[Cc]-[0-9]{1,12}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","title":"Key","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordMessage"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing queued twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerMessaged"}}},"description":"Successful Response"},"404":{"description":"No such record in this shop"},"409":{"description":"customer_erased: the guest's data was erased"},"422":{"description":"invalid_input: context.field sender when the place is not one of the options' senders"},"429":{"description":"rate_limited: 5 messages an hour to one record, or 30 an hour from one staff member, were already sent"}},"security":[{"ApiKey":[]}],"summary":"Email the customer at their main email, in their language; an archived customer is not written to","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/restore":{"post":{"description":"Restore an archived customer. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"restore_customer_v1_shops__organization_id__customers__key__restore_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerArchive"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveDone"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"description":"invalid_input: context.field merged when the customer was merged into another"}},"security":[{"ApiKey":[]}],"summary":"Restore an archived customer","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/riders":{"post":{"description":"Add or change a family rider. With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"save_rider_v1_shops__organization_id__customers__key__riders_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiderSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiderSaved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add or change a family rider","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/customers/{key}/riders/{rider_id}/remove":{"post":{"description":"Remove a family rider (their measurements stay in the history). With an API key: the key's change tick for Customers and companies and an Idempotency-Key header (a UUID).","operationId":"remove_rider_v1_shops__organization_id__customers__key__riders__rider_id__remove_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The customer number, for example C-0042","in":"path","name":"key","required":true,"schema":{"description":"The customer number, for example C-0042","pattern":"^[Cc]-[0-9]{1,12}$","title":"Key","type":"string"}},{"in":"path","name":"rider_id","required":true,"schema":{"format":"uuid","title":"Rider Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiderRemove"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiderRemoved"}}},"description":"Successful Response"},"409":{"description":"A stale version, a duplicate, a customer that is archived, or other records that block the action"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Remove a family rider (their measurements stay in the history)","tags":["crm"],"x-og-group":"customers","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/discounts":{"post":{"description":"Add a discount rule. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_discount_v1_shops__organization_id__discounts_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a discount rule","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/discounts/codes":{"post":{"description":"Add a promo code. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_promo_v1_shops__organization_id__discounts_codes_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCodeSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a promo code","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/discounts/codes/{code_id}":{"patch":{"description":"Change a promo code. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_promo_v1_shops__organization_id__discounts_codes__code_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"code_id","required":true,"schema":{"format":"uuid","title":"Code Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCodeSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a promo code","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/discounts/{rule_id}":{"patch":{"description":"Change a discount rule. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_discount_v1_shops__organization_id__discounts__rule_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"rule_id","required":true,"schema":{"format":"uuid","title":"Rule Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a discount rule","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/counted-pools":{"post":{"description":"Count a model at a place (helmets, paddles, life jackets). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_pool_v1_shops__organization_id__equipment_counted_pools_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolSaved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Count a model at a place (helmets, paddles, life jackets)","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/counted-pools/{pool_id}":{"get":{"description":"One counted pool of equipment: on hand, in transfers and free per day for the next 14 days.","operationId":"read_pool_v1_shops__organization_id__equipment_counted_pools__pool_id__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"pool_id","required":true,"schema":{"format":"uuid","title":"Pool Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolRecord"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a counted pool","tags":["fleet"],"x-og-group":"Shop fleet","x-og-public":true,"x-og-stability":"preview"},"put":{"description":"Change how many of a counted model are on hand. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"adjust_pool_v1_shops__organization_id__equipment_counted_pools__pool_id__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"pool_id","required":true,"schema":{"format":"uuid","title":"Pool Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolAdjust"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolSaved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change how many of a counted model are on hand","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/damage-prices/starter":{"post":{"description":"Add the starter damage prices the owner kept; an active duplicate is skipped. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"starter_apply_v1_shops__organization_id__equipment_damage_prices_starter_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per command; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per command; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamagePriceStarterApply"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamagePriceStarterApplied"}}},"description":"A replay of the same apply"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamagePriceStarterApplied"}}},"description":"Successful Response"},"403":{"description":"Not allowed (restricted staff or a support session)"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Add the starter damage prices the owner kept; an active duplicate is skipped","tags":["damage"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/intakes":{"post":{"description":"One bike (or a few) by hand: created through the intake with their numbers, frame numbers and serials. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_intake_v1_shops__organization_id__equipment_intakes_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The language of the labels; the shop's when left out","in":"query","name":"locale","required":false,"schema":{"anyOf":[{"enum":["en","it"],"type":"string"},{"type":"null"}],"description":"The language of the labels; the shop's when left out","title":"Locale"}},{"description":"A fresh UUID per user action","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per user action","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeCreated"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrameNumberTaken"}}},"description":"The frame number is on another bike, named; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"One bike (or a few) by hand: created through the intake with their numbers, frame numbers and serials","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/intakes/{number}":{"patch":{"description":"Answers the intake (200, a replay with ``replayed``). A frame number already on another bike answers 409 naming that bike.","operationId":"save_intake_v1_shops__organization_id__equipment_intakes__number__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The intake's number, IN-0007","in":"path","name":"number","required":true,"schema":{"description":"The intake's number, IN-0007","pattern":"^IN-[0-9]{4,}$","title":"Number","type":"string"}},{"description":"The language of the labels; the shop's when left out","in":"query","name":"locale","required":false,"schema":{"anyOf":[{"enum":["en","it"],"type":"string"},{"type":"null"}],"description":"The language of the labels; the shop's when left out","title":"Locale"}},{"description":"A fresh UUID per user action","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per user action","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetIntake"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrameNumberTaken"}}},"description":"The frame number is on another bike, named; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Save what is scanned so far: shared details, frame numbers, serials, a gap of the spec","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items":{"post":{"description":"Add up to 400 numbered items of one model. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"add_items_v1_shops__organization_id__equipment_items_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsAdd"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsAdded"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add up to 400 numbered items of one model","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items/{key}":{"patch":{"description":"Change an item's details. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_item_v1_shops__organization_id__equipment_items__key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change an item's details","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items/{key}/actions":{"post":{"description":"Move, take out of service, retire, sell, archive or delete an item. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"act_on_item_v1_shops__organization_id__equipment_items__key__actions_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemAction"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemActionResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Blocked"}}},"description":"Refused because of other records; they are listed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Move, take out of service, retire, sell, archive or delete an item","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items/{key}/sale":{"post":{"description":"Put the item up for sale or change its two prices (as it is, rebuilt). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_sale_v1_shops__organization_id__equipment_items__key__sale_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleSaved"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Blocked"}}},"description":"Refused because of other records; they are listed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Put the item up for sale or change its two prices (as it is, rebuilt)","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items/{key}/tabs/{tab}":{"get":{"description":"One tab of a fleet item, a page at a time (at most 50): rentals, upkeep, history, files or workshop. File entries are names only, never links. Booking references need the Bookings area, customer names also the Customer contact details area. Each row returned counts toward the key's daily customer budget.","operationId":"read_item_tab_v1_shops__organization_id__equipment_items__key__tabs__tab__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Key","type":"string"}},{"in":"path","name":"tab","required":true,"schema":{"enum":["rentals","upkeep","history","files","workshop"],"title":"Tab","type":"string"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":25,"maximum":50,"minimum":1,"title":"Limit","type":"integer"}},{"in":"query","name":"from","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"in":"query","name":"to","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List a tab of a fleet item","tags":["fleet"],"x-og-group":"Shop fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items/{key}/warranties":{"post":{"description":"Add a warranty to the item or one of its parts. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"add_warranty_v1_shops__organization_id__equipment_items__key__warranties_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyAdd"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Warranty"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a warranty to the item or one of its parts","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/items/{key}/warranties/{warranty_id}":{"patch":{"description":"Change or remove a warranty. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"change_warranty_v1_shops__organization_id__equipment_items__key__warranties__warranty_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"pattern":"^[A-Za-z0-9][A-Za-z0-9-]{0,19}$","title":"Key","type":"string"}},{"in":"path","name":"warranty_id","required":true,"schema":{"format":"uuid","title":"Warranty Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantyChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Warranty"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change or remove a warranty","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/rebalancing/transfers":{"post":{"description":"Turn a suggestion into a draft transfer order. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"accept_suggestion_v1_shops__organization_id__equipment_rebalancing_transfers_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionAccept"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSaved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Turn a suggestion into a draft transfer order","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/transfers":{"post":{"description":"Start a transfer order (a draft). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_transfer_v1_shops__organization_id__equipment_transfers_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSaved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Start a transfer order (a draft)","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/transfers/{reference}":{"put":{"description":"Change a draft transfer order. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"change_transfer_v1_shops__organization_id__equipment_transfers__reference__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"reference","required":true,"schema":{"pattern":"^[Tt][Rr]-[0-9]{4,}$","title":"Reference","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferEdit"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSaved"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a draft transfer order","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/equipment/transfers/{reference}/actions":{"post":{"description":"Pick, send, receive or cancel a transfer order. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"act_on_transfer_v1_shops__organization_id__equipment_transfers__reference__actions_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"reference","required":true,"schema":{"pattern":"^[Tt][Rr]-[0-9]{4,}$","title":"Reference","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferAction"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferActed"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Blocked"}}},"description":"Refused because of other records; they are listed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Pick, send, receive or cancel a transfer order","tags":["fleet"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences":{"post":{"description":"Start a new experience (a draft). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"experience_create_v1_shops__organization_id__experiences_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceWriteSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceWriteSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Start a new experience (a draft)","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/activities":{"post":{"description":"Add your own activity. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"activity_add_v1_shops__organization_id__experiences_activities_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityAdd"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityAdded"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityAdded"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Add your own activity","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}":{"patch":{"description":"Save steps of an experience (each group changes only the fields it names). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"experience_save_v1_shops__organization_id__experiences__key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Save steps of an experience (each group changes only the fields it names)","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/fleet":{"put":{"description":"Set the kind of bike this tour holds per guest and the hold before and after; its coming departures are held again. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"fleet_save_v1_shops__organization_id__experiences__key__fleet_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceFleetSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceFleetSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceFleetSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"fleet_type_unknown (context.field type_id): no rental item of that type; invalid_input"}},"security":[{"ApiKey":[]}],"summary":"Set the kind of bike this tour holds per guest and the hold before and after; its coming departures are held again","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/go-live":{"post":{"description":"Go live: sell on the desk and the website. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"experience_go_live_v1_shops__organization_id__experiences__key__go_live_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoLive-Input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; experience_not_ready (context.missing: the step numbers)"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Go live: sell on the desk and the website","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/options":{"post":{"description":"Add an option (at most 20). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"option_add_v1_shops__organization_id__experiences__key__options_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionAdd"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Add an option (at most 20)","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/options/{option_key}":{"delete":{"description":"Remove an option that was never sold (default stays). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"option_remove_v1_shops__organization_id__experiences__key__options__option_key__delete","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"default, opt_2 to opt_20","in":"path","name":"option_key","required":true,"schema":{"description":"default, opt_2 to opt_20","pattern":"^(default|opt_([2-9]|1[0-9]|20))$","title":"Option Key","type":"string"}},{"description":"The option's version you read","in":"query","name":"expected_version","required":true,"schema":{"description":"The option's version you read","minimum":1,"title":"Expected Version","type":"integer"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionRemoved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionRemoved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Remove an option that was never sold (default stays)","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"},"patch":{"description":"Change an option (state archived takes it off sale). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"option_save_v1_shops__organization_id__experiences__key__options__option_key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"default, opt_2 to opt_20","in":"path","name":"option_key","required":true,"schema":{"description":"default, opt_2 to opt_20","pattern":"^(default|opt_([2-9]|1[0-9]|20))$","title":"Option Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Change an option (state archived takes it off sale)","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/options/{option_key}/when":{"put":{"description":"Set when one option runs: start times, days, season and closed days (its timetables). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"option_when_save_v1_shops__organization_id__experiences__key__options__option_key__when_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"default, opt_2 to opt_20","in":"path","name":"option_key","required":true,"schema":{"description":"default, opt_2 to opt_20","pattern":"^(default|opt_([2-9]|1[0-9]|20))$","title":"Option Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionWhen"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionWhenSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionWhenSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Set when one option runs: start times, days, season and closed days (its timetables)","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/pause":{"post":{"description":"Pause an experience, or sell it again. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"experience_pause_v1_shops__organization_id__experiences__key__pause_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateSet"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; experience_not_ready (state selling; context.missing: the step numbers)"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Pause an experience, or sell it again","tags":["experiences"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/experiences/{key}/prices":{"put":{"description":"Save the walk-in prices (the whole set). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"prices_save_v1_shops__organization_id__experiences__key__prices_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The experience's code (its slug)","in":"path","name":"key","required":true,"schema":{"description":"The experience's code (its slug)","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricesSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricesSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricesSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown experience, option or channel"},"409":{"description":"stale_version; option_in_use, option_limit, activity_taken, listing_not_connected, price_rule_kind"},"422":{"description":"invalid_input (context.field); listing_code_needed; listing_unmapped (context.unmapped: the guest types to map), provider_not_connectable, listing_resource_required, on_request_not_supported"}},"security":[{"ApiKey":[]}],"summary":"Save the walk-in prices (the whole set)","tags":["experiences"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/finance/forecast":{"get":{"description":"The forecast for the year, month by month, as far as the key may see. Money is in integer minor units of the shop's currency.","operationId":"forecast_read_v1_shops__organization_id__finance_forecast_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Left out: this year in the shop's time zone","in":"query","name":"year","required":false,"schema":{"anyOf":[{"maximum":2100,"minimum":2000,"type":"integer"},{"type":"null"}],"description":"Left out: this year in the shop's time zone","title":"Year"}},{"in":"query","name":"scenario","required":false,"schema":{"default":"expected","pattern":"^(expected|careful|bold|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","title":"Scenario","type":"string"}},{"in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Location Ids"}},{"in":"query","name":"legal_entity_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Legal Entity Ids"}},{"in":"query","name":"streams","required":false,"schema":{"anyOf":[{"items":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"type":"string"},"maxItems":6,"type":"array"},{"type":"null"}],"title":"Streams"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forecast"}}},"description":"Successful Response"},"403":{"description":"This login may not see finance, or not at this level"},"404":{"description":"Not one of this shop's records, or outside your places"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Get the forecast","tags":["finance"],"x-og-group":"Shop finance","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/finance/overview":{"get":{"description":"The Finance overview in one read, as far as the key may see: the tiles, twelve months with the bank line, money in and out, how money in was paid, facts, the next 13 weeks of cash, the next season's books, the numbers, money owed both ways and the group. Needs the Finance and costs area (or Money for the shop's totals only). Without the Team pay area a team member's pay is never the next payment shown. Money is in integer minor units of the shop's currency; days are the shop's local days.","operationId":"overview_read_v1_shops__organization_id__finance_overview_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Used when from and to are absent","in":"query","name":"period","required":false,"schema":{"default":"year","description":"Used when from and to are absent","enum":["month","season","year"],"title":"Period","type":"string"}},{"description":"First day, with to (a custom range); wins over period","in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First day, with to (a custom range); wins over period","title":"From"}},{"description":"Last day, with from; at most 366 days after from","in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Last day, with from; at most 366 days after from","title":"To"}},{"in":"query","name":"compare","required":false,"schema":{"default":"last_year","enum":["last_year","previous","none"],"title":"Compare","type":"string"}},{"in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Location Ids"}},{"in":"query","name":"legal_entity_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Legal Entity Ids"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceOverview"}}},"description":"Successful Response"},"403":{"description":"This login may not see finance, or not at this level"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Get the finance overview","tags":["finance"],"x-og-group":"Shop finance","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/finance/pace":{"get":{"description":"How the period is pacing week by week against the same weeks of an earlier year (last year by default), as far as the key may see. Money is in integer minor units of the shop's currency.","operationId":"finance_pace_read_v1_shops__organization_id__finance_pace_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Used when from and to are absent","in":"query","name":"period","required":false,"schema":{"default":"year","description":"Used when from and to are absent","enum":["month","season","year","weeks13"],"title":"Period","type":"string"}},{"description":"First day, with to (a custom range); wins over period","in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First day, with to (a custom range); wins over period","title":"From"}},{"description":"Last day, with from; at most 366 days after from","in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Last day, with from; at most 366 days after from","title":"To"}},{"description":"last_year when neither compare nor compare_on is given","in":"query","name":"compare","required":false,"schema":{"anyOf":[{"enum":["last_year","years_2","years_3","avg_3","budget"],"type":"string"},{"type":"null"}],"description":"last_year when neither compare nor compare_on is given","title":"Compare"}},{"in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Location Ids"}},{"in":"query","name":"legal_entity_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Legal Entity Ids"}},{"description":"Lines of business; all when absent","in":"query","name":"lines","required":false,"schema":{"anyOf":[{"items":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"type":"string"},"maxItems":6,"type":"array"},{"type":"null"}],"description":"Lines of business; all when absent","title":"Lines"}},{"description":"Compare with what was on the books at the end of this day (not with compare)","in":"query","name":"compare_on","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Compare with what was on the books at the end of this day (not with compare)","title":"Compare On"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancePace"}}},"description":"Successful Response"},"403":{"description":"This login may not see finance, or not at this level"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Get the pace","tags":["finance"],"x-og-group":"Shop finance","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/finance/season":{"get":{"description":"The season by week or month against last year, as far as the key may see. Money is in integer minor units of the shop's currency.","operationId":"finance_season_read_v1_shops__organization_id__finance_season_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Used when from and to are absent","in":"query","name":"period","required":false,"schema":{"default":"year","description":"Used when from and to are absent","enum":["month","season","year","weeks13"],"title":"Period","type":"string"}},{"description":"First day, with to (a custom range); wins over period","in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"First day, with to (a custom range); wins over period","title":"From"}},{"description":"Last day, with from; at most 366 days after from","in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"Last day, with from; at most 366 days after from","title":"To"}},{"in":"query","name":"compare","required":false,"schema":{"default":"last_year","enum":["last_year","previous","normal_year","budget","none"],"title":"Compare","type":"string"}},{"in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Location Ids"}},{"in":"query","name":"legal_entity_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Legal Entity Ids"}},{"description":"Lines of business; all when absent","in":"query","name":"lines","required":false,"schema":{"anyOf":[{"items":{"enum":["rentals","tours","shuttles","shop","workshop","other"],"type":"string"},"maxItems":6,"type":"array"},{"type":"null"}],"description":"Lines of business; all when absent","title":"Lines"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceSeason"}}},"description":"Successful Response"},"403":{"description":"This login may not see finance, or not at this level"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Get the season","tags":["finance"],"x-og-group":"Shop finance","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/guest-types":{"post":{"description":"Add a guest type. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"guest_type_create_v1_shops__organization_id__guest_types_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTypeCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTypeSaved"}}},"description":"A replay of the same create"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTypeSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown guest type or product"},"409":{"description":"stale_version; guest_type_key_taken, guest_type_in_use"},"422":{"description":"invalid_input (context.field); guest_types_not_for_rentals"}},"security":[{"ApiKey":[]}],"summary":"Add a guest type","tags":["guest-types"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/guest-types/{key}":{"patch":{"description":"Change a guest type. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"guest_type_update_v1_shops__organization_id__guest_types__key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The guest type's key, for example adult","in":"path","name":"key","required":true,"schema":{"description":"The guest type's key, for example adult","pattern":"^[a-z][a-z0-9_]{1,39}$","title":"Key","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTypePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTypeSaved"}}},"description":"A replay of the same change"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTypeSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown guest type or product"},"409":{"description":"stale_version; guest_type_key_taken, guest_type_in_use"},"422":{"description":"invalid_input (context.field); guest_types_not_for_rentals"}},"security":[{"ApiKey":[]}],"summary":"Change a guest type","tags":["guest-types"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/incidents/{incident_id}/tablet":{"post":{"description":"Send the crash report to a shop tablet for the guest to read and sign; sending again moves it. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"incident_to_tablet_v1_shops__organization_id__incidents__incident_id__tablet_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"incident_id","required":true,"schema":{"format":"uuid","title":"Incident Id","type":"string"}},{"description":"A fresh UUID per command; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per command; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentToTabletIn"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOnTablet"}}},"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOnTablet"}}},"description":"Successful Response"},"404":{"description":"Not found, or outside the caller's places"},"409":{"description":"already_signed, or tablet_unavailable (not an enrolled tablet at the booking's place)"},"422":{"description":"invalid_input (context.field names the field)"}},"security":[{"ApiKey":[]}],"summary":"Send the crash report to a shop tablet for the guest to read and sign; sending again moves it","tags":["returns"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/knowledge/documents/{source_id}/read-again":{"post":{"description":"Body: optional version (the latest when left out). A failed read goes back to waiting and the reading worker reads it again;\nany other read is answered as it is (changed false).","operationId":"read_again_v1_shops__organization_id__knowledge_documents__source_id__read_again_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"source_id","required":true,"schema":{"format":"uuid","title":"Source Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Body","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Read a document again after its read failed","tags":["knowledge"],"x-og-group":"knowledge","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/knowledge/documents/{source_id}/versions/{version}/facts":{"post":{"description":"Body: label (at most 120 characters), body (at most 1,000), optional page.","operationId":"fact_add_v1_shops__organization_id__knowledge_documents__source_id__versions__version__facts_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"source_id","required":true,"schema":{"format":"uuid","title":"Source Id","type":"string"}},{"in":"path","name":"version","required":true,"schema":{"title":"Version","type":"integer"}},{"in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Body","type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a fact by hand","tags":["knowledge"],"x-og-group":"knowledge","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/knowledge/documents/{source_id}/versions/{version}/facts/{fact_id}":{"patch":{"description":"Body: expected_version, and any of label, body, page, state (active or removed). A removed fact is never used.","operationId":"fact_change_v1_shops__organization_id__knowledge_documents__source_id__versions__version__facts__fact_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"source_id","required":true,"schema":{"format":"uuid","title":"Source Id","type":"string"}},{"in":"path","name":"version","required":true,"schema":{"title":"Version","type":"integer"}},{"in":"path","name":"fact_id","required":true,"schema":{"format":"uuid","title":"Fact Id","type":"string"}},{"in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Body","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change or remove a fact","tags":["knowledge"],"x-og-group":"knowledge","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/payments/open-balances":{"get":{"description":"What open bookings and till sales on account still owe as of the shop's today, by business and by place, in integer minor units with the currency. Totals only, no customer.","operationId":"open_balances_v1_shops__organization_id__payments_open_balances_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentsOut"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get open balances","tags":["payments"],"x-og-group":"Shop money","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/payments/takings":{"get":{"description":"Money taken online and at the desk between two days (at most 400), by business and by place, net of refunds, in integer minor units with the currency. Days are each place's local day.","operationId":"takings_v1_shops__organization_id__payments_takings_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"from","required":true,"schema":{"format":"date","title":"From","type":"string"}},{"in":"query","name":"to","required":true,"schema":{"format":"date","title":"To","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentsOut"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get takings","tags":["payments"],"x-og-group":"Shop money","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists":{"post":{"description":"Add a price list. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_price_list_v1_shops__organization_id__price_lists_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceListSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a price list","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/rules":{"post":{"description":"Add a price rule. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_price_rule_v1_shops__organization_id__price_lists_rules_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceRuleSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a price rule","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/rules/{rule_id}":{"patch":{"description":"Change a price rule. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_price_rule_v1_shops__organization_id__price_lists_rules__rule_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"rule_id","required":true,"schema":{"format":"uuid","title":"Rule Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceRuleSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a price rule","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/rules/{rule_id}/archive":{"post":{"description":"Archive a price rule. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"archive_price_rule_v1_shops__organization_id__price_lists_rules__rule_id__archive_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"rule_id","required":true,"schema":{"format":"uuid","title":"Rule Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceRuleArchive"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Archive a price rule","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/seasons":{"post":{"description":"Add a season. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_season_v1_shops__organization_id__price_lists_seasons_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a season","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/seasons/{season_id}":{"patch":{"description":"Change a season. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_season_v1_shops__organization_id__price_lists_seasons__season_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"season_id","required":true,"schema":{"format":"uuid","title":"Season Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a season","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/splits":{"post":{"description":"Add a split rule (shares total 100%). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_split_v1_shops__organization_id__price_lists_splits_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitRuleSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a split rule (shares total 100%)","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/splits/{rule_id}":{"patch":{"description":"Change a split rule. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_split_v1_shops__organization_id__price_lists_splits__rule_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"rule_id","required":true,"schema":{"format":"uuid","title":"Rule Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitRuleSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a split rule","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/table":{"put":{"description":"Save one product's price table (durations by season and weekday) in one go. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_price_table_v1_shops__organization_id__price_lists_table_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceTableSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Save one product's price table (durations by season and weekday) in one go","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/price-lists/{list_id}":{"patch":{"description":"Change a price list. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_price_list_v1_shops__organization_id__price_lists__list_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"list_id","required":true,"schema":{"format":"uuid","title":"List Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceListSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a price list","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/products":{"post":{"description":"Add a product of any kind but rental. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_product_v1_shops__organization_id__products_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDoc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a product of any kind but rental","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/products/{slug}":{"patch":{"description":"Change a product. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"patch_product_v1_shops__organization_id__products__slug__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"title":"Slug","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDoc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a product","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/products/{slug}/guest-types":{"put":{"description":"Set the guest types a product sells (the whole set). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"product_guest_types_save_v1_shops__organization_id__products__slug__guest_types_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The product's slug","in":"path","name":"slug","required":true,"schema":{"description":"The product's slug","pattern":"^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$","title":"Slug","type":"string"}},{"description":"A fresh UUID per save; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per save; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductGuestTypesSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductGuestTypesSaved"}}},"description":"A replay of the same save"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductGuestTypesSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown guest type or product"},"409":{"description":"stale_version; guest_type_key_taken, guest_type_in_use"},"422":{"description":"invalid_input (context.field); guest_types_not_for_rentals"}},"security":[{"ApiKey":[]}],"summary":"Set the guest types a product sells (the whole set)","tags":["guest-types"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/products/{slug}/package":{"put":{"description":"Set the components and choices of a package. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_package_v1_shops__organization_id__products__slug__package_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"title":"Slug","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Set the components and choices of a package","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/products/{slug}/price-ladder":{"put":{"description":"Save a rental's prices for any length (the whole ladder). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_ladder_v1_shops__organization_id__products__slug__price_ladder_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"title":"Slug","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceLadderSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceLadder"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Save a rental's prices for any length (the whole ladder)","tags":["selling"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/purchasing/emails/{email_id}/cancel":{"post":{"description":"A draft is cancelled; a scheduled one is cancelled and its queued email stopped while the mailer has not taken it (else email_on_its_way). Body `{version}` or `{expected_version}`, both optional. Answer: `{id, version, state, replayed, card}`: `card` is the `email` card in its new state (`emailId`, `version`, `supplier`, `state` draft, sent or cancelled, `sendsAt` null once sent or cancelled, `lines` `[{key, label, amount}]`, `quote`, `note?`, `delivery?` queued, sent, simulated, suppressed or failed), in the language of `Accept-Language`. 200, also on a replay.","operationId":"cancel_email_v1_shops__organization_id__purchasing_emails__email_id__cancel_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"email_id","required":true,"schema":{"format":"uuid","title":"Email Id","type":"string"}},{"description":"A fresh UUID for each press; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each press; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EmailCommand"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCommandAnswer"}}},"description":"Successful Response"},"404":{"description":"No such email in this shop"},"409":{"description":"Already sent or cancelled (email_closed), on its way already (email_on_its_way), or a stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Cancel a drafted supplier email","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/purchasing/emails/{email_id}/send":{"post":{"description":"A draft (not confirmed: this press is the approval) is queued now; a scheduled one has its queued email moved to now. Body `{version}` or `{expected_version}`, both optional. Answer: `{id, version, state, replayed, card}`: `card` is the `email` card in its new state (`emailId`, `version`, `supplier`, `state` draft, sent or cancelled, `sendsAt` null once sent or cancelled, `lines` `[{key, label, amount}]`, `quote`, `note?`, `delivery?` queued, sent, simulated, suppressed or failed), in the language of `Accept-Language`. 200, also on a replay.","operationId":"send_email_v1_shops__organization_id__purchasing_emails__email_id__send_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"email_id","required":true,"schema":{"format":"uuid","title":"Email Id","type":"string"}},{"description":"A fresh UUID for each press; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each press; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EmailCommand"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCommandAnswer"}}},"description":"Successful Response"},"404":{"description":"No such email in this shop"},"409":{"description":"Already sent or cancelled (email_closed), on its way already (email_on_its_way), or a stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Send a drafted supplier email now","tags":["buying"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/schedules/people/{person_id}/setup/{section}":{"put":{"description":"Replace one section of a person's schedule setup. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"save_member_v1_shops__organization_id__schedules_people__person_id__setup__section__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"person_id","required":true,"schema":{"format":"uuid","title":"Person Id","type":"string"}},{"in":"path","name":"section","required":true,"schema":{"enum":["positions","terms","usual_hours","allowances"],"title":"Section","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Replace one section of a person's schedule setup","tags":["schedules"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/schedules/rules/{section}":{"put":{"description":"Replace one section of the rules. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"save_rules_v1_shops__organization_id__schedules_rules__section__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"section","required":true,"schema":{"enum":["settings","seasons","coverage","breaks","load","periods"],"title":"Section","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Replace one section of the rules","tags":["schedules"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/schedules/weeks/{week_start}/copy":{"post":{"description":"Copy another week into this one as a draft. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"copy_week_v1_shops__organization_id__schedules_weeks__week_start__copy_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week_start","required":true,"schema":{"format":"date","title":"Week Start","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Copy another week into this one as a draft","tags":["schedules"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/schedules/weeks/{week_start}/draft":{"put":{"description":"Replace the draft of a week. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"save_draft_v1_shops__organization_id__schedules_weeks__week_start__draft_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week_start","required":true,"schema":{"format":"date","title":"Week Start","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Replace the draft of a week","tags":["schedules"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/schedules/weeks/{week_start}/generate":{"post":{"description":"Ask for a draft from the rules, requests and booking load. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"generate_v1_shops__organization_id__schedules_weeks__week_start__generate_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week_start","required":true,"schema":{"format":"date","title":"Week Start","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationStarted"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Ask for a draft from the rules, requests and booking load","tags":["schedules"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/schedules/weeks/{week_start}/publish":{"post":{"description":"Publish the draft: staff see it, occupancy is written. With an API key: the key's change tick for Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"publish_week_v1_shops__organization_id__schedules_weeks__week_start__publish_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"week_start","required":true,"schema":{"format":"date","title":"Week Start","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Publish the draft: staff see it, occupancy is written","tags":["schedules"],"x-og-group":"tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/brands":{"post":{"description":"Add a brand. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"stock_create_brand_v1_shops__organization_id__stock_brands_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandSave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Stock Create Brand V1 Shops  Organization Id  Stock Brands Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a brand","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/categories":{"post":{"description":"Add a category. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"stock_create_category_v1_shops__organization_id__stock_categories_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategorySave"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Stock Create Category V1 Shops  Organization Id  Stock Categories Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a category","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/categories/{category_id}":{"patch":{"description":"Rename, move or archive a category. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"stock_update_category_v1_shops__organization_id__stock_categories__category_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"category_id","required":true,"schema":{"format":"uuid","title":"Category Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategorySave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Stock Update Category V1 Shops  Organization Id  Stock Categories  Category Id  Patch","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Rename, move or archive a category","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/movements":{"get":{"description":"Stock movements, newest first, a page at a time (at most 100). Pass the answer's cursor for the next page. Unit costs need the Finance and costs area.","operationId":"movements_v1_shops__organization_id__stock_movements_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"part","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part"}},{"in":"query","name":"location_id","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"}},{"in":"query","name":"kind","required":false,"schema":{"anyOf":[{"maxLength":32,"type":"string"},{"type":"null"}],"title":"Kind"}},{"in":"query","name":"since","required":false,"schema":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"title":"Since"}},{"in":"query","name":"until","required":false,"schema":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"title":"Until"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Movements V1 Shops  Organization Id  Stock Movements Get","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List stock movements","tags":["stock"],"x-og-group":"Shop stock","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/orders":{"post":{"description":"Start a purchase order. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_order_v1_shops__organization_id__stock_orders_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Create Order V1 Shops  Organization Id  Stock Orders Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Start a purchase order","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/orders/{key}":{"put":{"description":"Edit a draft purchase order. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"update_order_v1_shops__organization_id__stock_orders__key__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Update Order V1 Shops  Organization Id  Stock Orders  Key  Put","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Edit a draft purchase order","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/orders/{key}/cancel":{"post":{"description":"Cancel an order that has no delivery. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"cancel_order_v1_shops__organization_id__stock_orders__key__cancel_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStep"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Cancel Order V1 Shops  Organization Id  Stock Orders  Key  Cancel Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Cancel an order that has no delivery","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/orders/{key}/close-short":{"post":{"description":"Close an order that will not be completed. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"close_short_v1_shops__organization_id__stock_orders__key__close_short_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStep"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Close Short V1 Shops  Organization Id  Stock Orders  Key  Close Short Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Close an order that will not be completed","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/orders/{key}/send":{"post":{"description":"Send a draft order without an email (channel portal or phone; none: marked sent). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"send_order_v1_shops__organization_id__stock_orders__key__send_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSend"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Send Order V1 Shops  Organization Id  Stock Orders  Key  Send Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Send a draft order without an email (channel portal or phone; none: marked sent)","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/parts":{"post":{"description":"Add a part. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"create_part_v1_shops__organization_id__stock_parts_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Create Part V1 Shops  Organization Id  Stock Parts Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a part","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/parts/batch":{"post":{"description":"Each row may carry opening stock, extra barcodes, serial numbers and supplier products. Any bad row writes nothing unless partial is true; the answer names each bad row and field.","operationId":"stock_import_parts_v1_shops__organization_id__stock_parts_batch_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartBatch"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Stock Import Parts V1 Shops  Organization Id  Stock Parts Batch Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add up to 500 parts in one call","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/parts/{key}":{"get":{"description":"One stock part with its stock levels at each place.","operationId":"read_part_v1_shops__organization_id__stock_parts__key__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Read Part V1 Shops  Organization Id  Stock Parts  Key  Get","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a stock part","tags":["stock"],"x-og-group":"Shop stock","x-og-public":true,"x-og-stability":"preview"},"patch":{"description":"Change a part. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"update_part_v1_shops__organization_id__stock_parts__key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Update Part V1 Shops  Organization Id  Stock Parts  Key  Patch","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a part","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/parts/{key}/barcodes":{"put":{"description":"Replace the extra barcodes of a part. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"stock_save_barcodes_v1_shops__organization_id__stock_parts__key__barcodes_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BarcodesSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Stock Save Barcodes V1 Shops  Organization Id  Stock Parts  Key  Barcodes Put","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Replace the extra barcodes of a part","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/parts/{key}/find":{"put":{"description":"Model, aliases, fit attributes and shelf of a part (what the search reads). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"save_find_v1_shops__organization_id__stock_parts__key__find_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartFind"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Save Find V1 Shops  Organization Id  Stock Parts  Key  Find Put","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Model, aliases, fit attributes and shelf of a part (what the search reads)","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/reorder/orders":{"post":{"description":"Create draft orders, one per supplier and location. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"draft_orders_v1_shops__organization_id__stock_reorder_orders_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftsFromSuggestions"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Draft Orders V1 Shops  Organization Id  Stock Reorder Orders Post","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Create draft orders, one per supplier and location","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/suppliers/{company_key}/parts/{part_key}":{"delete":{"description":"Stop buying a part from a supplier. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"supplier_part_remove_v1_shops__organization_id__stock_suppliers__company_key__parts__part_key__delete","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"company_key","required":true,"schema":{"title":"Company Key","type":"string"}},{"in":"path","name":"part_key","required":true,"schema":{"title":"Part Key","type":"string"}},{"in":"query","name":"idempotency_key","required":true,"schema":{"format":"uuid","title":"Idempotency Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Supplier Part Remove V1 Shops  Organization Id  Stock Suppliers  Company Key  Parts  Part Key  Delete","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Stop buying a part from a supplier","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"},"put":{"description":"What a supplier sells: code, cost, minimum order, pack, lead time. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"supplier_part_v1_shops__organization_id__stock_suppliers__company_key__parts__part_key__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"company_key","required":true,"schema":{"title":"Company Key","type":"string"}},{"in":"path","name":"part_key","required":true,"schema":{"title":"Part Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierPart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Supplier Part V1 Shops  Organization Id  Stock Suppliers  Company Key  Parts  Part Key  Put","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"What a supplier sells: code, cost, minimum order, pack, lead time","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/stock/suppliers/{company_key}/terms":{"put":{"description":"Buying terms of a supplier. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"supplier_terms_v1_shops__organization_id__stock_suppliers__company_key__terms_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"company_key","required":true,"schema":{"title":"Company Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierTerms"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"title":"Response Supplier Terms V1 Shops  Organization Id  Stock Suppliers  Company Key  Terms Put","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Buying terms of a supplier","tags":["stock"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/bundles":{"post":{"description":"Add a bundle or kit (a draft). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"store_bundle_create_v1_shops__organization_id__store_bundles_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBundleCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBundleSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBundleSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown bundle, department, business, store product, stock row or workshop service"},"409":{"description":"stale_version; bundle_slug_taken, bundle_not_ready (context.field the first failing readiness key)"},"422":{"description":"invalid_input (context.field); bundle_component_invalid (context.field components.<n> or components.<n>.<field>)"}},"security":[{"ApiKey":[]}],"summary":"Add a bundle or kit (a draft)","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/feeds/{feed_id}/rebuild":{"post":{"description":"Build a feed again now (at most once a minute). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"feed_rebuild_v1_shops__organization_id__store_feeds__feed_id__rebuild_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The feed's id, as the list answers it","in":"path","name":"feed_id","required":true,"schema":{"description":"The feed's id, as the list answers it","format":"uuid","title":"Feed Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeedSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeedSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown feed or product"},"409":{"description":"stale_version; feed_taken, feed_archived, feed_rebuild_busy"},"422":{"description":"invalid_input (context.field, market_key for an unknown or archived market); feed_format_not_offered (context.field format); or a missing or malformed Idempotency-Key"}},"security":[{"ApiKey":[]}],"summary":"Build a feed again now (at most once a minute)","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/grouping/apply":{"post":{"description":"Make draft products from the groups you kept. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"store_grouping_apply_v1_shops__organization_id__store_grouping_apply_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingApply"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingApplied"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingApplied"}}},"description":"Successful Response"},"404":{"description":"Unknown grouping run, department, category, brand, product or stock row"},"409":{"description":"stale_version; grouping_stale, grouping_undo_blocked, grouping_undone, grouping_target_live, stock_row_taken, variant_options_clash"},"422":{"description":"invalid_input (context.field); attribute_unknown, attribute_invalid"}},"security":[{"ApiKey":[]}],"summary":"Make draft products from the groups you kept","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/grouping/runs/{run_id}/undo":{"post":{"description":"Undo a grouping: remove exactly what it added. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"store_grouping_undo_v1_shops__organization_id__store_grouping_runs__run_id__undo_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"run_id","required":true,"schema":{"format":"uuid","title":"Run Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingUndo"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingUndone"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingUndone"}}},"description":"Successful Response"},"404":{"description":"Unknown grouping run, department, category, brand, product or stock row"},"409":{"description":"stale_version; grouping_stale, grouping_undo_blocked, grouping_undone, grouping_target_live, stock_row_taken, variant_options_clash"},"422":{"description":"invalid_input (context.field); attribute_unknown, attribute_invalid"}},"security":[{"ApiKey":[]}],"summary":"Undo a grouping: remove exactly what it added","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/orders/{reference}/lines/{line_no}/special-order":{"post":{"description":"Order the line's item from a supplier: the supplier's draft purchase order for the line's place, the line waiting on it. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"line_special_order_v1_shops__organization_id__store_orders__reference__lines__line_no__special_order_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The order's reference, for example O-2026-0147","in":"path","name":"reference","required":true,"schema":{"description":"The order's reference, for example O-2026-0147","pattern":"^O-[0-9]{4}-[0-9]{4,12}$","title":"Reference","type":"string"}},{"description":"The line's number on the order","in":"path","name":"line_no","required":true,"schema":{"description":"The line's number on the order","maximum":20,"minimum":1,"title":"Line No","type":"integer"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreLineSpecialOrder"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreLineSpecialOrdered"}}},"description":"A replay of the same write"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreLineSpecialOrdered"}}},"description":"Successful Response"},"404":{"description":"Unknown order or line"},"409":{"description":"stale_version, wrong_state, line_on_order, line_in_stock, line_in_transfer"},"422":{"description":"invalid_input (context.field), supplier_not_allowed (context.field supplier_id); or a missing or malformed Idempotency-Key"}},"security":[{"ApiKey":[]}],"summary":"Order the line's item from a supplier: the supplier's draft purchase order for the line's place, the line waiting on it","tags":["store-orders"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/products":{"post":{"description":"Add a store product (a draft). With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"store_product_create_v1_shops__organization_id__store_products_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown product, department, category, brand, business or stock row"},"409":{"description":"stale_version; store_product_not_ready, store_slug_taken, stock_row_taken, variant_options_clash, unit_already_listed"},"422":{"description":"invalid_input (context.field); used_source_not_allowed, used_not_allowed_here, attribute_unknown, attribute_invalid"}},"security":[{"ApiKey":[]}],"summary":"Add a store product (a draft)","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/products/{slug}/feed-facts":{"put":{"description":"Save a product's feed facts: what is sent changes, a null clears it. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"feed_facts_save_v1_shops__organization_id__store_products__slug__feed_facts_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The store product's slug","in":"path","name":"slug","required":true,"schema":{"description":"The store product's slug","pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$","title":"Slug","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeedFactsSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeedFactsSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFeedFactsSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown feed or product"},"409":{"description":"stale_version; feed_taken, feed_archived, feed_rebuild_busy"},"422":{"description":"invalid_input (context.field, market_key for an unknown or archived market); feed_format_not_offered (context.field format); or a missing or malformed Idempotency-Key"}},"security":[{"ApiKey":[]}],"summary":"Save a product's feed facts: what is sent changes, a null clears it","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/products/{slug}/rental":{"put":{"description":"Set or clear the rental product this store product offers to rent. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"store_product_rental_set_v1_shops__organization_id__store_products__slug__rental_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The product's slug, for example trek-marlin-7","in":"path","name":"slug","required":true,"schema":{"description":"The product's slug, for example trek-marlin-7","pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$","title":"Slug","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductRentalSet"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductRentalSaved"}}},"description":"A replay of the same write (same Idempotency-Key)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductRentalSaved"}}},"description":"Successful Response"},"404":{"description":"Unknown product"},"409":{"description":"stale_version"},"422":{"description":"invalid_input (context.field rental_product_id): a rental product of another shop or none at all"}},"security":[{"ApiKey":[]}],"summary":"Set or clear the rental product this store product offers to rent","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/products/{slug}/words-proposals":{"post":{"description":"Propose a product's words, key facts and translations from its approved facts. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"start_words_v1_shops__organization_id__store_products__slug__words_proposals_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The store product's slug","in":"path","name":"slug","required":true,"schema":{"description":"The store product's slug","pattern":"^[a-z0-9](?:[a-z0-9-]{0,78}[a-z0-9])?$","title":"Slug","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordsStart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalStart"}}},"description":"A replay, or nothing stored: state pick (models to pick from) or failed (failure.code, failure.message)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalStart"}}},"description":"Successful Response"},"404":{"description":"Unknown product (photos, words), department or category"},"409":{"description":"idempotency_key_reused"},"422":{"description":"invalid_input (context.field); proposal_too_large"},"429":{"description":"too_many_reads: 30 files, links, kits, photo and word drafts a shop an hour"},"503":{"description":"File storage is not configured; or many links, kits and photos are being read (Retry-After)"}},"security":[{"ApiKey":[]}],"summary":"Propose a product's words, key facts and translations from its approved facts","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/store/proposals/grouping":{"post":{"description":"Propose grouping flat stock rows into store products. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"start_grouping_v1_shops__organization_id__store_proposals_grouping_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per write; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupingStart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalStart"}}},"description":"A replay, or nothing stored: state pick (models to pick from) or failed (failure.code, failure.message)"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalStart"}}},"description":"Successful Response"},"404":{"description":"Unknown product (photos, words), department or category"},"409":{"description":"idempotency_key_reused"},"422":{"description":"invalid_input (context.field); proposal_too_large"},"429":{"description":"too_many_reads: 30 files, links, kits, photo and word drafts a shop an hour"},"503":{"description":"File storage is not configured; or many links, kits and photos are being read (Retry-After)"}},"security":[{"ApiKey":[]}],"summary":"Propose grouping flat stock rows into store products","tags":["store"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tasks":{"get":{"description":"The shop's open tasks, those assigned to the key's person, or those done today (at most 500, `truncated` when there are more). A task about a customer names them only for a key with the Customers and companies area, and the title and body a person typed need the Customer contact details area; every task returned counts toward the key's daily customer budget. `synced` is always false for a key. Times are UTC.","operationId":"tasks_v1_shops__organization_id__tasks_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"view","required":false,"schema":{"default":"open","enum":["open","mine","done_today"],"title":"View","type":"string"}},{"in":"query","name":"area","required":false,"schema":{"anyOf":[{"enum":["desk","tours","equipment","workshop","stock","vehicles","till","customers","team","schedules","money","inbox","selling","setup","other"],"type":"string"},{"type":"null"}],"title":"Area"}},{"in":"query","name":"assignee_id","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Assignee Id"}},{"in":"query","name":"q","required":false,"schema":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"title":"Q"}},{"in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskList"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List tasks","tags":["desk"],"x-og-group":"Shop tasks","x-og-public":true,"x-og-stability":"preview"},"post":{"description":"Add a task. With an API key: the key's change tick for Tasks and inbox and an Idempotency-Key header (a UUID).","operationId":"task_create_v1_shops__organization_id__tasks_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a task","tags":["desk"],"x-og-group":"tasks","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tasks/{task_id}":{"delete":{"description":"Delete a task a person made (versioned). With an API key: the key's change tick for Tasks and inbox and an Idempotency-Key header (a UUID).","operationId":"task_delete_v1_shops__organization_id__tasks__task_id__delete","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"task_id","required":true,"schema":{"format":"uuid","title":"Task Id","type":"string"}},{"in":"query","name":"expected_version","required":true,"schema":{"minimum":1,"title":"Expected Version","type":"integer"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDeleted"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Delete a task a person made (versioned)","tags":["desk"],"x-og-group":"tasks","x-og-public":true,"x-og-stability":"preview"},"patch":{"description":"Change a task (versioned). With an API key: the key's change tick for Tasks and inbox and an Idempotency-Key header (a UUID).","operationId":"task_change_v1_shops__organization_id__tasks__task_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"task_id","required":true,"schema":{"format":"uuid","title":"Task Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change a task (versioned)","tags":["desk"],"x-og-group":"tasks","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tasks/{task_id}/done":{"post":{"description":"Tick a task done, or open it again. With an API key: the key's change tick for Tasks and inbox and an Idempotency-Key header (a UUID).","operationId":"task_done_v1_shops__organization_id__tasks__task_id__done_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"task_id","required":true,"schema":{"format":"uuid","title":"Task Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Tick a task done, or open it again","tags":["desk"],"x-og-group":"tasks","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tasks/{task_id}/notes":{"post":{"description":"Add a note to a task's Activity. With an API key: the key's change tick for Tasks and inbox and an Idempotency-Key header (a UUID).","operationId":"task_note_add_v1_shops__organization_id__tasks__task_id__notes_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"task_id","required":true,"schema":{"format":"uuid","title":"Task Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskNoteAdd"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskActivity"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a note to a task's Activity","tags":["desk"],"x-og-group":"tasks","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tour-requests/{tour_request_id}/decline":{"post":{"description":"Say no to a tour request, with a note. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"decline_tour_request_v1_shops__organization_id__tour_requests__tour_request_id__decline_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"tour_request_id","required":true,"schema":{"format":"uuid","title":"Tour Request Id","type":"string"}},{"description":"A fresh UUID per write; a retry sends the same one","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per write; a retry sends the same one","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourRequestDecline"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key: the first answer"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourRequestWritten"}}},"description":"Successful Response"},"404":{"description":"Unknown tour request, or one of a place you cannot see"},"409":{"description":"stale_version: someone saved meanwhile; tour_request_answered: already answered, expired or its booking cancelled"},"422":{"description":"Idempotency-Key header required, or a bad body"}},"security":[{"ApiKey":[]}],"summary":"Say no to a tour request, with a note","tags":["booking flow"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/crew/{person_id}":{"put":{"description":"Add or change a crew-pool entry only (older; the fee needs the pay scope). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"crew_pool_save_v1_shops__organization_id__tours_crew__person_id__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"person_id","required":true,"schema":{"format":"uuid","title":"Person Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrewPoolSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add or change a crew-pool entry only (older; the fee needs the pay scope)","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures":{"get":{"description":"Departures between two days (at most 62 days, up to 300), ordered by start time. Times are UTC; days are the shop's local days.","operationId":"departures_range_v1_shops__organization_id__tours_departures_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"from","required":true,"schema":{"format":"date","title":"From","type":"string"}},{"in":"query","name":"to","required":true,"schema":{"format":"date","title":"To","type":"string"}},{"description":"Limit to these places; outside the caller's bounds is refused","in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"type":"array"},{"type":"null"}],"description":"Limit to these places; outside the caller's bounds is refused","title":"Location Ids"}},{"in":"query","name":"product_id","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Product Id"}},{"in":"query","name":"status","required":false,"schema":{"anyOf":[{"pattern":"^(proposed|scheduled|cancelled|done)$","type":"string"},{"type":"null"}],"title":"Status"}},{"in":"query","name":"bookable_only","required":false,"schema":{"default":false,"title":"Bookable Only","type":"boolean"}},{"in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":300,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List departures","tags":["tours"],"x-og-group":"Shop tours","x-og-public":true,"x-og-stability":"preview"},"post":{"description":"Add a one-off departure. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"departure_create_v1_shops__organization_id__tours_departures_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartureCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a one-off departure","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}":{"patch":{"description":"Change the time, seats or meeting point of this departure only. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"departure_update_v1_shops__organization_id__tours_departures__departure_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeparturePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version, or the crew is busy at the new time"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change the time, seats or meeting point of this departure only","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/arrivals":{"put":{"description":"Mark riders arrived or no show, or clear the mark; answers the check in read. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"check_in_arrivals_v1_shops__organization_id__tours_departures__departure_id__arrivals_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each tap; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each tap; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInArrivals"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCheckIn"}}},"description":"Successful Response"},"409":{"description":"departure_closed: the departure is cancelled or finished"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Mark riders arrived or no show, or clear the mark; answers the check in read","tags":["tour check in"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/cancel":{"post":{"description":"Cancel: frees crew and van and lists who to call. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"departure_cancel_v1_shops__organization_id__tours_departures__departure_id__cancel_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartureCancel"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Cancel: frees crew and van and lists who to call","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/checklist":{"put":{"description":"Tick or untick the crew's before you go items of this departure; answers the check in read. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"check_in_checklist_v1_shops__organization_id__tours_departures__departure_id__checklist_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each tap; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each tap; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInChecklist"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCheckIn"}}},"description":"Successful Response"},"409":{"description":"departure_closed: the departure is cancelled or finished"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Tick or untick the crew's before you go items of this departure; answers the check in read","tags":["tour check in"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/confirm":{"post":{"description":"Confirm a proposed extra departure. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"departure_confirm_v1_shops__organization_id__tours_departures__departure_id__confirm_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Versioned"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Confirm a proposed extra departure","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/decide":{"post":{"description":"Run or cancel a departure below its minimum. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"departure_decide_v1_shops__organization_id__tours_departures__departure_id__decide_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartureDecide"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Run or cancel a departure below its minimum","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/legs":{"patch":{"description":"Save the whole list in driving order: a leg with an id is kept and edited, one without is added, one left out is removed. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"legs_save_v1_shops__organization_id__tours_departures__departure_id__legs_patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegsSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegsSaved"}}},"description":"Successful Response"},"404":{"description":"No such departure in this shop"},"409":{"description":"stale_version: someone saved this departure since it was read; departure_closed: it is done or cancelled"},"422":{"description":"invalid_leg (context.field legs.N.pickup or legs.N.dropoff); booking_not_on_departure (context.field booking_ids); unknown_leg: an id that is not a leg of this departure"}},"security":[{"ApiKey":[]}],"summary":"Save the whole list in driving order: a leg with an id is kept and edited, one without is added, one left out is removed","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"},"post":{"description":"Add one leg at a position (the end when absent); the departure's version moves on by one. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"legs_add_v1_shops__organization_id__tours_departures__departure_id__legs_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegAdd"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing added twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegsSaved"}}},"description":"Successful Response"},"404":{"description":"No such departure in this shop"},"409":{"description":"stale_version: someone saved this departure since it was read; departure_closed: it is done or cancelled"},"422":{"description":"invalid_leg (context.field leg.pickup or leg.dropoff): no place and no words on one end; booking_not_on_departure (context.field booking_ids)"}},"security":[{"ApiKey":[]}],"summary":"Add one leg at a position (the end when absent); the departure's version moves on by one","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/legs/notice":{"post":{"description":"Email the legs to every driver on the departure, each in their own language, with an 'I can drive' and an 'I can't' link. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"notice_send_v1_shops__organization_id__tours_departures__departure_id__legs_notice_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeSend"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing queued twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeSent"}}},"description":"Successful Response"},"404":{"description":"No such departure in this shop"},"409":{"description":"departure_closed: done or cancelled; no_driver; no_legs; notice_checks_failed (context.field the first failing check: seats, bikes, driver_allowed or driving_time)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Email the legs to every driver on the departure, each in their own language, with an 'I can drive' and an 'I can't' link","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/riders/message":{"post":{"description":"Email the riders of a departure: one email per booking, to its customer. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"riders_message_v1_shops__organization_id__tours_departures__departure_id__riders_message_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidersMessage"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RidersMessaged"}}},"description":"Successful Response"},"404":{"description":"No such departure"},"409":{"description":"The departure is done"},"422":{"description":"The subject or the words are empty, or a booking is not on this departure"}},"security":[{"ApiKey":[]}],"summary":"Email the riders of a departure: one email per booking, to its customer","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/seats-cap":{"put":{"description":"Limit the seats sold below what the vans hold, or clear the limit. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"departure_seats_cap_v1_shops__organization_id__tours_departures__departure_id__seats_cap_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeatsCap"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version, or more riders are booked than the limit"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Limit the seats sold below what the vans hold, or clear the limit","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/start":{"post":{"description":"Start the tour: who and when, kept with the arrivals; refused with its blockers unless anyway. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"check_in_start_v1_shops__organization_id__tours_departures__departure_id__start_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each tap; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each tap; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInStart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCheckIn"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInNotReady"}}},"description":"not_ready (nothing written, the blockers named), tour_started or departure_closed"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Start the tour: who and when, kept with the arrivals; refused with its blockers unless anyway","tags":["tour check in"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/departures/{departure_id}/waivers":{"post":{"description":"Send riders' waivers to the shop tablet, or email the booking's customer the link; answers the check in read with what was sent. With an API key: the key's change tick for Bookings and an Idempotency-Key header (a UUID).","operationId":"check_in_waivers_v1_shops__organization_id__tours_departures__departure_id__waivers_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"departure_id","required":true,"schema":{"format":"uuid","title":"Departure Id","type":"string"}},{"description":"A fresh UUID for each tap; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each tap; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInSendWaivers"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourCheckIn"}}},"description":"Successful Response"},"409":{"description":"departure_closed, waivers_not_set_up, waiver_signed or tablet_unavailable"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Send riders' waivers to the shop tablet, or email the booking's customer the link; answers the check in read with what was sent","tags":["tour check in"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/extra-shuttles":{"post":{"description":"Open an extra departure for a day (a manager confirms first when the tour asks). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"extra_open_v1_shops__organization_id__tours_extra_shuttles_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraOpen"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Open an extra departure for a day (a manager confirms first when the tour asks)","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/meeting-points":{"get":{"description":"The shop's active meeting points, ordered by place name.","operationId":"meeting_points_v1_shops__organization_id__tours_meeting_points_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List meeting points","tags":["tours"],"x-og-group":"Shop tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/priorities":{"put":{"description":"Save a priority list with its people in order. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"priority_save_v1_shops__organization_id__tours_priorities_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrioritySave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Written"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Save a priority list with its people in order","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/products":{"get":{"description":"The shop's tours with their next departure (up to 200).","operationId":"products_list_v1_shops__organization_id__tours_products_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Limit to these places; outside the caller's bounds is refused","in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"type":"array"},{"type":"null"}],"description":"Limit to these places; outside the caller's bounds is refused","title":"Location Ids"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourList"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List tours","tags":["tours"],"x-og-group":"Shop tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/products/{product_id}":{"put":{"description":"Set a tour's run rules and crew needs. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"product_save_v1_shops__organization_id__tours_products__product_id__put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"product_id","required":true,"schema":{"format":"uuid","title":"Product Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourSettings"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Set a tour's run rules and crew needs","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/products/{product_id}/checklist":{"put":{"description":"Set a service's before you go list: up to 12 items, each a key and its words. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"save_service_checklist_v1_shops__organization_id__tours_products__product_id__checklist_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"product_id","required":true,"schema":{"format":"uuid","title":"Product Id","type":"string"}},{"description":"A fresh UUID for each tap; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each tap; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceChecklistSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceChecklist"}}},"description":"Successful Response"},"409":{"description":"stale_version: someone changed this list"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Set a service's before you go list: up to 12 items, each a key and its words","tags":["tour check in"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/products/{slug}":{"get":{"description":"One tour: its run rules, timetables, crew needs and priority lists. Prices are integer minor units with their currency.","operationId":"product_read_v1_shops__organization_id__tours_products__slug__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"slug","required":true,"schema":{"maxLength":60,"minLength":1,"pattern":"^[a-z0-9][a-z0-9-]*$","title":"Slug","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a tour","tags":["tours"],"x-og-group":"Shop tours","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/timetables":{"get":{"description":"The timetables of every tour, ordered by tour and start time.","operationId":"timetables_list_v1_shops__organization_id__tours_timetables_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"Limit to these places; outside the caller's bounds is refused","in":"query","name":"location_ids","required":false,"schema":{"anyOf":[{"items":{"format":"uuid","type":"string"},"type":"array"},{"type":"null"}],"description":"Limit to these places; outside the caller's bounds is refused","title":"Location Ids"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List timetables","tags":["tours"],"x-og-group":"Shop tours","x-og-public":true,"x-og-stability":"preview"},"post":{"description":"Add a timetable; its departures roll 120 days ahead. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"timetable_create_v1_shops__organization_id__tours_timetables_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimetableCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a timetable; its departures roll 120 days ahead","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/timetables/{timetable_id}":{"patch":{"description":"Change, pause or resume a timetable. With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"timetable_update_v1_shops__organization_id__tours_timetables__timetable_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"timetable_id","required":true,"schema":{"format":"uuid","title":"Timetable Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimetablePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change, pause or resume a timetable","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/{tour_id}/itinerary":{"put":{"description":"Save a tour's whole itinerary (1 to 60 days, numbered 1 up). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"itinerary_save_v1_shops__organization_id__tours__tour_id__itinerary_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The tour's key","in":"path","name":"tour_id","required":true,"schema":{"description":"The tour's key","maxLength":60,"minLength":1,"pattern":"^[a-z0-9][a-z0-9-]*$","title":"Tour Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItinerarySave"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing saved twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiDaySaved"}}},"description":"Successful Response"},"404":{"description":"No such tour in this shop, or outside your places"},"409":{"description":"stale_version: someone saved this since it was read"},"422":{"description":"place_unknown (context.field days.N.meeting_point_id or days.N.end_point_id); invalid_request: days not numbered 1 up, each once"}},"security":[{"ApiKey":[]}],"summary":"Save a tour's whole itinerary (1 to 60 days, numbered 1 up)","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/tours/{tour_id}/nights":{"put":{"description":"Save a tour's whole list of nights (none to 59, each below the itinerary's day count). With an API key: the key's change tick for Bookings or Tours and schedules and an Idempotency-Key header (a UUID).","operationId":"nights_save_v1_shops__organization_id__tours__tour_id__nights_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The tour's key","in":"path","name":"tour_id","required":true,"schema":{"description":"The tour's key","maxLength":60,"minLength":1,"pattern":"^[a-z0-9][a-z0-9-]*$","title":"Tour Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NightsSave"}}},"required":true},"responses":{"200":{"description":"A replay of the same Idempotency-Key; nothing saved twice"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiDaySaved"}}},"description":"Successful Response"},"404":{"description":"No such tour in this shop, or outside your places"},"409":{"description":"stale_version: someone saved this since it was read"},"422":{"description":"day_out_of_range (context.field nights.N.night_no): not before the last day; invalid_request: a night or a room type key twice"}},"security":[{"ApiKey":[]}],"summary":"Save a tour's whole list of nights (none to 59, each below the itinerary's day count)","tags":["tours"],"x-og-group":"bookings","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/categories":{"get":{"description":"The shop's vehicle categories in order, with how many vehicles each holds.","operationId":"categories_read_v1_shops__organization_id__vehicles_categories_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"state","required":false,"schema":{"default":"active","pattern":"^(active|archived)$","title":"State","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCategoryList"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List vehicle categories","tags":["vehicles"],"x-og-group":"Shop fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records":{"post":{"description":"Add a vehicle. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"record_create_v1_shops__organization_id__vehicles_records_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCreated"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a vehicle","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{key}":{"get":{"description":"One vehicle: its details and status.","operationId":"record_read_v1_shops__organization_id__vehicles_records__key__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"The human key: the category prefix and a number, for example V-03 or TL-01","in":"path","name":"key","required":true,"schema":{"description":"The human key: the category prefix and a number, for example V-03 or TL-01","pattern":"^[A-Za-z][A-Za-z0-9]{0,3}-[0-9]{2,}$","title":"Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Record"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a vehicle","tags":["vehicles"],"x-og-group":"Shop fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}":{"patch":{"description":"Change the rail. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"record_update_v1_shops__organization_id__vehicles_records__vehicle_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleSaved"}}},"description":"Successful Response"},"409":{"description":"Stale version"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change the rail","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/back-in-service":{"post":{"description":"Put back in service. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"back_in_service_v1_shops__organization_id__vehicles_records__vehicle_id__back_in_service_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackInService"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Put back in service","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/damage":{"post":{"description":"Report damage. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"damage_create_v1_shops__organization_id__vehicles_records__vehicle_id__damage_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamageCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Report damage","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/damage/{report_id}":{"patch":{"description":"Update or close a damage report. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"damage_update_v1_shops__organization_id__vehicles_records__vehicle_id__damage__report_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"in":"path","name":"report_id","required":true,"schema":{"format":"uuid","title":"Report Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamagePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Update or close a damage report","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/documents":{"post":{"description":"Add a document. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"document_create_v1_shops__organization_id__vehicles_records__vehicle_id__documents_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a document","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/documents/{document_id}":{"patch":{"description":"Correct a document. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"document_update_v1_shops__organization_id__vehicles_records__vehicle_id__documents__document_id__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"in":"path","name":"document_id","required":true,"schema":{"format":"uuid","title":"Document Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Correct a document","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/documents/{document_id}/renew":{"post":{"description":"Renew a document. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"document_renew_v1_shops__organization_id__vehicles_records__vehicle_id__documents__document_id__renew_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"in":"path","name":"document_id","required":true,"schema":{"format":"uuid","title":"Document Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRenew"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Renew a document","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/km":{"post":{"description":"Log km. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"km_log_v1_shops__organization_id__vehicles_records__vehicle_id__km_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KmLog"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Log km","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/out-of-service":{"post":{"description":"Take out of service. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"out_of_service_v1_shops__organization_id__vehicles_records__vehicle_id__out_of_service_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutOfService"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Stale version, or the vehicle is busy then (blockers named)"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Take out of service","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/restore":{"post":{"description":"Bring a retired vehicle back. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"restore_v1_shops__organization_id__vehicles_records__vehicle_id__restore_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Restore"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Bring a retired vehicle back","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/retire":{"post":{"description":"Retire the vehicle. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"retire_v1_shops__organization_id__vehicles_records__vehicle_id__retire_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Retire"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Future runs or hires named"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Retire the vehicle","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/sell":{"post":{"description":"Sell the vehicle. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"sell_v1_shops__organization_id__vehicles_records__vehicle_id__sell_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sell"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"409":{"description":"Future runs or hires named"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Sell the vehicle","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/vehicles/records/{vehicle_id}/service":{"post":{"description":"Log a service. With an API key: the key's change tick for Fleet and stock and an Idempotency-Key header (a UUID).","operationId":"service_log_v1_shops__organization_id__vehicles_records__vehicle_id__service_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"vehicle_id","required":true,"schema":{"format":"uuid","title":"Vehicle Id","type":"string"}},{"description":"A fresh UUID for each user action; a retry sends the same one","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID for each user action; a retry sends the same one","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceLog"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Out"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Log a service","tags":["vehicles"],"x-og-group":"fleet","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/binding-checks":{"post":{"description":"Record a ski binding check. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"binding_check_v1_shops__organization_id__workshop_binding_checks_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindingCheckRecord"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Record a ski binding check","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/customer-gear":{"post":{"description":"Create or change a customer's gear. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"customer_gear_save_v1_shops__organization_id__workshop_customer_gear_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEquipmentSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Create or change a customer's gear","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/customer-gear/{id}/parts":{"put":{"description":"Name a customer's bike model for a starting list, or save the parts a mechanic found on it. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"gear_parts_save_v1_shops__organization_id__workshop_customer_gear__id__parts_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","title":"Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GearPartsSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GearParts"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Name a customer's bike model for a starting list, or save the parts a mechanic found on it","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/day":{"get":{"description":"One place's workshop day: each mechanic on the rota with their jobs, and the jobs nobody has yet. The answer names the place's time zone.","operationId":"day_v1_shops__organization_id__workshop_day_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"location_id","required":true,"schema":{"format":"uuid","title":"Location Id","type":"string"}},{"in":"query","name":"date","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"title":"Date"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopDay"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get the workshop day","tags":["workshop"],"x-og-group":"Shop workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/fleet/fine":{"post":{"description":"It is fine, ready to rent: a bike looked at with nothing to repair goes back on the rental list. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"fleet_fine_v1_shops__organization_id__workshop_fleet_fine_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per user action; a replay answers 200","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetFine"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetRepairFine"}}},"description":"Nothing was waiting to release, or a replay"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetRepairFine"}}},"description":"The bike's check was released"},"409":{"description":"The bike has an open job (job_state): finish it there"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"It is fine, ready to rent: a bike looked at with nothing to repair goes back on the rental list","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/intake":{"post":{"description":"Counter intake of customer gear with a tag and a promised date. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"intake_v1_shops__organization_id__workshop_intake_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Counter intake of customer gear with a tag and a promised date","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs":{"post":{"description":"Open a job: book in, check in a customer's gear, or open one for an item or vehicle. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_create_v1_shops__organization_id__workshop_jobs_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Open a job: book in, check in a customer's gear, or open one for an item or vehicle","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}":{"get":{"description":"One workshop job: its header, the work done and planned, and its status. The customer's name and the words typed about the job need the Customer contact details area; most amounts need the Bookings area. Money is in integer minor units. Counts as one customer record toward the key's daily budget.","operationId":"job_read_v1_shops__organization_id__workshop_jobs__key__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a workshop job","tags":["workshop"],"x-og-group":"Shop workshop","x-og-public":true,"x-og-stability":"preview"},"patch":{"description":"Change the mechanic, window, promised date or diagnosis. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_update_v1_shops__organization_id__workshop_jobs__key__patch","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Change the mechanic, window, promised date or diagnosis","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/estimate/approve":{"post":{"description":"The customer approves the estimate. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"estimate_approve_v1_shops__organization_id__workshop_jobs__key__estimate_approve_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateApprove"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"The customer approves the estimate","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/extra-found":{"post":{"description":"Found something else: ask the customer through the desk. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"extra_raise_v1_shops__organization_id__workshop_jobs__key__extra_found_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraRaise"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Found something else: ask the customer through the desk","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/extra-found/{request_id}/answer":{"post":{"description":"The customer said yes or no to the extra work. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"extra_answer_v1_shops__organization_id__workshop_jobs__key__extra_found__request_id__answer_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","title":"Request Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraAnswer"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"The customer said yes or no to the extra work","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/finish":{"post":{"description":"Finish a repair on our bike: the bike changes, the stock moves, the bike goes back on the rental list. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"finish_v1_shops__organization_id__workshop_jobs__key__finish_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinishCommand"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetFinished"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Finish a repair on our bike: the bike changes, the stock moves, the bike goes back on the rental list","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/fleet-scan":{"post":{"description":"The scan's ``offline_key`` is its idempotency key; an ``Idempotency-Key`` header, when sent, must be the same value.","operationId":"fleet_scan_v1_shops__organization_id__workshop_jobs__key__fleet_scan_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A fresh UUID per user action; a replay answers 200","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetScan"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetRepairScanned"}}},"description":"Nothing written (ask, refused, not_here, unknown), or a replay"},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FleetRepairScanned"}}},"description":"A line was written (fitted or used)"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Scan a part on a repair of our bike: fitted onto its component, used, or what to ask, with what fits and where it is","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/lines":{"post":{"description":"Add a service, labour or a part. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"line_add_v1_shops__organization_id__workshop_jobs__key__lines_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineAdd"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Add a service, labour or a part","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/lines/{line_id}/done":{"post":{"description":"Mark a planned line done: fit a part (stock goes down where it is set aside) or finish a service. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"line_done_v1_shops__organization_id__workshop_jobs__key__lines__line_id__done_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}},{"in":"path","name":"line_id","required":true,"schema":{"format":"uuid","title":"Line Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineDone"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Mark a planned line done: fit a part (stock goes down where it is set aside) or finish a service","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/lines/{line_id}/remove":{"post":{"description":"Remove a line (a part already used goes back to stock). With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"line_remove_v1_shops__organization_id__workshop_jobs__key__lines__line_id__remove_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}},{"in":"path","name":"line_id","required":true,"schema":{"format":"uuid","title":"Line Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineRemove"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Remove a line (a part already used goes back to stock)","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/looks/{line_id}":{"post":{"description":"Settle one look: keep the part as it is, or put it on a component of the bike. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"look_settle_v1_shops__organization_id__workshop_jobs__key__looks__line_id__post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Key","type":"string"}},{"in":"path","name":"line_id","required":true,"schema":{"format":"uuid","title":"Line Id","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSettle"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSettled"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Settle one look: keep the part as it is, or put it on a component of the bike","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/missing-part/{product_id}/wait":{"post":{"description":"Wait for the part: on its open order, or to order once. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"part_wait_v1_shops__organization_id__workshop_jobs__key__missing_part__product_id__wait_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}},{"in":"path","name":"product_id","required":true,"schema":{"format":"uuid","title":"Product Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartWait"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Wait for the part: on its open order, or to order once","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/part-requests":{"post":{"description":"Wait for a part, with a purchase order line when stock supports it. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"part_request_v1_shops__organization_id__workshop_jobs__key__part_requests_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartRequestSave"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Wait for a part, with a purchase order line when stock supports it","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/scan-part":{"post":{"description":"Fit a part by scan; stock goes down. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"scan_part_v1_shops__organization_id__workshop_jobs__key__scan_part_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartScan"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Fit a part by scan; stock goes down","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/tabs/{tab}":{"get":{"description":"One workshop job's parts on order, or its customer and charge. The customer's name needs the Customer contact details area. Money is in integer minor units. Counts as one customer record toward the key's daily budget.","operationId":"job_tab_v1_shops__organization_id__workshop_jobs__key__tabs__tab__get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}},{"in":"path","name":"tab","required":true,"schema":{"enum":["parts","charge"],"title":"Tab","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Get a tab of a workshop job","tags":["workshop"],"x-og-group":"Shop workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/take":{"post":{"description":"Take a job nobody has, from the shared tablet. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_take_v1_shops__organization_id__workshop_jobs__key__take_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobTake"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Take a job nobody has, from the shared tablet","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/timer":{"post":{"description":"Start, pause, wait for a part, resume or stop one person's timer on a job. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_timer_v1_shops__organization_id__workshop_jobs__key__timer_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimerCommand"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimerResult"}}},"description":"Successful Response"},"409":{"description":"The person's timer runs on another job; the blockers name it when the caller may see it (code timer_running_elsewhere). When can_switch is true, send switch=true to stop it there and start here"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Start, pause, wait for a part, resume or stop one person's timer on a job","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/told":{"post":{"description":"The customer was told the job is ready. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_told_v1_shops__organization_id__workshop_jobs__key__told_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobTold"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"The customer was told the job is ready","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/transition":{"post":{"description":"Check in, start, wait for parts, mark ready, collect or cancel. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_transition_v1_shops__organization_id__workshop_jobs__key__transition_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"title":"Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transition"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Check in, start, wait for parts, mark ready, collect or cancel","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/jobs/{key}/type":{"put":{"description":"Choose a job's type, or hand it back to the rule. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"job_type_set_v1_shops__organization_id__workshop_jobs__key__type_put","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"key","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Key","type":"string"}},{"description":"A fresh UUID per user action; a replay answers 200","in":"header","name":"Idempotency-Key","required":true,"schema":{"description":"A fresh UUID per user action; a replay answers 200","format":"uuid","title":"Idempotency-Key","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobTypeSet"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobTypeSetResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Choose a job's type, or hand it back to the rule","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/part-requests/{request_id}/resolve":{"post":{"description":"A part arrived, or the request is cancelled. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"part_request_resolve_v1_shops__organization_id__workshop_part_requests__request_id__resolve_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","title":"Request Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartRequestResolve"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"A part arrived, or the request is cancelled","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/quick-work":{"post":{"description":"Quick work: pick the subject, tap services, scan parts, done. With an API key: the key's change tick for Workshop and an Idempotency-Key header (a UUID).","operationId":"quick_work_v1_shops__organization_id__workshop_quick_work_post","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickWork"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResult"}}},"description":"Successful Response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkshopBlocked"}}},"description":"Refused because of other records; nothing was written"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"Quick work: pick the subject, tap services, scan parts, done","tags":["workshop"],"x-og-group":"workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/ready":{"get":{"description":"Jobs ready to collect, oldest first (at most 200), with whether the customer has been told. Customer names need the Customer contact details area. Every job returned counts as a customer record toward the key's daily budget.","operationId":"ready_v1_shops__organization_id__workshop_ready_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"location_id","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Location Id"}},{"in":"query","name":"q","required":false,"schema":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Q"}},{"in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyToCollect"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List jobs ready to collect","tags":["workshop"],"x-og-group":"Shop workshop","x-og-public":true,"x-og-stability":"preview"}},"/v1/shops/{organization_id}/workshop/services":{"get":{"description":"The workshop's service catalogue, a page at a time (at most 200). Pass the last key as `after_key` for the next page. Prices are integer minor units in the selling company's currency.","operationId":"services_v1_shops__organization_id__workshop_services_get","parameters":[{"in":"path","name":"organization_id","required":true,"schema":{"format":"uuid","title":"Organization Id","type":"string"}},{"in":"query","name":"include_archived","required":false,"schema":{"default":false,"title":"Include Archived","type":"boolean"}},{"in":"query","name":"quick_only","required":false,"schema":{"default":false,"title":"Quick Only","type":"boolean"}},{"in":"query","name":"subject_kind","required":false,"schema":{"anyOf":[{"enum":["item","vehicle","customer_gear"],"type":"string"},{"type":"null"}],"title":"Subject Kind"}},{"in":"query","name":"item_type_id","required":false,"schema":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Item Type Id"}},{"in":"query","name":"search","required":false,"schema":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"title":"Search"}},{"in":"query","name":"after_key","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Key"}},{"in":"query","name":"category","required":false,"schema":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"title":"Category"}},{"in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"security":[{"ApiKey":[]}],"summary":"List workshop services","tags":["workshop"],"x-og-group":"Shop workshop","x-og-public":true,"x-og-stability":"preview"}}},"servers":[{"url":"https://api.outdoorgrid.ai"},{"url":"https://api-qa.outdoorgrid.ai"}]}