{"openapi":"3.1.0","info":{"title":"Dealership operating API","version":"0.1.0"},"paths":{"/api/v1/sessions":{"post":{"summary":"Open Session","description":"Open a staff session.\n\nPurpose: FND-003 sign-in.\nParams: body, transaction.\nReturns: session id, tenant id, role and home screen.\nSide effects: inserts a staff session.","operationId":"open_session_api_v1_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Open Session Api V1 Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/dealers":{"get":{"summary":"Get My Dealers","description":"Every dealer this person has a login at. INS-004.","operationId":"get_my_dealers_api_v1_me_dealers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get My Dealers Api V1 Me Dealers Get"}}}}}}},"/api/v1/sessions/switch-dealer":{"post":{"summary":"Post Switch Dealer","description":"Open a session at another dealer this person has a login at. INS-004.","operationId":"post_switch_dealer_api_v1_sessions_switch_dealer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealerSwitchBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Switch Dealer Api V1 Sessions Switch Dealer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/group/summary":{"get":{"summary":"Get Group Summary","description":"Each dealer's month so far where the person may report on it, with totals. INS-004.","operationId":"get_group_summary_api_v1_group_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Group Summary Api V1 Group Summary Get"}}}}}}},"/api/v1/catalogue":{"get":{"summary":"Get Catalogue","description":"Every enumeration, role, module and screen, for client and server alike.\n\nPurpose: section 9. Screens never keep their own copy of a list.\nParams: request for If-None-Match, response for caching headers.\nReturns: the catalogue, or 304 when the client already holds this version.\nSide effects: none. Public: it holds labels only, no tenant data.","operationId":"get_catalogue_api_v1_catalogue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/locations":{"get":{"summary":"Get Locations","description":"The caller's locations. FND-001.","operationId":"get_locations_api_v1_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Locations Api V1 Locations Get"}}}}}},"post":{"summary":"Post Location","description":"Create a location with a known kind. FND-001.","operationId":"post_location_api_v1_locations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Location Api V1 Locations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/brands":{"get":{"summary":"Get Brands","description":"Brands this dealer sells or services.","operationId":"get_brands_api_v1_brands_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Brands Api V1 Brands Get"}}}}}},"post":{"summary":"Post Brand","description":"Create a brand. FND-001.","operationId":"post_brand_api_v1_brands_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Brand Api V1 Brands Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/modules/{code}/transitions":{"post":{"summary":"Post Module","description":"Change a module lifecycle state. FND-002.","operationId":"post_module_api_v1_modules__code__transitions_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__routes__ModuleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Module Api V1 Modules  Code  Transitions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/approvals":{"get":{"summary":"Get Approvals","description":"Pending approvals the caller may decide. Their own requests are excluded.","operationId":"get_approvals_api_v1_approvals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Approvals Api V1 Approvals Get"}}}}}},"post":{"summary":"Post Approval","description":"Request an approval bound to a version and amount. FND-004.","operationId":"post_approval_api_v1_approvals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Approval Api V1 Approvals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/approvals/{approval_id}/decisions":{"post":{"summary":"Post Decision","description":"Decide an approval. The requester cannot approve it. QA-26.","operationId":"post_decision_api_v1_approvals__approval_id__decisions_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Decision Api V1 Approvals  Approval Id  Decisions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/showroom/units":{"get":{"summary":"Showroom","description":"Published units for one dealer. No acquisition cost and no staff session.\n\nPurpose: SAL-011.\nParams: tenant_id, transaction.\nReturns: published units and the dealer's customer branding.\nSide effects: sets the tenant for this public read.","operationId":"showroom_api_v1_showroom_units_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Showroom Api V1 Showroom Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"summary":"Me","description":"Describe the caller, their dealer and what they may do.\n\nPurpose: FND-002 and FND-003. Menus follow the role and the active modules.\nParams: bound caller.\nReturns: identity, role, permissions, modules, home screen and other roles.\nSide effects: none.","operationId":"me_api_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me Api V1 Me Get"}}}}}}},"/api/v1/memberships":{"get":{"summary":"Get Memberships","description":"List staff access in this dealership.\n\nPurpose: FND-003.\nParams: bound caller with the staff permission.\nReturns: memberships.\nSide effects: none.","operationId":"get_memberships_api_v1_memberships_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Memberships Api V1 Memberships Get"}}}}}},"post":{"summary":"Post Membership","description":"Grant a role to a person.\n\nPurpose: FND-003. The grant cannot exceed the granter's own access.\nParams: body, bound caller.\nReturns: membership id and a one-time temporary password for a new login.\nSide effects: may create a login; inserts a membership.","operationId":"post_membership_api_v1_memberships_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Membership Api V1 Memberships Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memberships/{membership_id}/revocation":{"post":{"summary":"Revoke Membership","description":"Revoke a role grant. QA-02: the next request with its session is denied.","operationId":"revoke_membership_api_v1_memberships__membership_id__revocation_post","parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Membership Api V1 Memberships  Membership Id  Revocation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions/switch":{"post":{"summary":"Post Switch","description":"Switch to another of the caller's own roles.\n\nPurpose: FND-003.\nParams: body, bound caller.\nReturns: the new session and role.\nSide effects: opens a new session and ends the current one.","operationId":"post_switch_api_v1_sessions_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Switch Api V1 Sessions Switch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sessions/current/revocation":{"post":{"summary":"Sign Out","description":"End the caller's session.\n\nPurpose: section 11. Shared terminals sign out for real, not only in the browser.\nParams: bound caller.\nReturns: revoked state.\nSide effects: marks the session revoked.","operationId":"sign_out_api_v1_sessions_current_revocation_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sign Out Api V1 Sessions Current Revocation Post"}}}}}}},"/api/v1/operator/sessions":{"post":{"summary":"Operator Login","description":"Open an operator session.\n\nPurpose: OPS-002. Dealer staff credentials never open the console.\nParams: body, transaction.\nReturns: the operator session id.\nSide effects: inserts operator_session.","operationId":"operator_login_api_v1_operator_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Operator Login Api V1 Operator Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/sessions/current/revocation":{"post":{"summary":"Operator Logout","description":"End the operator session.","operationId":"operator_logout_api_v1_operator_sessions_current_revocation_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Operator Logout Api V1 Operator Sessions Current Revocation Post"}}}}}}},"/api/v1/operator/tenants":{"get":{"summary":"Operator Tenants","description":"List dealers with their modules and location count.\n\nPurpose: OPS-002 tenant health. No customer records.\nParams: bound operator.\nReturns: tenants.\nSide effects: none.","operationId":"operator_tenants_api_v1_operator_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Operator Tenants Api V1 Operator Tenants Get"}}}}}},"post":{"summary":"Operator Onboard","description":"Onboard a dealer from settings.\n\nPurpose: OPS-001 and QA-40.\nParams: body, bound operator.\nReturns: the new tenant summary.\nSide effects: inserts a tenant, its settings and the owner's login.","operationId":"operator_onboard_api_v1_operator_tenants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Operator Onboard Api V1 Operator Tenants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/charts":{"get":{"summary":"Operator Charts","description":"The platform charts host and a short-lived embed URL. OPS-004.\n\nPurpose: operators see every dealer. The URL is minted here so the secret stays on the server.\nParams: bound operator.\nReturns: origin and embed_url, either of which may be null when charts are not connected.\nSide effects: none.","operationId":"operator_charts_api_v1_operator_charts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Operator Charts Api V1 Operator Charts Get"}}}}}}},"/api/v1/operator/tenants/{tenant_id}":{"get":{"summary":"Operator Tenant","description":"One dealer with every module and its state.\n\nPurpose: OPS-002. No customer records.\nParams: tenant_id, bound operator.\nReturns: the dealer and its module states.\nSide effects: none.","operationId":"operator_tenant_api_v1_operator_tenants__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Tenant Api V1 Operator Tenants  Tenant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/status":{"post":{"summary":"Operator Status","description":"Suspend or reactivate a dealer.\n\nPurpose: OPS-002. A suspended dealer cannot sign in and open sessions stop.\nParams: tenant_id, body, bound operator.\nReturns: the new status.\nSide effects: updates tenant.status and appends an audit event.","operationId":"operator_status_api_v1_operator_tenants__tenant_id__status_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__operator_routes__StatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Status Api V1 Operator Tenants  Tenant Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/modules/{code}":{"post":{"summary":"Operator Module","description":"Switch one module on or off for a dealer.\n\nPurpose: OPS-002 and FND-002.\nParams: tenant_id, module code, body, bound operator.\nReturns: the module and whether it is on.\nSide effects: upserts module_entitlement and appends an audit event.","operationId":"operator_module_api_v1_operator_tenants__tenant_id__modules__code__post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__operator_routes__ModuleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Module Api V1 Operator Tenants  Tenant Id  Modules  Code  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/staff":{"get":{"summary":"Operator Staff","description":"Who works at the dealer: role, branch, status, last sign-in and recent failures.","operationId":"operator_staff_api_v1_operator_tenants__tenant_id__staff_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Staff Api V1 Operator Tenants  Tenant Id  Staff Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/staff/{membership_id}/status":{"post":{"summary":"Operator Login Status","operationId":"operator_login_status_api_v1_operator_tenants__tenant_id__staff__membership_id__status_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginStatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Login Status Api V1 Operator Tenants  Tenant Id  Staff  Membership Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/staff/{membership_id}/sessions/revocation":{"post":{"summary":"Operator End Sessions","operationId":"operator_end_sessions_api_v1_operator_tenants__tenant_id__staff__membership_id__sessions_revocation_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator End Sessions Api V1 Operator Tenants  Tenant Id  Staff  Membership Id  Sessions Revocation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/staff/{staff_account_id}/password-reset":{"post":{"summary":"Operator Password Reset","description":"A one-time link for the person to set their own password. The operator never sees it.","operationId":"operator_password_reset_api_v1_operator_tenants__tenant_id__staff__staff_account_id__password_reset_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"staff_account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Staff Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Password Reset Api V1 Operator Tenants  Tenant Id  Staff  Staff Account Id  Password Reset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/support-sessions":{"post":{"summary":"Operator Start Support","description":"Open the dealer's app as the operator, for a stated purpose and a limited time.","operationId":"operator_start_support_api_v1_operator_tenants__tenant_id__support_sessions_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Start Support Api V1 Operator Tenants  Tenant Id  Support Sessions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Operator Support List","operationId":"operator_support_list_api_v1_operator_tenants__tenant_id__support_sessions_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Support List Api V1 Operator Tenants  Tenant Id  Support Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/support-sessions/{support_id}/end":{"post":{"summary":"Operator End Support","operationId":"operator_end_support_api_v1_operator_tenants__tenant_id__support_sessions__support_id__end_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"support_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Support Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator End Support Api V1 Operator Tenants  Tenant Id  Support Sessions  Support Id  End Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/usage":{"get":{"summary":"Operator Usage","description":"How much of the product the dealer uses. Counts only, no customer records.","operationId":"operator_usage_api_v1_operator_tenants__tenant_id__usage_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Usage Api V1 Operator Tenants  Tenant Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/log":{"get":{"summary":"Operator Activity","description":"Every operator action across dealers, newest first.","operationId":"operator_activity_api_v1_operator_log_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Operator Activity Api V1 Operator Log Get"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/exports":{"post":{"summary":"Operator Export","description":"Every record of one dealer as a ZIP, with a manifest of attached files. OPS-003.","operationId":"operator_export_api_v1_operator_tenants__tenant_id__exports_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__operator_routes__ExportBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Operator Export List","operationId":"operator_export_list_api_v1_operator_tenants__tenant_id__exports_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Export List Api V1 Operator Tenants  Tenant Id  Exports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/tenants/{tenant_id}/closure":{"post":{"summary":"Operator Close","description":"Close a dealer. Sign-in stops, customer links stop, records are kept. OPS-003.","operationId":"operator_close_api_v1_operator_tenants__tenant_id__closure_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__operator_routes__CloseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Operator Close Api V1 Operator Tenants  Tenant Id  Closure Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/enquiries/summary":{"get":{"summary":"Get Enquiry Summary","description":"How many requests are new, and who sent the newest. OPS-005 alert input.","operationId":"get_enquiry_summary_api_v1_operator_enquiries_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Enquiry Summary Api V1 Operator Enquiries Summary Get"}}}}}}},"/api/v1/operator/enquiries":{"get":{"summary":"Get Enquiries","description":"List walkthrough requests, newest first.\n\nPurpose: OPS-005. Only a live operator session can read them.\nParams: status filter, bound operator.\nReturns: enquiries.\nSide effects: none.","operationId":"get_enquiries_api_v1_operator_enquiries_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"all","title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Enquiries Api V1 Operator Enquiries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/enquiries/{enquiry_id}/status":{"post":{"summary":"Post Enquiry Status","description":"Mark a request new, contacted or closed. OPS-005.","operationId":"post_enquiry_status_api_v1_operator_enquiries__enquiry_id__status_post","parameters":[{"name":"enquiry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Enquiry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__enquiry_routes__StatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Enquiry Status Api V1 Operator Enquiries  Enquiry Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/enquiries/{enquiry_id}/contacts":{"post":{"summary":"Post Enquiry Contact","description":"Write down that a lead was contacted, and what happens next. OPS-005.","operationId":"post_enquiry_contact_api_v1_operator_enquiries__enquiry_id__contacts_post","parameters":[{"name":"enquiry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Enquiry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__enquiry_routes__ContactBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Enquiry Contact Api V1 Operator Enquiries  Enquiry Id  Contacts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/enquiries/{enquiry_id}/follow-up":{"post":{"summary":"Post Enquiry Follow Up","description":"Set or clear the next step for a lead. OPS-005.","operationId":"post_enquiry_follow_up_api_v1_operator_enquiries__enquiry_id__follow_up_post","parameters":[{"name":"enquiry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Enquiry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Enquiry Follow Up Api V1 Operator Enquiries  Enquiry Id  Follow Up Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/operator/enquiries/{enquiry_id}":{"delete":{"summary":"Remove Enquiry","description":"Erase a request for a person who asked to be forgotten. OPS-005 and D06.","operationId":"remove_enquiry_api_v1_operator_enquiries__enquiry_id__delete","parameters":[{"name":"enquiry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Enquiry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Enquiry Api V1 Operator Enquiries  Enquiry Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/enquiries":{"post":{"summary":"Post Enquiry","description":"Store a walkthrough request.\n\nPurpose: OPS-005. Nothing is stored without agreement to the privacy notice, and a\n    request with the hidden field filled in is dropped without a hint to the sender.\nParams: body, request, transaction.\nReturns: a receipt with no stored data in it.\nSide effects: inserts one enquiry row. Raises BusyError over the rate limit.","operationId":"post_enquiry_api_v1_public_enquiries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnquiryBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Enquiry Api V1 Public Enquiries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/current/branding":{"get":{"summary":"Get Branding","description":"Return the dealer's branding for staff screens and previews.","operationId":"get_branding_api_v1_tenants_current_branding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Branding Api V1 Tenants Current Branding Get"}}}}}},"put":{"summary":"Put Branding","description":"Save the dealer's branding.\n\nPurpose: FND-009. Customer screens and documents follow these settings.\nParams: body, bound caller with the settings permission.\nReturns: the saved branding.\nSide effects: appends versioned settings.","operationId":"put_branding_api_v1_tenants_current_branding_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Branding Api V1 Tenants Current Branding Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/current/branding/assets":{"post":{"summary":"Post Asset","description":"Upload a logo or icon as the raw request body.\n\nPurpose: FND-007. The bytes are checked; the declared type is not trusted.\nParams: kind ('logo' or 'icon'), request body, bound caller.\nReturns: the asset id and its public path.\nSide effects: inserts brand_asset.","operationId":"post_asset_api_v1_tenants_current_branding_assets_post","parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Asset Api V1 Tenants Current Branding Assets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/brand":{"get":{"summary":"Get Public Brand","description":"Branding for a public customer page. No staff session.","operationId":"get_public_brand_api_v1_public_brand_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Brand Api V1 Public Brand Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/assets/{tenant_id}/{asset_id}":{"get":{"summary":"Get Public Asset","description":"Serve a logo or icon with headers that keep it inert.\n\nPurpose: FND-007. The browser may only render it as the stored image type.\nParams: tenant_id, asset_id, transaction.\nReturns: the image.\nSide effects: none.","operationId":"get_public_asset_api_v1_public_assets__tenant_id___asset_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parties":{"get":{"summary":"Get Parties","description":"Search customers, newest first. Phones are masked until a record is opened. FND-008.","operationId":"get_parties_api_v1_parties_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Parties Api V1 Parties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Customer","description":"Create a customer. A shared phone never merges two people (REL-001).","operationId":"post_customer_api_v1_parties_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Customer Api V1 Parties Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parties/{party_id}":{"get":{"summary":"Get Party","description":"One customer with vehicles, visits, jobs and balances.","operationId":"get_party_api_v1_parties__party_id__get","parameters":[{"name":"party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Party Api V1 Parties  Party Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles":{"post":{"summary":"Post Vehicle","description":"Create a vehicle with its plate, first mileage and owner.\n\nPurpose: REL-002 and REL-003. Powertrain is recorded from the first moment.\nParams: body, bound caller.\nReturns: the vehicle id.\nSide effects: inserts vehicle, plate history, mileage and party role.","operationId":"post_vehicle_api_v1_vehicles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Vehicle Api V1 Vehicles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/{vehicle_id}":{"get":{"summary":"Get Vehicle","description":"Identity, parties, plates, jobs and mileage for one vehicle.","operationId":"get_vehicle_api_v1_vehicles__vehicle_id__get","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vehicle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vehicle Api V1 Vehicles  Vehicle Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicles/{vehicle_id}/relationships":{"post":{"summary":"Post Relationship","description":"Grant a dated vehicle role. REL-003.","operationId":"post_relationship_api_v1_vehicles__vehicle_id__relationships_post","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Relationship Api V1 Vehicles  Vehicle Id  Relationships Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/visits":{"post":{"summary":"Post Visit","description":"Check in a visitor, new or known. VIS-001 and VIS-003.","operationId":"post_visit_api_v1_visits_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Visit Api V1 Visits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Visits","description":"Today's arrivals with waiting time.\n\nPurpose: VIS-002. Wait starts at arrival and is never reset by a handover.\nParams: view 'today' or 'active', bound caller.\nReturns: visits, newest last in the queue order.\nSide effects: none.","operationId":"get_visits_api_v1_visits_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"today","title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Visits Api V1 Visits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/visits/{visit_id}/transitions":{"post":{"summary":"Move Visit","description":"Serve, finish or cancel a visit.\n\nPurpose: VIS-002. The person who starts serving becomes the host.\nParams: visit_id, body, bound caller.\nReturns: the new version and state.\nSide effects: updates the visit and writes an audit row.","operationId":"move_visit_api_v1_visits__visit_id__transitions_post","parameters":[{"name":"visit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Visit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitMove"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Move Visit Api V1 Visits  Visit Id  Transitions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/visits/arrivals":{"post":{"summary":"Arrive With Code","description":"Check in a guest from the code on their booking.\n\nPurpose: VIS-006. The code is not case sensitive. Planned time stays on the visit.\nParams: body, bound caller.\nReturns: the visitor name and both times.\nSide effects: moves the visit into the queue and audits.","operationId":"arrive_with_code_api_v1_visits_arrivals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArrivalBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Arrive With Code Api V1 Visits Arrivals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/releases":{"get":{"summary":"Get Releases","description":"Vehicles cleared to leave, and today's exits.","operationId":"get_releases_api_v1_releases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Releases Api V1 Releases Get"}}}}}},"post":{"summary":"Post Release","description":"Issue a single-use exit pass.\n\nPurpose: WRK-011 for a job after QC and settlement; SAL-007 for a sold unit\n    after PDI. Both return the code once, for the customer's pass.\nParams: body, bound caller.\nReturns: the release id and its code.\nSide effects: inserts a release and audits.","operationId":"post_release_api_v1_releases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__frontdesk_routes__ReleaseBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Release Api V1 Releases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/releases/verification":{"post":{"summary":"Verify Release","description":"Check a release code without using it.\n\nPurpose: VIS-005. Security sees eligibility, vehicle and collector, never amounts.\nParams: body, bound caller.\nReturns: the release view.\nSide effects: none.","operationId":"verify_release_api_v1_releases_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__frontdesk_routes__TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Verify Release Api V1 Releases Verification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/releases/consumptions":{"post":{"summary":"Record Exit","description":"Use a release code once and record the exit.\n\nPurpose: VIS-005 and QA-24. A used or revoked code cannot authorise a second exit.\nParams: body, bound caller.\nReturns: the consumed release.\nSide effects: consumes the release, releases custody, audits.","operationId":"record_exit_api_v1_releases_consumptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__frontdesk_routes__TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Record Exit Api V1 Releases Consumptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/releases/{release_id}/revocation":{"post":{"summary":"Post Revoke Release","description":"Revoke an unused release. QA-24.","operationId":"post_revoke_release_api_v1_releases__release_id__revocation_post","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Revoke Release Api V1 Releases  Release Id  Revocation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dealerships/{slug}":{"get":{"summary":"Get Public Dealership","description":"Show the dealer's page for a guest who is not signed in.\n\nPurpose: VIS-006. The page names the dealer and its branches, never the queue.\nParams: slug, transaction.\nReturns: branding, locations and today's date in the dealer's time zone.\nSide effects: binds the tenant.","operationId":"get_public_dealership_api_v1_public_dealerships__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Dealership Api V1 Public Dealerships  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dealerships/{slug}/visits":{"post":{"summary":"Post Public Visit","description":"Save a guest's visit and give them a check-in code.\n\nPurpose: VIS-006. The response is only their code, not the day's queue.\nParams: slug, body, transaction.\nReturns: the code and the planned arrival.\nSide effects: inserts a dormant customer and an expected visit, and audits.","operationId":"post_public_visit_api_v1_public_dealerships__slug__visits_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestVisitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Public Visit Api V1 Public Dealerships  Slug  Visits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workshop/board":{"get":{"summary":"Get Board","description":"Open jobs with holds, promises, assignments and QC. WRK-009 and WRK-016.","operationId":"get_board_api_v1_workshop_board_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Board Api V1 Workshop Board Get"}}}}}}},"/api/v1/technician/jobs":{"get":{"summary":"Get My Jobs","description":"Jobs assigned to the calling technician. WRK-006.","operationId":"get_my_jobs_api_v1_technician_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get My Jobs Api V1 Technician Jobs Get"}}}}}}},"/api/v1/jobs":{"post":{"summary":"Post Job","description":"Check a vehicle in. WRK-003 records the complaint as the customer gave it.","operationId":"post_job_api_v1_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_routes__JobBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Job Api V1 Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}":{"get":{"summary":"Get Job","description":"One job. Technicians see only jobs assigned to them.","operationId":"get_job_api_v1_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job Api V1 Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/estimates":{"post":{"summary":"Post Estimate","description":"Draft a new estimate version. WRK-005 and WRK-008.","operationId":"post_estimate_api_v1_jobs__job_id__estimates_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_routes__EstimateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Estimate Api V1 Jobs  Job Id  Estimates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/estimates/{estimate_id}/send":{"post":{"summary":"Post Send","description":"Send an estimate. The previous sent version becomes superseded.","operationId":"post_send_api_v1_estimates__estimate_id__send_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Send Api V1 Estimates  Estimate Id  Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/estimates/{estimate_id}/decisions":{"post":{"summary":"Post Estimate Decision","description":"Record a decision the customer gave to staff.\n\nPurpose: CUS-008. Staff record a witnessed decision with a reason; it is not\npresented as the customer's digital signature.\nParams: estimate_id, body, bound caller.\nReturns: the resulting estimate state.\nSide effects: inserts line decisions, may move the job to planned, audits.","operationId":"post_estimate_decision_api_v1_estimates__estimate_id__decisions_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Estimate Decision Api V1 Estimates  Estimate Id  Decisions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workshop/technicians":{"get":{"summary":"Get Technicians","description":"Technicians and their skills. RES-001.","operationId":"get_technicians_api_v1_workshop_technicians_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Technicians Api V1 Workshop Technicians Get"}}}}}}},"/api/v1/workshop/skills":{"post":{"summary":"Post Skill","description":"Record a technician's skill. RES-001.","operationId":"post_skill_api_v1_workshop_skills_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Skill Api V1 Workshop Skills Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/assignments":{"post":{"summary":"Post Assignment","description":"Assign a qualified technician. WRK-006: only approved work is assigned.","operationId":"post_assignment_api_v1_jobs__job_id__assignments_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_routes__AssignBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Assignment Api V1 Jobs  Job Id  Assignments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/inspections":{"post":{"summary":"Post Inspection","description":"Record a diagnosis or an independent quality check.\n\nPurpose: WRK-004 findings are not an approval to repair. WRK-010 a failed check\n    returns the job for rework, and the technician who did the work cannot sign it.\nParams: job_id, body, bound caller.\nReturns: the job's new progress.\nSide effects: inserts the inspection, moves the job, audits.","operationId":"post_inspection_api_v1_jobs__job_id__inspections_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_routes__InspectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Inspection Api V1 Jobs  Job Id  Inspections Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/transitions":{"post":{"summary":"Post Job Transition","description":"Hand finished work to quality control. Other moves follow their own commands.","operationId":"post_job_transition_api_v1_jobs__job_id__transitions_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobTransition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Job Transition Api V1 Jobs  Job Id  Transitions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workshop/bays":{"get":{"summary":"Get Bays","description":"Workshop bays. With a time, each says whether its lift can be used then. RES-003.","operationId":"get_bays_api_v1_workshop_bays_get","parameters":[{"name":"starts_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"}},{"name":"ends_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Bays Api V1 Workshop Bays Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Bay","description":"Add a bay. WRK-002 capacity.","operationId":"post_bay_api_v1_workshop_bays_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BayBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Bay Api V1 Workshop Bays Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bookings":{"get":{"summary":"Get Bookings","description":"Bookings on one day in the dealer's time zone. WRK-002.","operationId":"get_bookings_api_v1_bookings_get","parameters":[{"name":"day","in":"query","required":true,"schema":{"type":"string","title":"Day"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Bookings Api V1 Bookings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Booking","description":"Book a bay. Overlaps are refused with free alternatives. WRK-002.","operationId":"post_booking_api_v1_bookings_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_routes__BookingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Booking Api V1 Bookings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bookings/{booking_id}/cancellation":{"post":{"summary":"Post Booking Cancellation","description":"Cancel a booking and free its bay. A reminder it stopped starts again. RET-002.","operationId":"post_booking_cancellation_api_v1_bookings__booking_id__cancellation_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBookingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Booking Cancellation Api V1 Bookings  Booking Id  Cancellation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/schedules":{"get":{"summary":"Get Schedules","operationId":"get_schedules_api_v1_retention_schedules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Schedules Api V1 Retention Schedules Get"}}}}}},"post":{"summary":"Post Schedule","description":"A service interval. RET-001.","operationId":"post_schedule_api_v1_retention_schedules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__ScheduleBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Schedule Api V1 Retention Schedules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/schedules/{schedule_id}/active":{"put":{"summary":"Put Schedule Active","operationId":"put_schedule_active_api_v1_retention_schedules__schedule_id__active_put","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Schedule Active Api V1 Retention Schedules  Schedule Id  Active Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/due":{"get":{"summary":"Get Due","description":"Cars falling due, brought up to date first for someone who works reminders. RET-001.","operationId":"get_due_api_v1_retention_due_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Due Api V1 Retention Due Get"}}}}}}},"/api/v1/retention/reminders/{sequence_id}/steps":{"get":{"summary":"Get Steps","operationId":"get_steps_api_v1_retention_reminders__sequence_id__steps_get","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sequence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Steps Api V1 Retention Reminders  Sequence Id  Steps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/reminders/{sequence_id}/bookings":{"get":{"summary":"Get Reminder Bookings","operationId":"get_reminder_bookings_api_v1_retention_reminders__sequence_id__bookings_get","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sequence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Reminder Bookings Api V1 Retention Reminders  Sequence Id  Bookings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/steps/{step_id}/sent":{"post":{"summary":"Post Step Sent","description":"Record that a reminder went out. RET-002.","operationId":"post_step_sent_api_v1_retention_steps__step_id__sent_post","parameters":[{"name":"step_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Step Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Step Sent Api V1 Retention Steps  Step Id  Sent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/reminders/{sequence_id}/booking":{"post":{"summary":"Post Reminder Booking","description":"A booking made from a reminder stops it. RET-002.","operationId":"post_reminder_booking_api_v1_retention_reminders__sequence_id__booking_post","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sequence Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__BookingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Reminder Booking Api V1 Retention Reminders  Sequence Id  Booking Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/reminders/{sequence_id}/stop":{"post":{"summary":"Post Reminder Stop","operationId":"post_reminder_stop_api_v1_retention_reminders__sequence_id__stop_post","parameters":[{"name":"sequence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sequence Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__ReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Reminder Stop Api V1 Retention Reminders  Sequence Id  Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/suppressions":{"get":{"summary":"Get Suppressions","operationId":"get_suppressions_api_v1_retention_suppressions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Suppressions Api V1 Retention Suppressions Get"}}}}}},"post":{"summary":"Post Suppression","description":"Someone asked not to be contacted. REL-006 and RET-004.","operationId":"post_suppression_api_v1_retention_suppressions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Suppression Api V1 Retention Suppressions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/suppressions/{suppression_id}":{"delete":{"summary":"Delete Suppression","operationId":"delete_suppression_api_v1_retention_suppressions__suppression_id__delete","parameters":[{"name":"suppression_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suppression Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Suppression Api V1 Retention Suppressions  Suppression Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/renewals":{"get":{"summary":"Get Renewals","operationId":"get_renewals_api_v1_retention_renewals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Renewals Api V1 Retention Renewals Get"}}}}}},"post":{"summary":"Post Renewal","description":"Keep a paper's expiry date, labelled by who supplied it. RET-003.","operationId":"post_renewal_api_v1_retention_renewals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewalBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Renewal Api V1 Retention Renewals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/renewals/{renewal_id}/verification":{"post":{"summary":"Post Renewal Verification","operationId":"post_renewal_verification_api_v1_retention_renewals__renewal_id__verification_post","parameters":[{"name":"renewal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Renewal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__VerifyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Renewal Verification Api V1 Retention Renewals  Renewal Id  Verification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/renewals/{renewal_id}/renewal":{"post":{"summary":"Post Renewal Renewed","operationId":"post_renewal_renewed_api_v1_retention_renewals__renewal_id__renewal_post","parameters":[{"name":"renewal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Renewal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Renewal Renewed Api V1 Retention Renewals  Renewal Id  Renewal Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/campaigns":{"get":{"summary":"Get Campaigns","operationId":"get_campaigns_api_v1_retention_campaigns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Campaigns Api V1 Retention Campaigns Get"}}}}}},"post":{"summary":"Post Campaign","operationId":"post_campaign_api_v1_retention_campaigns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Campaign Api V1 Retention Campaigns Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/campaigns/{campaign_id}":{"get":{"summary":"Get Campaign","operationId":"get_campaign_api_v1_retention_campaigns__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Campaign Api V1 Retention Campaigns  Campaign Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/campaigns/{campaign_id}/preview":{"get":{"summary":"Get Campaign Preview","description":"Recipients and cost, before approval. RET-004.","operationId":"get_campaign_preview_api_v1_retention_campaigns__campaign_id__preview_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Campaign Preview Api V1 Retention Campaigns  Campaign Id  Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/campaigns/{campaign_id}/submission":{"post":{"summary":"Post Campaign Submission","operationId":"post_campaign_submission_api_v1_retention_campaigns__campaign_id__submission_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Campaign Submission Api V1 Retention Campaigns  Campaign Id  Submission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/campaigns/{campaign_id}/release":{"post":{"summary":"Post Campaign Release","description":"Release an approved campaign, checking opt-outs again. RET-004.","operationId":"post_campaign_release_api_v1_retention_campaigns__campaign_id__release_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Campaign Release Api V1 Retention Campaigns  Campaign Id  Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/recipients/{recipient_id}":{"post":{"summary":"Post Recipient","operationId":"post_recipient_api_v1_retention_recipients__recipient_id__post","parameters":[{"name":"recipient_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Recipient Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Recipient Api V1 Retention Recipients  Recipient Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/referrals":{"get":{"summary":"Get Referrals","operationId":"get_referrals_api_v1_retention_referrals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Referrals Api V1 Retention Referrals Get"}}}}}},"post":{"summary":"Post Referral","operationId":"post_referral_api_v1_retention_referrals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__ReferralBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Referral Api V1 Retention Referrals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/referrals/{referral_id}/qualification":{"post":{"summary":"Post Referral Qualification","operationId":"post_referral_qualification_api_v1_retention_referrals__referral_id__qualification_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Referral Qualification Api V1 Retention Referrals  Referral Id  Qualification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/referrals/{referral_id}/payment":{"post":{"summary":"Post Referral Payment","description":"Record the reward paid. Someone who handles money records it.","operationId":"post_referral_payment_api_v1_retention_referrals__referral_id__payment_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Referral Payment Api V1 Retention Referrals  Referral Id  Payment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/plan-definitions":{"get":{"summary":"Get Plan Definitions","operationId":"get_plan_definitions_api_v1_retention_plan_definitions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Plan Definitions Api V1 Retention Plan Definitions Get"}}}}}},"post":{"summary":"Post Plan Definition","description":"A plan, or its next version. Sold plans keep their terms. RET-005.","operationId":"post_plan_definition_api_v1_retention_plan_definitions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Plan Definition Api V1 Retention Plan Definitions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/plans":{"get":{"summary":"Get Plans","operationId":"get_plans_api_v1_retention_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Plans Api V1 Retention Plans Get"}}}}}},"post":{"summary":"Post Plan","operationId":"post_plan_api_v1_retention_plans_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Plan Api V1 Retention Plans Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/plans/{plan_id}":{"get":{"summary":"Get Plan","operationId":"get_plan_api_v1_retention_plans__plan_id__get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Plan Api V1 Retention Plans  Plan Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/plans/{plan_id}/redemptions":{"post":{"summary":"Post Redemption","description":"Use one entitlement. RET-005.","operationId":"post_redemption_api_v1_retention_plans__plan_id__redemptions_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Redemption Api V1 Retention Plans  Plan Id  Redemptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/plans/{plan_id}/transfer":{"post":{"summary":"Post Plan Transfer","operationId":"post_plan_transfer_api_v1_retention_plans__plan_id__transfer_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Plan Transfer Api V1 Retention Plans  Plan Id  Transfer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/plans/{plan_id}/cancellation":{"post":{"summary":"Post Plan Cancellation","operationId":"post_plan_cancellation_api_v1_retention_plans__plan_id__cancellation_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__ReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Plan Cancellation Api V1 Retention Plans  Plan Id  Cancellation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/declined":{"get":{"summary":"Get Declined","operationId":"get_declined_api_v1_retention_declined_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Declined Api V1 Retention Declined Get"}}}}}}},"/api/v1/retention/declined/{follow_up_id}":{"post":{"summary":"Post Declined","operationId":"post_declined_api_v1_retention_declined__follow_up_id__post","parameters":[{"name":"follow_up_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Follow Up Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__retention_routes__OutcomeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Declined Api V1 Retention Declined  Follow Up Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/retention/replacements":{"get":{"summary":"Get Replacements","operationId":"get_replacements_api_v1_retention_replacements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Replacements Api V1 Retention Replacements Get"}}}}}},"post":{"summary":"Post Replacement","description":"Hand a replacement conversation to sales. RET-006.","operationId":"post_replacement_api_v1_retention_replacements_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplacementBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Replacement Api V1 Retention Replacements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/coverage":{"get":{"summary":"Get Coverage List","operationId":"get_coverage_list_api_v1_warranty_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Coverage List Api V1 Warranty Coverage Get"}}}}}},"post":{"summary":"Post Coverage","description":"Record a car's warranty cover. WAR-001.","operationId":"post_coverage_api_v1_warranty_coverage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Coverage Api V1 Warranty Coverage Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/coverage/{coverage_id}/void":{"post":{"summary":"Post Coverage Void","operationId":"post_coverage_void_api_v1_warranty_coverage__coverage_id__void_post","parameters":[{"name":"coverage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Coverage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Coverage Void Api V1 Warranty Coverage  Coverage Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/vehicles/{vehicle_id}":{"get":{"summary":"Get Vehicle Warranty","description":"Cover that may apply, and open recalls, for a car at intake. WAR-001 and WAR-005.","operationId":"get_vehicle_warranty_api_v1_warranty_vehicles__vehicle_id__get","parameters":[{"name":"vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vehicle Id"}},{"name":"mileage","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vehicle Warranty Api V1 Warranty Vehicles  Vehicle Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/checklists":{"get":{"summary":"Get Checklists","operationId":"get_checklists_api_v1_warranty_checklists_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Checklists Api V1 Warranty Checklists Get"}}}}}},"post":{"summary":"Post Checklist","description":"A provider's claim checklist, as a new version. WAR-002.","operationId":"post_checklist_api_v1_warranty_checklists_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Checklist Api V1 Warranty Checklists Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims":{"get":{"summary":"Get Claims","operationId":"get_claims_api_v1_warranty_claims_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Claims Api V1 Warranty Claims Get"}}}}}},"post":{"summary":"Post Claim","description":"Build a claim from approved work. WAR-002.","operationId":"post_claim_api_v1_warranty_claims_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Claim Api V1 Warranty Claims Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}":{"get":{"summary":"Get Claim","operationId":"get_claim_api_v1_warranty_claims__claim_id__get","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Claim Api V1 Warranty Claims  Claim Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claim-lines/{line_id}":{"put":{"summary":"Put Claim Line","operationId":"put_claim_line_api_v1_warranty_claim_lines__line_id__put","parameters":[{"name":"line_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineDetailBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Claim Line Api V1 Warranty Claim Lines  Line Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}/evidence":{"post":{"summary":"Post Evidence","operationId":"post_evidence_api_v1_warranty_claims__claim_id__evidence_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Evidence Api V1 Warranty Claims  Claim Id  Evidence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}/evidence-file":{"post":{"summary":"Post Evidence File","description":"A photo or a PDF for one checklist item. The raw body is the file.","operationId":"post_evidence_file_api_v1_warranty_claims__claim_id__evidence_file_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"item_code","in":"query","required":true,"schema":{"type":"string","title":"Item Code"}},{"name":"file_name","in":"query","required":false,"schema":{"type":"string","default":"evidence","title":"File Name"}},{"name":"note","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Evidence File Api V1 Warranty Claims  Claim Id  Evidence File Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/evidence/{evidence_id}/file":{"get":{"summary":"Get Evidence File","operationId":"get_evidence_file_api_v1_warranty_evidence__evidence_id__file_get","parameters":[{"name":"evidence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Evidence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}/ready":{"post":{"summary":"Post Claim Ready","description":"Ready only with every mandatory item evidenced. WAR-002.","operationId":"post_claim_ready_api_v1_warranty_claims__claim_id__ready_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Claim Ready Api V1 Warranty Claims  Claim Id  Ready Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}/moves":{"post":{"summary":"Post Claim Move","description":"Record what the provider did. WAR-003.","operationId":"post_claim_move_api_v1_warranty_claims__claim_id__moves_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Claim Move Api V1 Warranty Claims  Claim Id  Moves Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}/payments":{"post":{"summary":"Post Claim Payment","description":"Match money from the provider to the claim. WAR-004.","operationId":"post_claim_payment_api_v1_warranty_claims__claim_id__payments_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Claim Payment Api V1 Warranty Claims  Claim Id  Payments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/claims/{claim_id}/parts":{"post":{"summary":"Post Part","description":"Tag a removed part and hold it for the provider. WAR-004.","operationId":"post_part_api_v1_warranty_claims__claim_id__parts_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__warranty_routes__PartBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Part Api V1 Warranty Claims  Claim Id  Parts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/parts":{"get":{"summary":"Get Parts","operationId":"get_parts_api_v1_warranty_parts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Parts Api V1 Warranty Parts Get"}}}}}}},"/api/v1/warranty/parts/{part_id}/custody":{"post":{"summary":"Post Part Custody","description":"Ship, record received or dispose. Disposal is blocked while a return is owed. WAR-004.","operationId":"post_part_custody_api_v1_warranty_parts__part_id__custody_post","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__warranty_routes__CustodyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Part Custody Api V1 Warranty Parts  Part Id  Custody Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/parts/{part_id}/waiver":{"post":{"summary":"Post Part Waiver","operationId":"post_part_waiver_api_v1_warranty_parts__part_id__waiver_post","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Part Waiver Api V1 Warranty Parts  Part Id  Waiver Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/recalls":{"get":{"summary":"Get Recalls","operationId":"get_recalls_api_v1_warranty_recalls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Recalls Api V1 Warranty Recalls Get"}}}}}},"post":{"summary":"Post Recall","description":"Import a recall and its chassis numbers. A repeat import adds only new ones. WAR-005.","operationId":"post_recall_api_v1_warranty_recalls_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Recall Api V1 Warranty Recalls Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/recalls/{campaign_id}/vehicles":{"get":{"summary":"Get Recall Vehicles","operationId":"get_recall_vehicles_api_v1_warranty_recalls__campaign_id__vehicles_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Recall Vehicles Api V1 Warranty Recalls  Campaign Id  Vehicles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/recalls/{campaign_id}/verification":{"post":{"summary":"Post Recall Verification","operationId":"post_recall_verification_api_v1_warranty_recalls__campaign_id__verification_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__warranty_routes__VerifyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Recall Verification Api V1 Warranty Recalls  Campaign Id  Verification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/recall-vehicles/{recall_vehicle_id}/contact":{"post":{"summary":"Post Recall Contact","operationId":"post_recall_contact_api_v1_warranty_recall_vehicles__recall_vehicle_id__contact_post","parameters":[{"name":"recall_vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Recall Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__warranty_routes__ContactBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Recall Contact Api V1 Warranty Recall Vehicles  Recall Vehicle Id  Contact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/recall-vehicles/{recall_vehicle_id}/completion":{"post":{"summary":"Post Recall Completion","description":"Completed only with the prescribed evidence. WAR-005.","operationId":"post_recall_completion_api_v1_warranty_recall_vehicles__recall_vehicle_id__completion_post","parameters":[{"name":"recall_vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Recall Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__warranty_routes__CompleteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Recall Completion Api V1 Warranty Recall Vehicles  Recall Vehicle Id  Completion Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/warranty/recall-vehicles/{recall_vehicle_id}/not-applicable":{"post":{"summary":"Post Recall Not Applicable","operationId":"post_recall_not_applicable_api_v1_warranty_recall_vehicles__recall_vehicle_id__not_applicable_post","parameters":[{"name":"recall_vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Recall Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__warranty_routes__ReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Recall Not Applicable Api V1 Warranty Recall Vehicles  Recall Vehicle Id  Not Applicable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases":{"get":{"summary":"Get Cases","operationId":"get_cases_api_v1_bodyshop_cases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Cases Api V1 Bodyshop Cases Get"}}}}}},"post":{"summary":"Post Case","description":"Open an accident case. BDY-001.","operationId":"post_case_api_v1_bodyshop_cases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Case Api V1 Bodyshop Cases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}":{"get":{"summary":"Get Case","operationId":"get_case_api_v1_bodyshop_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Case Api V1 Bodyshop Cases  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/assessor":{"post":{"summary":"Post Assessor","operationId":"post_assessor_api_v1_bodyshop_cases__case_id__assessor_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessorBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Assessor Api V1 Bodyshop Cases  Case Id  Assessor Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/job":{"post":{"summary":"Post Case Job","operationId":"post_case_job_api_v1_bodyshop_cases__case_id__job_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__bodyshop_routes__JobBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Case Job Api V1 Bodyshop Cases  Case Id  Job Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/photos":{"post":{"summary":"Post Case Photo","description":"An incident photo. The raw body is the picture. BDY-001.","operationId":"post_case_photo_api_v1_bodyshop_cases__case_id__photos_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"caption","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Case Photo Api V1 Bodyshop Cases  Case Id  Photos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/photos/{photo_id}":{"get":{"summary":"Get Case Photo","operationId":"get_case_photo_api_v1_bodyshop_cases__case_id__photos__photo_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/estimates":{"post":{"summary":"Post Estimate","description":"A new estimate version. Earlier versions and approvals stay as they were. BDY-001.","operationId":"post_estimate_api_v1_bodyshop_cases__case_id__estimates_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__bodyshop_routes__EstimateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Estimate Api V1 Bodyshop Cases  Case Id  Estimates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/estimates/{estimate_id}/submission":{"post":{"summary":"Post Estimate Submission","operationId":"post_estimate_submission_api_v1_bodyshop_estimates__estimate_id__submission_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Estimate Submission Api V1 Bodyshop Estimates  Estimate Id  Submission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/estimates/{estimate_id}/authorisation":{"post":{"summary":"Post Authorisation","description":"What the insurer approved, and the customer's excess, written down explicitly.","operationId":"post_authorisation_api_v1_bodyshop_estimates__estimate_id__authorisation_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorisationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Authorisation Api V1 Bodyshop Estimates  Estimate Id  Authorisation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/estimates/{estimate_id}/rejection":{"post":{"summary":"Post Rejection","operationId":"post_rejection_api_v1_bodyshop_estimates__estimate_id__rejection_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Rejection Api V1 Bodyshop Estimates  Estimate Id  Rejection Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/stages/{stage_id}":{"put":{"summary":"Put Stage","operationId":"put_stage_api_v1_bodyshop_stages__stage_id__put","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagePlanBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Stage Api V1 Bodyshop Stages  Stage Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/stages/{stage_id}/start":{"post":{"summary":"Post Stage Start","operationId":"post_stage_start_api_v1_bodyshop_stages__stage_id__start_post","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Stage Start Api V1 Bodyshop Stages  Stage Id  Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/stages/{stage_id}/checks":{"post":{"summary":"Post Stage Check","description":"A quality check by someone who did not do the work. BDY-002.","operationId":"post_stage_check_api_v1_bodyshop_stages__stage_id__checks_post","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__bodyshop_routes__CheckBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Stage Check Api V1 Bodyshop Stages  Stage Id  Checks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/stages/{stage_id}/close":{"post":{"summary":"Post Stage Close","description":"Close a stage; a failed mandatory check keeps it open. BDY-002.","operationId":"post_stage_close_api_v1_bodyshop_stages__stage_id__close_post","parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__bodyshop_routes__CloseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Stage Close Api V1 Bodyshop Stages  Stage Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/materials":{"post":{"summary":"Post Material","description":"Material used on the repair, counted in its cost. BDY-002.","operationId":"post_material_api_v1_bodyshop_cases__case_id__materials_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaterialBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Material Api V1 Bodyshop Cases  Case Id  Materials Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/sublets":{"post":{"summary":"Post Sublet","operationId":"post_sublet_api_v1_bodyshop_cases__case_id__sublets_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__bodyshop_routes__SubletBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Sublet Api V1 Bodyshop Cases  Case Id  Sublets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/receivables/{receivable_id}/events":{"post":{"summary":"Post Settlement","description":"A payment, deduction, dispute or promise on one party's share. BDY-003.","operationId":"post_settlement_api_v1_bodyshop_receivables__receivable_id__events_post","parameters":[{"name":"receivable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Receivable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettlementBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Settlement Api V1 Bodyshop Receivables  Receivable Id  Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/credit-release":{"post":{"summary":"Post Credit Release","description":"Ask to release the car before the insurer pays. A second person decides.","operationId":"post_credit_release_api_v1_bodyshop_cases__case_id__credit_release_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Credit Release Api V1 Bodyshop Cases  Case Id  Credit Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bodyshop/cases/{case_id}/release":{"post":{"summary":"Post Release","description":"Hand the car back, following the settlement and credit rules. BDY-003.","operationId":"post_release_api_v1_bodyshop_cases__case_id__release_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Release Api V1 Bodyshop Cases  Case Id  Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts":{"get":{"summary":"Get Accounts","operationId":"get_accounts_api_v1_fleet_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Accounts Api V1 Fleet Accounts Get"}}}}}},"post":{"summary":"Post Account","description":"Make a corporate customer a fleet account. FLT-001.","operationId":"post_account_api_v1_fleet_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Account Api V1 Fleet Accounts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}":{"get":{"summary":"Get Account","operationId":"get_account_api_v1_fleet_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Account Api V1 Fleet Accounts  Account Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/cost-centres":{"post":{"summary":"Post Centre","operationId":"post_centre_api_v1_fleet_accounts__account_id__cost_centres_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CentreBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Centre Api V1 Fleet Accounts  Account Id  Cost Centres Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/sites":{"post":{"summary":"Post Site","operationId":"post_site_api_v1_fleet_accounts__account_id__sites_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Site Api V1 Fleet Accounts  Account Id  Sites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/vehicles":{"post":{"summary":"Post Vehicle","operationId":"post_vehicle_api_v1_fleet_accounts__account_id__vehicles_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Vehicle Api V1 Fleet Accounts  Account Id  Vehicles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/vehicles/{fleet_vehicle_id}/drivers":{"post":{"summary":"Post Driver","description":"Give a vehicle a driver from a date. FLT-001.","operationId":"post_driver_api_v1_fleet_vehicles__fleet_vehicle_id__drivers_post","parameters":[{"name":"fleet_vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Driver Api V1 Fleet Vehicles  Fleet Vehicle Id  Drivers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/drivers/{assignment_id}/end":{"post":{"summary":"Post Driver End","operationId":"post_driver_end_api_v1_fleet_drivers__assignment_id__end_post","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Assignment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Driver End Api V1 Fleet Drivers  Assignment Id  End Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/drivers/{driver_party_id}/link":{"post":{"summary":"Post Driver Link","description":"A link a driver keeps on their phone to see their vehicles and report faults. FLT-001.","operationId":"post_driver_link_api_v1_fleet_drivers__driver_party_id__link_post","parameters":[{"name":"driver_party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Driver Party Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Driver Link Api V1 Fleet Drivers  Driver Party Id  Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/rules":{"post":{"summary":"Post Rule","operationId":"post_rule_api_v1_fleet_accounts__account_id__rules_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Rule Api V1 Fleet Accounts  Account Id  Rules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/estimates/{estimate_id}/route":{"post":{"summary":"Post Route","description":"Send an estimate on a company vehicle to the approver the rules name. FLT-002.","operationId":"post_route_api_v1_fleet_estimates__estimate_id__route_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Route Api V1 Fleet Estimates  Estimate Id  Route Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/approvals/{approval_id}/lines":{"get":{"summary":"Get Approval Lines","operationId":"get_approval_lines_api_v1_fleet_approvals__approval_id__lines_get","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Approval Lines Api V1 Fleet Approvals  Approval Id  Lines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/approvals/{approval_id}/decision":{"post":{"summary":"Post Approval Decision","description":"Record the company approver's decision, as they gave it. FLT-002.","operationId":"post_approval_decision_api_v1_fleet_approvals__approval_id__decision_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Approval Decision Api V1 Fleet Approvals  Approval Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/approvals/{approval_id}/po":{"post":{"summary":"Post Approval Po","operationId":"post_approval_po_api_v1_fleet_approvals__approval_id__po_post","parameters":[{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Approval Po Api V1 Fleet Approvals  Approval Id  Po Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/jobs/{job_id}":{"get":{"summary":"Get Job Context","description":"What a company job carries from its request and approval. FLT-003.","operationId":"get_job_context_api_v1_fleet_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job Context Api V1 Fleet Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/requests":{"post":{"summary":"Post Request","description":"A bulk service proposal or a fault report taken by staff. FLT-003.","operationId":"post_request_api_v1_fleet_accounts__account_id__requests_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__fleet_routes__RequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Request Api V1 Fleet Accounts  Account Id  Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/prices":{"post":{"summary":"Post Prices","operationId":"post_prices_api_v1_fleet_requests__request_id__prices_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__fleet_routes__PriceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Prices Api V1 Fleet Requests  Request Id  Prices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/acknowledge":{"post":{"summary":"Post Acknowledge","operationId":"post_acknowledge_api_v1_fleet_requests__request_id__acknowledge_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Acknowledge Api V1 Fleet Requests  Request Id  Acknowledge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/submission":{"post":{"summary":"Post Submission","operationId":"post_submission_api_v1_fleet_requests__request_id__submission_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Submission Api V1 Fleet Requests  Request Id  Submission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/decision":{"post":{"summary":"Post Request Decision","operationId":"post_request_decision_api_v1_fleet_requests__request_id__decision_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestDecideBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Request Decision Api V1 Fleet Requests  Request Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/po":{"post":{"summary":"Post Request Po","operationId":"post_request_po_api_v1_fleet_requests__request_id__po_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Request Po Api V1 Fleet Requests  Request Id  Po Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/schedule":{"post":{"summary":"Post Schedule","description":"Book one approved vehicle as its own job. FLT-003.","operationId":"post_schedule_api_v1_fleet_requests__request_id__schedule_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__fleet_routes__ScheduleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Schedule Api V1 Fleet Requests  Request Id  Schedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/jobs/{job_id}/arrived":{"post":{"summary":"Post Arrived","operationId":"post_arrived_api_v1_fleet_jobs__job_id__arrived_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Arrived Api V1 Fleet Jobs  Job Id  Arrived Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/photos":{"get":{"summary":"Get Request Photos","operationId":"get_request_photos_api_v1_fleet_requests__request_id__photos_get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Request Photos Api V1 Fleet Requests  Request Id  Photos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/requests/{request_id}/photos/{photo_id}":{"get":{"summary":"Get Request Photo","operationId":"get_request_photo_api_v1_fleet_requests__request_id__photos__photo_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/statements":{"post":{"summary":"Post Statement","description":"Group already issued invoices on one statement. No invoice or revenue is created.\nFLT-004.","operationId":"post_statement_api_v1_fleet_accounts__account_id__statements_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__fleet_routes__StatementBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Statement Api V1 Fleet Accounts  Account Id  Statements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/monthly-invoice":{"put":{"summary":"Put Monthly","description":"Turn one tax invoice a month on, saying who confirmed it is permitted, or off.","operationId":"put_monthly_api_v1_fleet_accounts__account_id__monthly_invoice_put","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonthlyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Monthly Api V1 Fleet Accounts  Account Id  Monthly Invoice Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Monthly","description":"The finished jobs this period's invoice would carry.","operationId":"get_monthly_api_v1_fleet_accounts__account_id__monthly_invoice_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"period_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period From"}},{"name":"period_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Monthly Api V1 Fleet Accounts  Account Id  Monthly Invoice Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/monthly-invoices":{"post":{"summary":"Post Monthly Invoice","description":"Issue one tax invoice for the period's finished jobs.","operationId":"post_monthly_invoice_api_v1_fleet_accounts__account_id__monthly_invoices_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__fleet_routes__StatementBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Monthly Invoice Api V1 Fleet Accounts  Account Id  Monthly Invoices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/statements/{statement_id}":{"get":{"summary":"Get Statement","operationId":"get_statement_api_v1_fleet_statements__statement_id__get","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Statement Api V1 Fleet Statements  Statement Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/vehicle-costs":{"get":{"summary":"Get Vehicle Costs","operationId":"get_vehicle_costs_api_v1_fleet_accounts__account_id__vehicle_costs_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"period_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period From"}},{"name":"period_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Vehicle Costs Api V1 Fleet Accounts  Account Id  Vehicle Costs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/accounts/{account_id}/contracts":{"post":{"summary":"Post Contract","operationId":"post_contract_api_v1_fleet_accounts__account_id__contracts_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Contract Api V1 Fleet Accounts  Account Id  Contracts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fleet/vehicles/{fleet_vehicle_id}/downtime":{"post":{"summary":"Post Downtime","description":"Record that a vehicle went off the road or came back. FLT-005.","operationId":"post_downtime_api_v1_fleet_vehicles__fleet_vehicle_id__downtime_post","parameters":[{"name":"fleet_vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DowntimeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Downtime","operationId":"get_downtime_api_v1_fleet_vehicles__fleet_vehicle_id__downtime_get","parameters":[{"name":"fleet_vehicle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"}},{"name":"period_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period From"}},{"name":"period_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Period To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Downtime Api V1 Fleet Vehicles  Fleet Vehicle Id  Downtime Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/fleet-driver":{"post":{"summary":"Driver View","description":"The vehicles this driver holds today, and their fault reports. FLT-001.","operationId":"driver_view_api_v1_actions_fleet_driver_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Driver View Api V1 Actions Fleet Driver Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/fleet-driver/faults":{"post":{"summary":"Driver Fault","description":"A driver reports a fault on a vehicle they hold today. FLT-003.","operationId":"driver_fault_api_v1_actions_fleet_driver_faults_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverFault"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Driver Fault Api V1 Actions Fleet Driver Faults Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/fleet-driver/photos":{"post":{"summary":"Driver Photo","description":"A photo of the fault. The token and request id are in headers; the body is the picture.","operationId":"driver_photo_api_v1_actions_fleet_driver_photos_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Driver Photo Api V1 Actions Fleet Driver Photos Post"}}}}}}},"/api/v1/mobility/board":{"get":{"summary":"Get Board","operationId":"get_board_api_v1_mobility_board_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Board Api V1 Mobility Board Get"}}}}}}},"/api/v1/mobility/requests":{"post":{"summary":"Post Request","description":"Write down a breakdown call. MOB-001.","operationId":"post_request_api_v1_mobility_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__mobility_routes__RequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Request Api V1 Mobility Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}":{"get":{"summary":"Get Request","operationId":"get_request_api_v1_mobility_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Request Api V1 Mobility Requests  Request Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/quote":{"post":{"summary":"Post Quote","operationId":"post_quote_api_v1_mobility_requests__request_id__quote_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__mobility_routes__QuoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Quote Api V1 Mobility Requests  Request Id  Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/authority":{"post":{"summary":"Post Authority","description":"Record who agreed to the charge. MOB-002.","operationId":"post_authority_api_v1_mobility_requests__request_id__authority_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Authority Api V1 Mobility Requests  Request Id  Authority Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/offers":{"post":{"summary":"Post Offer","description":"Offer the job to one approved partner. MOB-002.","operationId":"post_offer_api_v1_mobility_requests__request_id__offers_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Offer Api V1 Mobility Requests  Request Id  Offers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/cancel":{"post":{"summary":"Post Cancel","operationId":"post_cancel_api_v1_mobility_requests__request_id__cancel_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Cancel Api V1 Mobility Requests  Request Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/status-link":{"post":{"summary":"Post Status Link","description":"A link for the caller to follow their request. MOB-001, MOB-003.","operationId":"post_status_link_api_v1_mobility_requests__request_id__status_link_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Status Link Api V1 Mobility Requests  Request Id  Status Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/photos":{"post":{"summary":"Post Request Photo","operationId":"post_request_photo_api_v1_mobility_requests__request_id__photos_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"caption","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Request Photo Api V1 Mobility Requests  Request Id  Photos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/photos/{photo_id}":{"get":{"summary":"Get Request Photo","operationId":"get_request_photo_api_v1_mobility_requests__request_id__photos__photo_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/depart":{"post":{"summary":"Post Depart","operationId":"post_depart_api_v1_mobility_requests__request_id__depart_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Depart Api V1 Mobility Requests  Request Id  Depart Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/arrive":{"post":{"summary":"Post Arrive","operationId":"post_arrive_api_v1_mobility_requests__request_id__arrive_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Arrive Api V1 Mobility Requests  Request Id  Arrive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/collection":{"post":{"summary":"Post Collection","description":"Custody at the roadside. MOB-004.","operationId":"post_collection_api_v1_mobility_requests__request_id__collection_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__mobility_routes__CustodyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Collection Api V1 Mobility Requests  Request Id  Collection Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/requests/{request_id}/completion":{"post":{"summary":"Post Completion","description":"Drop-off, the customer's confirmation, and a workshop job for a tow-in. MOB-004.","operationId":"post_completion_api_v1_mobility_requests__request_id__completion_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__mobility_routes__CompleteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Completion Api V1 Mobility Requests  Request Id  Completion Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/partners":{"post":{"summary":"Post Partner","operationId":"post_partner_api_v1_mobility_partners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Partner Api V1 Mobility Partners Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/partners/{partner_id}/approval":{"post":{"summary":"Post Partner Approval","operationId":"post_partner_approval_api_v1_mobility_partners__partner_id__approval_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/partners/{partner_id}/suspension":{"post":{"summary":"Post Partner Suspension","operationId":"post_partner_suspension_api_v1_mobility_partners__partner_id__suspension_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Partner Suspension Api V1 Mobility Partners  Partner Id  Suspension Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/partners/{partner_id}/rates":{"post":{"summary":"Post Rate","operationId":"post_rate_api_v1_mobility_partners__partner_id__rates_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Rate Api V1 Mobility Partners  Partner Id  Rates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/partners/{partner_id}/equipment":{"post":{"summary":"Post Equipment","operationId":"post_equipment_api_v1_mobility_partners__partner_id__equipment_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Equipment Api V1 Mobility Partners  Partner Id  Equipment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/equipment/{equipment_id}/availability":{"post":{"summary":"Post Equipment Available","operationId":"post_equipment_available_api_v1_mobility_equipment__equipment_id__availability_post","parameters":[{"name":"equipment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/partners/{partner_id}/link":{"post":{"summary":"Post Partner Link","description":"A link the partner keeps to answer offers and work the jobs they accepted. MOB-006.","operationId":"post_partner_link_api_v1_mobility_partners__partner_id__link_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Partner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Partner Link Api V1 Mobility Partners  Partner Id  Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/payables/{payable_id}/paid":{"post":{"summary":"Post Paid","description":"The dealer paid the partner. A payout, not a customer invoice. MOB-006.","operationId":"post_paid_api_v1_mobility_payables__payable_id__paid_post","parameters":[{"name":"payable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Paid Api V1 Mobility Payables  Payable Id  Paid Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/complaints":{"post":{"summary":"Post Complaint","operationId":"post_complaint_api_v1_mobility_complaints_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplaintBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Complaint Api V1 Mobility Complaints Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/complaints/{complaint_id}/resolution":{"post":{"summary":"Post Resolution","operationId":"post_resolution_api_v1_mobility_complaints__complaint_id__resolution_post","parameters":[{"name":"complaint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Complaint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__mobility_routes__OutcomeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/courtesy-vehicles":{"post":{"summary":"Post Courtesy Vehicle","operationId":"post_courtesy_vehicle_api_v1_mobility_courtesy_vehicles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtesyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Courtesy Vehicle Api V1 Mobility Courtesy Vehicles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/loans":{"post":{"summary":"Post Loan","description":"Reserve a courtesy car or a dealer driver. MOB-005.","operationId":"post_loan_api_v1_mobility_loans_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Loan Api V1 Mobility Loans Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/loans/{loan_id}/out":{"post":{"summary":"Post Loan Out","operationId":"post_loan_out_api_v1_mobility_loans__loan_id__out_post","parameters":[{"name":"loan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Loan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandOutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Loan Out Api V1 Mobility Loans  Loan Id  Out Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/loans/{loan_id}/return":{"post":{"summary":"Post Loan Return","operationId":"post_loan_return_api_v1_mobility_loans__loan_id__return_post","parameters":[{"name":"loan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Loan Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__mobility_routes__ReturnBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Loan Return Api V1 Mobility Loans  Loan Id  Return Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/loans/{loan_id}/cancel":{"post":{"summary":"Post Loan Cancel","operationId":"post_loan_cancel_api_v1_mobility_loans__loan_id__cancel_post","parameters":[{"name":"loan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Loan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Loan Cancel Api V1 Mobility Loans  Loan Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/mobility/damage/{damage_id}/decision":{"post":{"summary":"Post Damage","description":"A person settles damage found on return. Nothing is charged here. MOB-005.","operationId":"post_damage_api_v1_mobility_damage__damage_id__decision_post","parameters":[{"name":"damage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Damage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Damage Api V1 Mobility Damage  Damage Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner":{"post":{"summary":"Partner View","operationId":"partner_view_api_v1_actions_partner_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner View Api V1 Actions Partner Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/answer":{"post":{"summary":"Partner Answer","operationId":"partner_answer_api_v1_actions_partner_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Answer Api V1 Actions Partner Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/depart":{"post":{"summary":"Partner Depart","operationId":"partner_depart_api_v1_actions_partner_depart_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerMove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Depart Api V1 Actions Partner Depart Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/sharing":{"post":{"summary":"Partner Sharing","operationId":"partner_sharing_api_v1_actions_partner_sharing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerMove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Sharing Api V1 Actions Partner Sharing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/position":{"post":{"summary":"Partner Position","operationId":"partner_position_api_v1_actions_partner_position_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerPosition"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Position Api V1 Actions Partner Position Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/arrive":{"post":{"summary":"Partner Arrive","operationId":"partner_arrive_api_v1_actions_partner_arrive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerMove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Arrive Api V1 Actions Partner Arrive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/collection":{"post":{"summary":"Partner Collection","operationId":"partner_collection_api_v1_actions_partner_collection_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCustody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Collection Api V1 Actions Partner Collection Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/completion":{"post":{"summary":"Partner Completion","description":"The partner drops off somewhere other than the workshop. A tow into the workshop is\ncompleted by staff, who open the job.","operationId":"partner_completion_api_v1_actions_partner_completion_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerComplete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Completion Api V1 Actions Partner Completion Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/partner/photos":{"post":{"summary":"Partner Photo","description":"A collection or drop-off photo for a job the partner accepted.","operationId":"partner_photo_api_v1_actions_partner_photos_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Partner Photo Api V1 Actions Partner Photos Post"}}}}}}},"/api/v1/actions/assistance":{"post":{"summary":"Assistance Status","description":"The caller follows their request. MOB-001, MOB-003.","operationId":"assistance_status_api_v1_actions_assistance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Assistance Status Api V1 Actions Assistance Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/overview":{"get":{"summary":"Get Overview","operationId":"get_overview_api_v1_resources_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Overview Api V1 Resources Overview Get"}}}}}}},"/api/v1/resources/me":{"get":{"summary":"Get Me","description":"What a person sees about themselves. Nobody else's pay appears here. RES-004.","operationId":"get_me_api_v1_resources_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Me Api V1 Resources Me Get"}}}}}}},"/api/v1/resources/requirements":{"post":{"summary":"Post Requirement","operationId":"post_requirement_api_v1_resources_requirements_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Requirement Api V1 Resources Requirements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/certifications":{"post":{"summary":"Post Certification","operationId":"post_certification_api_v1_resources_certifications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificationBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Certification Api V1 Resources Certifications Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/exceptions":{"post":{"summary":"Post Exception","description":"A one-job exception to a certificate rule, under a named policy. RES-001.","operationId":"post_exception_api_v1_resources_exceptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Exception Api V1 Resources Exceptions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/shifts":{"post":{"summary":"Post Shift","operationId":"post_shift_api_v1_resources_shifts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShiftBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Shift Api V1 Resources Shifts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/me/leave":{"post":{"summary":"Post Leave","operationId":"post_leave_api_v1_resources_me_leave_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Leave Api V1 Resources Me Leave Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/leave/{leave_id}/decision":{"post":{"summary":"Post Leave Decision","operationId":"post_leave_decision_api_v1_resources_leave__leave_id__decision_post","parameters":[{"name":"leave_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Leave Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__resources_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/geofences":{"post":{"summary":"Post Geofence","description":"The optional site check for clocking in, with the notice staff see first. RES-002.","operationId":"post_geofence_api_v1_resources_geofences_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Geofence Api V1 Resources Geofences Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/me/clock-in":{"post":{"summary":"Post Clock In","description":"Clock in. A shared position is compared once and discarded; only the result is kept.","operationId":"post_clock_in_api_v1_resources_me_clock_in_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClockInBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Clock In Api V1 Resources Me Clock In Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/me/clock-out":{"post":{"summary":"Post Clock Out","operationId":"post_clock_out_api_v1_resources_me_clock_out_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Clock Out Api V1 Resources Me Clock Out Post"}}}}}}},"/api/v1/resources/attendance/{attendance_id}/confirmation":{"post":{"summary":"Post Confirmation","description":"A supervisor confirms a clock-in that was not checked on site. RES-002.","operationId":"post_confirmation_api_v1_resources_attendance__attendance_id__confirmation_post","parameters":[{"name":"attendance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attendance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Confirmation Api V1 Resources Attendance  Attendance Id  Confirmation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/attendance/{attendance_id}/corrections":{"post":{"summary":"Post Correction","operationId":"post_correction_api_v1_resources_attendance__attendance_id__corrections_post","parameters":[{"name":"attendance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attendance Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/corrections/{correction_id}/decision":{"post":{"summary":"Post Correction Decision","operationId":"post_correction_decision_api_v1_resources_corrections__correction_id__decision_post","parameters":[{"name":"correction_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Correction Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__resources_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Correction Decision Api V1 Resources Corrections  Correction Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets":{"post":{"summary":"Post Asset","operationId":"post_asset_api_v1_resources_assets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Asset Api V1 Resources Assets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets/{asset_id}/events":{"post":{"summary":"Post Asset Event","operationId":"post_asset_event_api_v1_resources_assets__asset_id__events_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetEventBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets/{asset_id}/downtime":{"post":{"summary":"Post Asset Down","description":"Take equipment out of use. A lift's bay leaves booking for that time. RES-003.","operationId":"post_asset_down_api_v1_resources_assets__asset_id__downtime_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Asset Down Api V1 Resources Assets  Asset Id  Downtime Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets/{asset_id}/up":{"post":{"summary":"Post Asset Up","operationId":"post_asset_up_api_v1_resources_assets__asset_id__up_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Asset Up Api V1 Resources Assets  Asset Id  Up Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets/{asset_id}/check-out":{"post":{"summary":"Post Check Out","operationId":"post_check_out_api_v1_resources_assets__asset_id__check_out_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__resources_routes__CustodyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Check Out Api V1 Resources Assets  Asset Id  Check Out Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets/{asset_id}/check-in":{"post":{"summary":"Post Check In","operationId":"post_check_in_api_v1_resources_assets__asset_id__check_in_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Check In Api V1 Resources Assets  Asset Id  Check In Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/assets/{asset_id}/reservations":{"post":{"summary":"Post Reservation","operationId":"post_reservation_api_v1_resources_assets__asset_id__reservations_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/statements":{"get":{"summary":"Get Statements","description":"Everyone's commission statements, for people allowed to see other people's pay.","operationId":"get_statements_api_v1_resources_statements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Statements Api V1 Resources Statements Get"}}}}}},"post":{"summary":"Post Statement","operationId":"post_statement_api_v1_resources_statements_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__resources_routes__StatementBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Statement Api V1 Resources Statements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/statements/{statement_id}":{"get":{"summary":"Get Statement","operationId":"get_statement_api_v1_resources_statements__statement_id__get","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Statement Api V1 Resources Statements  Statement Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/statements/{statement_id}/adjustments":{"post":{"summary":"Post Adjustment","operationId":"post_adjustment_api_v1_resources_statements__statement_id__adjustments_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustmentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/statements/{statement_id}/publish":{"post":{"summary":"Post Publish","operationId":"post_publish_api_v1_resources_statements__statement_id__publish_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Publish Api V1 Resources Statements  Statement Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/statements/{statement_id}/disputes":{"post":{"summary":"Post Dispute","description":"A person disputes their own statement. RES-004.","operationId":"post_dispute_api_v1_resources_statements__statement_id__disputes_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Statement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Dispute Api V1 Resources Statements  Statement Id  Disputes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/disputes/{dispute_id}/resolution":{"post":{"summary":"Post Dispute Resolution","operationId":"post_dispute_resolution_api_v1_resources_disputes__dispute_id__resolution_post","parameters":[{"name":"dispute_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dispute Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__resources_routes__OutcomeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/notices":{"post":{"summary":"Post Notice","operationId":"post_notice_api_v1_resources_notices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Notice Api V1 Resources Notices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/resources/notices/{notice_id}/ack":{"post":{"summary":"Post Ack","operationId":"post_ack_api_v1_resources_notices__notice_id__ack_post","parameters":[{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Ack Api V1 Resources Notices  Notice Id  Ack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts":{"get":{"summary":"Get Parts","description":"Parts by SKU with on-hand, reserved and available quantities. PRT-002.","operationId":"get_parts_api_v1_parts_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Parts Api V1 Parts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Part","description":"Add a part to the catalogue. PRT-001.","operationId":"post_part_api_v1_parts_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__parts_routes__PartBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Part Api V1 Parts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/{part_id}/receipts":{"post":{"summary":"Post Receipt","description":"Receive stock as a ledger movement. PRT-003 and PRT-004.","operationId":"post_receipt_api_v1_parts__part_id__receipts_post","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Receipt Api V1 Parts  Part Id  Receipts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock/reservations":{"get":{"summary":"Get Reservations","description":"Active reservations waiting to be picked, in bin order. PRT-005.\n\nThe pick list is bounded by what is reserved and not yet issued, so it is not paged.","operationId":"get_reservations_api_v1_stock_reservations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Reservations Api V1 Stock Reservations Get"}}}}}},"post":{"summary":"Post Reservation","description":"Reserve stock for a job. PRT-002: the last unit is reserved once.","operationId":"post_reservation_api_v1_stock_reservations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReserveBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Reservation Api V1 Stock Reservations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock/issues":{"post":{"summary":"Post Issue","description":"Issue reserved stock to its job. PRT-005 needs approved work on that job.","operationId":"post_issue_api_v1_stock_issues_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Issue Api V1 Stock Issues Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/recipients":{"get":{"summary":"Get Recipients","description":"People who can take a part: active staff, mechanics first. PRT-005.","operationId":"get_recipients_api_v1_parts_recipients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Recipients Api V1 Parts Recipients Get"}}}}}}},"/api/v1/parts/unbilled":{"get":{"summary":"Get Unbilled","description":"Parts that left stock and are not on an issued invoice yet. PRT-005 daily exceptions.","operationId":"get_unbilled_api_v1_parts_unbilled_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Unbilled Api V1 Parts Unbilled Get"}}}}}}},"/api/v1/parts/reorder":{"get":{"summary":"Get Reorder","description":"Parts at or below their reorder level, counting what is on order. PRT-008.","operationId":"get_reorder_api_v1_parts_reorder_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Reorder Api V1 Parts Reorder Get"}}}}}}},"/api/v1/parts/{part_id}/movements":{"get":{"summary":"Get Movements","description":"Every movement of one part, with where it sits now. PRT-003.","operationId":"get_movements_api_v1_parts__part_id__movements_get","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Movements Api V1 Parts  Part Id  Movements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/{part_id}/reorder":{"put":{"summary":"Put Reorder","description":"Set when to reorder, how many, and from whom. PRT-008.","operationId":"put_reorder_api_v1_parts__part_id__reorder_put","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Reorder Api V1 Parts  Part Id  Reorder Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/{part_id}/returns":{"post":{"summary":"Post Return","description":"Take a part back: unused and customer returns to the shelf, defective to quarantine.","operationId":"post_return_api_v1_parts__part_id__returns_post","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__parts_routes__ReturnBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Return Api V1 Parts  Part Id  Returns Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/{part_id}/supplier-returns":{"post":{"summary":"Post Supplier Return","description":"Send quarantined parts back to a supplier. PRT-006.","operationId":"post_supplier_return_api_v1_parts__part_id__supplier_returns_post","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierReturnBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Supplier Return Api V1 Parts  Part Id  Supplier Returns Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/{part_id}/internal-use":{"post":{"summary":"Post Internal Use","description":"Ask to take a part for the dealer's own use; someone else approves. PRT-005.","operationId":"post_internal_use_api_v1_parts__part_id__internal_use_post","parameters":[{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalUseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Internal Use Api V1 Parts  Part Id  Internal Use Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parts/counter-sales":{"post":{"summary":"Post Counter Sale","description":"Sell parts over the counter: stock leaves and a draft invoice waits to be issued.","operationId":"post_counter_sale_api_v1_parts_counter_sales_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterSaleBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Counter Sale Api V1 Parts Counter Sales Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/suppliers":{"get":{"summary":"Get Suppliers","description":"Suppliers and their terms. Bank details in full only for accounts and approvers.","operationId":"get_suppliers_api_v1_suppliers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Suppliers Api V1 Suppliers Get"}}}}}},"post":{"summary":"Post Supplier","description":"Add a supplier. PRT-011.","operationId":"post_supplier_api_v1_suppliers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplierBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Supplier Api V1 Suppliers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/suppliers/{supplier_id}/bank-changes":{"post":{"summary":"Post Bank Change","description":"Ask for new payment details. Not a parts clerk's job; a second person approves.","operationId":"post_bank_change_api_v1_suppliers__supplier_id__bank_changes_post","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Supplier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankChangeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Bank Change Api V1 Suppliers  Supplier Id  Bank Changes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/suppliers/{supplier_id}/prices":{"get":{"summary":"Get Prices","description":"A supplier's price list.","operationId":"get_prices_api_v1_suppliers__supplier_id__prices_get","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Supplier Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Prices Api V1 Suppliers  Supplier Id  Prices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/suppliers/{supplier_id}/prices/{part_id}":{"put":{"summary":"Put Price","description":"Set what a supplier charges for a part.","operationId":"put_price_api_v1_suppliers__supplier_id__prices__part_id__put","parameters":[{"name":"supplier_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Supplier Id"}},{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__purchasing_routes__PriceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Price Api V1 Suppliers  Supplier Id  Prices  Part Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/purchase-orders":{"get":{"summary":"Get Orders","description":"Orders, newest first; open ones by default.","operationId":"get_orders_api_v1_purchase_orders_get","parameters":[{"name":"open","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Open"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Orders Api V1 Purchase Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Order","description":"Draft an order. PRT-004.","operationId":"post_order_api_v1_purchase_orders_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__purchasing_routes__OrderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Order Api V1 Purchase Orders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/purchase-orders/{order_id}":{"get":{"summary":"Get Order","description":"One order with lines, deliveries and what waits on a decision.","operationId":"get_order_api_v1_purchase_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Order Api V1 Purchase Orders  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/purchase-orders/{order_id}/submission":{"post":{"summary":"Post Submission","description":"Send a draft for approval. PRT-004.","operationId":"post_submission_api_v1_purchase_orders__order_id__submission_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Submission Api V1 Purchase Orders  Order Id  Submission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/purchase-orders/{order_id}/receipts":{"post":{"summary":"Post Delivery","description":"Receive a delivery. Five of ten leaves five open. PRT-004.","operationId":"post_delivery_api_v1_purchase_orders__order_id__receipts_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Delivery Api V1 Purchase Orders  Order Id  Receipts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/purchase-orders/{order_id}/closure":{"post":{"summary":"Post Closure","description":"Stop waiting for the rest: cancelled if nothing came, otherwise closed short.","operationId":"post_closure_api_v1_purchase_orders__order_id__closure_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__purchasing_routes__CloseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Closure Api V1 Purchase Orders  Order Id  Closure Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cash/drawer":{"get":{"summary":"Get Drawer","description":"The cashier's open drawer and their recent ones.","operationId":"get_drawer_api_v1_cash_drawer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Drawer Api V1 Cash Drawer Get"}}}}}},"post":{"summary":"Post Drawer","description":"Open the drawer with its float. FIN-009.","operationId":"post_drawer_api_v1_cash_drawer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenDrawerBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Drawer Api V1 Cash Drawer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cash/drawer/{drawer_id}/close":{"post":{"summary":"Post Close","description":"Count the cash and close. A difference waits for a second person. FIN-009.","operationId":"post_close_api_v1_cash_drawer__drawer_id__close_post","parameters":[{"name":"drawer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Drawer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseDrawerBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Close Api V1 Cash Drawer  Drawer Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cash/petty":{"post":{"summary":"Post Petty","description":"Ask to pay a small expense from the drawer. Someone else approves. FIN-012.","operationId":"post_petty_api_v1_cash_petty_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PettyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Petty Api V1 Cash Petty Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cash/drawers":{"get":{"summary":"Get Drawers","description":"Every cashier's recent drawers, and cash taken today outside any drawer. For accounts.","operationId":"get_drawers_api_v1_cash_drawers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Drawers Api V1 Cash Drawers Get"}}}}}}},"/api/v1/money/owed":{"get":{"summary":"Get Owed","description":"Everyone who owes money, aged by days past due, with the last contact. FIN-008.","operationId":"get_owed_api_v1_money_owed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Owed Api V1 Money Owed Get"}}}}}}},"/api/v1/customers/{party_id}/statement":{"get":{"summary":"Get Statement","description":"A customer's open invoices, account, exposure and contacts. FIN-008.","operationId":"get_statement_api_v1_customers__party_id__statement_get","parameters":[{"name":"party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Statement Api V1 Customers  Party Id  Statement Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers/{party_id}/credit-account":{"post":{"summary":"Post Credit","description":"Ask to open or change a credit account. Someone else approves. FIN-008.","operationId":"post_credit_api_v1_customers__party_id__credit_account_post","parameters":[{"name":"party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Credit Api V1 Customers  Party Id  Credit Account Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers/{party_id}/credit-hold":{"post":{"summary":"Post Hold","description":"Put a customer's credit on hold, or lift the hold.","operationId":"post_hold_api_v1_customers__party_id__credit_hold_post","parameters":[{"name":"party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__money_routes__HoldBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Hold Api V1 Customers  Party Id  Credit Hold Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers/{party_id}/collection-contacts":{"post":{"summary":"Post Contact","description":"Write down a call or message about money owed. FIN-008.","operationId":"post_contact_api_v1_customers__party_id__collection_contacts_post","parameters":[{"name":"party_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__money_routes__ContactBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Contact Api V1 Customers  Party Id  Collection Contacts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/credit-release":{"post":{"summary":"Post Credit Release","description":"Ask someone else to let a car leave before its bills are paid. FIN-008.","operationId":"post_credit_release_api_v1_jobs__job_id__credit_release_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__money_routes__ReleaseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Credit Release Api V1 Jobs  Job Id  Credit Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/discount-limits":{"get":{"summary":"Get Limits","description":"Discount limit per role, or none set.","operationId":"get_limits_api_v1_settings_discount_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Limits Api V1 Settings Discount Limits Get"}}}}}},"put":{"summary":"Put Limits","description":"Save discount limits per role. FIN-013.","operationId":"put_limits_api_v1_settings_discount_limits_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Limits Api V1 Settings Discount Limits Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/estimates/{estimate_id}/discount":{"get":{"summary":"Get Discount","description":"Whether this estimate's discount is within the caller's limit. FIN-013.","operationId":"get_discount_api_v1_estimates__estimate_id__discount_get","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Discount Api V1 Estimates  Estimate Id  Discount Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/estimates/{estimate_id}/discount-approval":{"post":{"summary":"Post Discount Approval","description":"Ask someone else to approve this estimate's discount. FIN-013.","operationId":"post_discount_approval_api_v1_estimates__estimate_id__discount_approval_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Discount Approval Api V1 Estimates  Estimate Id  Discount Approval Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/supplier-bills":{"get":{"summary":"Get Bills","description":"Supplier bills, those due soonest first.","operationId":"get_bills_api_v1_supplier_bills_get","parameters":[{"name":"open","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Open"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Bills Api V1 Supplier Bills Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Bill","description":"Enter a supplier's bill; a mismatch with goods received goes to review. FIN-012.","operationId":"post_bill_api_v1_supplier_bills_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Bill Api V1 Supplier Bills Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/supplier-bills/{bill_id}/payment":{"post":{"summary":"Post Bill Payment","description":"Record that a bill was paid, with its evidence. No money is sent. FIN-012.","operationId":"post_bill_payment_api_v1_supplier_bills__bill_id__payment_post","parameters":[{"name":"bill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bill Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillPaymentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Bill Payment Api V1 Supplier Bills  Bill Id  Payment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/split":{"post":{"summary":"Post Split","description":"Move chosen lines of a draft to a new draft for another payer. FIN-010.","operationId":"post_split_api_v1_invoices__invoice_id__split_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Split Api V1 Invoices  Invoice Id  Split Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounts/exports":{"get":{"summary":"Get Exports","description":"Past exports and the locked date.","operationId":"get_exports_api_v1_accounts_exports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Exports Api V1 Accounts Exports Get"}}}}}},"post":{"summary":"Post Export","description":"Export a period's journal as CSV. The same period gives the same identity. FIN-011.","operationId":"post_export_api_v1_accounts_exports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__money_routes__ExportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/accounts/lock":{"post":{"summary":"Post Lock","description":"Lock every day up to a date as reviewed. FIN-011.","operationId":"post_lock_api_v1_accounts_lock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LockBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Lock Api V1 Accounts Lock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/current/tax-profile":{"get":{"summary":"Get Tax Profile","description":"The current tax profile, or none when billing is not set up yet.","operationId":"get_tax_profile_api_v1_tenants_current_tax_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Tax Profile Api V1 Tenants Current Tax Profile Get"}}}}}},"put":{"summary":"Put Tax Profile","description":"Save a new version. Issued invoices keep the version they used. FIN-001.","operationId":"put_tax_profile_api_v1_tenants_current_tax_profile_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxProfileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Tax Profile Api V1 Tenants Current Tax Profile Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices":{"get":{"summary":"Get Invoices","description":"Invoices, newest first: open (drafts and unpaid), unpaid, or all. FIN-001.","operationId":"get_invoices_api_v1_invoices_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"open","title":"View"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Invoices Api V1 Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Invoice","description":"Draft an invoice from a job's approved lines only. QA-08.","operationId":"post_invoice_api_v1_invoices_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Invoice Api V1 Invoices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}":{"get":{"summary":"Get Invoice","description":"One invoice for screen and print.","operationId":"get_invoice_api_v1_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Invoice Api V1 Invoices  Invoice Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/issue":{"post":{"summary":"Post Issue Invoice","description":"Issue an invoice. Values freeze and the receivable posts. FIN-002.","operationId":"post_issue_invoice_api_v1_invoices__invoice_id__issue_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Issue Invoice Api V1 Invoices  Invoice Id  Issue Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/tenders":{"post":{"summary":"Post Tender","description":"Record cash, mobile money or counter card. FIN-005: never more than the amount due.","operationId":"post_tender_api_v1_invoices__invoice_id__tenders_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Tender Api V1 Invoices  Invoice Id  Tenders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cashier/today":{"get":{"summary":"Get Cashier Today","description":"Today's counter tenders by method. FIN-009 input to cash-up.","operationId":"get_cashier_today_api_v1_cashier_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Cashier Today Api V1 Cashier Today Get"}}}}}}},"/api/v1/payments/connections":{"get":{"summary":"Get Connections","description":"What is connected, and what each provider needs. FIN-003.","operationId":"get_connections_api_v1_payments_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Connections Api V1 Payments Connections Get"}}}}}}},"/api/v1/payments/connections/{provider}":{"put":{"summary":"Put Connection","description":"Connect or update a provider account. FIN-003.","operationId":"put_connection_api_v1_payments_connections__provider__put","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Connection Api V1 Payments Connections  Provider  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/connections/{provider}/check":{"post":{"summary":"Post Check","description":"Ask the provider whether the stored keys are accepted. FIN-003.","operationId":"post_check_api_v1_payments_connections__provider__check_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Check Api V1 Payments Connections  Provider  Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/connections/{provider}/disable":{"post":{"summary":"Post Disable","description":"Stop using a provider account. FIN-003.","operationId":"post_disable_api_v1_payments_connections__provider__disable_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Disable Api V1 Payments Connections  Provider  Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/options":{"get":{"summary":"Get Options","description":"The providers and networks a collector can use. FIN-015.","operationId":"get_options_api_v1_payments_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Options Api V1 Payments Options Get"}}}}}}},"/api/v1/payments/invoices":{"get":{"summary":"Get Collectable Invoices","description":"Issued invoices that still owe money, found by number, customer or plate. FIN-015.\n\nPurpose: a receptionist has no billing screens, but can find the bill a customer is\n    paying and ask their phone to pay it. Amounts owed are shown; nothing else is opened.","operationId":"get_collectable_invoices_api_v1_payments_invoices_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Collectable Invoices Api V1 Payments Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/payments":{"get":{"summary":"Get Invoice Payments","description":"Payment requests on an invoice, and the refunds against its payments. FIN-015.","operationId":"get_invoice_payments_api_v1_invoices__invoice_id__payments_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Invoice Payments Api V1 Invoices  Invoice Id  Payments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invoices/{invoice_id}/payment-requests":{"post":{"summary":"Post Payment Request","description":"Ask a customer's phone to approve a payment. FIN-015.\n\nPurpose: the cashier or receptionist starts the payment from the platform. The customer\n    approves on their own phone; nobody here sees a PIN.","operationId":"post_payment_request_api_v1_invoices__invoice_id__payment_requests_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Payment Request Api V1 Invoices  Invoice Id  Payment Requests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-intents/{intent_id}":{"get":{"summary":"Get Payment Intent","description":"One payment request, freshly checked with the provider. FIN-004.","operationId":"get_payment_intent_api_v1_payment_intents__intent_id__get","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Payment Intent Api V1 Payment Intents  Intent Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-intents/{intent_id}/code":{"post":{"summary":"Post Payment Code","description":"Send the code a customer read out. FIN-015.","operationId":"post_payment_code_api_v1_payment_intents__intent_id__code_post","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__payments_routes__CodeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Payment Code Api V1 Payment Intents  Intent Id  Code Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payment-intents/{intent_id}/cancellation":{"post":{"summary":"Post Payment Cancellation","description":"Stop waiting for a payment. FIN-015.","operationId":"post_payment_cancellation_api_v1_payment_intents__intent_id__cancellation_post","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Payment Cancellation Api V1 Payment Intents  Intent Id  Cancellation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/review":{"get":{"summary":"Get Review","description":"Payments that need a person's eye. FIN-004.","operationId":"get_review_api_v1_payments_review_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Review Api V1 Payments Review Get"}}}}}}},"/api/v1/refunds":{"post":{"summary":"Post Refund","description":"Ask to give money back. A second person must approve it. FIN-007.","operationId":"post_refund_api_v1_refunds_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Refund Api V1 Refunds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Refunds","description":"Refunds, newest first. FIN-007.","operationId":"get_refunds_api_v1_refunds_get","parameters":[{"name":"invoice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Refunds Api V1 Refunds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenders/{tender_id}/refundable":{"get":{"summary":"Get Refundable","description":"What is left of a payment to give back. FIN-007.","operationId":"get_refundable_api_v1_tenders__tender_id__refundable_get","parameters":[{"name":"tender_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tender Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Refundable Api V1 Tenders  Tender Id  Refundable Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/refunds/{refund_id}/decision":{"post":{"summary":"Post Refund Decision","description":"Approve or reject a refund. The person who asked cannot. FIN-007.","operationId":"post_refund_decision_api_v1_refunds__refund_id__decision_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundDecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Refund Decision Api V1 Refunds  Refund Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/refunds/{refund_id}/payout":{"post":{"summary":"Post Refund Payout","description":"Send an approved refund back to the customer. FIN-007.","operationId":"post_refund_payout_api_v1_refunds__refund_id__payout_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__payments_routes__PayoutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Refund Payout Api V1 Refunds  Refund Id  Payout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/pay":{"post":{"summary":"Post Action Pay","description":"Open a provider's payment page for the customer's link. FIN-003.\n\nPurpose: the amount is the invoice balance as the server sees it; nothing the customer's\n    browser sends can change it.","operationId":"post_action_pay_api_v1_actions_pay_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionPayBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Action Pay Api V1 Actions Pay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/status":{"post":{"summary":"Post Payment Status","description":"Where a payment stands, for the page a customer returns to. FIN-004.\n\nPurpose: coming back from a payment page proves nothing. This asks the provider itself.","operationId":"post_payment_status_api_v1_payments_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Payment Status Api V1 Payments Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/paystack/{connection_id}":{"post":{"summary":"Paystack Webhook","description":"Paystack's messages. Signed with the merchant's secret key. FIN-004.","operationId":"paystack_webhook_api_v1_webhooks_paystack__connection_id__post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Paystack Webhook Api V1 Webhooks Paystack  Connection Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/hubtel/{connection_id}/{secret}":{"post":{"summary":"Hubtel Webhook","description":"Hubtel's callbacks. They are not signed, so the address carries a secret. FIN-004.","operationId":"hubtel_webhook_api_v1_webhooks_hubtel__connection_id___secret__post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}},{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hubtel Webhook Api V1 Webhooks Hubtel  Connection Id   Secret  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/sweep":{"post":{"summary":"Post Sweep","description":"Check every open payment of this dealership with its provider now. FIN-004.","operationId":"post_sweep_api_v1_payments_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Sweep Api V1 Payments Sweep Post"}}}}}}},"/api/v1/leads":{"get":{"summary":"Get Leads","description":"Leads with owner, next action and due date, soonest first. CRM-001.","operationId":"get_leads_api_v1_leads_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"open","title":"View"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Leads Api V1 Leads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Lead","description":"Capture a lead. CRM-001: every lead has an owner and a next-action date.","operationId":"post_lead_api_v1_leads_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Lead Api V1 Leads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads/{lead_id}/transitions":{"post":{"summary":"Post Lead Transition","description":"Move a lead. CRM-003: a lost lead needs a reason; reopening keeps history.","operationId":"post_lead_transition_api_v1_leads__lead_id__transitions_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadTransition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Lead Transition Api V1 Leads  Lead Id  Transitions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units":{"get":{"summary":"Get Stock Units","description":"Units with status, location, age, price and publication, newest first.\n\nPurpose: SAL-001 and SAL-011. No acquisition cost in this read.","operationId":"get_stock_units_api_v1_stock_units_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Stock Units Api V1 Stock Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Stock Unit","description":"Add a unit for sale with its vehicle. SAL-001: powertrain from the first record.","operationId":"post_stock_unit_api_v1_stock_units_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__sales_routes__StockBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Stock Unit Api V1 Stock Units Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/publication":{"post":{"summary":"Post Publication","description":"Show or hide a unit on the showroom. SAL-004.","operationId":"post_publication_api_v1_stock_units__unit_id__publication_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Publication Api V1 Stock Units  Unit Id  Publication Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/holds":{"post":{"summary":"Post Hold","description":"Hold a unit for 15 minutes. SAL-006: two people cannot hold the same unit.","operationId":"post_hold_api_v1_stock_units__unit_id__holds_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__sales_routes__HoldBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Hold Api V1 Stock Units  Unit Id  Holds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/reservations":{"post":{"summary":"Post Reserve","description":"Confirm a reservation on a deposit taken at the counter.\n\nPurpose: SAL-006 and FIN-006. The deposit stays unapplied, not revenue. Taking\nmoney needs the cashier permission, so a salesperson holds and a cashier confirms.\nParams: unit_id, body, bound caller.\nReturns: the reservation claim.\nSide effects: converts the hold, records unapplied funds, audits.","operationId":"post_reserve_api_v1_stock_units__unit_id__reservations_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Reserve Api V1 Stock Units  Unit Id  Reservations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/inspections":{"post":{"summary":"Post Unit Inspection","description":"Record a pre-delivery inspection. SAL-007.","operationId":"post_unit_inspection_api_v1_stock_units__unit_id__inspections_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__sales_routes__InspectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Unit Inspection Api V1 Stock Units  Unit Id  Inspections Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}":{"get":{"summary":"Get Car","description":"Everything about one car in one place. SAL-011.\n\nPurpose: the per-car page. Cost, buying record and price history only for people who buy\n    and price cars.\nParams: unit_id, bound caller.\nReturns: the car, its state, papers, cost, agreement, photos and share link.\nSide effects: none.","operationId":"get_car_api_v1_stock_units__unit_id__get","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Car Api V1 Stock Units  Unit Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/acquisition":{"post":{"summary":"Post Acquisition","description":"Record how a used car was bought. SAL-012.","operationId":"post_acquisition_api_v1_stock_units__unit_id__acquisition_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcquisitionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Acquisition Api V1 Stock Units  Unit Id  Acquisition Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/acquisition/decision":{"post":{"summary":"Post Acquisition Decision","description":"A second person accepts or refuses a gap in the buying record. SAL-012.","operationId":"post_acquisition_decision_api_v1_stock_units__unit_id__acquisition_decision_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__used_car_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Acquisition Decision Api V1 Stock Units  Unit Id  Acquisition Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/costs":{"post":{"summary":"Post Cost","description":"Add a cost to a car, or a correction with a reason. SAL-013.","operationId":"post_cost_api_v1_stock_units__unit_id__costs_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Cost Api V1 Stock Units  Unit Id  Costs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/job-charges":{"post":{"summary":"Post Job Charge","description":"Charge a preparation job to a car. Once per job. SAL-013.","operationId":"post_job_charge_api_v1_stock_units__unit_id__job_charges_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobChargeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Job Charge Api V1 Stock Units  Unit Id  Job Charges Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/buying-inspection":{"post":{"summary":"Post Buying Inspection","description":"Record the buying inspection with what fixing each area may cost. SAL-013.","operationId":"post_buying_inspection_api_v1_stock_units__unit_id__buying_inspection_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyingInspectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Buying Inspection Api V1 Stock Units  Unit Id  Buying Inspection Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/used-pricing":{"get":{"summary":"Get Used Pricing","description":"The dealer's target margin on used cars.","operationId":"get_used_pricing_api_v1_settings_used_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Used Pricing Api V1 Settings Used Pricing Get"}}}}}},"put":{"summary":"Put Used Pricing","description":"Set the target margin. It only ever suggests a price.","operationId":"put_used_pricing_api_v1_settings_used_pricing_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Used Pricing Api V1 Settings Used Pricing Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/price":{"post":{"summary":"Post Price","description":"Set the asking price. Under cost needs a second person. SAL-003.","operationId":"post_price_api_v1_stock_units__unit_id__price_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__used_car_routes__PriceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Price Api V1 Stock Units  Unit Id  Price Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/price-changes/{change_id}/decision":{"post":{"summary":"Post Price Decision","description":"A second person decides a price under cost. SAL-003.","operationId":"post_price_decision_api_v1_price_changes__change_id__decision_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__used_car_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Price Decision Api V1 Price Changes  Change Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/sale-terms":{"get":{"summary":"Get Sale Terms","description":"The dealer's own terms of sale.","operationId":"get_sale_terms_api_v1_settings_sale_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Sale Terms Api V1 Settings Sale Terms Get"}}}}}},"put":{"summary":"Put Sale Terms","description":"Save the terms of sale. Agreements already written keep the words they were written with.","operationId":"put_sale_terms_api_v1_settings_sale_terms_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Sale Terms Api V1 Settings Sale Terms Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/agreements":{"post":{"summary":"Post Agreement","description":"Write a sale agreement, or amend the one in force. SAL-014.","operationId":"post_agreement_api_v1_stock_units__unit_id__agreements_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Agreement Api V1 Stock Units  Unit Id  Agreements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agreements/{agreement_id}":{"get":{"summary":"Get Agreement","description":"One agreement, ready to print with the dealer's name and terms. SAL-014.","operationId":"get_agreement_api_v1_agreements__agreement_id__get","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Agreement Api V1 Agreements  Agreement Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agreements/{agreement_id}/acknowledgement":{"post":{"summary":"Post Acknowledgement","description":"Record that the buyer accepted the agreement. SAL-014.","operationId":"post_acknowledgement_api_v1_agreements__agreement_id__acknowledgement_post","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgementBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Acknowledgement Api V1 Agreements  Agreement Id  Acknowledgement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/photos":{"post":{"summary":"Post Car Photo","description":"Add a photo of a car for sale as the raw request body. SAL-015.","operationId":"post_car_photo_api_v1_stock_units__unit_id__photos_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}},{"name":"caption","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}},{"name":"public_photo","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Public Photo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Car Photo Api V1 Stock Units  Unit Id  Photos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}":{"put":{"summary":"Put Photo Public","description":"Show or hide a photo of a car for sale on its own page.","operationId":"put_photo_public_api_v1_photos__photo_id__put","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoPublicBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Photo Public Api V1 Photos  Photo Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Photo","description":"Remove a photo. Who removed it stays on the audit trail.","operationId":"delete_photo_api_v1_photos__photo_id__delete","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Photo Api V1 Photos  Photo Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Photo","description":"The image itself, for staff who can see the record it belongs to.","operationId":"get_photo_api_v1_photos__photo_id__get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/signature":{"get":{"summary":"Get My Signature","description":"The signature saved on this account, or none. Never returns anyone else's.","operationId":"get_my_signature_api_v1_me_signature_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get My Signature Api V1 Me Signature Get"}}}}}},"put":{"summary":"Put My Signature","description":"Save a new signature on this account. SAL-014.\n\nPurpose: a new signature replaces the last one only after the owner's PIN, so a borrowed\n    session cannot put someone else's name on a document.","operationId":"put_my_signature_api_v1_me_signature_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatureBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put My Signature Api V1 Me Signature Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/signature/image":{"get":{"summary":"Get My Signature Image","description":"The picture of this account's saved signature.","operationId":"get_my_signature_image_api_v1_me_signature_image_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/agreements/{agreement_id}/sale":{"post":{"summary":"Post Sale","description":"Turn an accepted agreement into a sale with its invoice. SAL-016.","operationId":"post_sale_api_v1_agreements__agreement_id__sale_post","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Sale Api V1 Agreements  Agreement Id  Sale Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sales/{sale_id}":{"get":{"summary":"Get Sale","description":"One sale with its money, credits, plan and release. Late payments are noted on read.","operationId":"get_sale_api_v1_sales__sale_id__get","parameters":[{"name":"sale_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sale Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sale Api V1 Sales  Sale Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/sale":{"get":{"summary":"Get Car Sale","description":"The open sale of a car, if it has one.","operationId":"get_car_sale_api_v1_stock_units__unit_id__sale_get","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Car Sale Api V1 Stock Units  Unit Id  Sale Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sales/{sale_id}/trade-in":{"post":{"summary":"Post Trade In","description":"Use an accepted trade-in offer as credit on the sale. SAL-009.","operationId":"post_trade_in_api_v1_sales__sale_id__trade_in_post","parameters":[{"name":"sale_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sale Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradeInBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Trade In Api V1 Sales  Sale Id  Trade In Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sales/{sale_id}/plan":{"post":{"summary":"Post Plan","description":"Agree dated part payments for what the sale still owes. SAL-016.","operationId":"post_plan_api_v1_sales__sale_id__plan_post","parameters":[{"name":"sale_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sale Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Plan Api V1 Sales  Sale Id  Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plans/{plan_id}/cancellation":{"post":{"summary":"Post Plan Cancellation","description":"Stop a plan. What the buyer owes does not change.","operationId":"post_plan_cancellation_api_v1_plans__plan_id__cancellation_post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Plan Cancellation Api V1 Plans  Plan Id  Cancellation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sales/{sale_id}/release-request":{"post":{"summary":"Post Release Request","description":"Ask a manager to let the car go before it is paid for. SAL-016.","operationId":"post_release_request_api_v1_sales__sale_id__release_request_post","parameters":[{"name":"sale_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sale Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__deal_routes__ReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Release Request Api V1 Sales  Sale Id  Release Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sales/{sale_id}/release-decision":{"post":{"summary":"Post Release Decision","description":"Approve or refuse letting the car go unpaid. The person who asked cannot decide.","operationId":"post_release_decision_api_v1_sales__sale_id__release_decision_post","parameters":[{"name":"sale_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sale Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseDecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Release Decision Api V1 Sales  Sale Id  Release Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agreements/{agreement_id}/countersignature":{"post":{"summary":"Post Countersignature","description":"The dealership signs an agreement with the signer's saved signature. SAL-014.","operationId":"post_countersignature_api_v1_agreements__agreement_id__countersignature_post","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Countersignature Api V1 Agreements  Agreement Id  Countersignature Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agreements/{agreement_id}/signatures":{"get":{"summary":"Get Agreement Signatures","description":"Who has signed an agreement, and when.","operationId":"get_agreement_signatures_api_v1_agreements__agreement_id__signatures_get","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Agreement Signatures Api V1 Agreements  Agreement Id  Signatures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agreements/{agreement_id}/signature-images/{who}":{"get":{"summary":"Get Agreement Signature Image","description":"The picture of the buyer's or the dealership's signature on an agreement.","operationId":"get_agreement_signature_image_api_v1_agreements__agreement_id__signature_images__who__get","parameters":[{"name":"agreement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agreement Id"}},{"name":"who","in":"path","required":true,"schema":{"type":"string","title":"Who"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals":{"get":{"summary":"List Deals","description":"Deals, newest first, each with the one thing to do next.","operationId":"list_deals_api_v1_deals_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"open","title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Deals Api V1 Deals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Open Deal","description":"Start a deal for a car in stock or a car the dealer does not have yet. SAL-005.","operationId":"open_deal_api_v1_deals_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Deal Api V1 Deals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/free-cars":{"get":{"summary":"Free Cars","description":"Cars in stock that are neither sold nor on a live deal: the ones a new deal can use.","operationId":"free_cars_api_v1_deals_free_cars_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Free Cars Api V1 Deals Free Cars Get"}}}}}}},"/api/v1/deals/{deal_id}":{"get":{"summary":"Get Deal","description":"One deal: buyer, car, quotes, order, checklist and what to do next.","operationId":"get_deal_api_v1_deals__deal_id__get","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deal Api V1 Deals  Deal Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/quotes":{"post":{"summary":"Send Quote","description":"Send a new numbered quote and return the customer's link. SAL-005.","operationId":"send_quote_api_v1_deals__deal_id__quotes_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__desk_routes__QuoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Quote Api V1 Deals  Deal Id  Quotes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/quote-link":{"post":{"summary":"Quote Link","description":"A fresh link to the live quote, for when the first one was lost.","operationId":"quote_link_api_v1_deals__deal_id__quote_link_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Quote Link Api V1 Deals  Deal Id  Quote Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/quote-decision":{"post":{"summary":"Staff Decision","description":"Record the customer's answer given in person or by phone.","operationId":"staff_decision_api_v1_deals__deal_id__quote_decision_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__desk_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Staff Decision Api V1 Deals  Deal Id  Quote Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/lost":{"post":{"summary":"Lost","operationId":"lost_api_v1_deals__deal_id__lost_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LostBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Lost Api V1 Deals  Deal Id  Lost Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/order":{"post":{"summary":"Order","description":"Order the car a customer accepted. SAL-002.","operationId":"order_api_v1_deals__deal_id__order_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__desk_routes__OrderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Order Api V1 Deals  Deal Id  Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicle-orders/{order_id}/milestones/{code}":{"put":{"summary":"Milestone","description":"Move an estimate or record that a step happened. A new arrival estimate opens a task.","operationId":"milestone_api_v1_vehicle_orders__order_id__milestones__code__put","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Milestone Api V1 Vehicle Orders  Order Id  Milestones  Code  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/vehicle-orders/{order_id}/receive":{"post":{"summary":"Receive","description":"The car has arrived: into stock and onto the deal.","operationId":"receive_api_v1_vehicle_orders__order_id__receive_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Receive Api V1 Vehicle Orders  Order Id  Receive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/checks/{code}":{"post":{"summary":"Complete Check","description":"Confirm one delivery checklist item. SAL-007 and SAL-008.","operationId":"complete_check_api_v1_deals__deal_id__checks__code__post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__desk_routes__CheckBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Check Api V1 Deals  Deal Id  Checks  Code  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Undo Check","operationId":"undo_check_api_v1_deals__deal_id__checks__code__delete","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Undo Check Api V1 Deals  Deal Id  Checks  Code  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deals/{deal_id}/referrals":{"post":{"summary":"Open Referral","description":"Refer the buyer to a lender or insurer, with their say-so recorded. SAL-010.","operationId":"open_referral_api_v1_deals__deal_id__referrals_post","parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__desk_routes__ReferralBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open Referral Api V1 Deals  Deal Id  Referrals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance-referrals/{referral_id}/documents":{"put":{"summary":"Referral Documents","operationId":"referral_documents_api_v1_finance_referrals__referral_id__documents_put","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Referral Documents Api V1 Finance Referrals  Referral Id  Documents Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance-referrals/{referral_id}/submit":{"post":{"summary":"Referral Submit","operationId":"referral_submit_api_v1_finance_referrals__referral_id__submit_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Referral Submit Api V1 Finance Referrals  Referral Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance-referrals/{referral_id}/evidence":{"post":{"summary":"Referral Evidence","description":"The partner's letter or message, as a PDF or a photo. The raw body is the file.","operationId":"referral_evidence_api_v1_finance_referrals__referral_id__evidence_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}},{"name":"file_name","in":"query","required":false,"schema":{"type":"string","default":"","title":"File Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Referral Evidence Api V1 Finance Referrals  Referral Id  Evidence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Referral Evidence File","operationId":"referral_evidence_file_api_v1_finance_referrals__referral_id__evidence_get","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance-referrals/{referral_id}/answer":{"post":{"summary":"Referral Answer","description":"What the lender or insurer said. Approved needs their document and reference.","operationId":"referral_answer_api_v1_finance_referrals__referral_id__answer_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Referral Answer Api V1 Finance Referrals  Referral Id  Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/finance-referrals/{referral_id}/withdraw":{"post":{"summary":"Referral Withdraw","operationId":"referral_withdraw_api_v1_finance_referrals__referral_id__withdraw_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Referral Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Referral Withdraw Api V1 Finance Referrals  Referral Id  Withdraw Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/consignment":{"get":{"summary":"Consignment","operationId":"consignment_api_v1_stock_units__unit_id__consignment_get","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Consignment Api V1 Stock Units  Unit Id  Consignment Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-units/{unit_id}/consignment/payout":{"post":{"summary":"Pay Owner","description":"Record that the owner was paid what was agreed. A cashier or accountant does this.","operationId":"pay_owner_api_v1_stock_units__unit_id__consignment_payout_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__desk_routes__PayoutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pay Owner Api V1 Stock Units  Unit Id  Consignment Payout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/consignment/owed":{"get":{"summary":"Owners To Pay","operationId":"owners_to_pay_api_v1_consignment_owed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Owners To Pay Api V1 Consignment Owed Get"}}}}}}},"/api/v1/actions/quote":{"post":{"summary":"Customer Quote","description":"The live quote in the dealer's name. It is not a tax invoice and creates nothing owed.","operationId":"customer_quote_api_v1_actions_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Customer Quote Api V1 Actions Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/quote/decision":{"post":{"summary":"Customer Decision","description":"The customer accepts or declines from their own phone.","operationId":"customer_decision_api_v1_actions_quote_decision_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Customer Decision Api V1 Actions Quote Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/promise":{"put":{"summary":"Change Promise","description":"Set or move the time the car will be ready. A move shows the customer it was revised.","operationId":"change_promise_api_v1_jobs__job_id__promise_put","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromiseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Promise Api V1 Jobs  Job Id  Promise Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/messages":{"get":{"summary":"Job Messages","operationId":"job_messages_api_v1_jobs__job_id__messages_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Messages Api V1 Jobs  Job Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Answer","description":"Answer the customer. They read it on their progress page.","operationId":"answer_api_v1_jobs__job_id__messages_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Api V1 Jobs  Job Id  Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/service-requests":{"get":{"summary":"Service Requests","description":"Customer requests waiting for an answer, and accepted ones not yet done.","operationId":"service_requests_api_v1_service_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Service Requests Api V1 Service Requests Get"}}}}}}},"/api/v1/service-requests/{request_id}/decision":{"post":{"summary":"Decide","operationId":"decide_api_v1_service_requests__request_id__decision_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__customer_page_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide Api V1 Service Requests  Request Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/job":{"post":{"summary":"Job Page","description":"Where the car is, when it will be ready, and the questions and answers. Nothing internal.","operationId":"job_page_api_v1_actions_job_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Job Page Api V1 Actions Job Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/job/question":{"post":{"summary":"Job Question","operationId":"job_question_api_v1_actions_job_question_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQuestion"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Job Question Api V1 Actions Job Question Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/job/estimate-link":{"post":{"summary":"Job Estimate Link","description":"Open the estimate waiting for the customer. Deciding it still needs their phone digits.","operationId":"job_estimate_link_api_v1_actions_job_estimate_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Job Estimate Link Api V1 Actions Job Estimate Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/home/brand":{"post":{"summary":"Home Brand","description":"Only the dealer's name and colours, so the page can ask for the digits in their brand.","operationId":"home_brand_api_v1_actions_home_brand_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Home Brand Api V1 Actions Home Brand Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/home":{"post":{"summary":"Home","operationId":"home_api_v1_actions_home_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/home/requests":{"post":{"summary":"Home Request","description":"A request from the customer. It says requested until the dealer accepts it.","operationId":"home_request_api_v1_actions_home_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/home/requests/{request_id}/cancel":{"post":{"summary":"Home Cancel","operationId":"home_cancel_api_v1_actions_home_requests__request_id__cancel_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeToken"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/home/job-link":{"post":{"summary":"Home Job Link","description":"Open the progress page for one of the customer's own jobs.","operationId":"home_job_link_api_v1_actions_home_job_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeJob"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/customer-signin":{"get":{"summary":"Get Setting","description":"Whether customers can sign in by text here, what is missing, and their address.","operationId":"get_setting_api_v1_settings_customer_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Setting Api V1 Settings Customer Signin Get"}}}}}},"put":{"summary":"Put Setting","operationId":"put_setting_api_v1_settings_customer_signin_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Setting Api V1 Settings Customer Signin Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/signin/{slug}":{"get":{"summary":"Page","description":"The dealer's name and colours, and whether sign-in by text is offered.","operationId":"page_api_v1_public_signin__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Page Api V1 Public Signin  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/signin/{slug}/code":{"post":{"summary":"Send Code","operationId":"send_code_api_v1_public_signin__slug__code_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Code Api V1 Public Signin  Slug  Code Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/signin/{slug}/verify":{"post":{"summary":"Verify","description":"The code and a plate on the record open the customer's home for today.","operationId":"verify_api_v1_public_signin__slug__verify_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__signin_routes__VerifyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/premises/suggestions":{"get":{"summary":"Suggest","description":"What the records say about a car at the gate. The guard confirms; nothing is chosen.","operationId":"suggest_api_v1_premises_suggestions_get","parameters":[{"name":"plate","in":"query","required":true,"schema":{"type":"string","title":"Plate"}},{"name":"direction","in":"query","required":true,"schema":{"type":"string","title":"Direction"}},{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suggest Api V1 Premises Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/premises/movements":{"post":{"summary":"Log","operationId":"log_api_v1_premises_movements_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovementBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Log Api V1 Premises Movements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Listed","description":"Today's movements, with every open one from any day first.","operationId":"listed_api_v1_premises_movements_get","parameters":[{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listed Api V1 Premises Movements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/premises/movements/{movement_id}/settlement":{"post":{"summary":"Explain","description":"Say what an open movement was. The gate's own record is kept as it was.","operationId":"explain_api_v1_premises_movements__movement_id__settlement_post","parameters":[{"name":"movement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Movement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Explain Api V1 Premises Movements  Movement Id  Settlement Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/visitors/expected":{"post":{"summary":"Expect","description":"Book a visitor ahead. The code is what they give at reception.","operationId":"expect_api_v1_visitors_expected_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Expect Api V1 Visitors Expected Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/visitors/hosts":{"get":{"summary":"Hosts","description":"Staff a visitor can be booked to see.","operationId":"hosts_api_v1_visitors_hosts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Hosts Api V1 Visitors Hosts Get"}}}}}}},"/api/v1/visits/{visit_id}/badge":{"get":{"summary":"Badge","operationId":"badge_api_v1_visits__visit_id__badge_get","parameters":[{"name":"visit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Visit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Badge Api V1 Visits  Visit Id  Badge Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/premises/on-site":{"get":{"summary":"On Site","description":"Who should be on site now, for an emergency. Staff only; never on a public page.","operationId":"on_site_api_v1_premises_on_site_get","parameters":[{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response On Site Api V1 Premises On Site Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/contractor-induction":{"get":{"summary":"Get Induction","operationId":"get_induction_api_v1_settings_contractor_induction_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Induction Api V1 Settings Contractor Induction Get"}}}}}},"put":{"summary":"Put Induction","operationId":"put_induction_api_v1_settings_contractor_induction_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InductionSetting"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Induction Api V1 Settings Contractor Induction Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contractor-inductions/current":{"get":{"summary":"Current Induction","description":"Whether a returning contractor's induction still holds today.","operationId":"current_induction_api_v1_contractor_inductions_current_get","parameters":[{"name":"party_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Party Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Current Induction Api V1 Contractor Inductions Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents":{"get":{"summary":"Listed","operationId":"listed_api_v1_incidents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Listed Api V1 Incidents Get"}}}}}},"post":{"summary":"Report","description":"Any staff member reports what happened.","operationId":"report_api_v1_incidents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Report Api V1 Incidents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_id}":{"get":{"summary":"Read","operationId":"read_api_v1_incidents__incident_id__get","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Incident Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Api V1 Incidents  Incident Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_id}/notes":{"post":{"summary":"Note","operationId":"note_api_v1_incidents__incident_id__notes_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Incident Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Note Api V1 Incidents  Incident Id  Notes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_id}/evidence":{"post":{"summary":"Evidence","description":"A photo or PDF. The raw body is the file.","operationId":"evidence_api_v1_incidents__incident_id__evidence_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Incident Id"}},{"name":"file_name","in":"query","required":false,"schema":{"type":"string","default":"","title":"File Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Evidence Api V1 Incidents  Incident Id  Evidence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/evidence/{evidence_id}":{"get":{"summary":"Evidence File","operationId":"evidence_file_api_v1_incidents_evidence__evidence_id__get","parameters":[{"name":"evidence_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Evidence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/incidents/{incident_id}/resolution":{"post":{"summary":"Resolve","operationId":"resolve_api_v1_incidents__incident_id__resolution_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Incident Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Api V1 Incidents  Incident Id  Resolution Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/service-menu":{"get":{"summary":"Service Menu","operationId":"service_menu_api_v1_service_menu_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Service Menu Api V1 Service Menu Get"}}}}}},"post":{"summary":"Add Service","operationId":"add_service_api_v1_service_menu_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MenuBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Add Service Api V1 Service Menu Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/service-menu/{code}":{"put":{"summary":"Change Service","description":"A new version. Estimates already priced keep the version they used.","operationId":"change_service_api_v1_service_menu__code__put","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MenuBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Service Api V1 Service Menu  Code  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Retire Service","operationId":"retire_service_api_v1_service_menu__code__delete","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retire Service Api V1 Service Menu  Code  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/service-menu":{"get":{"summary":"Menu For Job","description":"The menu, each service marked as listed for this car or not.","operationId":"menu_for_job_api_v1_jobs__job_id__service_menu_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Menu For Job Api V1 Jobs  Job Id  Service Menu Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/repeat":{"post":{"summary":"Answer Repeat","operationId":"answer_repeat_api_v1_jobs__job_id__repeat_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepeatAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Answer Repeat Api V1 Jobs  Job Id  Repeat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/repeat/review":{"post":{"summary":"Review Repeat","operationId":"review_repeat_api_v1_jobs__job_id__repeat_review_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepeatReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Repeat Api V1 Jobs  Job Id  Repeat Review Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/sublets":{"post":{"summary":"Add Sublet","operationId":"add_sublet_api_v1_jobs__job_id__sublets_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__workshop_extra_routes__SubletBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Sublet Api V1 Jobs  Job Id  Sublets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sublets/{sublet_id}/moves":{"post":{"summary":"Move Sublet","operationId":"move_sublet_api_v1_sublets__sublet_id__moves_post","parameters":[{"name":"sublet_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sublet Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubletMove"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Move Sublet Api V1 Sublets  Sublet Id  Moves Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/settings/storage":{"get":{"summary":"Get Storage","operationId":"get_storage_api_v1_settings_storage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Storage Api V1 Settings Storage Get"}}}}}},"put":{"summary":"Put Storage","operationId":"put_storage_api_v1_settings_storage_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoragePolicy"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Storage Api V1 Settings Storage Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/ready-notice":{"post":{"summary":"Ready Notice","description":"The customer was told the car is ready. Storage, if agreed, counts from here.","operationId":"ready_notice_api_v1_jobs__job_id__ready_notice_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ready Notice Api V1 Jobs  Job Id  Ready Notice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/storage/charge":{"post":{"summary":"Charge","operationId":"charge_api_v1_jobs__job_id__storage_charge_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Charge Api V1 Jobs  Job Id  Storage Charge Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/storage/waiver-request":{"post":{"summary":"Ask Waiver","operationId":"ask_waiver_api_v1_jobs__job_id__storage_waiver_request_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiverBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ask Waiver Api V1 Jobs  Job Id  Storage Waiver Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/storage/waiver":{"post":{"summary":"Waive","operationId":"waive_api_v1_jobs__job_id__storage_waiver_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Waive Api V1 Jobs  Job Id  Storage Waiver Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/password-resets/lookup":{"post":{"summary":"Reset Lookup","description":"Whose password the link sets, so the page can say so before they type a new one.","operationId":"reset_lookup_api_v1_password_resets_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetLookup"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reset Lookup Api V1 Password Resets Lookup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/password-resets":{"post":{"summary":"Reset Password","description":"Set the new password once. Every session the person had open ends.","operationId":"reset_password_api_v1_password_resets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reset Password Api V1 Password Resets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/password":{"post":{"summary":"Post My Password","description":"Replace the password the person was given with one only they know.\n\nEvery other place they were signed in is signed out; this one stays open. Support sessions\ncannot change anyone's password.","operationId":"post_my_password_api_v1_me_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post My Password Api V1 Me Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/support-sessions":{"get":{"summary":"Dealer Support Sessions","description":"Every time Meludu support opened this dealer's app, why, and for how long.","operationId":"dealer_support_sessions_api_v1_support_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Dealer Support Sessions Api V1 Support Sessions Get"}}}}}}},"/api/v1/support-sessions/{support_id}/end":{"post":{"summary":"Dealer End Support","description":"The dealer ends a support session. It stops on the operator's next request.","operationId":"dealer_end_support_api_v1_support_sessions__support_id__end_post","parameters":[{"name":"support_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Support Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dealer End Support Api V1 Support Sessions  Support Id  End Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations":{"get":{"summary":"Get Valuations","description":"Valuations, newest first, with what is waiting on the dealership.","operationId":"get_valuations_api_v1_valuations_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Valuations Api V1 Valuations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Valuation","description":"Open a valuation for a customer who walked in.","operationId":"post_valuation_api_v1_valuations_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewValuation"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Valuation Api V1 Valuations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}":{"get":{"summary":"Get Valuation","description":"Everything the dealership holds about one valuation.","operationId":"get_valuation_api_v1_valuations__valuation_id__get","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Valuation Api V1 Valuations  Valuation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Valuation","description":"Write down what was found and what is offered.","operationId":"put_valuation_api_v1_valuations__valuation_id__put","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Details"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Valuation Api V1 Valuations  Valuation Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/assignment":{"post":{"summary":"Post Assignment","description":"Put a valuation with one member of staff.","operationId":"post_assignment_api_v1_valuations__valuation_id__assignment_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__valuation_routes__AssignBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Assignment Api V1 Valuations  Valuation Id  Assignment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/documents":{"post":{"summary":"Post Document","description":"Import a diagnostic reading or inspection sheet as a PDF.","operationId":"post_document_api_v1_valuations__valuation_id__documents_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}},{"name":"title","in":"query","required":true,"schema":{"type":"string","maxLength":120,"title":"Title"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"diagnostic","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Document Api V1 Valuations  Valuation Id  Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/documents/{document_id}":{"get":{"summary":"Get Document","description":"An imported document, as it arrived.","operationId":"get_document_api_v1_valuations__valuation_id__documents__document_id__get","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Document","description":"Take an imported document off a valuation that is still open.","operationId":"delete_document_api_v1_valuations__valuation_id__documents__document_id__delete","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Document Api V1 Valuations  Valuation Id  Documents  Document Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/photos":{"post":{"summary":"Post Photo","description":"Add a photo of the car.","operationId":"post_photo_api_v1_valuations__valuation_id__photos_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}},{"name":"caption","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Caption"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Photo Api V1 Valuations  Valuation Id  Photos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/photos/{photo_id}":{"get":{"summary":"Get Photo","description":"One photo of the car.","operationId":"get_photo_api_v1_valuations__valuation_id__photos__photo_id__get","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/report":{"post":{"summary":"Post Report","description":"Sign the report with the signer's saved signature and send it to the customer.","operationId":"post_report_api_v1_valuations__valuation_id__report_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Report Api V1 Valuations  Valuation Id  Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Report","description":"The current signed report as a PDF.","operationId":"get_report_api_v1_valuations__valuation_id__report_get","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/link":{"post":{"summary":"Post Link","description":"Make the customer's link. A new link stops the last one.","operationId":"post_link_api_v1_valuations__valuation_id__link_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Link Api V1 Valuations  Valuation Id  Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/decision":{"post":{"summary":"Post Decision","description":"Record what the customer said at the counter.","operationId":"post_decision_api_v1_valuations__valuation_id__decision_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Decision Api V1 Valuations  Valuation Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/withdrawal":{"post":{"summary":"Post Withdrawal","description":"Close a valuation the dealership will not go ahead with.","operationId":"post_withdrawal_api_v1_valuations__valuation_id__withdrawal_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__valuation_routes__ReasonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Withdrawal Api V1 Valuations  Valuation Id  Withdrawal Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/valuations/{valuation_id}/stock":{"post":{"summary":"Post Stock","description":"Make the accepted car a stock unit so it can be bought in.","operationId":"post_stock_api_v1_valuations__valuation_id__stock_post","parameters":[{"name":"valuation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Valuation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__valuation_routes__StockBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Stock Api V1 Valuations  Valuation Id  Stock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/showroom/valuation-page":{"get":{"summary":"Get Valuation Page","description":"What the valuation request page needs: the dealer's name and colours.","operationId":"get_valuation_page_api_v1_showroom_valuation_page_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Valuation Page Api V1 Showroom Valuation Page Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/showroom/valuations":{"post":{"summary":"Post Public Valuation","description":"A customer sends their car for a valuation.\n\nPurpose: SAL-009. The dealership calls back. The reply carries the customer's own link, where\n    they add photos and later read and answer the offer. A request with the hidden field\n    filled in is dropped without a hint.","operationId":"post_public_valuation_api_v1_showroom_valuations_post","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Public Valuation Api V1 Showroom Valuations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/check-in":{"post":{"summary":"Post Check In","description":"Write down mileage, fuel level and belongings. WRK-003.\n\nA device that wrote this down offline sends an operation id and the time it was captured.\nThe same operation twice returns the first result, and details someone else wrote down\nafter the capture time are not overwritten.","operationId":"post_check_in_api_v1_jobs__job_id__check_in_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Check In Api V1 Jobs  Job Id  Check In Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/custody":{"post":{"summary":"Post Custody","description":"Keys, who will collect, and the customer's confirmation, or why there was none. WRK-003.\n\nEach save adds a row; the first record stays as it was written.","operationId":"post_custody_api_v1_jobs__job_id__custody_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__floor_routes__CustodyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Custody Api V1 Jobs  Job Id  Custody Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/photos":{"post":{"summary":"Post Job Photo","description":"Add a photo of the car at check-in as the raw request body. WRK-003.\n\nJob photos are never public. They belong to the dealer and the customer's dispute file.","operationId":"post_job_photo_api_v1_jobs__job_id__photos_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"caption","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Job Photo Api V1 Jobs  Job Id  Photos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/test-drives":{"get":{"summary":"Get Test Drives","description":"Test drives, and a task opened for any car that is late back. CRM-005.","operationId":"get_test_drives_api_v1_test_drives_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"open","title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Test Drives Api V1 Test Drives Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Test Drive","description":"Book a car for a test drive. CRM-005.","operationId":"post_test_drive_api_v1_test_drives_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Test Drive Api V1 Test Drives Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/test-drives/{drive_id}/out":{"post":{"summary":"Post Drive Out","description":"The car leaves with the driver. CRM-005.","operationId":"post_drive_out_api_v1_test_drives__drive_id__out_post","parameters":[{"name":"drive_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Drive Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriveReading"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Drive Out Api V1 Test Drives  Drive Id  Out Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/test-drives/{drive_id}/back":{"post":{"summary":"Post Drive Back","description":"The car is back. CRM-005.","operationId":"post_drive_back_api_v1_test_drives__drive_id__back_post","parameters":[{"name":"drive_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Drive Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriveReading"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Drive Back Api V1 Test Drives  Drive Id  Back Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/test-drives/{drive_id}/cancellation":{"post":{"summary":"Post Drive Cancel","description":"Cancel a drive that has not gone out. CRM-005.","operationId":"post_drive_cancel_api_v1_test_drives__drive_id__cancellation_post","parameters":[{"name":"drive_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Drive Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Drive Cancel Api V1 Test Drives  Drive Id  Cancellation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts":{"get":{"summary":"Get Counts","description":"Counts, without any figures. PRT-007.","operationId":"get_counts_api_v1_stock_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Counts Api V1 Stock Counts Get"}}}}}},"post":{"summary":"Post Count","description":"Open a count. PRT-007.","operationId":"post_count_api_v1_stock_counts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Count Api V1 Stock Counts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts/{count_id}/sheet":{"get":{"summary":"Get Sheet","description":"The counting sheet. It never carries what the records expect. PRT-007.","operationId":"get_sheet_api_v1_stock_counts__count_id__sheet_get","parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Count Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sheet Api V1 Stock Counts  Count Id  Sheet Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts/{count_id}/lines/{part_id}":{"put":{"summary":"Put Line","description":"Save what was counted for one part. PRT-007.","operationId":"put_line_api_v1_stock_counts__count_id__lines__part_id__put","parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Count Id"}},{"name":"part_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Part Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountLine"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Line Api V1 Stock Counts  Count Id  Lines  Part Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts/{count_id}/submission":{"post":{"summary":"Post Submission","description":"Hand the count in. The counter is told how many parts differ, never by how much. PRT-007.","operationId":"post_submission_api_v1_stock_counts__count_id__submission_post","parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Count Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Submission Api V1 Stock Counts  Count Id  Submission Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts/{count_id}/variances":{"get":{"summary":"Get Variances","description":"What the count found against the records. Only for people who can decide it. PRT-007.","operationId":"get_variances_api_v1_stock_counts__count_id__variances_get","parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Count Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Variances Api V1 Stock Counts  Count Id  Variances Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts/{count_id}/decision":{"post":{"summary":"Post Count Decision","description":"Accept or refuse the differences with the approver's PIN. PRT-007.","operationId":"post_count_decision_api_v1_stock_counts__count_id__decision_post","parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Count Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__used_car_routes__DecisionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Count Decision Api V1 Stock Counts  Count Id  Decision Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stock-counts/{count_id}/recount":{"post":{"summary":"Post Recount","description":"Send chosen parts back to be counted again by someone else. PRT-007.","operationId":"post_recount_api_v1_stock_counts__count_id__recount_post","parameters":[{"name":"count_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Count Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecountBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Recount Api V1 Stock Counts  Count Id  Recount Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/observability/config":{"get":{"summary":"Get Config","description":"The public keys for Sentry and PostHog, or nothing when they are not set.\n\nPurpose: the keys come from the server's settings, so they change without a new build. A\n    Sentry DSN and a PostHog project key are made to be public; they can send reports in and\n    read nothing out.\nParams: none.\nReturns: the keys, the release and the environment.\nSide effects: none.","operationId":"get_config_api_v1_observability_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/observability/events":{"post":{"summary":"Post Events","description":"Keep staff steps in staff_event. Customer pages never call this.\n\nPurpose: OPS-004. Page views, sheet opens and drafts land here so Metabase can answer the\n    questions PostHog would have, without a second product.\nParams: body of allowlisted event names; bound caller.\nReturns: how many rows were kept.\nSide effects: inserts staff_event rows in this transaction.","operationId":"post_events_api_v1_observability_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserEventsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Events Api V1 Observability Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/showroom/cars/{unit_id}":{"get":{"summary":"Get Public Car","description":"What anyone with a car's link sees. SAL-015. No cost, no seller, no papers.","operationId":"get_public_car_api_v1_showroom_cars__unit_id__get","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Car Api V1 Showroom Cars  Unit Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/showroom/photos/{photo_id}":{"get":{"summary":"Get Public Photo","description":"A public photo of a car for sale, with headers that keep it inert.","operationId":"get_public_photo_api_v1_showroom_photos__photo_id__get","parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/showroom/cars/{unit_id}/enquiries":{"post":{"summary":"Post Car Enquiry","description":"A visitor asks about a car from its own page. It becomes a lead. SAL-015.\n\nPurpose: the dealer's salespeople call back. One phone asking about one car twice in a day\n    is one lead. A request with the hidden field filled in is dropped without a hint.\nParams: unit_id, tenant_id, body, request.\nReturns: a receipt with nothing stored in it.\nSide effects: inserts a party, a phone and a lead.","operationId":"post_car_enquiry_api_v1_showroom_cars__unit_id__enquiries_post","parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarEnquiryBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Car Enquiry Api V1 Showroom Cars  Unit Id  Enquiries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/action-links":{"post":{"summary":"Post Action Link","description":"Create a single-purpose, expiring link for a customer.\n\nPurpose: CUS-003 and FIN-003. The token appears once, in the returned URL fragment.\nParams: body, bound caller.\nReturns: the customer URL.\nSide effects: stores a hashed token and audits.","operationId":"post_action_link_api_v1_action_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Action Link Api V1 Action Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/view":{"post":{"summary":"View Action","description":"Show one customer action with the dealer's brand.\n\nPurpose: CUS-003. The link reveals only its one subject, never account history.\nParams: body with the token, transaction.\nReturns: purpose, branding, expiry and the subject.\nSide effects: binds the tenant named in the token.","operationId":"view_action_api_v1_actions_view_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__portal_routes__TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response View Action Api V1 Actions View Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/decision":{"post":{"summary":"Decide Action","description":"The customer's own decision on an estimate.\n\nPurpose: WRK-005 and CUS-003. A step-up check guards the decision and a failed\ncheck is counted even though the request is refused.\nParams: body, request, transaction.\nReturns: the resulting estimate state.\nSide effects: inserts line decisions, consumes the link, audits.","operationId":"decide_action_api_v1_actions_decision_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDecision"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/agreement":{"post":{"summary":"Accept Agreement","description":"The buyer accepts a sale agreement from their own phone. SAL-014.\n\nPurpose: the phone check guards the acceptance, and a failed check is counted even though\n    the request is refused. The buyer signs with a finger and the picture is kept.\nParams: body, request, transaction.\nReturns: the agreement's new state.\nSide effects: records the acceptance and the signing, consumes the link, audits.","operationId":"accept_agreement_api_v1_actions_agreement_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreementAcceptance"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/valuation":{"post":{"summary":"Answer Valuation","description":"The customer accepts or declines a valuation offer from their own phone. SAL-009.\n\nPurpose: the phone check guards the answer, and a failed check is counted even though the\n    request is refused. The link stays open so the customer can read the outcome later.","operationId":"answer_valuation_api_v1_actions_valuation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/valuation/report":{"post":{"summary":"Valuation Report","description":"The signed report, for the customer whose link this is.","operationId":"valuation_report_api_v1_actions_valuation_report_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__portal_routes__TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/actions/valuation/photos":{"post":{"summary":"Valuation Photo","description":"A customer adds a photo of their car. The token is in a header because the body is the\npicture.","operationId":"valuation_photo_api_v1_actions_valuation_photos_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Valuation Photo Api V1 Actions Valuation Photos Post"}}}}}}},"/api/v1/work/summary":{"get":{"summary":"Get Summary","description":"What needs this person now, by their permissions.\n\nPurpose: INS-001 and the /work screen. Only counts the caller may open are\nreturned, and each links to the screen that lists those records.\nParams: bound caller.\nReturns: items with counts and links, and the time they were read.\nSide effects: none.","operationId":"get_summary_api_v1_work_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Summary Api V1 Work Summary Get"}}}}}}},"/api/v1/tasks":{"get":{"summary":"Get Tasks","description":"Open tasks owned by the caller or waiting in a queue they work. FND-005.","operationId":"get_tasks_api_v1_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Tasks Api V1 Tasks Get"}}}}}}},"/api/v1/tasks/{task_id}/completion":{"post":{"summary":"Complete Task","description":"Mark a task done.","operationId":"complete_task_api_v1_tasks__task_id__completion_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Task Api V1 Tasks  Task Id  Completion Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/approval-pin":{"post":{"summary":"Post Pin","description":"Set the PIN that confirms approval decisions and signatures. Stored as a hash only.\n\nPurpose: the PIN is what makes a signature its owner's, so setting or changing it needs the\n    account's password. A borrowed session cannot replace it.","operationId":"post_pin_api_v1_me_approval_pin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Pin Api V1 Me Approval Pin Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/summary":{"get":{"summary":"Get Report","description":"Month-to-date figures with their formulas. INS-002.\n\nRevenue is issued invoice net value, never inferred from payments. Cash is\ncounter tenders recorded. Receivables are issued gross less tenders and credits.","operationId":"get_report_api_v1_reports_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Report Api V1 Reports Summary Get"}}}}}}},"/api/v1/reports/charts":{"get":{"summary":"Get Charts","description":"A short-lived chart URL locked to this dealer. INS-001 / OPS-004.\n\nPurpose: Metabase sits on its own host. The token names this tenant so another dealer\n    cannot be selected from the iframe.\nParams: bound caller with reports.\nReturns: the charts origin and an embed URL, or null when charts are not connected.\nSide effects: none.","operationId":"get_charts_api_v1_reports_charts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Charts Api V1 Reports Charts Get"}}}}}}},"/api/v1/insights/exceptions":{"get":{"summary":"Get Exceptions","description":"Patterns in the records worth a look, with every record each one counted.","operationId":"get_exceptions_api_v1_insights_exceptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Exceptions Api V1 Insights Exceptions Get"}}}}}}},"/api/v1/insights/exceptions/reviews":{"post":{"summary":"Post Exception Review","description":"Say what a pattern turned out to be. It stays quiet until its records change.","operationId":"post_exception_review_api_v1_insights_exceptions_reviews_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Exception Review Api V1 Insights Exceptions Reviews Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/branch/status":{"get":{"summary":"Get Status","operationId":"get_status_api_v1_branch_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Status Api V1 Branch Status Get"}}}}}}},"/api/v1/branch/codes":{"post":{"summary":"Post Code","description":"A one-time code for one location. It is shown once and lasts 15 minutes.","operationId":"post_code_api_v1_branch_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meludu__http__branch_routes__CodeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Code Api V1 Branch Codes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/branch/devices/{device_id}/revocation":{"post":{"summary":"Post Revoke","operationId":"post_revoke_api_v1_branch_devices__device_id__revocation_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Revoke Api V1 Branch Devices  Device Id  Revocation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/branch/package":{"post":{"summary":"Post Package","description":"The branch program, for a signed-in owner only. It is not on any public package index.","operationId":"post_package_api_v1_branch_package_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/branch/enroll":{"post":{"summary":"Post Enroll","description":"A branch computer spends its code and proves it holds its key. Returns its first lease.","operationId":"post_enroll_api_v1_branch_enroll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Enroll Api V1 Branch Enroll Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/branch/lease":{"post":{"summary":"Post Lease","description":"A branch computer renews its lease. The signed request was checked before it got here.","operationId":"post_lease_api_v1_branch_lease_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Lease Api V1 Branch Lease Post"}}}}}}},"/health":{"get":{"summary":"Health","description":"Report process liveness without tenant data.\n\nReturns: a static status object.\nSide effects: none.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/{full_path}":{"get":{"summary":"Staff Shell","description":"Serve the staff and customer shell.\n\nPurpose: one local stack serves the screens.\nParams: full_path. Unknown screen paths return the shell.\nReturns: the built index document.\nSide effects: raises NotFoundError for the bare /api path; deeper\nAPI paths never reach here.","operationId":"staff_shell__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"},"billing_mode":{"type":"string","title":"Billing Mode","default":"per_invoice"}},"type":"object","required":["party_id"],"title":"AccountBody"},"AcknowledgementBody":{"properties":{"by_name":{"type":"string","title":"By Name"},"how":{"type":"string","title":"How"}},"type":"object","required":["by_name","how"],"title":"AcknowledgementBody","description":"The buyer accepted the agreement."},"AcquisitionBody":{"properties":{"source":{"type":"string","title":"Source"},"seller_party_id":{"type":"string","format":"uuid","title":"Seller Party Id"},"identity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Type"},"identity_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Reference"},"papers_seen":{"items":{"type":"string"},"type":"array","title":"Papers Seen","default":[]},"price_minor":{"type":"integer","minimum":0.0,"title":"Price Minor"},"paid_how":{"type":"string","title":"Paid How"},"paid_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Reference"},"mileage_km":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage Km"},"exception_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exception Reason"}},"type":"object","required":["source","seller_party_id","price_minor","paid_how"],"title":"AcquisitionBody","description":"How a used car came in."},"ActionPayBody":{"properties":{"token":{"type":"string","title":"Token"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["token"],"title":"ActionPayBody","description":"A customer opening the payment page from their link."},"ActiveBody":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"ActiveBody"},"AdjustmentBody":{"properties":{"amount_minor":{"type":"integer","title":"Amount Minor"},"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["amount_minor","reason"],"title":"AdjustmentBody"},"AgreementAcceptance":{"properties":{"token":{"type":"string","title":"Token"},"verification":{"type":"string","title":"Verification"},"name":{"type":"string","title":"Name"},"signature":{"type":"string","title":"Signature"}},"type":"object","required":["token","verification","name","signature"],"title":"AgreementAcceptance","description":"A buyer's acceptance of an agreement, with their name and drawn signature."},"AgreementBody":{"properties":{"buyer_party_id":{"type":"string","format":"uuid","title":"Buyer Party Id"},"price_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Price Minor"},"special_terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Special Terms"},"amends_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Amends Id"}},"type":"object","required":["buyer_party_id","price_minor"],"title":"AgreementBody","description":"A sale agreement for a car."},"AnswerBody":{"properties":{"decision":{"type":"string","title":"Decision"},"reference":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reference"},"approved_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Approved Minor"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["decision"],"title":"AnswerBody"},"ApprovalBody":{"properties":{"approval_type":{"type":"string","title":"Approval Type"},"subject_type":{"type":"string","title":"Subject Type"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"subject_version":{"type":"integer","title":"Subject Version"},"amount_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Minor"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"policy_version":{"type":"integer","title":"Policy Version"}},"type":"object","required":["approval_type","subject_type","subject_id","subject_version","policy_version"],"title":"ApprovalBody","description":"An approval request bound to a version and amount."},"ApproveBody":{"properties":{"evidence_reference":{"type":"string","maxLength":120,"title":"Evidence Reference"},"evidence_expires_on":{"type":"string","format":"date","title":"Evidence Expires On"}},"type":"object","required":["evidence_reference","evidence_expires_on"],"title":"ApproveBody"},"ArrivalBody":{"properties":{"code":{"type":"string","title":"Code"},"induction":{"anyOf":[{"$ref":"#/components/schemas/Induction"},{"type":"null"}]}},"type":"object","required":["code"],"title":"ArrivalBody","description":"A check-in code read from a guest who booked ahead."},"AssessorBody":{"properties":{"assessor_name":{"type":"string","maxLength":120,"title":"Assessor Name"},"assessor_at":{"type":"string","format":"date-time","title":"Assessor At"}},"type":"object","required":["assessor_name","assessor_at"],"title":"AssessorBody"},"AssetBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"name":{"type":"string","maxLength":120,"title":"Name"},"kind":{"type":"string","title":"Kind"},"serial":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Serial"},"bay_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Bay Id"},"calibration_required":{"type":"boolean","title":"Calibration Required","default":false},"calibration_due_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Calibration Due On"}},"type":"object","required":["name","kind"],"title":"AssetBody"},"AssetEventBody":{"properties":{"kind":{"type":"string","title":"Kind"},"occurred_on":{"type":"string","format":"date","title":"Occurred On"},"next_due_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Due On"},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes"}},"type":"object","required":["kind","occurred_on"],"title":"AssetEventBody"},"AuthorisationBody":{"properties":{"approved_minor":{"type":"integer","minimum":0.0,"title":"Approved Minor"},"reference":{"type":"string","maxLength":80,"title":"Reference"},"authorised_by_name":{"type":"string","maxLength":120,"title":"Authorised By Name"},"excess_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Excess Minor"}},"type":"object","required":["approved_minor","reference","authorised_by_name"],"title":"AuthorisationBody"},"AuthorityBody":{"properties":{"authority":{"type":"string","title":"Authority"},"authorised_by_name":{"type":"string","maxLength":120,"title":"Authorised By Name"}},"type":"object","required":["authority","authorised_by_name"],"title":"AuthorityBody"},"AvailableBody":{"properties":{"available":{"type":"boolean","title":"Available"}},"type":"object","required":["available"],"title":"AvailableBody"},"BankChangeBody":{"properties":{"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"bank_account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Name"},"bank_account_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Account Number"},"momo_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Momo Number"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"BankChangeBody","description":"New payment details, waiting for a second person."},"BayBody":{"properties":{"name":{"type":"string","title":"Name"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["name"],"title":"BayBody","description":"A workshop bay."},"BillBody":{"properties":{"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"bill_number":{"type":"string","title":"Bill Number","default":""},"bill_date":{"type":"string","format":"date","title":"Bill Date"},"net_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Net Minor"},"tax_minor":{"type":"integer","minimum":0.0,"title":"Tax Minor","default":0}},"type":"object","required":["supplier_id","bill_date","net_minor"],"title":"BillBody","description":"A supplier's bill."},"BillPaymentBody":{"properties":{"paid_on":{"type":"string","format":"date","title":"Paid On"},"paid_how":{"type":"string","title":"Paid How"},"reference":{"type":"string","title":"Reference","default":""}},"type":"object","required":["paid_on","paid_how"],"title":"BillPaymentBody","description":"Evidence that a bill was paid."},"BrandBody":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"BrandBody","description":"A brand the dealer sells or services."},"BrandingBody":{"properties":{"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"logo_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Logo Id"},"icon_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Icon Id"},"public_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Slug"}},"type":"object","required":["name"],"title":"BrandingBody","description":"Name customers see, one colour, one logo and one icon."},"BrowserEvent":{"properties":{"event":{"type":"string","maxLength":80,"minLength":1,"title":"Event"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"}},"type":"object","required":["event"],"title":"BrowserEvent","description":"One staff step from the browser. The name is allowlisted; properties are scrubbed again."},"BrowserEventsBody":{"properties":{"events":{"items":{"$ref":"#/components/schemas/BrowserEvent"},"type":"array","maxItems":20,"minItems":1,"title":"Events"}},"type":"object","required":["events"],"title":"BrowserEventsBody","description":"A short batch of steps. Keepalive posts send one or a few at a time."},"BuyingInspectionBody":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InspectionItemBody"},"type":"array","title":"Items"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["items"],"title":"BuyingInspectionBody","description":"The buying inspection of a car."},"CampaignBody":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"channel":{"type":"string","title":"Channel"},"segment":{"additionalProperties":true,"type":"object","title":"Segment"},"message":{"type":"string","maxLength":1000,"title":"Message"},"cost_per_message_minor":{"type":"integer","minimum":0.0,"title":"Cost Per Message Minor"}},"type":"object","required":["name","channel","message","cost_per_message_minor"],"title":"CampaignBody"},"CancelBookingBody":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CancelBookingBody","description":"Why a booking is cancelled."},"CarEnquiryBody":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"},"phone":{"type":"string","maxLength":40,"title":"Phone"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"hp_note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Hp Note"}},"type":"object","required":["name","phone"],"title":"CarEnquiryBody","description":"A question from the car's own page."},"CaseBody":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"party_id":{"type":"string","format":"uuid","title":"Party Id"},"insurer_party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Insurer Party Id"},"insurer_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Insurer Name"},"policy_number":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Policy Number"},"insurer_claim_number":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Insurer Claim Number"},"incident_on":{"type":"string","format":"date","title":"Incident On"},"incident_description":{"type":"string","maxLength":2000,"title":"Incident Description"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["vehicle_id","party_id","incident_on","incident_description"],"title":"CaseBody"},"CentreBody":{"properties":{"code":{"type":"string","maxLength":20,"title":"Code"},"name":{"type":"string","maxLength":120,"title":"Name"},"budget_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Budget Minor"},"budget_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Budget From"},"budget_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Budget To"}},"type":"object","required":["code","name"],"title":"CentreBody"},"CertificationBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"},"requirement_id":{"type":"string","format":"uuid","title":"Requirement Id"},"issued_on":{"type":"string","format":"date","title":"Issued On"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"},"evidence_reference":{"type":"string","maxLength":120,"title":"Evidence Reference"}},"type":"object","required":["staff_id","requirement_id","issued_on","evidence_reference"],"title":"CertificationBody"},"CheckInBody":{"properties":{"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"belongings":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Belongings"}},"type":"object","title":"CheckInBody","description":"What the car came in with."},"ChecklistBody":{"properties":{"provider":{"type":"string","maxLength":120,"title":"Provider"},"items":{"items":{"$ref":"#/components/schemas/ChecklistItem"},"type":"array","title":"Items"}},"type":"object","required":["provider","items"],"title":"ChecklistBody"},"ChecklistItem":{"properties":{"code":{"type":"string","maxLength":40,"title":"Code"},"label":{"type":"string","maxLength":120,"title":"Label"},"mandatory":{"type":"boolean","title":"Mandatory","default":true}},"type":"object","required":["code","label"],"title":"ChecklistItem"},"ClaimBody":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"coverage_id":{"type":"string","format":"uuid","title":"Coverage Id"},"line_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Line Ids"},"fault":{"type":"string","maxLength":1000,"title":"Fault"},"deadline_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Deadline On"}},"type":"object","required":["job_id","coverage_id","line_ids","fault"],"title":"ClaimBody"},"ClockInBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"latitude":{"anyOf":[{"type":"number","maximum":90.0,"minimum":-90.0},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number","maximum":180.0,"minimum":-180.0},{"type":"null"}],"title":"Longitude"}},"type":"object","title":"ClockInBody"},"CloseDrawerBody":{"properties":{"counted_minor":{"type":"integer","minimum":0.0,"title":"Counted Minor"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"handed_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handed To"},"deposit_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deposit Reference"}},"type":"object","required":["counted_minor"],"title":"CloseDrawerBody","description":"The cash counted at the end."},"ComplaintBody":{"properties":{"partner_id":{"type":"string","format":"uuid","title":"Partner Id"},"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"},"description":{"type":"string","maxLength":2000,"title":"Description"}},"type":"object","required":["partner_id","description"],"title":"ComplaintBody"},"ComponentBody":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"rate_bps":{"type":"integer","title":"Rate Bps"}},"type":"object","required":["code","label","rate_bps"],"title":"ComponentBody","description":"One tax component as it prints on a document."},"ConnectionBody":{"properties":{"credentials":{"additionalProperties":{"type":"string"},"type":"object","title":"Credentials"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},"type":"object","required":["credentials"],"title":"ConnectionBody","description":"The keys for one provider. They are sealed on arrival and never returned."},"ContractBody":{"properties":{"reference":{"type":"string","maxLength":80,"title":"Reference"},"starts_on":{"type":"string","format":"date","title":"Starts On"},"ends_on":{"type":"string","format":"date","title":"Ends On"},"response_hours":{"type":"integer","maximum":720.0,"exclusiveMinimum":0.0,"title":"Response Hours"},"exclusions":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Exclusions"},"replacement_transport":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Replacement Transport"},"terms":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Terms"}},"type":"object","required":["reference","starts_on","ends_on","response_hours"],"title":"ContractBody"},"CorrectionBody":{"properties":{"clock_in_at":{"type":"string","format":"date-time","title":"Clock In At"},"clock_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clock Out At"},"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["clock_in_at","reason"],"title":"CorrectionBody"},"CostBody":{"properties":{"kind":{"type":"string","title":"Kind"},"amount_minor":{"type":"integer","title":"Amount Minor"},"description":{"type":"string","title":"Description"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["kind","amount_minor","description"],"title":"CostBody","description":"A cost added to a car."},"CountLine":{"properties":{"quantity":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"}},"type":"object","required":["quantity"],"title":"CountLine","description":"What one person counted for one part. Litres, kilograms and metres take fractions."},"CountStart":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Note"}},"type":"object","title":"CountStart","description":"Open a count."},"CounterSaleBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"},"lines":{"items":{"$ref":"#/components/schemas/SaleLine"},"type":"array","maxItems":50,"minItems":1,"title":"Lines"}},"type":"object","required":["party_id","lines"],"title":"CounterSaleBody","description":"Parts sold over the counter to a customer."},"CourtesyBody":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"return_terms":{"type":"string","maxLength":2000,"title":"Return Terms"}},"type":"object","required":["vehicle_id","return_terms"],"title":"CourtesyBody"},"CoverageBody":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"provider":{"type":"string","maxLength":120,"title":"Provider"},"kind":{"type":"string","title":"Kind"},"reference":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reference"},"starts_on":{"type":"string","format":"date","title":"Starts On"},"ends_on":{"type":"string","format":"date","title":"Ends On"},"mileage_limit_km":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Mileage Limit Km"},"components":{"items":{"type":"string"},"type":"array","title":"Components"},"exclusions":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Exclusions"},"evidence_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Evidence Note"}},"type":"object","required":["vehicle_id","provider","kind","starts_on","ends_on","components"],"title":"CoverageBody"},"CreditBody":{"properties":{"limit_minor":{"type":"integer","minimum":0.0,"title":"Limit Minor"},"terms_days":{"type":"integer","maximum":180.0,"minimum":0.0,"title":"Terms Days"}},"type":"object","required":["limit_minor","terms_days"],"title":"CreditBody","description":"A credit account's limit and terms."},"CustomerBody":{"properties":{"party_type":{"type":"string","title":"Party Type","default":"individual"},"display_name":{"type":"string","title":"Display Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["display_name"],"title":"CustomerBody","description":"A new individual or company."},"CustomerDecision":{"properties":{"token":{"type":"string","title":"Token"},"verification":{"type":"string","title":"Verification"},"decisions":{"items":{"$ref":"#/components/schemas/meludu__http__portal_routes__LineChoice"},"type":"array","title":"Decisions"}},"type":"object","required":["token","verification","decisions"],"title":"CustomerDecision","description":"A customer's own decision through a link."},"DamageBody":{"properties":{"state":{"type":"string","title":"State"},"outcome":{"type":"string","maxLength":1000,"title":"Outcome"}},"type":"object","required":["state","outcome"],"title":"DamageBody"},"DealBody":{"properties":{"buyer_party_id":{"type":"string","format":"uuid","title":"Buyer Party Id"},"stock_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stock Unit Id"},"wanted":{"anyOf":[{"$ref":"#/components/schemas/WantedBody"},{"type":"null"}]}},"type":"object","required":["buyer_party_id"],"title":"DealBody"},"DealerSwitchBody":{"properties":{"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"}},"type":"object","required":["tenant_id"],"title":"DealerSwitchBody","description":"The dealer to move to."},"DecideBody":{"properties":{"decided_by_party_id":{"type":"string","format":"uuid","title":"Decided By Party Id"},"decisions":{"items":{"$ref":"#/components/schemas/meludu__http__fleet_routes__LineChoice"},"type":"array","title":"Decisions"},"po_number":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Po Number"},"expected_version":{"type":"integer","title":"Expected Version"},"note":{"type":"string","maxLength":500,"title":"Note"}},"type":"object","required":["decided_by_party_id","decisions","expected_version","note"],"title":"DecideBody"},"DecisionItem":{"properties":{"line_id":{"type":"string","format":"uuid","title":"Line Id"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["line_id","decision"],"title":"DecisionItem","description":"A customer's decision on one line."},"DefinitionBody":{"properties":{"code":{"type":"string","maxLength":40,"title":"Code"},"name":{"type":"string","maxLength":120,"title":"Name"},"price_minor":{"type":"integer","minimum":0.0,"title":"Price Minor"},"validity_months":{"type":"integer","title":"Validity Months"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"entitlements":{"items":{"$ref":"#/components/schemas/Entitlement"},"type":"array","title":"Entitlements"},"transferable":{"type":"boolean","title":"Transferable","default":false},"cancellation":{"type":"string","title":"Cancellation","default":"none"}},"type":"object","required":["code","name","price_minor","validity_months","entitlements"],"title":"DefinitionBody"},"DeliveryBody":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/DeliveryLine"},"type":"array","maxItems":100,"minItems":1,"title":"Lines"},"delivery_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Note"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["lines"],"title":"DeliveryBody","description":"One delivery."},"DeliveryLine":{"properties":{"line_id":{"type":"string","format":"uuid","title":"Line Id"},"good":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Good","default":"0"},"damaged":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Damaged","default":"0"}},"type":"object","required":["line_id"],"title":"DeliveryLine","description":"What came for one order line."},"DepositBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"},"deposit_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Deposit Minor"}},"type":"object","required":["party_id","deposit_minor"],"title":"DepositBody","description":"A deposit taken at the counter."},"Details":{"properties":{"make":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Make"},"model":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Model"},"model_year":{"anyOf":[{"type":"integer","maximum":2100.0,"minimum":1950.0},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Colour"},"powertrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Powertrain"},"claimed_mileage_km":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Claimed Mileage Km"},"verified_mileage_km":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Verified Mileage Km"},"chassis_number":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Chassis Number"},"plate":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Plate"},"condition_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition Grade"},"exterior_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Exterior Notes"},"interior_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Interior Notes"},"mechanical_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Mechanical Notes"},"accident_history":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Accident History"},"identity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Type"},"identity_reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Identity Reference"},"papers_seen":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Papers Seen"},"market_low_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Market Low Minor"},"market_high_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Market High Minor"},"offer_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Offer Minor"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"notes_for_customer":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes For Customer"}},"type":"object","title":"Details","description":"What the dealership found and offers. Only the fields sent are changed."},"DisputeBody":{"properties":{"reason":{"type":"string","maxLength":1000,"title":"Reason"}},"type":"object","required":["reason"],"title":"DisputeBody"},"DocumentsBody":{"properties":{"documents":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Documents"}},"type":"object","required":["documents"],"title":"DocumentsBody"},"DownBody":{"properties":{"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["reason"],"title":"DownBody"},"DowntimeBody":{"properties":{"kind":{"type":"string","title":"Kind"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["kind","occurred_at"],"title":"DowntimeBody"},"DriveBody":{"properties":{"stock_unit_id":{"type":"string","format":"uuid","title":"Stock Unit Id"},"driver_party_id":{"type":"string","format":"uuid","title":"Driver Party Id"},"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lead Id"},"licence_number":{"type":"string","title":"Licence Number"},"licence_expires_on":{"type":"string","format":"date","title":"Licence Expires On"},"consent":{"type":"boolean","title":"Consent"},"planned_from":{"type":"string","format":"date-time","title":"Planned From"},"planned_to":{"type":"string","format":"date-time","title":"Planned To"},"notes":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Notes"}},"type":"object","required":["stock_unit_id","driver_party_id","licence_number","licence_expires_on","consent","planned_from","planned_to"],"title":"DriveBody","description":"A test drive booking."},"DriveReading":{"properties":{"mileage":{"type":"integer","minimum":0.0,"title":"Mileage"},"fuel":{"type":"string","title":"Fuel"}},"type":"object","required":["mileage","fuel"],"title":"DriveReading","description":"Mileage and fuel when the car leaves or returns."},"DriverBody":{"properties":{"driver_party_id":{"type":"string","format":"uuid","title":"Driver Party Id"},"valid_from":{"type":"string","format":"date","title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"}},"type":"object","required":["driver_party_id","valid_from"],"title":"DriverBody"},"DriverFault":{"properties":{"token":{"type":"string","title":"Token"},"fleet_vehicle_id":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"},"description":{"type":"string","maxLength":2000,"title":"Description"},"severity":{"type":"string","title":"Severity"},"work_type":{"type":"string","title":"Work Type","default":"repair"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available To"}},"type":"object","required":["token","fleet_vehicle_id","description","severity"],"title":"DriverFault"},"DriverToken":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"DriverToken"},"EndBody":{"properties":{"valid_to":{"type":"string","format":"date","title":"Valid To"}},"type":"object","required":["valid_to"],"title":"EndBody"},"EnquiryBody":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"},"dealership":{"type":"string","maxLength":300,"title":"Dealership"},"email":{"type":"string","maxLength":300,"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone"},"role":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Role"},"branches":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Branches"},"sells":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Sells"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes"},"source_path":{"type":"string","maxLength":100,"title":"Source Path","default":"/walkthrough/"},"consent":{"type":"boolean","title":"Consent","default":false},"hp_note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Hp Note"}},"type":"object","required":["name","dealership","email"],"title":"EnquiryBody","description":"What the walkthrough form sends. Lengths are limited again in the database."},"EnrollBody":{"properties":{"code":{"type":"string","maxLength":200,"title":"Code"},"public_key":{"type":"string","maxLength":2000,"title":"Public Key"},"proof":{"type":"string","maxLength":200,"title":"Proof"}},"type":"object","required":["code","public_key","proof"],"title":"EnrollBody"},"Entitlement":{"properties":{"code":{"type":"string","maxLength":40,"title":"Code"},"label":{"type":"string","maxLength":80,"title":"Label"},"quantity":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Quantity"}},"type":"object","required":["code","label","quantity"],"title":"Entitlement"},"EquipmentBody":{"properties":{"kind":{"type":"string","title":"Kind"},"plate":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Plate"}},"type":"object","required":["kind"],"title":"EquipmentBody"},"EvidenceBody":{"properties":{"item_code":{"type":"string","maxLength":40,"title":"Item Code"},"value":{"type":"string","maxLength":500,"title":"Value"}},"type":"object","required":["item_code","value"],"title":"EvidenceBody"},"ExceptionBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"},"skill_code":{"type":"string","maxLength":40,"title":"Skill Code"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"policy_reference":{"type":"string","maxLength":120,"title":"Policy Reference"},"reason":{"type":"string","maxLength":1000,"title":"Reason"}},"type":"object","required":["staff_id","skill_code","job_id","policy_reference","reason"],"title":"ExceptionBody"},"ExpectedBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"display_name":{"type":"string","maxLength":120,"title":"Display Name"},"company":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Company"},"purpose":{"type":"string","title":"Purpose"},"host_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Id"},"expected_on":{"type":"string","format":"date","title":"Expected On"},"expected_time":{"type":"string","maxLength":8,"title":"Expected Time"},"phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone"},"phone_country":{"anyOf":[{"type":"string","maxLength":4},{"type":"null"}],"title":"Phone Country"}},"type":"object","required":["display_name","purpose","expected_on","expected_time"],"title":"ExpectedBody"},"FactorBody":{"properties":{"factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Factor"}},"type":"object","title":"FactorBody","description":"The signer's own PIN."},"FollowUpBody":{"properties":{"next_action":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Next Action"},"next_action_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Action At"}},"type":"object","title":"FollowUpBody","description":"The next step for a lead."},"GeofenceBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"radius_m":{"type":"integer","maximum":5000.0,"minimum":25.0,"title":"Radius M"},"notice":{"type":"string","maxLength":1000,"title":"Notice"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["latitude","longitude","radius_m","notice"],"title":"GeofenceBody"},"GuestVisitBody":{"properties":{"location_id":{"type":"string","format":"uuid","title":"Location Id"},"display_name":{"type":"string","title":"Display Name"},"purpose":{"type":"string","title":"Purpose"},"purpose_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Detail"},"phone":{"type":"string","title":"Phone"},"phone_country":{"type":"string","title":"Phone Country","default":"GH"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"expected_on":{"type":"string","format":"date","title":"Expected On"},"expected_time":{"type":"string","title":"Expected Time"}},"type":"object","required":["location_id","display_name","purpose","phone","expected_on","expected_time"],"title":"GuestVisitBody","description":"What a guest sends before they arrive."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandOutBody":{"properties":{"licence_checked":{"type":"boolean","title":"Licence Checked","default":false},"terms_accepted_by":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Terms Accepted By"},"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"condition":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Condition"}},"type":"object","title":"HandOutBody"},"HomeJob":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"verification":{"type":"string","maxLength":8,"title":"Verification","default":""},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["token","job_id"],"title":"HomeJob"},"HomeRequest":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"verification":{"type":"string","maxLength":8,"title":"Verification","default":""},"kind":{"type":"string","title":"Kind"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"preferred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Preferred At"},"details":{"type":"string","maxLength":1000,"title":"Details"}},"type":"object","required":["token","kind","details"],"title":"HomeRequest"},"HomeToken":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"verification":{"type":"string","maxLength":8,"title":"Verification","default":""}},"type":"object","required":["token"],"title":"HomeToken"},"Induction":{"properties":{"confirmed":{"type":"boolean","title":"Confirmed","default":false},"acknowledged_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Acknowledged Name"}},"type":"object","title":"Induction","description":"A contractor taken through the site induction, confirmed by their own name. VIS-006."},"InductionSetting":{"properties":{"points":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Points"},"valid_days":{"type":"integer","title":"Valid Days"}},"type":"object","required":["points","valid_days"],"title":"InductionSetting"},"InspectionItemBody":{"properties":{"area":{"type":"string","maxLength":100,"minLength":1,"title":"Area"},"condition":{"type":"string","title":"Condition"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"estimate_minor":{"type":"integer","minimum":0.0,"title":"Estimate Minor","default":0}},"type":"object","required":["area","condition"],"title":"InspectionItemBody","description":"One area of the buying inspection."},"InstalmentBody":{"properties":{"due_on":{"type":"string","format":"date","title":"Due On"},"amount_minor":{"type":"integer","title":"Amount Minor"}},"type":"object","required":["due_on","amount_minor"],"title":"InstalmentBody","description":"One dated part payment."},"InternalUseBody":{"properties":{"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"},"reason":{"type":"string","title":"Reason","default":""},"recipient_id":{"type":"string","format":"uuid","title":"Recipient Id"}},"type":"object","required":["quantity","recipient_id"],"title":"InternalUseBody","description":"A part for the dealer's own use."},"InvoiceBody":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["job_id"],"title":"InvoiceBody","description":"Draft an invoice for a job's approved work."},"IssueBody":{"properties":{"reservation_id":{"type":"string","format":"uuid","title":"Reservation Id"},"recipient_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient Id"}},"type":"object","required":["reservation_id"],"title":"IssueBody","description":"Issue a reservation to its job, to the person who takes it."},"JobChargeBody":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"amount_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Minor"},"description":{"type":"string","title":"Description","default":"Preparation work"}},"type":"object","required":["job_id","amount_minor"],"title":"JobChargeBody","description":"A preparation job charged to a car."},"JobQuestion":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"body":{"type":"string","maxLength":1000,"title":"Body"}},"type":"object","required":["token","body"],"title":"JobQuestion"},"JobToken":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"}},"type":"object","required":["token"],"title":"JobToken"},"JobTransition":{"properties":{"to":{"type":"string","title":"To"}},"type":"object","required":["to"],"title":"JobTransition","description":"Move a job. Technicians hand finished work to quality control."},"LeadBody":{"properties":{"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"source":{"type":"string","title":"Source"},"interest":{"type":"string","title":"Interest"},"next_action":{"type":"string","title":"Next Action"},"next_action_at":{"type":"string","format":"date-time","title":"Next Action At"}},"type":"object","required":["source","interest","next_action","next_action_at"],"title":"LeadBody","description":"A lead for a known or new customer."},"LeadTransition":{"properties":{"to":{"type":"string","title":"To"},"expected_version":{"type":"integer","title":"Expected Version"},"loss_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loss Reason"},"next_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Action"},"next_action_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Action At"}},"type":"object","required":["to","expected_version"],"title":"LeadTransition","description":"Move a lead to another stage."},"LeaveBody":{"properties":{"kind":{"type":"string","title":"Kind"},"starts_on":{"type":"string","format":"date","title":"Starts On"},"ends_on":{"type":"string","format":"date","title":"Ends On"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["kind","starts_on","ends_on"],"title":"LeaveBody"},"LimitsBody":{"properties":{"by_role":{"additionalProperties":{"type":"number"},"type":"object","title":"By Role"}},"type":"object","required":["by_role"],"title":"LimitsBody","description":"Discount limit per role, as a percentage."},"LineBody":{"properties":{"description":{"type":"string","title":"Description","default":""},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity","default":1},"unit_price_minor":{"type":"integer","minimum":0.0,"title":"Unit Price Minor","default":0},"discount_minor":{"type":"integer","minimum":0.0,"title":"Discount Minor","default":0},"severity":{"type":"string","title":"Severity","default":"advised"},"menu_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Menu Item Id"},"fit_checked":{"type":"boolean","title":"Fit Checked","default":false}},"type":"object","title":"LineBody","description":"One estimate line in minor units, or a service from the menu at its set price."},"LineDetailBody":{"properties":{"labour_operation":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Labour Operation"},"part_serial":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Part Serial"}},"type":"object","title":"LineDetailBody"},"LinkBody":{"properties":{"purpose":{"type":"string","title":"Purpose"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"}},"type":"object","required":["purpose","subject_id"],"title":"LinkBody","description":"Which customer action to share, and for which job or invoice."},"LoanBody":{"properties":{"kind":{"type":"string","title":"Kind"},"courtesy_vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Courtesy Vehicle Id"},"driver_staff_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Driver Staff Id"},"party_id":{"type":"string","format":"uuid","title":"Party Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"}},"type":"object","required":["kind","party_id","starts_at","ends_at"],"title":"LoanBody"},"LocationBody":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"}},"type":"object","required":["name","kind"],"title":"LocationBody","description":"A branch, parts store, assembly plant or car park."},"LockBody":{"properties":{"through":{"type":"string","format":"date","title":"Through"}},"type":"object","required":["through"],"title":"LockBody","description":"Lock every day up to a date."},"LoginStatusBody":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["status","reason"],"title":"LoginStatusBody"},"LostBody":{"properties":{"reason":{"type":"string","maxLength":300,"title":"Reason"}},"type":"object","required":["reason"],"title":"LostBody"},"MarginBody":{"properties":{"margin_bp":{"type":"integer","title":"Margin Bp"}},"type":"object","required":["margin_bp"],"title":"MarginBody","description":"The dealer's target margin on used cars, in hundredths of a percent."},"MaterialBody":{"properties":{"stage_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stage Id"},"description":{"type":"string","maxLength":200,"title":"Description"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"},"unit":{"type":"string","maxLength":20,"title":"Unit","default":"each"},"unit_cost_minor":{"type":"integer","minimum":0.0,"title":"Unit Cost Minor"}},"type":"object","required":["description","quantity","unit_cost_minor"],"title":"MaterialBody"},"MenuBody":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"price_minor":{"type":"integer","minimum":0.0,"title":"Price Minor"},"labour_hours":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Labour Hours"},"parts":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Parts"},"brands":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Brands"},"models":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Models"},"powertrains":{"items":{"type":"string"},"type":"array","maxItems":6,"title":"Powertrains"},"year_from":{"anyOf":[{"type":"integer","maximum":2100.0,"minimum":1950.0},{"type":"null"}],"title":"Year From"},"year_to":{"anyOf":[{"type":"integer","maximum":2100.0,"minimum":1950.0},{"type":"null"}],"title":"Year To"},"interval_km":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Interval Km"},"interval_months":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Interval Months"}},"type":"object","required":["name","price_minor","labour_hours"],"title":"MenuBody"},"MessageBody":{"properties":{"body":{"type":"string","maxLength":1000,"title":"Body"}},"type":"object","required":["body"],"title":"MessageBody"},"MilestoneBody":{"properties":{"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected On"},"happened_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Happened On"},"reference":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reference"}},"type":"object","title":"MilestoneBody"},"MonthlyBody":{"properties":{"on":{"type":"boolean","title":"On"},"basis":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Basis"}},"type":"object","required":["on"],"title":"MonthlyBody"},"MoveBody":{"properties":{"to_state":{"type":"string","title":"To State"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"reference":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Reference"},"evidence":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Evidence"},"approved_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Approved Minor"}},"type":"object","required":["to_state"],"title":"MoveBody"},"MovementBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"direction":{"type":"string","title":"Direction"},"plate":{"type":"string","maxLength":30,"title":"Plate"},"kind":{"type":"string","title":"Kind"},"record_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Type"},"record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Record Id"},"driver_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Driver Name"},"company":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Company"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["direction","plate","kind"],"title":"MovementBody"},"NewValuation":{"properties":{"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"wants":{"type":"string","title":"Wants"},"make":{"type":"string","maxLength":60,"title":"Make"},"model":{"type":"string","maxLength":80,"title":"Model"},"model_year":{"anyOf":[{"type":"integer","maximum":2100.0,"minimum":1950.0},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Colour"},"powertrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Powertrain"},"claimed_mileage_km":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Claimed Mileage Km"},"chassis_number":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Chassis Number"},"plate":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Plate"},"customer_notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Customer Notes"}},"type":"object","required":["wants","make","model"],"title":"NewValuation","description":"A valuation opened by staff for a customer who walked in."},"NoteBody":{"properties":{"body":{"type":"string","maxLength":2000,"title":"Body"}},"type":"object","required":["body"],"title":"NoteBody"},"NoticeBody":{"properties":{"title":{"type":"string","maxLength":120,"title":"Title"},"body":{"type":"string","maxLength":4000,"title":"Body"},"requires_ack":{"type":"boolean","title":"Requires Ack","default":true}},"type":"object","required":["title","body"],"title":"NoticeBody"},"OfferBody":{"properties":{"partner_id":{"type":"string","format":"uuid","title":"Partner Id"},"equipment_id":{"type":"string","format":"uuid","title":"Equipment Id"},"minutes":{"type":"integer","maximum":60.0,"minimum":2.0,"title":"Minutes","default":10}},"type":"object","required":["partner_id","equipment_id"],"title":"OfferBody"},"OpenDrawerBody":{"properties":{"float_minor":{"type":"integer","minimum":0.0,"title":"Float Minor","default":0}},"type":"object","title":"OpenDrawerBody","description":"The float counted into the drawer."},"OperatorLogin":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"OperatorLogin","description":"Operator credentials."},"OrderLine":{"properties":{"part_id":{"type":"string","format":"uuid","title":"Part Id"},"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"},"unit_cost_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Unit Cost Minor"}},"type":"object","required":["part_id","quantity"],"title":"OrderLine","description":"One part on an order. Leave the cost out to use the supplier's price."},"PaidBody":{"properties":{"reference":{"type":"string","maxLength":80,"title":"Reference"}},"type":"object","required":["reference"],"title":"PaidBody"},"PartnerAnswer":{"properties":{"token":{"type":"string","title":"Token"},"offer_id":{"type":"string","format":"uuid","title":"Offer Id"},"accept":{"type":"boolean","title":"Accept"},"eta_minutes":{"anyOf":[{"type":"integer","maximum":600.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Eta Minutes"}},"type":"object","required":["token","offer_id","accept"],"title":"PartnerAnswer"},"PartnerBody":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"phone":{"type":"string","maxLength":30,"title":"Phone"},"service_areas":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Service Areas"}},"type":"object","required":["name","phone","service_areas"],"title":"PartnerBody"},"PartnerComplete":{"properties":{"token":{"type":"string","title":"Token"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"destination":{"type":"string","maxLength":300,"title":"Destination"},"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"keys_count":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Keys Count"},"signed_by_name":{"type":"string","maxLength":120,"title":"Signed By Name"},"signature":{"anyOf":[{"type":"string","maxLength":400000},{"type":"null"}],"title":"Signature"},"customer_confirmed_by":{"type":"string","maxLength":120,"title":"Customer Confirmed By"}},"type":"object","required":["token","request_id","destination","keys_count","signed_by_name","customer_confirmed_by"],"title":"PartnerComplete"},"PartnerCustody":{"properties":{"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"keys_count":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Keys Count"},"signed_by_name":{"type":"string","maxLength":120,"title":"Signed By Name"},"signature":{"anyOf":[{"type":"string","maxLength":400000},{"type":"null"}],"title":"Signature"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"token":{"type":"string","title":"Token"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["keys_count","signed_by_name","token","request_id"],"title":"PartnerCustody"},"PartnerMove":{"properties":{"token":{"type":"string","title":"Token"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"share":{"type":"boolean","title":"Share","default":true}},"type":"object","required":["token","request_id"],"title":"PartnerMove"},"PartnerPosition":{"properties":{"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude"},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"eta_minutes":{"anyOf":[{"type":"integer","maximum":600.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Eta Minutes"},"token":{"type":"string","title":"Token"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["latitude","longitude","recorded_at","token","request_id"],"title":"PartnerPosition"},"PartnerToken":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"PartnerToken"},"PasswordChange":{"properties":{"current_password":{"type":"string","maxLength":200,"title":"Current Password"},"new_password":{"type":"string","maxLength":200,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"PasswordChange"},"PaymentBody":{"properties":{"amount_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Minor"},"reference":{"type":"string","maxLength":80,"title":"Reference"},"received_on":{"type":"string","format":"date","title":"Received On"}},"type":"object","required":["amount_minor","reference","received_on"],"title":"PaymentBody"},"PaymentRequestBody":{"properties":{"provider":{"type":"string","title":"Provider"},"network":{"type":"string","title":"Network"},"phone":{"type":"string","title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"amount_minor":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Minor"}},"type":"object","required":["provider","network","phone"],"title":"PaymentRequestBody","description":"Ask this phone, on this network, to pay this invoice."},"PettyBody":{"properties":{"amount_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Minor"},"purpose":{"type":"string","title":"Purpose","default":""},"paid_to":{"type":"string","title":"Paid To","default":""}},"type":"object","required":["amount_minor"],"title":"PettyBody","description":"Cash paid out of the drawer for a small expense."},"PhoneBody":{"properties":{"phone":{"type":"string","maxLength":30,"title":"Phone"}},"type":"object","required":["phone"],"title":"PhoneBody"},"PhotoPublicBody":{"properties":{"public":{"type":"boolean","title":"Public"}},"type":"object","required":["public"],"title":"PhotoPublicBody","description":"Show or hide a photo on the car's own page."},"PinBody":{"properties":{"pin":{"type":"string","maxLength":12,"minLength":6,"title":"Pin"},"password":{"type":"string","maxLength":200,"minLength":1,"title":"Password"}},"type":"object","required":["pin","password"],"title":"PinBody","description":"A PIN confirming approval decisions."},"PlanBody":{"properties":{"instalments":{"items":{"$ref":"#/components/schemas/InstalmentBody"},"type":"array","title":"Instalments"},"release_terms":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Release Terms"}},"type":"object","required":["instalments"],"title":"PlanBody","description":"Dated part payments that cover what a sale still owes."},"PoBody":{"properties":{"po_number":{"type":"string","maxLength":60,"title":"Po Number"}},"type":"object","required":["po_number"],"title":"PoBody"},"PromiseBody":{"properties":{"promised_at":{"type":"string","format":"date-time","title":"Promised At"},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"}},"type":"object","required":["promised_at"],"title":"PromiseBody"},"PublicRequest":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"},"phone":{"type":"string","maxLength":40,"title":"Phone"},"email":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Email"},"wants":{"type":"string","title":"Wants"},"make":{"type":"string","maxLength":60,"title":"Make"},"model":{"type":"string","maxLength":80,"title":"Model"},"model_year":{"anyOf":[{"type":"integer","maximum":2100.0,"minimum":1950.0},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Colour"},"powertrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Powertrain"},"claimed_mileage_km":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Claimed Mileage Km"},"chassis_number":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Chassis Number"},"plate":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Plate"},"customer_notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Customer Notes"},"hp_note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Hp Note"}},"type":"object","required":["name","phone","wants","make","model"],"title":"PublicRequest","description":"A customer's request from the dealer's own page."},"PublishBody":{"properties":{"published":{"type":"boolean","title":"Published"}},"type":"object","required":["published"],"title":"PublishBody","description":"Show or hide on the showroom."},"QuoteAnswer":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["token","decision"],"title":"QuoteAnswer"},"QuoteLine":{"properties":{"label":{"type":"string","maxLength":80,"title":"Label","default":""},"amount_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Minor"}},"type":"object","title":"QuoteLine"},"QuoteToken":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"}},"type":"object","required":["token"],"title":"QuoteToken"},"RateBody":{"properties":{"service":{"type":"string","title":"Service"},"base_minor":{"type":"integer","minimum":0.0,"title":"Base Minor"},"per_km_minor":{"type":"integer","minimum":0.0,"title":"Per Km Minor","default":0}},"type":"object","required":["service","base_minor"],"title":"RateBody"},"RecallBody":{"properties":{"provider":{"type":"string","maxLength":120,"title":"Provider"},"campaign_code":{"type":"string","maxLength":60,"title":"Campaign Code"},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"remedy":{"type":"string","maxLength":1000,"title":"Remedy","default":""},"evidence_required":{"items":{"type":"string"},"type":"array","title":"Evidence Required"},"vins":{"items":{"type":"string"},"type":"array","maxItems":20000,"title":"Vins"}},"type":"object","required":["provider","campaign_code"],"title":"RecallBody"},"ReceiptBody":{"properties":{"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"},"unit_cost_minor":{"type":"integer","minimum":0.0,"title":"Unit Cost Minor","default":0}},"type":"object","required":["quantity"],"title":"ReceiptBody","description":"Goods received without an order. Litres, kilograms and metres take fractions."},"ReceiveBody":{"properties":{"vin":{"type":"string","maxLength":17,"title":"Vin"},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Colour"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["vin"],"title":"ReceiveBody"},"RecipientBody":{"properties":{"sent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sent"},"response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response"}},"type":"object","title":"RecipientBody"},"RecountBody":{"properties":{"part_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Part Ids"}},"type":"object","required":["part_ids"],"title":"RecountBody","description":"Parts to count again."},"RedeemBody":{"properties":{"entitlement_code":{"type":"string","title":"Entitlement Code"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["entitlement_code"],"title":"RedeemBody"},"ReferenceBody":{"properties":{"reference":{"type":"string","title":"Reference"}},"type":"object","required":["reference"],"title":"ReferenceBody","description":"A payment's own reference, from the page the customer returned to."},"RefundBody":{"properties":{"tender_id":{"type":"string","format":"uuid","title":"Tender Id"},"amount_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Minor"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["tender_id","amount_minor","reason"],"title":"RefundBody","description":"Ask to give back part of one payment."},"RefundDecisionBody":{"properties":{"decision":{"type":"string","title":"Decision"},"factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Factor"}},"type":"object","required":["decision"],"title":"RefundDecisionBody","description":"Approve or reject a refund, with the approver's own PIN."},"RelationshipBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"},"role_code":{"type":"string","title":"Role Code"},"valid_from":{"type":"string","format":"date","title":"Valid From"}},"type":"object","required":["party_id","role_code","valid_from"],"title":"RelationshipBody","description":"A dated role on a vehicle."},"ReleaseDecisionBody":{"properties":{"decision":{"type":"string","title":"Decision"},"factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Factor"}},"type":"object","required":["decision"],"title":"ReleaseDecisionBody","description":"Approve or reject letting the car go, with the approver's own PIN."},"RenewBody":{"properties":{"expires_on":{"type":"string","format":"date","title":"Expires On"},"supplied_by":{"type":"string","title":"Supplied By"}},"type":"object","required":["expires_on","supplied_by"],"title":"RenewBody"},"RenewalBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"kind":{"type":"string","title":"Kind"},"reference":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reference"},"expires_on":{"type":"string","format":"date","title":"Expires On"},"supplied_by":{"type":"string","title":"Supplied By"},"evidence_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Evidence Note"},"remind_days":{"type":"integer","title":"Remind Days","default":30}},"type":"object","required":["party_id","kind","expires_on","supplied_by"],"title":"RenewalBody"},"ReorderBody":{"properties":{"reorder_point":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"},{"type":"null"}],"title":"Reorder Point"},"reorder_quantity":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"},{"type":"null"}],"title":"Reorder Quantity"},"supplier_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supplier Id"}},"type":"object","title":"ReorderBody","description":"When to reorder, how many, and from whom."},"RepeatAnswer":{"properties":{"same_problem":{"type":"boolean","title":"Same Problem"}},"type":"object","required":["same_problem"],"title":"RepeatAnswer"},"RepeatReview":{"properties":{"cause":{"type":"string","title":"Cause"}},"type":"object","required":["cause"],"title":"RepeatReview"},"ReplacementBody":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"}},"type":"object","required":["vehicle_id"],"title":"ReplacementBody"},"ReportBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"kind":{"type":"string","title":"Kind"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"title":{"type":"string","maxLength":120,"title":"Title"},"description":{"type":"string","maxLength":4000,"title":"Description"},"plate":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Plate"},"visit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Visit Id"}},"type":"object","required":["kind","occurred_at","title","description"],"title":"ReportBody"},"RequestDecideBody":{"properties":{"decided_by_party_id":{"type":"string","format":"uuid","title":"Decided By Party Id"},"decisions":{"items":{"$ref":"#/components/schemas/VehicleChoice"},"type":"array","title":"Decisions"},"po_number":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Po Number"},"expected_version":{"type":"integer","title":"Expected Version"},"note":{"type":"string","maxLength":500,"title":"Note"}},"type":"object","required":["decided_by_party_id","decisions","expected_version","note"],"title":"RequestDecideBody"},"RequestVehicle":{"properties":{"fleet_vehicle_id":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"},"estimated_minor":{"type":"integer","minimum":0.0,"title":"Estimated Minor","default":0}},"type":"object","required":["fleet_vehicle_id"],"title":"RequestVehicle"},"RequirementBody":{"properties":{"skill_code":{"type":"string","maxLength":40,"title":"Skill Code"},"name":{"type":"string","maxLength":120,"title":"Name"},"mandatory":{"type":"boolean","title":"Mandatory","default":true}},"type":"object","required":["skill_code","name"],"title":"RequirementBody"},"ReservationBody":{"properties":{"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"}},"type":"object","required":["starts_at","ends_at"],"title":"ReservationBody"},"ReserveBody":{"properties":{"part_id":{"type":"string","format":"uuid","title":"Part Id"},"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["part_id","quantity","job_id"],"title":"ReserveBody","description":"Reserve stock of one part for a job."},"ResetBody":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"password":{"type":"string","maxLength":200,"title":"Password"}},"type":"object","required":["token","password"],"title":"ResetBody"},"ResetLookup":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"}},"type":"object","required":["token"],"title":"ResetLookup"},"ResolveBody":{"properties":{"resolution":{"type":"string","maxLength":2000,"title":"Resolution"},"expected_version":{"type":"integer","title":"Expected Version"}},"type":"object","required":["resolution","expected_version"],"title":"ResolveBody"},"ReviewBody":{"properties":{"rule":{"type":"string","maxLength":40,"title":"Rule"},"subject_key":{"type":"string","maxLength":200,"title":"Subject Key"},"fingerprint":{"type":"string","maxLength":64,"title":"Fingerprint"},"outcome":{"type":"string","title":"Outcome"},"note":{"type":"string","maxLength":1000,"title":"Note"}},"type":"object","required":["rule","subject_key","fingerprint","outcome","note"],"title":"ReviewBody"},"RouteBody":{"properties":{"work_type":{"type":"string","title":"Work Type"}},"type":"object","required":["work_type"],"title":"RouteBody"},"RuleBody":{"properties":{"cost_centre_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cost Centre Id"},"work_type":{"type":"string","title":"Work Type","default":"any"},"min_minor":{"type":"integer","minimum":0.0,"title":"Min Minor","default":0},"approver_party_id":{"type":"string","format":"uuid","title":"Approver Party Id"},"delegate_party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Delegate Party Id"},"delegate_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Delegate Until"},"po_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Po Stage"}},"type":"object","required":["approver_party_id"],"title":"RuleBody"},"SaleLine":{"properties":{"part_id":{"type":"string","format":"uuid","title":"Part Id"},"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"}},"type":"object","required":["part_id","quantity"],"title":"SaleLine","description":"One part sold at the counter."},"SellBody":{"properties":{"code":{"type":"string","title":"Code"},"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"party_id":{"type":"string","format":"uuid","title":"Party Id"},"starts_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Starts On"}},"type":"object","required":["code","vehicle_id","party_id"],"title":"SellBody"},"SenderBody":{"properties":{"sender":{"type":"string","maxLength":20,"title":"Sender"}},"type":"object","required":["sender"],"title":"SenderBody"},"SentBody":{"properties":{"channel":{"type":"string","title":"Channel"}},"type":"object","required":["channel"],"title":"SentBody"},"SessionBody":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"SessionBody","description":"Staff sign-in."},"SettleBody":{"properties":{"kind":{"type":"string","title":"Kind"},"note":{"type":"string","maxLength":500,"title":"Note"}},"type":"object","required":["kind","note"],"title":"SettleBody"},"SettlementBody":{"properties":{"kind":{"type":"string","title":"Kind"},"amount_minor":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Amount Minor"},"reference":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Reference"},"promised_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Promised On"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["kind"],"title":"SettlementBody"},"ShareBody":{"properties":{"share":{"type":"boolean","title":"Share"}},"type":"object","required":["share"],"title":"ShareBody"},"ShiftBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"}},"type":"object","required":["staff_id","starts_at","ends_at"],"title":"ShiftBody"},"SignatureBody":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Title"},"image":{"type":"string","maxLength":400000,"title":"Image"},"factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Factor"}},"type":"object","required":["name","image"],"title":"SignatureBody","description":"A signature drawn on the screen, with the name to print under it."},"SiteBody":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"address":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Address"}},"type":"object","required":["name"],"title":"SiteBody"},"SkillBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"},"skill_code":{"type":"string","title":"Skill Code"},"name":{"type":"string","title":"Name"}},"type":"object","required":["staff_id","skill_code","name"],"title":"SkillBody","description":"A skill a technician holds."},"SplitBody":{"properties":{"line_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Line Ids"},"payer_id":{"type":"string","format":"uuid","title":"Payer Id"}},"type":"object","required":["line_ids","payer_id"],"title":"SplitBody","description":"Lines to move to another payer's bill."},"StaffBody":{"properties":{"email":{"type":"string","title":"Email"},"role_code":{"type":"string","title":"Role Code"},"location_id":{"type":"string","format":"uuid","title":"Location Id"}},"type":"object","required":["email","role_code","location_id"],"title":"StaffBody","description":"A role grant for one person at one location."},"StaffDecision":{"properties":{"decision":{"type":"string","title":"Decision"},"by_name":{"type":"string","maxLength":120,"title":"By Name"}},"type":"object","required":["decision","by_name"],"title":"StaffDecision","description":"What the customer told the salesperson at the counter."},"StagePlanBody":{"properties":{"labour_grade":{"type":"string","title":"Labour Grade"},"rate_minor":{"type":"integer","minimum":0.0,"title":"Rate Minor"},"planned_hours":{"type":"number","maximum":500.0,"minimum":0.0,"title":"Planned Hours"}},"type":"object","required":["labour_grade","rate_minor","planned_hours"],"title":"StagePlanBody"},"StoragePolicy":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"daily_minor":{"type":"integer","minimum":0.0,"title":"Daily Minor"},"free_days":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Free Days"},"terms":{"type":"string","maxLength":1000,"title":"Terms","default":""},"local_rules_confirmed":{"type":"boolean","title":"Local Rules Confirmed","default":false}},"type":"object","required":["enabled","daily_minor","free_days"],"title":"StoragePolicy"},"SubletMove":{"properties":{"to":{"type":"string","title":"To"},"return_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Return Note"},"vendor_invoice_ref":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Vendor Invoice Ref"}},"type":"object","required":["to"],"title":"SubletMove"},"SupplierBody":{"properties":{"name":{"type":"string","title":"Name"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"payment_terms_days":{"type":"integer","maximum":180.0,"minimum":0.0,"title":"Payment Terms Days","default":0},"over_receipt_percent":{"type":"integer","maximum":50.0,"minimum":0.0,"title":"Over Receipt Percent","default":0}},"type":"object","required":["name"],"title":"SupplierBody","description":"A supplier, without bank details."},"SupplierReturnBody":{"properties":{"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"},"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["quantity","supplier_id"],"title":"SupplierReturnBody","description":"Quarantined parts going back to a supplier."},"SupportBody":{"properties":{"purpose":{"type":"string","maxLength":300,"title":"Purpose"},"mode":{"type":"string","title":"Mode"},"minutes":{"type":"integer","title":"Minutes","default":30}},"type":"object","required":["purpose","mode"],"title":"SupportBody"},"SuppressionBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"},"purpose":{"type":"string","title":"Purpose"},"reason":{"type":"string","maxLength":300,"title":"Reason"}},"type":"object","required":["party_id","purpose","reason"],"title":"SuppressionBody"},"SwitchBody":{"properties":{"membership_id":{"type":"string","format":"uuid","title":"Membership Id"}},"type":"object","required":["membership_id"],"title":"SwitchBody","description":"Another of the caller's own roles."},"TaxProfileBody":{"properties":{"components":{"items":{"$ref":"#/components/schemas/ComponentBody"},"type":"array","title":"Components"}},"type":"object","required":["components"],"title":"TaxProfileBody","description":"The next version of the dealer's tax profile."},"TenantBody":{"properties":{"legal_name":{"type":"string","title":"Legal Name"},"brand_name":{"type":"string","title":"Brand Name"},"location_name":{"type":"string","title":"Location Name"},"location_kind":{"type":"string","title":"Location Kind"},"modules":{"items":{"type":"string"},"type":"array","title":"Modules"},"customer_brand":{"type":"string","title":"Customer Brand"},"default_powertrain":{"type":"string","title":"Default Powertrain"},"owner_email":{"type":"string","title":"Owner Email"},"owner_password":{"type":"string","minLength":8,"title":"Owner Password"}},"type":"object","required":["legal_name","brand_name","location_name","location_kind","modules","customer_brand","default_powertrain","owner_email","owner_password"],"title":"TenantBody","description":"Settings for one dealer. No code fork."},"TenderBody":{"properties":{"method":{"type":"string","title":"Method"},"amount_minor":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Minor"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"}},"type":"object","required":["method","amount_minor"],"title":"TenderBody","description":"Cash, mobile money or counter card. Mobile money names its network and wallet reference."},"TermsBody":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"TermsBody","description":"The dealer's own terms of sale."},"TradeInBody":{"properties":{"valuation_id":{"type":"string","format":"uuid","title":"Valuation Id"}},"type":"object","required":["valuation_id"],"title":"TradeInBody","description":"The accepted valuation to credit against a sale."},"TransferBody":{"properties":{"to_vehicle_id":{"type":"string","format":"uuid","title":"To Vehicle Id"},"to_party_id":{"type":"string","format":"uuid","title":"To Party Id"}},"type":"object","required":["to_vehicle_id","to_party_id"],"title":"TransferBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValuationAnswer":{"properties":{"token":{"type":"string","title":"Token"},"verification":{"type":"string","title":"Verification"},"decision":{"type":"string","title":"Decision"},"name":{"type":"string","title":"Name"}},"type":"object","required":["token","verification","decision","name"],"title":"ValuationAnswer","description":"A customer's answer to a valuation offer."},"VehicleBody":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"cost_centre_id":{"type":"string","format":"uuid","title":"Cost Centre Id"},"site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site Id"},"custodian_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Custodian Name"},"joined_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Joined On"}},"type":"object","required":["vehicle_id","cost_centre_id"],"title":"VehicleBody"},"VehicleChoice":{"properties":{"fleet_vehicle_id":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["fleet_vehicle_id","decision"],"title":"VehicleChoice"},"VehicleCreate":{"properties":{"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin"},"plate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate"},"powertrain":{"type":"string","title":"Powertrain"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colour"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"},"role_code":{"type":"string","title":"Role Code","default":"owner"},"mileage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage"}},"type":"object","required":["powertrain"],"title":"VehicleCreate","description":"A vehicle and, optionally, who owns or drives it."},"VisitBody":{"properties":{"location_id":{"type":"string","format":"uuid","title":"Location Id"},"display_name":{"type":"string","title":"Display Name"},"purpose":{"type":"string","title":"Purpose"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"phone_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country"},"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"},"purpose_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Detail"},"company":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Company"},"induction":{"anyOf":[{"$ref":"#/components/schemas/Induction"},{"type":"null"}]}},"type":"object","required":["location_id","display_name","purpose"],"title":"VisitBody","description":"An assisted arrival at reception."},"VisitMove":{"properties":{"to":{"type":"string","title":"To"},"expected_version":{"type":"integer","title":"Expected Version"},"induction":{"anyOf":[{"$ref":"#/components/schemas/Induction"},{"type":"null"}]}},"type":"object","required":["to","expected_version"],"title":"VisitMove","description":"Move a visit to its next state."},"WaiverBody":{"properties":{"reason":{"type":"string","maxLength":300,"title":"Reason"}},"type":"object","required":["reason"],"title":"WaiverBody"},"WantedBody":{"properties":{"model":{"type":"string","maxLength":80,"title":"Model"},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Colour"},"powertrain":{"type":"string","title":"Powertrain","default":"petrol"},"notes":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Notes"}},"type":"object","required":["model"],"title":"WantedBody"},"meludu__http__bodyshop_routes__CheckBody":{"properties":{"passed":{"type":"boolean","title":"Passed"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["passed"],"title":"CheckBody"},"meludu__http__bodyshop_routes__CloseBody":{"properties":{"actual_hours":{"type":"number","maximum":500.0,"minimum":0.0,"title":"Actual Hours"}},"type":"object","required":["actual_hours"],"title":"CloseBody"},"meludu__http__bodyshop_routes__EstimateBody":{"properties":{"kind":{"type":"string","title":"Kind","default":"initial"},"lines":{"items":{"$ref":"#/components/schemas/meludu__http__bodyshop_routes__Line"},"type":"array","title":"Lines"}},"type":"object","required":["lines"],"title":"EstimateBody"},"meludu__http__bodyshop_routes__JobBody":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["job_id"],"title":"JobBody"},"meludu__http__bodyshop_routes__Line":{"properties":{"operation":{"type":"string","title":"Operation"},"description":{"type":"string","maxLength":200,"title":"Description"},"labour_hours":{"type":"number","maximum":500.0,"minimum":0.0,"title":"Labour Hours","default":0},"amount_minor":{"type":"integer","minimum":0.0,"title":"Amount Minor"}},"type":"object","required":["operation","description","amount_minor"],"title":"Line"},"meludu__http__bodyshop_routes__SubletBody":{"properties":{"supplier":{"type":"string","maxLength":120,"title":"Supplier"},"description":{"type":"string","maxLength":200,"title":"Description"},"cost_minor":{"type":"integer","minimum":0.0,"title":"Cost Minor"}},"type":"object","required":["supplier","description","cost_minor"],"title":"SubletBody"},"meludu__http__branch_routes__CodeBody":{"properties":{"location_id":{"type":"string","format":"uuid","title":"Location Id"},"name":{"type":"string","maxLength":60,"title":"Name"}},"type":"object","required":["location_id","name"],"title":"CodeBody"},"meludu__http__customer_page_routes__DecisionBody":{"properties":{"decision":{"type":"string","title":"Decision"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"response":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Response"}},"type":"object","required":["decision"],"title":"DecisionBody"},"meludu__http__deal_routes__ReasonBody":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["reason"],"title":"ReasonBody","description":"Why a car should be let go before it is paid for."},"meludu__http__desk_routes__CheckBody":{"properties":{"value":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Value"}},"type":"object","title":"CheckBody"},"meludu__http__desk_routes__DecisionBody":{"properties":{"decision":{"type":"string","title":"Decision"}},"type":"object","required":["decision"],"title":"DecisionBody"},"meludu__http__desk_routes__OrderBody":{"properties":{"supplier":{"type":"string","maxLength":120,"title":"Supplier"},"shipped_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Shipped On"},"at_port_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"At Port On"},"cleared_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Cleared On"},"arrives_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Arrives On"}},"type":"object","required":["supplier"],"title":"OrderBody"},"meludu__http__desk_routes__PayoutBody":{"properties":{"paid_how":{"type":"string","title":"Paid How"},"reference":{"type":"string","maxLength":80,"title":"Reference"}},"type":"object","required":["paid_how","reference"],"title":"PayoutBody"},"meludu__http__desk_routes__QuoteBody":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/QuoteLine"},"type":"array","maxItems":12,"title":"Lines"},"valid_until":{"type":"string","format":"date","title":"Valid Until"},"terms":{"type":"string","maxLength":4000,"title":"Terms"}},"type":"object","required":["lines","valid_until","terms"],"title":"QuoteBody"},"meludu__http__desk_routes__ReferralBody":{"properties":{"kind":{"type":"string","title":"Kind"},"partner":{"type":"string","maxLength":120,"title":"Partner"},"amount_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Minor"},"consent_how":{"type":"string","title":"Consent How","default":""}},"type":"object","required":["kind","partner"],"title":"ReferralBody"},"meludu__http__enquiry_routes__ContactBody":{"properties":{"via":{"type":"string","title":"Via"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"next_action":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Next Action"},"next_action_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Action At"}},"type":"object","required":["via"],"title":"ContactBody","description":"Someone got in touch with a lead."},"meludu__http__enquiry_routes__StatusBody":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"StatusBody","description":"The next state of an enquiry."},"meludu__http__fleet_routes__LineChoice":{"properties":{"line_id":{"type":"string","format":"uuid","title":"Line Id"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["line_id","decision"],"title":"LineChoice"},"meludu__http__fleet_routes__PriceBody":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/RequestVehicle"},"type":"array","title":"Lines"}},"type":"object","required":["lines"],"title":"PriceBody"},"meludu__http__fleet_routes__RequestBody":{"properties":{"kind":{"type":"string","title":"Kind"},"work_type":{"type":"string","title":"Work Type"},"description":{"type":"string","maxLength":2000,"title":"Description"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"vehicles":{"items":{"$ref":"#/components/schemas/RequestVehicle"},"type":"array","title":"Vehicles"},"available_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available From"},"available_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Available To"},"reported_by_party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reported By Party Id"}},"type":"object","required":["kind","work_type","description","vehicles"],"title":"RequestBody"},"meludu__http__fleet_routes__ScheduleBody":{"properties":{"fleet_vehicle_id":{"type":"string","format":"uuid","title":"Fleet Vehicle Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["fleet_vehicle_id","starts_at"],"title":"ScheduleBody"},"meludu__http__fleet_routes__StatementBody":{"properties":{"period_from":{"type":"string","format":"date","title":"Period From"},"period_to":{"type":"string","format":"date","title":"Period To"}},"type":"object","required":["period_from","period_to"],"title":"StatementBody"},"meludu__http__floor_routes__CustodyBody":{"properties":{"keys_received":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Keys Received"},"key_tag":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Key Tag"},"collector_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Collector Name"},"collector_phone":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Collector Phone"},"acknowledged_by":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Acknowledged By"},"no_acknowledgement_reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"No Acknowledgement Reason"},"storage_terms_accepted":{"type":"boolean","title":"Storage Terms Accepted","default":false}},"type":"object","required":["keys_received"],"title":"CustodyBody","description":"Keys, who collects, and the customer's agreement at check-in. WRK-003."},"meludu__http__frontdesk_routes__ReleaseBody":{"properties":{"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"stock_unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stock Unit Id"},"collector_party_id":{"type":"string","format":"uuid","title":"Collector Party Id"},"hours":{"type":"integer","maximum":168.0,"minimum":1.0,"title":"Hours","default":24},"agreement_waiver":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agreement Waiver"}},"type":"object","required":["collector_party_id"],"title":"ReleaseBody","description":"An exit pass for a finished job or a sold unit, and who collects."},"meludu__http__frontdesk_routes__TokenBody":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"TokenBody","description":"A release code read from the customer's pass."},"meludu__http__mobility_routes__CompleteBody":{"properties":{"destination":{"type":"string","maxLength":300,"title":"Destination"},"to_workshop":{"type":"boolean","title":"To Workshop","default":false},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"keys_count":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Keys Count"},"signed_by_name":{"type":"string","maxLength":120,"title":"Signed By Name"},"signature":{"anyOf":[{"type":"string","maxLength":400000},{"type":"null"}],"title":"Signature"},"customer_confirmed_by":{"type":"string","maxLength":120,"title":"Customer Confirmed By"}},"type":"object","required":["destination","keys_count","signed_by_name","customer_confirmed_by"],"title":"CompleteBody"},"meludu__http__mobility_routes__CustodyBody":{"properties":{"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"keys_count":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Keys Count"},"signed_by_name":{"type":"string","maxLength":120,"title":"Signed By Name"},"signature":{"anyOf":[{"type":"string","maxLength":400000},{"type":"null"}],"title":"Signature"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["keys_count","signed_by_name"],"title":"CustodyBody"},"meludu__http__mobility_routes__OutcomeBody":{"properties":{"outcome":{"type":"string","maxLength":1000,"title":"Outcome"}},"type":"object","required":["outcome"],"title":"OutcomeBody"},"meludu__http__mobility_routes__QuoteBody":{"properties":{"amount_minor":{"type":"integer","minimum":0.0,"title":"Amount Minor"},"distance_km":{"anyOf":[{"type":"number","maximum":2000.0,"minimum":0.0},{"type":"null"}],"title":"Distance Km"},"note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Note"}},"type":"object","required":["amount_minor"],"title":"QuoteBody"},"meludu__http__mobility_routes__RequestBody":{"properties":{"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"},"vehicle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vehicle Id"},"caller_name":{"type":"string","maxLength":120,"title":"Caller Name"},"callback_phone":{"type":"string","maxLength":30,"title":"Callback Phone"},"breakdown":{"type":"string","title":"Breakdown"},"service":{"type":"string","title":"Service"},"area":{"type":"string","maxLength":80,"title":"Area"},"location_text":{"type":"string","maxLength":300,"title":"Location Text"},"landmark":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Landmark"},"vehicle_condition":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Vehicle Condition"},"safety":{"type":"string","title":"Safety"}},"type":"object","required":["caller_name","callback_phone","breakdown","service","area","location_text","safety"],"title":"RequestBody"},"meludu__http__mobility_routes__ReturnBody":{"properties":{"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"condition":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Condition"},"damage":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Damage"},"damage_estimate_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Damage Estimate Minor"}},"type":"object","title":"ReturnBody"},"meludu__http__money_routes__ContactBody":{"properties":{"channel":{"type":"string","title":"Channel"},"note":{"type":"string","title":"Note","default":""},"promised_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Promised On"}},"type":"object","required":["channel"],"title":"ContactBody","description":"A call or message about money owed."},"meludu__http__money_routes__ExportBody":{"properties":{"period_from":{"type":"string","format":"date","title":"Period From"},"period_to":{"type":"string","format":"date","title":"Period To"}},"type":"object","required":["period_from","period_to"],"title":"ExportBody","description":"A period to export."},"meludu__http__money_routes__HoldBody":{"properties":{"on_hold":{"type":"boolean","title":"On Hold"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["on_hold"],"title":"HoldBody","description":"Stop or restart credit."},"meludu__http__money_routes__ReleaseBody":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"ReleaseBody","description":"Why a car may leave before its bills are paid."},"meludu__http__operator_routes__CloseBody":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason"},"confirm_name":{"type":"string","maxLength":200,"title":"Confirm Name"}},"type":"object","required":["reason","confirm_name"],"title":"CloseBody","description":"Closing a dealer, confirmed by typing its legal name."},"meludu__http__operator_routes__ExportBody":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["reason"],"title":"ExportBody","description":"Why the dealer's records are being exported."},"meludu__http__operator_routes__ModuleBody":{"properties":{"on":{"type":"boolean","title":"On"}},"type":"object","required":["on"],"title":"ModuleBody","description":"Switch one module on or off."},"meludu__http__operator_routes__StatusBody":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["status","reason"],"title":"StatusBody","description":"Suspend or reactivate a dealer."},"meludu__http__parts_routes__PartBody":{"properties":{"sku":{"type":"string","title":"Sku"},"description":{"type":"string","title":"Description"},"unit":{"type":"string","title":"Unit","default":"each"},"bin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bin"},"sale_price_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sale Price Minor"}},"type":"object","required":["sku","description"],"title":"PartBody","description":"A catalogue part."},"meludu__http__parts_routes__ReturnBody":{"properties":{"kind":{"type":"string","title":"Kind"},"quantity":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,9}|(?=[\\d.]{1,13}0*$)\\d{0,9}\\.\\d{0,3}0*$)"}],"title":"Quantity"},"reason":{"type":"string","title":"Reason","default":""},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["kind","quantity"],"title":"ReturnBody","description":"A part coming back."},"meludu__http__payments_routes__CodeBody":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"CodeBody","description":"A voucher or one-time code the customer read out."},"meludu__http__payments_routes__PayoutBody":{"properties":{"payout_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Reference"}},"type":"object","title":"PayoutBody","description":"How a manual refund was paid back."},"meludu__http__portal_routes__LineChoice":{"properties":{"line_id":{"type":"string","format":"uuid","title":"Line Id"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["line_id","decision"],"title":"LineChoice","description":"The customer's choice on one line."},"meludu__http__portal_routes__TokenBody":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"TokenBody","description":"A customer link token."},"meludu__http__purchasing_routes__CloseBody":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"CloseBody","description":"Stop waiting for the rest of an order."},"meludu__http__purchasing_routes__OrderBody":{"properties":{"supplier_id":{"type":"string","format":"uuid","title":"Supplier Id"},"lines":{"items":{"$ref":"#/components/schemas/OrderLine"},"type":"array","maxItems":100,"minItems":1,"title":"Lines"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected On"}},"type":"object","required":["supplier_id","lines"],"title":"OrderBody","description":"A draft order."},"meludu__http__purchasing_routes__PriceBody":{"properties":{"supplier_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplier Sku"},"unit_cost_minor":{"type":"integer","minimum":0.0,"title":"Unit Cost Minor"},"lead_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Lead Days"}},"type":"object","required":["unit_cost_minor"],"title":"PriceBody","description":"What a supplier charges for one part."},"meludu__http__resources_routes__CustodyBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"}},"type":"object","required":["staff_id"],"title":"CustodyBody"},"meludu__http__resources_routes__DecisionBody":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"type":"object","required":["approve"],"title":"DecisionBody"},"meludu__http__resources_routes__Line":{"properties":{"description":{"type":"string","maxLength":200,"title":"Description"},"amount_minor":{"type":"integer","title":"Amount Minor"}},"type":"object","required":["description","amount_minor"],"title":"Line"},"meludu__http__resources_routes__OutcomeBody":{"properties":{"outcome":{"type":"string","maxLength":1000,"title":"Outcome"}},"type":"object","required":["outcome"],"title":"OutcomeBody"},"meludu__http__resources_routes__StatementBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"},"period_from":{"type":"string","format":"date","title":"Period From"},"period_to":{"type":"string","format":"date","title":"Period To"},"lines":{"items":{"$ref":"#/components/schemas/meludu__http__resources_routes__Line"},"type":"array","maxItems":200,"title":"Lines"}},"type":"object","required":["staff_id","period_from","period_to","lines"],"title":"StatementBody"},"meludu__http__retention_routes__BookingBody":{"properties":{"booking_id":{"type":"string","format":"uuid","title":"Booking Id"}},"type":"object","required":["booking_id"],"title":"BookingBody"},"meludu__http__retention_routes__OutcomeBody":{"properties":{"outcome":{"type":"string","title":"Outcome"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["outcome"],"title":"OutcomeBody"},"meludu__http__retention_routes__ReasonBody":{"properties":{"reason":{"type":"string","maxLength":300,"title":"Reason"}},"type":"object","required":["reason"],"title":"ReasonBody"},"meludu__http__retention_routes__ReferralBody":{"properties":{"referrer_party_id":{"type":"string","format":"uuid","title":"Referrer Party Id"},"referred_party_id":{"type":"string","format":"uuid","title":"Referred Party Id"},"reward_minor":{"type":"integer","minimum":0.0,"title":"Reward Minor"}},"type":"object","required":["referrer_party_id","referred_party_id","reward_minor"],"title":"ReferralBody"},"meludu__http__retention_routes__ScheduleBody":{"properties":{"name":{"type":"string","maxLength":80,"title":"Name"},"model":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Model"},"powertrain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Powertrain"},"interval_months":{"type":"integer","title":"Interval Months"},"interval_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interval Km"}},"type":"object","required":["name","interval_months"],"title":"ScheduleBody"},"meludu__http__retention_routes__VerifyBody":{"properties":{"source":{"type":"string","maxLength":120,"title":"Source"}},"type":"object","required":["source"],"title":"VerifyBody"},"meludu__http__routes__DecisionBody":{"properties":{"decision":{"type":"string","title":"Decision"},"factor":{"type":"string","title":"Factor"}},"type":"object","required":["decision","factor"],"title":"DecisionBody","description":"An approval decision."},"meludu__http__routes__ModuleBody":{"properties":{"state":{"type":"string","title":"State"}},"type":"object","required":["state"],"title":"ModuleBody","description":"A module lifecycle transition."},"meludu__http__sales_routes__HoldBody":{"properties":{"party_id":{"type":"string","format":"uuid","title":"Party Id"}},"type":"object","required":["party_id"],"title":"HoldBody","description":"Who the unit is held or reserved for."},"meludu__http__sales_routes__InspectionBody":{"properties":{"kind":{"type":"string","title":"Kind","default":"pdi"},"passed":{"type":"boolean","title":"Passed"},"findings":{"type":"string","title":"Findings"}},"type":"object","required":["passed","findings"],"title":"InspectionBody","description":"An inspection of a stock unit. Only pre-delivery inspection exists today."},"meludu__http__sales_routes__StockBody":{"properties":{"vin":{"type":"string","title":"Vin"},"model":{"type":"string","title":"Model"},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colour"},"powertrain":{"type":"string","title":"Powertrain"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"ownership_basis":{"type":"string","title":"Ownership Basis"},"asking_price_minor":{"type":"integer","minimum":0.0,"title":"Asking Price Minor"},"condition":{"type":"string","title":"Condition","default":"new"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["vin","model","powertrain","ownership_basis","asking_price_minor"],"title":"StockBody","description":"A unit for sale."},"meludu__http__signin_routes__VerifyBody":{"properties":{"phone":{"type":"string","maxLength":30,"title":"Phone"},"code":{"type":"string","maxLength":10,"title":"Code"},"plate":{"type":"string","maxLength":20,"title":"Plate"}},"type":"object","required":["phone","code","plate"],"title":"VerifyBody"},"meludu__http__used_car_routes__DecisionBody":{"properties":{"decision":{"type":"string","title":"Decision"},"factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Factor"}},"type":"object","required":["decision"],"title":"DecisionBody","description":"Approve or refuse, with the approver's own PIN."},"meludu__http__used_car_routes__PriceBody":{"properties":{"price_minor":{"type":"integer","minimum":0.0,"title":"Price Minor"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["price_minor"],"title":"PriceBody","description":"A new asking price."},"meludu__http__valuation_routes__AssignBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"}},"type":"object","required":["staff_id"],"title":"AssignBody","description":"Who looks after a valuation."},"meludu__http__valuation_routes__ReasonBody":{"properties":{"reason":{"type":"string","maxLength":500,"title":"Reason"}},"type":"object","required":["reason"],"title":"ReasonBody","description":"Why a valuation is closed."},"meludu__http__valuation_routes__StockBody":{"properties":{"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"}},"type":"object","title":"StockBody","description":"Where the car will be kept."},"meludu__http__warranty_routes__CompleteBody":{"properties":{"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"evidence":{"additionalProperties":{"type":"string"},"type":"object","title":"Evidence"}},"type":"object","title":"CompleteBody"},"meludu__http__warranty_routes__ContactBody":{"properties":{"channel":{"type":"string","title":"Channel"}},"type":"object","required":["channel"],"title":"ContactBody"},"meludu__http__warranty_routes__CustodyBody":{"properties":{"custody":{"type":"string","title":"Custody"},"shipment_reference":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Shipment Reference"}},"type":"object","required":["custody"],"title":"CustodyBody"},"meludu__http__warranty_routes__PartBody":{"properties":{"description":{"type":"string","maxLength":200,"title":"Description"},"serial":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Serial"},"hold_days":{"type":"integer","title":"Hold Days","default":60},"return_required":{"type":"boolean","title":"Return Required","default":true}},"type":"object","required":["description"],"title":"PartBody"},"meludu__http__warranty_routes__ReasonBody":{"properties":{"reason":{"type":"string","maxLength":300,"title":"Reason"}},"type":"object","required":["reason"],"title":"ReasonBody"},"meludu__http__warranty_routes__VerifyBody":{"properties":{"note":{"type":"string","maxLength":500,"title":"Note"}},"type":"object","required":["note"],"title":"VerifyBody"},"meludu__http__workshop_extra_routes__SubletBody":{"properties":{"vendor":{"type":"string","maxLength":120,"title":"Vendor"},"work":{"type":"string","maxLength":500,"title":"Work"},"what_went":{"type":"string","title":"What Went"},"vendor_cost_minor":{"type":"integer","minimum":0.0,"title":"Vendor Cost Minor"},"customer_charge_minor":{"type":"integer","minimum":0.0,"title":"Customer Charge Minor"}},"type":"object","required":["vendor","work","what_went","vendor_cost_minor","customer_charge_minor"],"title":"SubletBody"},"meludu__http__workshop_routes__AssignBody":{"properties":{"staff_id":{"type":"string","format":"uuid","title":"Staff Id"},"skill_code":{"type":"string","title":"Skill Code"}},"type":"object","required":["staff_id","skill_code"],"title":"AssignBody","description":"Assign a qualified technician."},"meludu__http__workshop_routes__BookingBody":{"properties":{"bay_id":{"type":"string","format":"uuid","title":"Bay Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"}},"type":"object","required":["bay_id","starts_at","ends_at"],"title":"BookingBody","description":"A bay booking."},"meludu__http__workshop_routes__DecisionBody":{"properties":{"expected_version":{"type":"integer","title":"Expected Version"},"decisions":{"items":{"$ref":"#/components/schemas/DecisionItem"},"type":"array","title":"Decisions"},"witness_note":{"type":"string","title":"Witness Note"}},"type":"object","required":["expected_version","decisions","witness_note"],"title":"DecisionBody","description":"A decision the customer gave to staff in person or by phone. CUS-008."},"meludu__http__workshop_routes__EstimateBody":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/LineBody"},"type":"array","title":"Lines"}},"type":"object","required":["lines"],"title":"EstimateBody","description":"A new estimate version."},"meludu__http__workshop_routes__InspectionBody":{"properties":{"kind":{"type":"string","title":"Kind"},"findings":{"type":"string","title":"Findings","default":""},"passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Passed"}},"type":"object","required":["kind"],"title":"InspectionBody","description":"A diagnosis or an independent quality check on a job."},"meludu__http__workshop_routes__JobBody":{"properties":{"vehicle_id":{"type":"string","format":"uuid","title":"Vehicle Id"},"party_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Party Id"},"complaint":{"type":"string","title":"Complaint"},"promised_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Promised At"},"visit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Visit Id"},"location_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Location Id"},"mileage":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Mileage"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"belongings":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Belongings"}},"type":"object","required":["vehicle_id","complaint"],"title":"JobBody","description":"Check-in: vehicle, customer, complaint and promise."}}}}