{
  "components": {
    "schemas": {
      "ActivityLevelEnum": {
        "description": "An enum to store how physically active a patient is.",
        "enum": [
          "Sedentary",
          "Light",
          "Moderate",
          "Active",
          "Extractive"
        ],
        "title": "ActivityLevelEnum",
        "type": "string"
      },
      "Address": {
        "description": "A postal address: where a person lives, or where an order is delivered. On a create call for a\nnew person it becomes the default address of a new account only.",
        "examples": [
          {
            "city": "Toronto",
            "country": "CA",
            "line1": "100 King St W",
            "line2": "Apt 4B",
            "postal_code": "M5V 2T6",
            "state": "ON"
          }
        ],
        "properties": {
          "city": {
            "description": "The city.",
            "minLength": 1,
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "The two-letter country code, in capitals.",
            "pattern": "^[A-Z]{2}$",
            "title": "Country",
            "type": "string"
          },
          "line1": {
            "description": "The first line of the street address.",
            "minLength": 1,
            "title": "Line 1",
            "type": "string"
          },
          "line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The second line of the street address, if any.",
            "title": "Line 2"
          },
          "postal_code": {
            "description": "The postal code.",
            "minLength": 1,
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "The two-letter province code, in capitals.",
            "pattern": "^[A-Z]{2}$",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "line1",
          "city",
          "state",
          "postal_code",
          "country"
        ],
        "title": "Address",
        "type": "object"
      },
      "AlcoholFrequencyEnum": {
        "description": "An enum to store how often a patient drinks alcohol.",
        "enum": [
          "Never drinks",
          "Light (up to 1 drink per day)",
          "Moderate (1-2 drinks per day)",
          "Heavy (more than 2 drinks per day)",
          "Binge Drinking (5+ drinks on a single occasion)"
        ],
        "title": "AlcoholFrequencyEnum",
        "type": "string"
      },
      "AvailabilityOutput": {
        "description": "A `PARTNER` output schema for the open times of a service.",
        "properties": {
          "duration_in_minutes": {
            "description": "The length of the visit in minutes.",
            "title": "Duration In Minutes",
            "type": "integer"
          },
          "end_time": {
            "description": "The end of the range that was searched, in UTC.",
            "format": "date-time",
            "title": "End Time",
            "type": "string"
          },
          "service_id": {
            "description": "The ID of the service.",
            "title": "Service ID",
            "type": "string"
          },
          "slots": {
            "description": "The open times in the range, earliest first.",
            "items": {
              "$ref": "#/components/schemas/AvailabilitySlotOutput"
            },
            "title": "Slots",
            "type": "array"
          },
          "specialist_id": {
            "description": "The ID of the specialist.",
            "title": "Specialist ID",
            "type": "string"
          },
          "start_time": {
            "description": "The start of the range that was searched, in UTC. A start in the past is moved up to the present.",
            "format": "date-time",
            "title": "Start Time",
            "type": "string"
          }
        },
        "required": [
          "specialist_id",
          "service_id",
          "duration_in_minutes",
          "start_time",
          "end_time"
        ],
        "title": "AvailabilityOutput",
        "type": "object"
      },
      "AvailabilitySlotOutput": {
        "description": "A `PARTNER` output schema for one open time.",
        "properties": {
          "end_time": {
            "description": "When the visit would end, in UTC.",
            "format": "date-time",
            "title": "End Time",
            "type": "string"
          },
          "start_time": {
            "description": "When the visit would start, in UTC.",
            "format": "date-time",
            "title": "Start Time",
            "type": "string"
          }
        },
        "required": [
          "start_time",
          "end_time"
        ],
        "title": "AvailabilitySlotOutput",
        "type": "object"
      },
      "BiologicalSexEnum": {
        "description": "An enum to store the biological sex of a patient, as it is used to estimate health measures.",
        "enum": [
          "Male",
          "Female",
          "Prefer not to say"
        ],
        "title": "BiologicalSexEnum",
        "type": "string"
      },
      "BookingCancelInput": {
        "description": "A `PARTNER` input schema for canceling a booking.",
        "properties": {
          "reason": {
            "anyOf": [
              {
                "maxLength": 1000,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the visit is canceled, at most 1000 characters.",
            "title": "Reason"
          }
        },
        "title": "BookingCancelInput",
        "type": "object"
      },
      "BookingCreateInput": {
        "description": "A `PARTNER` input schema for booking a visit for a patient. Insurance cannot be used for a booking made through this API: `is_insurance_selected` is not accepted and the visit is always booked without insurance.",
        "properties": {
          "client_note": {
            "anyOf": [
              {
                "maxLength": 2000,
                "pattern": "^[^${}]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A note for the specialist, at most 2000 characters. It cannot contain `$`, `{` or `}`.",
            "title": "Client Note"
          },
          "service_id": {
            "description": "The ID of the service.",
            "maxLength": 200,
            "minLength": 1,
            "title": "Service ID",
            "type": "string"
          },
          "specialist_id": {
            "description": "The ID of the specialist.",
            "format": "uuid",
            "title": "Specialist ID",
            "type": "string"
          },
          "start_time": {
            "description": "The start of the open time you chose, with a UTC offset. Take it from the open times of the service.",
            "format": "date-time",
            "title": "Start Time",
            "type": "string"
          },
          "timezone": {
            "description": "The patient's IANA timezone, for example `America/Toronto`.",
            "maxLength": 64,
            "minLength": 1,
            "title": "Timezone",
            "type": "string"
          },
          "user": {
            "description": "The ID of the patient the visit is for. The patient must have an active connection with your company that allows bookings.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "user",
          "specialist_id",
          "service_id",
          "start_time",
          "timezone"
        ],
        "title": "BookingCreateInput",
        "type": "object"
      },
      "BookingOutput": {
        "description": "A `PARTNER` output schema for a booking: a visit your company booked for a patient. The list answer has no note; `client_note` reads as `null` there and is filled in when you read one booking.",
        "properties": {
          "booking_id": {
            "description": "The ID of the booking.",
            "title": "Booking ID",
            "type": "string"
          },
          "booking_name": {
            "description": "The name of the booking.",
            "title": "Booking Name",
            "type": "string"
          },
          "client_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The note for the specialist. Only when you read one booking.",
            "title": "Client Note"
          },
          "created_at": {
            "description": "When your company booked the visit.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "end_date": {
            "description": "When the visit ends, in UTC.",
            "format": "date-time",
            "title": "End Date",
            "type": "string"
          },
          "has_report": {
            "description": "Whether a report exists for the visit.",
            "title": "Has Report",
            "type": "boolean"
          },
          "is_insurance_selected": {
            "description": "Whether insurance was selected. Always `false` for a booking made through this API.",
            "title": "Is Insurance Selected",
            "type": "boolean"
          },
          "service_snapshot": {
            "$ref": "#/components/schemas/BookingServiceOutput",
            "description": "The service, as of the booking.",
            "title": "Service Snapshot"
          },
          "specialist": {
            "description": "The ID of the specialist.",
            "title": "Specialist",
            "type": "string"
          },
          "specialist_snapshot": {
            "$ref": "#/components/schemas/BookingSpecialistOutput",
            "description": "The specialist, as of the booking.",
            "title": "Specialist Snapshot"
          },
          "start_date": {
            "description": "When the visit starts, in UTC.",
            "format": "date-time",
            "title": "Start Date",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/BookingStatusEnum",
            "description": "The status of the booking: `booked`, `meeting_rescheduled`, `meeting_completed`, `meeting_cancelled` or `no_show`.",
            "title": "Status"
          },
          "timezone": {
            "description": "The IANA timezone the visit was booked in.",
            "title": "Timezone",
            "type": "string"
          },
          "updated_at": {
            "description": "When the record of the visit last changed.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "user": {
            "description": "The ID of the patient.",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "booking_id",
          "user",
          "specialist",
          "booking_name",
          "start_date",
          "end_date",
          "timezone",
          "specialist_snapshot",
          "service_snapshot",
          "status",
          "is_insurance_selected",
          "has_report",
          "created_at",
          "updated_at"
        ],
        "title": "BookingOutput",
        "type": "object"
      },
      "BookingPageOutput": {
        "description": "A `PARTNER` output schema for a page of bookings.",
        "properties": {
          "data": {
            "description": "The bookings of the page, newest visit first.",
            "items": {
              "$ref": "#/components/schemas/BookingOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "BookingPageOutput",
        "type": "object"
      },
      "BookingServiceOutput": {
        "description": "A `PARTNER` output schema for the service of a booking, as it was when the visit was booked.",
        "properties": {
          "accepted_insurance_providers": {
            "description": "The insurance providers accepted for the service.",
            "items": {
              "type": "string"
            },
            "title": "Accepted Insurance Providers",
            "type": "array"
          },
          "is_insurance_accepted": {
            "description": "Whether insurance was accepted for the service.",
            "title": "Is Insurance Accepted",
            "type": "boolean"
          },
          "service_currency": {
            "description": "The currency of the price.",
            "title": "Service Currency",
            "type": "string"
          },
          "service_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the service.",
            "title": "Service Description"
          },
          "service_duration_in_minutes": {
            "description": "The length of the visit in minutes.",
            "title": "Service Duration In Minutes",
            "type": "integer"
          },
          "service_id": {
            "description": "The ID of the service.",
            "title": "Service ID",
            "type": "string"
          },
          "service_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of an image of the service.",
            "title": "Service Image URL"
          },
          "service_mode_of_delivery": {
            "$ref": "#/components/schemas/ServiceModeEnum",
            "description": "How the visit is delivered: `In Person` or `Virtual`.",
            "title": "Service Mode Of Delivery"
          },
          "service_name": {
            "description": "The name of the service.",
            "title": "Service Name",
            "type": "string"
          },
          "service_price_in_cents": {
            "description": "The price in cents, as it was when the visit was booked.",
            "title": "Service Price In Cents",
            "type": "integer"
          }
        },
        "required": [
          "service_id",
          "service_name",
          "service_currency",
          "service_price_in_cents",
          "service_duration_in_minutes",
          "service_mode_of_delivery",
          "is_insurance_accepted"
        ],
        "title": "BookingServiceOutput",
        "type": "object"
      },
      "BookingSpecialistOutput": {
        "description": "A `PARTNER` output schema for the specialist of a booking, as it was when the visit was booked. It never carries an email, a phone number or a licence number.",
        "properties": {
          "first_name": {
            "description": "The first name.",
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "description": "The last name.",
            "title": "Last Name",
            "type": "string"
          },
          "profile_picture_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the photo.",
            "title": "Profile Picture URL"
          },
          "specialist_id": {
            "description": "The ID of the specialist.",
            "title": "Specialist ID",
            "type": "string"
          },
          "specialist_type": {
            "$ref": "#/components/schemas/SpecialistTypeEnum",
            "description": "The kind of specialist.",
            "title": "Specialist Type"
          }
        },
        "required": [
          "specialist_id",
          "first_name",
          "last_name",
          "specialist_type"
        ],
        "title": "BookingSpecialistOutput",
        "type": "object"
      },
      "BookingStatusEnum": {
        "description": "An enum to store the status of a booking as a partner sees it. The words are the ones the\nbooking itself uses.",
        "enum": [
          "booked",
          "meeting_rescheduled",
          "meeting_completed",
          "meeting_cancelled",
          "no_show"
        ],
        "title": "BookingStatusEnum",
        "type": "string"
      },
      "CareConnectionOutput": {
        "description": "A `PARTNER` output schema for a connection between your company and a patient. It is a public shape written field by field.",
        "example": {
          "approved_at": "2026-11-30T15:10:12Z",
          "company_id": "company-0001",
          "connection_id": "connection-0001",
          "created_at": "2026-11-30T15:04:05Z",
          "external_id": "patient-1001",
          "scopes": [
            "care.bookings",
            "care.reports"
          ],
          "status": "active",
          "user": "6f1c0d2e-0000-4000-8000-000000000101"
        },
        "properties": {
          "approved_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the patient approved the connection, in UTC. `null` until then.",
            "title": "Approved At"
          },
          "company_id": {
            "description": "The ID of your company, the one that owns the connection.",
            "title": "Company ID",
            "type": "string"
          },
          "connection_id": {
            "description": "The ID of the connection. Use it to read or revoke the connection and to match `connection.approved`, `connection.declined` and `connection.revoked` events.",
            "title": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "description": "When the connection was created, in UTC.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "external_id": {
            "description": "Your own ID for the patient, as you sent it.",
            "title": "External ID",
            "type": "string"
          },
          "revoked_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the connection ended, in UTC. `null` while it has not ended.",
            "title": "Revoked At"
          },
          "revoked_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConnectionRevokedByEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who ended the connection: `patient` (the patient), `partner` (your company) or `admin`. `null` while it has not ended.",
            "title": "Revoked By"
          },
          "scopes": {
            "description": "What the patient allowed your company to do. `care.bookings` books and reads visits, `care.reports` reads visit reports, `care.health-profile` reads and updates the health profile. Only the scopes your key may ask for are listed.",
            "items": {
              "$ref": "#/components/schemas/ConnectionScopeEnum"
            },
            "title": "Scopes",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ConnectionStatusEnum",
            "description": "`pending` until the patient decides, then `active`, `declined` or `revoked`. Nothing can be booked for the patient until the connection is `active`. Trust the `connection.approved` event or read the connection; never trust the status in the return URL, because anyone can edit a URL.",
            "title": "Status"
          },
          "user": {
            "description": "The ID of the patient's Nurish'd user the connection is with. Use it to read the patient and, later, to book visits for them.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "connection_id",
          "company_id",
          "user",
          "external_id",
          "status",
          "scopes",
          "created_at"
        ],
        "title": "CareConnectionOutput",
        "type": "object"
      },
      "CompanyApiScopeEnum": {
        "description": "An enum to store a grant a company holds on the partner API. A key can only narrow these.",
        "enum": [
          "specialist:read",
          "patient:write",
          "booking:read",
          "booking:write",
          "report:read",
          "health-profile:read",
          "health-profile:write",
          "catalog:read",
          "order:read",
          "order:write"
        ],
        "title": "CompanyApiScopeEnum",
        "type": "string"
      },
      "CompanyStatusEnum": {
        "description": "An enum to store the status of a partner company.",
        "enum": [
          "Sandbox",
          "Live",
          "Suspended"
        ],
        "title": "CompanyStatusEnum",
        "type": "string"
      },
      "ConnectionRevokedByEnum": {
        "description": "An enum to store who ended a connection.",
        "enum": [
          "patient",
          "partner",
          "admin"
        ],
        "title": "ConnectionRevokedByEnum",
        "type": "string"
      },
      "ConnectionScopeEnum": {
        "description": "An enum to store what a person lets a company do through a connection.",
        "enum": [
          "care.bookings",
          "care.reports",
          "care.health-profile",
          "meals.orders"
        ],
        "title": "ConnectionScopeEnum",
        "type": "string"
      },
      "ConnectionStatusEnum": {
        "description": "An enum to store the status of a connection between a company and a person.",
        "enum": [
          "pending",
          "active",
          "declined",
          "revoked"
        ],
        "title": "ConnectionStatusEnum",
        "type": "string"
      },
      "CustomerCreateInput": {
        "description": "A `PARTNER` input schema for creating a customer: a person your company will place meal orders for once they approve a connection.",
        "examples": [
          {
            "email": "ada.lovelace@example.com",
            "external_id": "customer-1001",
            "first_name": "Ada",
            "last_name": "Lovelace",
            "return_url": "https://shop.example.com/nurishd/return"
          }
        ],
        "properties": {
          "email": {
            "description": "The customer's email address. The approval page sends its code to the address on the customer's Nurish'd account.",
            "format": "email",
            "title": "Email",
            "type": "string"
          },
          "external_id": {
            "description": "Your own ID for the customer, 1 to 200 characters. Sending the same ID again returns the same customer and a fresh link.",
            "maxLength": 200,
            "minLength": 1,
            "title": "External ID",
            "type": "string"
          },
          "first_name": {
            "description": "The customer's first name.",
            "maxLength": 100,
            "minLength": 1,
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "description": "The customer's last name.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Last Name",
            "type": "string"
          },
          "return_url": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the customer goes after the approval page. It must be one of the return URLs registered for your company, otherwise the call answers `validation_error`. The URL carries `connection_id` and `status`, but never trust that status: trust the `connection.approved` event or read the connection.",
            "title": "Return URL"
          }
        },
        "required": [
          "external_id",
          "email",
          "first_name",
          "last_name"
        ],
        "title": "CustomerCreateInput",
        "type": "object"
      },
      "CustomerOutput": {
        "description": "A `PARTNER` output schema for a customer and its connection with your company. It is a public shape written field by field. The answer never says whether the email already had a Nurish'd account.",
        "examples": [
          {
            "connect_url": "https://connect.example.com/approve/8f3k2m9q7x4z",
            "connect_url_expires_at": "2026-04-02T12:00:00Z",
            "connection": {
              "company_id": "company-0001",
              "connection_id": "connection-0001",
              "created_at": "2026-04-01T12:00:00Z",
              "external_id": "customer-1001",
              "scopes": [
                "meals.orders"
              ],
              "status": "pending",
              "user": "6f1c0d2e-0000-4000-8000-000000000101"
            },
            "user": "6f1c0d2e-0000-4000-8000-000000000101"
          }
        ],
        "properties": {
          "connect_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send the customer to this link as a full page or a new tab, never inside a frame or a web view. It is valid for 24 hours and works once. Calling create again with the same `external_id` returns a fresh link. `null` when the customer is not asked to approve now, and always `null` when you read the customer.",
            "title": "Connect URL"
          },
          "connect_url_expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When `connect_url` stops working, in UTC. `null` whenever `connect_url` is `null`.",
            "title": "Connect URL Expires At"
          },
          "connection": {
            "$ref": "#/components/schemas/MealsConnectionOutput",
            "description": "The connection with your company. Nothing can be ordered for the customer until its status is `active`.",
            "title": "Connection"
          },
          "user": {
            "description": "The ID of the customer. Use it to read the customer and, later, to place orders for them.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "user",
          "connection"
        ],
        "title": "CustomerOutput",
        "type": "object"
      },
      "DeliveryDateOutput": {
        "description": "A `PARTNER` output schema for what a zone offers on one delivery date, with the field names of the delivery date itself. A date the zone cannot deliver on has no production, delivery or cut-off date and no menu, and no products. Left out on purpose: nothing but the expanded vendor, zone, blackout date and menu objects, which are answered as IDs.",
        "examples": [
          {
            "all_unique_product_ids": [
              "product-oat-jar",
              "product-salmon-bowl",
              "product-chicken-wrap",
              "product-beef-chili",
              "product-protein-bites",
              "product-vitamin-d",
              "product-green-juice"
            ],
            "delivery_date": "2026-04-07T04:00:00Z",
            "input_query_date": "2026-04-07T04:00:00Z",
            "is_given_date_blackout": false,
            "menu": "menu-spring-2026",
            "order_cutoff_date": "2026-04-04T19:30:00Z",
            "production_date": "2026-04-06T04:00:00Z",
            "vendor": "vendor-harbour-kitchen",
            "vendor_zone": "zone-harbour-nyc"
          }
        ],
        "properties": {
          "additional_product_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The IDs of the extra products you can order for the date, on top of the menu. `null` when there are none.",
            "title": "Additional Product Ids"
          },
          "all_unique_product_ids": {
            "description": "The IDs of all the products you can order for the date, the supplements of the menu included. Empty when the zone cannot deliver on the date.",
            "items": {
              "type": "string"
            },
            "title": "All Unique Product Ids",
            "type": "array"
          },
          "blackout_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ID of the blackout date, when the date is one.",
            "title": "Blackout Date"
          },
          "delivery_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The delivery date. `null` when the zone cannot deliver on the date.",
            "title": "Delivery Date"
          },
          "input_query_date": {
            "description": "The delivery day that was asked for, as midnight of the day in the timezone of the vendor, written in UTC. A day the zone cannot deliver on is answered as midnight UTC of that day.",
            "format": "date-time",
            "title": "Input Query Date",
            "type": "string"
          },
          "is_given_date_blackout": {
            "description": "Whether the date is a blackout date, a day the vendor does not deliver.",
            "title": "Is Given Date Blackout",
            "type": "boolean"
          },
          "menu": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ID of the menu in production for the date. `null` when the zone cannot deliver on the date.",
            "title": "Menu"
          },
          "order_cutoff_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When ordering for the date closes. `null` when the zone cannot deliver on the date.",
            "title": "Order Cutoff Date"
          },
          "production_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When production for the date starts. `null` when the zone cannot deliver on the date.",
            "title": "Production Date"
          },
          "vendor": {
            "description": "The ID of the vendor.",
            "title": "Vendor",
            "type": "string"
          },
          "vendor_zone": {
            "description": "The ID of the zone.",
            "title": "Vendor Zone",
            "type": "string"
          }
        },
        "required": [
          "vendor",
          "vendor_zone",
          "input_query_date",
          "is_given_date_blackout"
        ],
        "title": "DeliveryDateOutput",
        "type": "object"
      },
      "DeliveryDatesOutput": {
        "description": "A `PARTNER` output schema for the dates a zone can deliver on, with the field name of the delivery dates themselves.",
        "examples": [
          {
            "valid_delivery_dates": [
              "2026-04-07T04:00:00Z",
              "2026-04-10T04:00:00Z",
              "2026-04-14T04:00:00Z",
              "2026-04-17T04:00:00Z"
            ]
          }
        ],
        "properties": {
          "valid_delivery_dates": {
            "description": "The dates the zone can deliver on, oldest first. Each is the instant of midnight at the start of the delivery day in the timezone of the vendor (`vendor_timezone` on the vendor), written in UTC; for a vendor in Eastern time, the day 2026-11-24 is `2026-11-24T05:00:00Z`. The date part of a value is the delivery day, which the date route and `order_delivery_date` take as `YYYY-MM-DD`.",
            "items": {
              "format": "date-time",
              "type": "string"
            },
            "title": "Valid Delivery Dates",
            "type": "array"
          }
        },
        "title": "DeliveryDatesOutput",
        "type": "object"
      },
      "DiabetesTypeEnum": {
        "description": "An enum to store the type of diabetes a patient has.",
        "enum": [
          "Type 1",
          "Type 2",
          "Gestational",
          "Prediabetes",
          "Other"
        ],
        "title": "DiabetesTypeEnum",
        "type": "string"
      },
      "Error": {
        "description": "The answer to every error, on every route.",
        "examples": [
          {
            "error": {
              "code": "validation_error",
              "message": "query.size: Input should be less than or equal to 50",
              "request_id": "req_0f3c9a5e7b1d4c2a8e6f0b3d5a7c9e1f"
            }
          }
        ],
        "properties": {
          "error": {
            "properties": {
              "code": {
                "description": "A stable machine-readable code. Branch on this. `x-error-codes` lists every code this API answers with. The list can grow, so treat a code you do not recognise as an error you do not know and handle it by its HTTP status.",
                "examples": [
                  "validation_error"
                ],
                "type": "string",
                "x-error-codes": [
                  "agreements_not_signed",
                  "bad_request",
                  "booking_not_cancelable",
                  "booking_not_completable",
                  "company_archived",
                  "company_not_live",
                  "company_suspended",
                  "connection_not_active",
                  "connection_scope_not_granted",
                  "delivery_not_available",
                  "external_id_conflict",
                  "health_profile_not_found",
                  "internal_error",
                  "invalid_api_key",
                  "invalid_time_range",
                  "measurement_required",
                  "measurement_too_recent",
                  "method_not_allowed",
                  "not_found",
                  "not_licensed_here",
                  "order_conflict",
                  "order_limits_not_met",
                  "payment_method_required",
                  "payment_method_setup_incomplete",
                  "person_already_connected",
                  "product_not_available",
                  "rate_limited",
                  "scope_not_granted",
                  "service_not_bookable",
                  "slot_taken",
                  "test_mode_only",
                  "upstream_error",
                  "upstream_timeout",
                  "upstream_unavailable",
                  "validation_error",
                  "vendor_not_allowed_for_customer",
                  "webhook_endpoint_limit_reached"
                ]
              },
              "message": {
                "description": "Plain words for a person. It can change; do not parse it.",
                "type": "string"
              },
              "request_id": {
                "description": "The ID of the request. Quote it when you contact support.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "code",
              "message",
              "request_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "title": "Error",
        "type": "object"
      },
      "EventDataOutput": {
        "description": "A `PARTNER` output schema for what an event is about.Ids that are not set are left out of the JSON.\n\nWhich ids an event carries depends on its type. A connection event (`connection.approved`, `connection.declined`, `connection.revoked`) carries the connection as `id` and the person as `customer` for a meals connection or as `patient` for a care connection. A booking event (`booking.created`, `booking.canceled`) carries the booking as `id` and the `patient`. A report event (`report.signed`) carries the report as `id`, its `booking` and the `patient`. An order event (`order.created`, `order.paid`, `order.fulfilled`, `order.shipped`, `order.delivered`, `order.refunded`, `order.canceled`) carries the order as `id` and the `customer`. A `ping` carries the webhook endpoint as `id` and nothing else.",
        "examples": [
          {
            "customer": "6f1c0d2e-0000-4000-8000-000000000101",
            "id": "ORD-ONE-OFF-4F7K2A9Q",
            "object": "order",
            "order": "ORD-ONE-OFF-4F7K2A9Q"
          }
        ],
        "properties": {
          "booking": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The booking the object belongs to. Present on report events.",
            "title": "Booking"
          },
          "connection": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The connection the object belongs to. Only present when it applies.",
            "title": "Connection"
          },
          "customer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer the object belongs to. Present on order events, and on the connection events of a meals connection.",
            "title": "Customer"
          },
          "id": {
            "description": "The ID of that object. Fetch the object with your API key.",
            "title": "ID",
            "type": "string"
          },
          "object": {
            "$ref": "#/components/schemas/EventObjectEnum",
            "description": "The kind of object the event is about: `connection`, `booking`, `report`, `order` or `ping`.",
            "title": "Object"
          },
          "order": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order the object belongs to. Only present when it applies.",
            "title": "Order"
          },
          "patient": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The patient the object belongs to. Present on booking and report events, and on the connection events of a care connection.",
            "title": "Patient"
          },
          "report": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The report the object belongs to. Only present when it applies.",
            "title": "Report"
          }
        },
        "required": [
          "object",
          "id"
        ],
        "title": "EventDataOutput",
        "type": "object"
      },
      "EventObjectEnum": {
        "description": "An enum to store the kind of object an event is about. The object itself is never in the event.",
        "enum": [
          "connection",
          "booking",
          "report",
          "order",
          "ping"
        ],
        "title": "EventObjectEnum",
        "type": "string"
      },
      "EventOutput": {
        "description": "A `PARTNER` output schema for an event. It is a public shape written field by field: events are thin, so it holds a type and ids and never the object itself.",
        "examples": [
          {
            "created": "2026-04-01T12:07:00Z",
            "data": {
              "customer": "6f1c0d2e-0000-4000-8000-000000000101",
              "id": "ORD-ONE-OFF-4F7K2A9Q",
              "object": "order",
              "order": "ORD-ONE-OFF-4F7K2A9Q"
            },
            "id": "evt_01JD2ZQ4M8K7R5T3V9X1B6C0HN",
            "mode": "test",
            "type": "order.paid"
          }
        ],
        "properties": {
          "created": {
            "description": "When it happened, in UTC.",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/EventDataOutput",
            "description": "The kind and ids of the object it happened to. It never holds the object itself.",
            "title": "Data"
          },
          "id": {
            "description": "The ID of the event.",
            "title": "ID",
            "type": "string"
          },
          "mode": {
            "$ref": "#/components/schemas/KeyModeEnum",
            "description": "`test` for the sandbox, `prod` for production.",
            "title": "Mode"
          },
          "type": {
            "$ref": "#/components/schemas/EventTypeEnum",
            "description": "What happened, such as `report.signed`.",
            "title": "Type"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "mode",
          "data"
        ],
        "title": "EventOutput",
        "type": "object"
      },
      "EventPageOutput": {
        "description": "A `PARTNER` output schema for a page of events.",
        "examples": [
          {
            "data": [
              {
                "created": "2026-04-01T12:07:00Z",
                "data": {
                  "customer": "6f1c0d2e-0000-4000-8000-000000000101",
                  "id": "ORD-ONE-OFF-4F7K2A9Q",
                  "object": "order",
                  "order": "ORD-ONE-OFF-4F7K2A9Q"
                },
                "id": "evt_01JD2ZQ4M8K7R5T3V9X1B6C0HN",
                "mode": "test",
                "type": "order.paid"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The events of the page, newest first.",
            "items": {
              "$ref": "#/components/schemas/EventOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "EventPageOutput",
        "type": "object"
      },
      "EventTypeEnum": {
        "description": "An enum to store what happened in an event. Partners list events of these types and later receive them by webhook.",
        "enum": [
          "connection.approved",
          "connection.declined",
          "connection.revoked",
          "booking.created",
          "booking.canceled",
          "report.signed",
          "order.created",
          "order.paid",
          "order.fulfilled",
          "order.shipped",
          "order.delivered",
          "order.refunded",
          "order.canceled",
          "ping"
        ],
        "title": "EventTypeEnum",
        "type": "string"
      },
      "GoalEnum": {
        "description": "An enum to store the health goal of a patient.",
        "enum": [
          "Weight Loss",
          "Maintain",
          "Muscle Gain",
          "Weight Loss and Muscle Gain",
          "Managed Condition"
        ],
        "title": "GoalEnum",
        "type": "string"
      },
      "HealthProfileDiabetesInput": {
        "description": "A `PARTNER` input schema for the diabetes information of a patient. Send it only when the patient has diabetes.",
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9\\s.,!?;:'\\\"@#%^&*()_+=-]{1,500}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes about the diabetes.",
            "title": "Additional Information"
          },
          "diabetes_type": {
            "$ref": "#/components/schemas/DiabetesTypeEnum",
            "description": "The type of diabetes.",
            "title": "Diabetes Type"
          },
          "diabetes_type_other": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9\\s.,!?;:'\\\"@#%^&*()_+=-]{1,500}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The type of diabetes. Required when `diabetes_type` is `Other`.",
            "title": "Diabetes Type Other"
          },
          "diabetic_complications": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9\\s.,!?;:'\\\"@#%^&*()_+=-]{1,500}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The complications. Required when `does_user_have_diabetic_complications` is true.",
            "title": "Diabetic Complications"
          },
          "does_user_have_diabetic_complications": {
            "description": "Whether the patient has complications of diabetes.",
            "title": "Does User Have Diabetic Complications",
            "type": "boolean"
          },
          "does_user_have_family_history_of_diabetes": {
            "description": "Whether diabetes runs in the family.",
            "title": "Does User Have Family History Of Diabetes",
            "type": "boolean"
          }
        },
        "required": [
          "diabetes_type",
          "does_user_have_family_history_of_diabetes",
          "does_user_have_diabetic_complications"
        ],
        "title": "HealthProfileDiabetesInput",
        "type": "object"
      },
      "HealthProfileDiabetesOutput": {
        "description": "A `PARTNER` output schema for the diabetes information of a patient.",
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes about the diabetes.",
            "title": "Additional Information"
          },
          "diabetes_type": {
            "$ref": "#/components/schemas/DiabetesTypeEnum",
            "description": "The type of diabetes.",
            "title": "Diabetes Type"
          },
          "diabetes_type_other": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The type of diabetes, when `diabetes_type` is `Other`.",
            "title": "Diabetes Type Other"
          },
          "diabetic_complications": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The complications, when there are any.",
            "title": "Diabetic Complications"
          },
          "does_user_have_diabetic_complications": {
            "description": "Whether the patient has complications of diabetes.",
            "title": "Does User Have Diabetic Complications",
            "type": "boolean"
          },
          "does_user_have_family_history_of_diabetes": {
            "description": "Whether diabetes runs in the family.",
            "title": "Does User Have Family History Of Diabetes",
            "type": "boolean"
          }
        },
        "required": [
          "diabetes_type",
          "does_user_have_family_history_of_diabetes",
          "does_user_have_diabetic_complications"
        ],
        "title": "HealthProfileDiabetesOutput",
        "type": "object"
      },
      "HealthProfileGeneralHealthDataInput": {
        "description": "A `PARTNER` input schema for a measurement of a patient: body size and lifestyle at one time.",
        "properties": {
          "activity_level": {
            "$ref": "#/components/schemas/ActivityLevelEnum",
            "description": "How active the patient is.",
            "title": "Activity Level"
          },
          "alcohol_consumption_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AlcoholFrequencyEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "How often the patient drinks alcohol.",
            "title": "Alcohol Consumption Frequency"
          },
          "goal": {
            "$ref": "#/components/schemas/GoalEnum",
            "description": "The health goal.",
            "title": "Goal"
          },
          "height_in_cm": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "description": "The height in centimeters, above 0, with at most 10 digits and 4 decimal places.",
            "title": "Height In Cm"
          },
          "managed_condition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ManagedConditionEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition managed. Required when `goal` is `Managed Condition` and not allowed for any other goal.",
            "title": "Managed Condition"
          },
          "sleep_quality": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SleepQualityEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "How well the patient sleeps.",
            "title": "Sleep Quality"
          },
          "smoking_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmokingStatusEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "The smoking status.",
            "title": "Smoking Status"
          },
          "stress_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StressLevelEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "How stressed the patient is.",
            "title": "Stress Level"
          },
          "weight_in_kg": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "description": "The weight in kilograms, above 0, with at most 10 digits and 4 decimal places.",
            "title": "Weight In Kg"
          }
        },
        "required": [
          "height_in_cm",
          "weight_in_kg",
          "activity_level",
          "goal"
        ],
        "title": "HealthProfileGeneralHealthDataInput",
        "type": "object"
      },
      "HealthProfileGeneralHealthDataOutput": {
        "description": "A `PARTNER` output schema for a measurement of a patient: body size and lifestyle at one time.",
        "properties": {
          "activity_level": {
            "$ref": "#/components/schemas/ActivityLevelEnum",
            "description": "How active the patient is.",
            "title": "Activity Level"
          },
          "alcohol_consumption_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AlcoholFrequencyEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "How often the patient drinks alcohol.",
            "title": "Alcohol Consumption Frequency"
          },
          "date_of_measurement": {
            "description": "When the measurement was taken, in UTC.",
            "format": "date-time",
            "title": "Date Of Measurement",
            "type": "string"
          },
          "goal": {
            "$ref": "#/components/schemas/GoalEnum",
            "description": "The health goal.",
            "title": "Goal"
          },
          "height_in_cm": {
            "description": "The height in centimeters.",
            "title": "Height In Cm",
            "type": "number"
          },
          "managed_condition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ManagedConditionEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition managed, when the goal is `Managed Condition`.",
            "title": "Managed Condition"
          },
          "sleep_quality": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SleepQualityEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "How well the patient sleeps.",
            "title": "Sleep Quality"
          },
          "smoking_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmokingStatusEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "The smoking status.",
            "title": "Smoking Status"
          },
          "stress_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StressLevelEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "How stressed the patient is.",
            "title": "Stress Level"
          },
          "weight_in_kg": {
            "description": "The weight in kilograms.",
            "title": "Weight In Kg",
            "type": "number"
          }
        },
        "required": [
          "height_in_cm",
          "weight_in_kg",
          "activity_level",
          "goal",
          "date_of_measurement"
        ],
        "title": "HealthProfileGeneralHealthDataOutput",
        "type": "object"
      },
      "HealthProfileHeartConditionInput": {
        "description": "A `PARTNER` input schema for the heart condition information of a patient. Send it only when the patient has a heart condition.",
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9\\s.,!?;:'\\\"@#%^&*()_+=-]{1,500}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes about the heart condition.",
            "title": "Additional Information"
          },
          "does_user_have_heart_condition_family_history": {
            "description": "Whether heart conditions run in the family.",
            "title": "Does User Have Heart Condition Family History",
            "type": "boolean"
          },
          "heart_condition_type": {
            "$ref": "#/components/schemas/HeartConditionTypeEnum",
            "description": "The type of heart condition.",
            "title": "Heart Condition Type"
          },
          "heart_condition_type_other": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "pattern": "^[a-zA-Z0-9\\s.,!?;:'\\\"@#%^&*()_+=-]{1,500}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The type of heart condition. Required when `heart_condition_type` is `Other`.",
            "title": "Heart Condition Type Other"
          }
        },
        "required": [
          "heart_condition_type",
          "does_user_have_heart_condition_family_history"
        ],
        "title": "HealthProfileHeartConditionInput",
        "type": "object"
      },
      "HealthProfileHeartConditionOutput": {
        "description": "A `PARTNER` output schema for the heart condition information of a patient.",
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes about the heart condition.",
            "title": "Additional Information"
          },
          "does_user_have_heart_condition_family_history": {
            "description": "Whether heart conditions run in the family.",
            "title": "Does User Have Heart Condition Family History",
            "type": "boolean"
          },
          "heart_condition_type": {
            "$ref": "#/components/schemas/HeartConditionTypeEnum",
            "description": "The type of heart condition.",
            "title": "Heart Condition Type"
          },
          "heart_condition_type_other": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The type of heart condition, when `heart_condition_type` is `Other`.",
            "title": "Heart Condition Type Other"
          }
        },
        "required": [
          "heart_condition_type",
          "does_user_have_heart_condition_family_history"
        ],
        "title": "HealthProfileHeartConditionOutput",
        "type": "object"
      },
      "HealthProfileMedicationInput": {
        "description": "A `PARTNER` input schema for a medication or a supplement a patient takes.",
        "properties": {
          "dosage_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "description": "The amount of one dose, at least 0, with at most 10 digits and 4 decimal places.",
            "title": "Dosage Amount"
          },
          "dosage_unit": {
            "$ref": "#/components/schemas/MedicationDosageUnitEnum",
            "description": "The unit of the dose.",
            "title": "Dosage Unit"
          },
          "dosage_unit_other": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit of the dose. Required when `dosage_unit` is `other`.",
            "title": "Dosage Unit Other"
          },
          "frequency": {
            "$ref": "#/components/schemas/MedicationFrequencyEnum",
            "description": "How often it is taken.",
            "title": "Frequency"
          },
          "frequency_other": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How often it is taken. Required when `frequency` is `Other`.",
            "title": "Frequency Other"
          },
          "medication_name": {
            "description": "The name of the medication or supplement.",
            "maxLength": 500,
            "minLength": 1,
            "pattern": "^[a-zA-Z0-9\\s.,!?;:'\\\"@#%^&*()_+=-]{1,500}$",
            "title": "Medication Name",
            "type": "string"
          }
        },
        "required": [
          "medication_name",
          "dosage_amount",
          "dosage_unit",
          "frequency"
        ],
        "title": "HealthProfileMedicationInput",
        "type": "object"
      },
      "HealthProfileMedicationOutput": {
        "description": "A `PARTNER` output schema for a medication or a supplement a patient takes.",
        "properties": {
          "dosage_amount": {
            "description": "The amount of one dose.",
            "title": "Dosage Amount",
            "type": "number"
          },
          "dosage_unit": {
            "$ref": "#/components/schemas/MedicationDosageUnitEnum",
            "description": "The unit of the dose.",
            "title": "Dosage Unit"
          },
          "dosage_unit_other": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit of the dose, when `dosage_unit` is `other`.",
            "title": "Dosage Unit Other"
          },
          "frequency": {
            "$ref": "#/components/schemas/MedicationFrequencyEnum",
            "description": "How often it is taken.",
            "title": "Frequency"
          },
          "frequency_other": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How often it is taken, when `frequency` is `Other`.",
            "title": "Frequency Other"
          },
          "medication_name": {
            "description": "The name of the medication or supplement.",
            "title": "Medication Name",
            "type": "string"
          }
        },
        "required": [
          "medication_name",
          "dosage_amount",
          "dosage_unit",
          "frequency"
        ],
        "title": "HealthProfileMedicationOutput",
        "type": "object"
      },
      "HealthProfileOutput": {
        "description": "A `PARTNER` output schema for the health profile of a patient, with the latest measurement.",
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes about the health profile.",
            "title": "Additional Information"
          },
          "biological_sex": {
            "$ref": "#/components/schemas/BiologicalSexEnum",
            "description": "The biological sex.",
            "title": "Biological Sex"
          },
          "created_at": {
            "description": "When the health profile was created, in UTC.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "date_of_birth": {
            "description": "The date of birth, as `YYYY-MM-DD`.",
            "title": "Date Of Birth",
            "type": "string"
          },
          "diabetes_information": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HealthProfileDiabetesOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The diabetes information. `null` when none was saved.",
            "title": "Diabetes Information"
          },
          "general_health_data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HealthProfileGeneralHealthDataOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest measurement. `null` when there is none.",
            "title": "General Health Data"
          },
          "has_diabetes": {
            "description": "Whether the patient has diabetes.",
            "title": "Has Diabetes",
            "type": "boolean"
          },
          "has_heart_condition": {
            "description": "Whether the patient has a heart condition.",
            "title": "Has Heart Condition",
            "type": "boolean"
          },
          "has_other_diseases": {
            "description": "Whether the patient has other diseases.",
            "title": "Has Other Diseases",
            "type": "boolean"
          },
          "heart_condition_information": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HealthProfileHeartConditionOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The heart condition information. `null` when none was saved.",
            "title": "Heart Condition Information"
          },
          "medications": {
            "description": "The medications the patient takes.",
            "items": {
              "$ref": "#/components/schemas/HealthProfileMedicationOutput"
            },
            "title": "Medications",
            "type": "array"
          },
          "other_diseases_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The other diseases of the patient. `null` when none were saved.",
            "title": "Other Diseases Notes"
          },
          "supplements": {
            "description": "The supplements the patient takes.",
            "items": {
              "$ref": "#/components/schemas/HealthProfileMedicationOutput"
            },
            "title": "Supplements",
            "type": "array"
          },
          "updated_at": {
            "description": "When the health profile last changed, in UTC.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "user": {
            "description": "The ID of the patient.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "user",
          "biological_sex",
          "date_of_birth",
          "has_diabetes",
          "has_heart_condition",
          "has_other_diseases",
          "created_at",
          "updated_at"
        ],
        "title": "HealthProfileOutput",
        "type": "object"
      },
      "HealthProfileUpdateInput": {
        "description": "A `PARTNER` input schema for the whole health profile of a patient. Saving replaces the profile: a field you leave out is cleared, and a flag you leave out is false. A flag set to true needs its block. A block sent with its flag false is not refused: it is saved as sent.",
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "maxLength": 1000,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes about the health profile, at most 1000 characters.",
            "title": "Additional Information"
          },
          "biological_sex": {
            "$ref": "#/components/schemas/BiologicalSexEnum",
            "description": "The biological sex.",
            "title": "Biological Sex"
          },
          "date_of_birth": {
            "description": "The date of birth, as `YYYY-MM-DD`.",
            "maxLength": 10,
            "minLength": 10,
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "title": "Date Of Birth",
            "type": "string"
          },
          "diabetes_information": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HealthProfileDiabetesInput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The diabetes information. Required when `has_diabetes` is true; saved as sent when it is false.",
            "title": "Diabetes Information"
          },
          "general_health_data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HealthProfileGeneralHealthDataInput"
              },
              {
                "type": "null"
              }
            ],
            "description": "A new measurement to add to the patient's history. Required the first time a health profile is saved. A patient can have one measurement every 24 hours.",
            "title": "General Health Data"
          },
          "has_diabetes": {
            "default": false,
            "description": "Whether the patient has diabetes. When true, `diabetes_information` is required. Defaults to false.",
            "title": "Has Diabetes",
            "type": "boolean"
          },
          "has_heart_condition": {
            "default": false,
            "description": "Whether the patient has a heart condition. When true, `heart_condition_information` is required. Defaults to false.",
            "title": "Has Heart Condition",
            "type": "boolean"
          },
          "has_other_diseases": {
            "default": false,
            "description": "Whether the patient has other diseases. When true, `other_diseases_notes` is required. Defaults to false.",
            "title": "Has Other Diseases",
            "type": "boolean"
          },
          "heart_condition_information": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HealthProfileHeartConditionInput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The heart condition information. Required when `has_heart_condition` is true; saved as sent when it is false.",
            "title": "Heart Condition Information"
          },
          "medications": {
            "description": "The medications the patient takes, at most 10, each with its own name. Empty when there are none.",
            "items": {
              "$ref": "#/components/schemas/HealthProfileMedicationInput"
            },
            "maxItems": 10,
            "title": "Medications",
            "type": "array"
          },
          "other_diseases_notes": {
            "anyOf": [
              {
                "maxLength": 1000,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The other diseases of the patient, at most 1000 characters. Required when `has_other_diseases` is true; saved as sent when it is false.",
            "title": "Other Diseases Notes"
          },
          "supplements": {
            "description": "The supplements the patient takes, at most 10, each with its own name. Empty when there are none.",
            "items": {
              "$ref": "#/components/schemas/HealthProfileMedicationInput"
            },
            "maxItems": 10,
            "title": "Supplements",
            "type": "array"
          }
        },
        "required": [
          "biological_sex",
          "date_of_birth"
        ],
        "title": "HealthProfileUpdateInput",
        "type": "object"
      },
      "HeartConditionTypeEnum": {
        "description": "An enum to store the type of heart condition a patient has.",
        "enum": [
          "Coronary Artery Disease",
          "Heart Failure",
          "Hypertension",
          "Arrhythmia",
          "Other"
        ],
        "title": "HeartConditionTypeEnum",
        "type": "string"
      },
      "KeyModeEnum": {
        "description": "An enum to store the mode of an API key, a webhook endpoint or an event. The mode picks the environment a call runs in.",
        "enum": [
          "test",
          "prod"
        ],
        "title": "KeyModeEnum",
        "type": "string"
      },
      "KeyOutput": {
        "description": "A `PARTNER` output schema for the API key a partner called with. It is a public shape written field by field.",
        "examples": [
          {
            "company_id": "company-0001",
            "company_name": "Example Meals Co",
            "company_status": "Sandbox",
            "key_id": "key-01JD2ZQ4M8K7R5T3V9X1B6C0HN",
            "mode": "test",
            "name": "Storefront test key",
            "rate_limit_per_minute": 120,
            "scopes": [
              "catalog:read",
              "order:read",
              "order:write"
            ]
          }
        ],
        "properties": {
          "company_id": {
            "description": "The ID of your company.",
            "title": "Company ID",
            "type": "string"
          },
          "company_name": {
            "description": "The name of your company.",
            "title": "Company Name",
            "type": "string"
          },
          "company_status": {
            "$ref": "#/components/schemas/CompanyStatusEnum",
            "description": "The status of your company: `Sandbox`, `Live` or `Suspended`.",
            "title": "Company Status"
          },
          "key_id": {
            "description": "The ID of the key.",
            "title": "Key ID",
            "type": "string"
          },
          "mode": {
            "$ref": "#/components/schemas/KeyModeEnum",
            "description": "`test` for the sandbox, `prod` for production.",
            "title": "Mode"
          },
          "name": {
            "description": "The name you gave the key.",
            "title": "Name",
            "type": "string"
          },
          "rate_limit_per_minute": {
            "description": "The number of calls per minute your company may make with this key's mode.",
            "title": "Rate Limit Per Minute",
            "type": "integer"
          },
          "scopes": {
            "description": "What this key may do right now: the scopes of the key that your company still holds.",
            "items": {
              "$ref": "#/components/schemas/CompanyApiScopeEnum"
            },
            "title": "Scopes",
            "type": "array"
          }
        },
        "required": [
          "key_id",
          "name",
          "mode",
          "scopes",
          "company_id",
          "company_name",
          "company_status",
          "rate_limit_per_minute"
        ],
        "title": "KeyOutput",
        "type": "object"
      },
      "ManagedConditionEnum": {
        "description": "An enum to store the condition a patient manages with their meal plan. It is sent when the goal is `Managed Condition`, and only then.",
        "enum": [
          "Obesity",
          "Heart Disease",
          "Diabetes [Weight Loss]",
          "Diabetes [Maintain]",
          "Diabetes [Muscle Gain]",
          "Prediabetes Reversal [Weight Loss]",
          "Prediabetes Reversal [Maintain]",
          "Prediabetes Reversal [Muscle Gain]",
          "Chronic Kidney Disease Stage 1",
          "Chronic Kidney Disease Stage 2",
          "Chronic Kidney Disease Stage 3",
          "Chronic Kidney Disease Stage 4",
          "Chronic Kidney Disease Stage 5 [Dialysis]",
          "Chronic Kidney Disease Stage 5 [Non-Dialysis]",
          "Neuroprotective Diet [Weight Loss]",
          "Neuroprotective Diet [Maintain]",
          "Neuroprotective Diet [Muscle Gain]"
        ],
        "title": "ManagedConditionEnum",
        "type": "string"
      },
      "MealsConnectionOutput": {
        "description": "A `PARTNER` output schema for a connection between your company and a customer. It is a public shape written field by field.",
        "examples": [
          {
            "approved_at": "2026-04-01T12:03:00Z",
            "company_id": "company-0001",
            "connection_id": "connection-0001",
            "created_at": "2026-04-01T12:00:00Z",
            "external_id": "customer-1001",
            "scopes": [
              "meals.orders"
            ],
            "status": "active",
            "user": "6f1c0d2e-0000-4000-8000-000000000101"
          }
        ],
        "properties": {
          "approved_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the customer approved the connection, in UTC. `null` until then.",
            "title": "Approved At"
          },
          "company_id": {
            "description": "The ID of your company, the other side of the connection.",
            "title": "Company ID",
            "type": "string"
          },
          "connection_id": {
            "description": "The ID of the connection. Use it to read or revoke the connection and to match `connection.approved`, `connection.declined` and `connection.revoked` events.",
            "title": "Connection ID",
            "type": "string"
          },
          "created_at": {
            "description": "When the connection was created, in UTC.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "external_id": {
            "description": "Your own ID for the customer, as you sent it.",
            "title": "External ID",
            "type": "string"
          },
          "revoked_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the connection ended, in UTC. `null` while it has not ended.",
            "title": "Revoked At"
          },
          "revoked_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConnectionRevokedByEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who ended the connection: `patient` (the customer), `partner` (your company) or `admin`. `null` while it has not ended.",
            "title": "Revoked By"
          },
          "scopes": {
            "description": "What the customer allowed your company to do. `meals.orders` places and reads meal orders.",
            "items": {
              "$ref": "#/components/schemas/ConnectionScopeEnum"
            },
            "title": "Scopes",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ConnectionStatusEnum",
            "description": "`pending` until the customer decides, then `active`, `declined` or `revoked`. Nothing can be ordered for the customer until the connection is `active`. Trust the `connection.approved` event or read the connection; never trust the status in the return URL, because anyone can edit a URL.",
            "title": "Status"
          },
          "user": {
            "description": "The ID of the person the connection is with.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "connection_id",
          "company_id",
          "user",
          "external_id",
          "status",
          "scopes",
          "created_at"
        ],
        "title": "MealsConnectionOutput",
        "type": "object"
      },
      "MedicationDosageUnitEnum": {
        "description": "An enum to store the unit of the dose of a medication or a supplement.",
        "enum": [
          "g",
          "mg",
          "mcg",
          "IU",
          "units",
          "tablets",
          "ml",
          "other"
        ],
        "title": "MedicationDosageUnitEnum",
        "type": "string"
      },
      "MedicationFrequencyEnum": {
        "description": "An enum to store how often a medication or a supplement is taken.",
        "enum": [
          "Once daily",
          "Twice daily",
          "Three times daily",
          "Four times daily",
          "With meals",
          "Before meals",
          "After meals",
          "At bedtime",
          "Every other day",
          "As needed",
          "Other"
        ],
        "title": "MedicationFrequencyEnum",
        "type": "string"
      },
      "MenuOutput": {
        "description": "A `PARTNER` output schema for a menu. It has the field names, the nesting and the values of the menu itself. The list answer leaves out the description; it reads as `null` there. Left out on purpose: the draft flag.",
        "examples": [
          {
            "breakfast_items": [
              "product-oat-jar"
            ],
            "created_at": "2025-11-03T15:04:05Z",
            "dinner_items": [
              "product-beef-chili"
            ],
            "drinks_items": [
              "product-green-juice"
            ],
            "lunch_items": [
              "product-salmon-bowl",
              "product-chicken-wrap"
            ],
            "menu_description": "Light dishes for the spring weeks.",
            "menu_id": "menu-spring-2026",
            "menu_name": "Spring 2026",
            "menu_production_end_date": "2026-05-31T04:00:00Z",
            "menu_production_start_date": "2026-03-01T04:00:00Z",
            "menu_status": "in_production",
            "misc_items": [],
            "snacks_items": [
              "product-protein-bites"
            ],
            "supplements_items": [
              "product-vitamin-d"
            ],
            "updated_at": "2026-02-14T09:30:00Z",
            "vendor": "vendor-harbour-kitchen"
          }
        ],
        "properties": {
          "breakfast_items": {
            "description": "The IDs of the products of the breakfast slot.",
            "items": {
              "type": "string"
            },
            "title": "Breakfast Items",
            "type": "array"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the menu was created.",
            "title": "Created At"
          },
          "dinner_items": {
            "description": "The IDs of the products of the dinner slot.",
            "items": {
              "type": "string"
            },
            "title": "Dinner Items",
            "type": "array"
          },
          "drinks_items": {
            "description": "The IDs of the products of the drinks slot.",
            "items": {
              "type": "string"
            },
            "title": "Drinks Items",
            "type": "array"
          },
          "lunch_items": {
            "description": "The IDs of the products of the lunch slot.",
            "items": {
              "type": "string"
            },
            "title": "Lunch Items",
            "type": "array"
          },
          "menu_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A description of the menu. Only when you read one menu.",
            "title": "Menu Description"
          },
          "menu_id": {
            "description": "The ID of the menu.",
            "title": "Menu Id",
            "type": "string"
          },
          "menu_name": {
            "description": "The name of the menu.",
            "title": "Menu Name",
            "type": "string"
          },
          "menu_production_end_date": {
            "description": "When production of the menu ends.",
            "format": "date-time",
            "title": "Menu Production End Date",
            "type": "string"
          },
          "menu_production_start_date": {
            "description": "When production of the menu starts.",
            "format": "date-time",
            "title": "Menu Production Start Date",
            "type": "string"
          },
          "menu_status": {
            "$ref": "#/components/schemas/MenuStatusEnum",
            "description": "Where the menu is in its production window: `in_production`, `upcoming`, `expired` or `not_in_production`.",
            "title": "Menu Status"
          },
          "misc_items": {
            "description": "The IDs of the products of the misc slot.",
            "items": {
              "type": "string"
            },
            "title": "Misc Items",
            "type": "array"
          },
          "snacks_items": {
            "description": "The IDs of the products of the snacks slot.",
            "items": {
              "type": "string"
            },
            "title": "Snacks Items",
            "type": "array"
          },
          "supplements_items": {
            "description": "The IDs of the products of the supplements slot.",
            "items": {
              "type": "string"
            },
            "title": "Supplements Items",
            "type": "array"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the menu was last updated.",
            "title": "Updated At"
          },
          "vendor": {
            "description": "The ID of the vendor.",
            "title": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "vendor",
          "menu_id",
          "menu_name",
          "menu_production_start_date",
          "menu_production_end_date",
          "menu_status"
        ],
        "title": "MenuOutput",
        "type": "object"
      },
      "MenuPageOutput": {
        "description": "A `PARTNER` output schema for a page of menus.",
        "examples": [
          {
            "data": [
              {
                "breakfast_items": [
                  "product-oat-jar"
                ],
                "created_at": "2025-11-03T15:04:05Z",
                "dinner_items": [
                  "product-beef-chili"
                ],
                "drinks_items": [
                  "product-green-juice"
                ],
                "lunch_items": [
                  "product-salmon-bowl",
                  "product-chicken-wrap"
                ],
                "menu_id": "menu-spring-2026",
                "menu_name": "Spring 2026",
                "menu_production_end_date": "2026-05-31T04:00:00Z",
                "menu_production_start_date": "2026-03-01T04:00:00Z",
                "menu_status": "in_production",
                "misc_items": [],
                "snacks_items": [
                  "product-protein-bites"
                ],
                "supplements_items": [
                  "product-vitamin-d"
                ],
                "updated_at": "2026-02-14T09:30:00Z",
                "vendor": "vendor-harbour-kitchen"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The menus of the page.",
            "items": {
              "$ref": "#/components/schemas/MenuOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "MenuPageOutput",
        "type": "object"
      },
      "MenuStatusEnum": {
        "description": "An enum to store the statuses of a menu a partner can see and filter by, with the values the menu\nitself uses. A draft or archived menu is never shown.",
        "enum": [
          "in_production",
          "upcoming",
          "expired",
          "not_in_production"
        ],
        "title": "MenuStatusEnum",
        "type": "string"
      },
      "OrderAddressOutput": {
        "description": "A `PARTNER` output schema for an address on an order: where it is delivered, or where the vendor is.",
        "examples": [
          {
            "city": "Toronto",
            "country": "CA",
            "line1": "100 King St W",
            "line2": "Apt 4B",
            "postal_code": "M5V 2T6",
            "state": "ON"
          }
        ],
        "properties": {
          "city": {
            "description": "The city.",
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "The two-letter country code.",
            "title": "Country",
            "type": "string"
          },
          "line1": {
            "description": "The first line of the street address.",
            "title": "Line1",
            "type": "string"
          },
          "line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The second line of the street address.",
            "title": "Line2"
          },
          "postal_code": {
            "description": "The postal code.",
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "The two-letter province code.",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "line1",
          "city",
          "state",
          "postal_code",
          "country"
        ],
        "title": "OrderAddressOutput",
        "type": "object"
      },
      "OrderCreateInput": {
        "description": "A `PARTNER` input schema for placing an order for a customer who approved the connection.",
        "examples": [
          {
            "line_items": [
              {
                "line_item_product_id": "product-salmon-bowl",
                "line_quantity": 4
              },
              {
                "line_item_product_id": "product-chicken-wrap",
                "line_quantity": 1
              }
            ],
            "metadata": {
              "basket": "b-77"
            },
            "order_contact_email": "ada.lovelace@example.com",
            "order_contact_phone": "+14165550123",
            "order_customer_notes": "Leave with the doorman.",
            "order_delivery_date": "2026-04-07",
            "order_shipping_address": {
              "city": "Toronto",
              "country": "CA",
              "line1": "100 King St W",
              "line2": "Apt 4B",
              "postal_code": "M5V 2T6",
              "state": "ON"
            },
            "order_vendor": "vendor-harbour-kitchen",
            "reference": "web-order-1001",
            "user": "6f1c0d2e-0000-4000-8000-000000000101"
          }
        ],
        "properties": {
          "line_items": {
            "description": "The products to order, between 1 and 50. A product can appear only once.",
            "items": {
              "$ref": "#/components/schemas/OrderLineItemInput"
            },
            "maxItems": 50,
            "minItems": 1,
            "title": "Line Items",
            "type": "array"
          },
          "metadata": {
            "additionalProperties": {
              "maxLength": 100,
              "type": "string"
            },
            "description": "Your own key-value data, at most 10 pairs with keys and values of at most 100 characters. It is kept and returned as you sent it.",
            "maxProperties": 10,
            "propertyNames": {
              "maxLength": 100,
              "minLength": 1
            },
            "title": "Metadata",
            "type": "object"
          },
          "order_contact_email": {
            "description": "The email address the kitchen and the courier reach the customer at for this order.",
            "format": "email",
            "title": "Order Contact Email",
            "type": "string"
          },
          "order_contact_phone": {
            "description": "The phone number for the order in international format, for example `+14165550123`.",
            "maxLength": 20,
            "minLength": 1,
            "title": "Order Contact Phone",
            "type": "string"
          },
          "order_customer_notes": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Notes for the kitchen, up to 500 characters.",
            "title": "Order Customer Notes"
          },
          "order_delivery_date": {
            "description": "The delivery day, as `YYYY-MM-DD`: the date part of a value of `valid_delivery_dates` (for `2026-11-24T05:00:00Z`, send `2026-11-24`). A time of day is not accepted. It must be a day the vendor's zone for the address offers. The order answers the same field as an instant, midnight of the day in the vendor's timezone, in UTC.",
            "format": "date",
            "title": "Order Delivery Date",
            "type": "string"
          },
          "order_shipping_address": {
            "$ref": "#/components/schemas/OrderShippingAddressInput",
            "description": "Where the order is delivered.",
            "title": "Order Shipping Address"
          },
          "order_vendor": {
            "description": "The ID of the vendor that prepares the order: letters, digits, hyphens and underscores, up to 200 characters.",
            "maxLength": 200,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
            "title": "Order Vendor",
            "type": "string"
          },
          "reference": {
            "anyOf": [
              {
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own reference for the order, 1 to 200 characters. Sending the same reference again returns the order already placed instead of placing a second one.",
            "title": "Reference"
          },
          "user": {
            "description": "The ID of the customer the order is for, as `customer/create` answered it.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "user",
          "order_vendor",
          "order_delivery_date",
          "order_shipping_address",
          "line_items",
          "order_contact_email",
          "order_contact_phone"
        ],
        "title": "OrderCreateInput",
        "type": "object"
      },
      "OrderDeliveryStatusEnum": {
        "description": "An enum to store the delivery statuses of an order.",
        "enum": [
          "draft",
          "pending payment",
          "not yet shipped",
          "shipped",
          "delivered",
          "delivery failed",
          "cancelled",
          "do not process"
        ],
        "title": "OrderDeliveryStatusEnum",
        "type": "string"
      },
      "OrderFinancialStatusEnum": {
        "description": "An enum to store the financial (payment) statuses of an order.",
        "enum": [
          "draft",
          "pending",
          "failed payment",
          "paid",
          "cancelled",
          "partially refunded",
          "refunded",
          "chargeback"
        ],
        "title": "OrderFinancialStatusEnum",
        "type": "string"
      },
      "OrderFulfillmentStatusEnum": {
        "description": "An enum to store the fulfillment statuses of an order: how far the kitchen is.",
        "enum": [
          "draft",
          "pending payment",
          "not started",
          "preparing meals",
          "partially completed",
          "completed",
          "cancelled",
          "do not process"
        ],
        "title": "OrderFulfillmentStatusEnum",
        "type": "string"
      },
      "OrderLineItemInput": {
        "description": "A `PARTNER` input schema for one product of an order.",
        "examples": [
          {
            "line_item_product_id": "product-salmon-bowl",
            "line_quantity": 4
          }
        ],
        "properties": {
          "line_item_product_id": {
            "description": "The ID of the product, as the catalog lists it.",
            "maxLength": 200,
            "minLength": 1,
            "title": "Line Item Product Id",
            "type": "string"
          },
          "line_quantity": {
            "description": "How many units to order, at least 1.",
            "minimum": 1.0,
            "title": "Line Quantity",
            "type": "integer"
          }
        },
        "required": [
          "line_item_product_id",
          "line_quantity"
        ],
        "title": "OrderLineItemInput",
        "type": "object"
      },
      "OrderLineItemOutput": {
        "description": "A `PARTNER` output schema for one line item of an order. The refund notes, the timeline and the metadata of the line item are not shown.",
        "examples": [
          {
            "line_item_created_at": "2026-04-01T12:05:00Z",
            "line_item_currency": "CAD",
            "line_item_delivery_status": "pending payment",
            "line_item_financial_status": "pending",
            "line_item_fulfilled_quantity": 0,
            "line_item_fulfillment_status": "pending payment",
            "line_item_hash": "c1b2a3d4e5f60718293a4b5c6d7e8f901234567890abcdef1234567890abcdef",
            "line_item_product": {
              "product_id": "product-salmon-bowl",
              "product_name": "Salmon Bowl",
              "product_price": 1495
            },
            "line_item_quantity": 4,
            "line_item_refunded_quantity": 0,
            "line_item_updated_at": "2026-04-01T12:05:00Z"
          }
        ],
        "properties": {
          "additional_information": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Additional information about the line item.",
            "title": "Additional Information"
          },
          "line_item_created_at": {
            "description": "When the line item was created, in UTC.",
            "format": "date-time",
            "title": "Line Item Created At",
            "type": "string"
          },
          "line_item_currency": {
            "description": "The currency of the line item, for example `CAD`.",
            "title": "Line Item Currency",
            "type": "string"
          },
          "line_item_delivery_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The notes about the delivery of the line item.",
            "title": "Line Item Delivery Notes"
          },
          "line_item_delivery_status": {
            "$ref": "#/components/schemas/OrderDeliveryStatusEnum",
            "description": "How far the delivery of the line item is: `draft`, `pending payment`, `not yet shipped`, `shipped`, `delivered`, `delivery failed`, `cancelled` or `do not process`.",
            "title": "Line Item Delivery Status"
          },
          "line_item_financial_status": {
            "$ref": "#/components/schemas/OrderFinancialStatusEnum",
            "description": "The payment status of the line item: `draft`, `pending`, `failed payment`, `paid`, `cancelled`, `partially refunded`, `refunded` or `chargeback`.",
            "title": "Line Item Financial Status"
          },
          "line_item_fulfilled_quantity": {
            "description": "How many units are fulfilled.",
            "title": "Line Item Fulfilled Quantity",
            "type": "integer"
          },
          "line_item_fulfillment_status": {
            "$ref": "#/components/schemas/OrderFulfillmentStatusEnum",
            "description": "How far the kitchen is with the line item: `draft`, `pending payment`, `not started`, `preparing meals`, `partially completed`, `completed`, `cancelled` or `do not process`.",
            "title": "Line Item Fulfillment Status"
          },
          "line_item_hash": {
            "description": "The hash that identifies the line item.",
            "title": "Line Item Hash",
            "type": "string"
          },
          "line_item_product": {
            "$ref": "#/components/schemas/OrderLineItemProductOutput",
            "description": "The product, as it was when the order was placed.",
            "title": "Line Item Product"
          },
          "line_item_quantity": {
            "description": "How many units were ordered.",
            "title": "Line Item Quantity",
            "type": "integer"
          },
          "line_item_refunded_quantity": {
            "default": 0,
            "description": "How many units are refunded.",
            "title": "Line Item Refunded Quantity",
            "type": "integer"
          },
          "line_item_updated_at": {
            "description": "When the line item was last updated, in UTC.",
            "format": "date-time",
            "title": "Line Item Updated At",
            "type": "string"
          }
        },
        "required": [
          "line_item_hash",
          "line_item_currency",
          "line_item_product",
          "line_item_quantity",
          "line_item_financial_status",
          "line_item_fulfillment_status",
          "line_item_fulfilled_quantity",
          "line_item_delivery_status",
          "line_item_created_at",
          "line_item_updated_at"
        ],
        "title": "OrderLineItemOutput",
        "type": "object"
      },
      "OrderLineItemProductOutput": {
        "description": "A `PARTNER` output schema for the product of a line item, as it was when the order was placed.",
        "examples": [
          {
            "product_id": "product-salmon-bowl",
            "product_name": "Salmon Bowl",
            "product_price": 1495
          }
        ],
        "properties": {
          "product_id": {
            "description": "The ID of the product.",
            "title": "Product Id",
            "type": "string"
          },
          "product_name": {
            "description": "The name of the product.",
            "title": "Product Name",
            "type": "string"
          },
          "product_price": {
            "description": "The price of one unit, an integer number of cents, in the currency of the line item (`line_item_currency`).",
            "title": "Product Price",
            "type": "integer"
          }
        },
        "required": [
          "product_id",
          "product_name",
          "product_price"
        ],
        "title": "OrderLineItemProductOutput",
        "type": "object"
      },
      "OrderOutput": {
        "description": "A `PARTNER` output schema for an order your company placed, with the order's own field names written out field by field. The metadata, timeline, audit fields, organization ids and the staff and refund notes are not shown.",
        "examples": [
          {
            "line_items": [
              {
                "line_item_created_at": "2026-04-01T12:05:00Z",
                "line_item_currency": "CAD",
                "line_item_delivery_status": "pending payment",
                "line_item_financial_status": "pending",
                "line_item_fulfilled_quantity": 0,
                "line_item_fulfillment_status": "pending payment",
                "line_item_hash": "c1b2a3d4e5f60718293a4b5c6d7e8f901234567890abcdef1234567890abcdef",
                "line_item_product": {
                  "product_id": "product-salmon-bowl",
                  "product_name": "Salmon Bowl",
                  "product_price": 1495
                },
                "line_item_quantity": 4,
                "line_item_refunded_quantity": 0,
                "line_item_updated_at": "2026-04-01T12:05:00Z"
              },
              {
                "line_item_created_at": "2026-04-01T12:05:00Z",
                "line_item_currency": "CAD",
                "line_item_delivery_status": "pending payment",
                "line_item_financial_status": "pending",
                "line_item_fulfilled_quantity": 0,
                "line_item_fulfillment_status": "pending payment",
                "line_item_hash": "9a8b7c6d5e4f30211203f4e5d6c7b8a99a8b7c6d5e4f30211203f4e5d6c7b8a9",
                "line_item_product": {
                  "product_id": "product-chicken-wrap",
                  "product_name": "Chicken Wrap",
                  "product_price": 1395
                },
                "line_item_quantity": 1,
                "line_item_refunded_quantity": 0,
                "line_item_updated_at": "2026-04-01T12:05:00Z"
              }
            ],
            "metadata": {
              "basket": "b-77"
            },
            "order_contact_email": "ada.lovelace@example.com",
            "order_contact_phone": "+14165550123",
            "order_created_at": "2026-04-01T12:05:00Z",
            "order_currency": "CAD",
            "order_customer_notes": "Leave with the doorman.",
            "order_cutoff_date": "2026-04-04T19:30:00Z",
            "order_delivery_date": "2026-04-07T04:00:00Z",
            "order_delivery_status": "pending payment",
            "order_discount_amount": 0,
            "order_financial_status": "pending",
            "order_fulfillment_status": "pending payment",
            "order_id": "ORD-ONE-OFF-4F7K2A9Q",
            "order_production_date": "2026-04-06T04:00:00Z",
            "order_service_charges": [],
            "order_shipping_address": {
              "city": "Toronto",
              "country": "CA",
              "line1": "100 King St W",
              "line2": "Apt 4B",
              "postal_code": "M5V 2T6",
              "state": "ON"
            },
            "order_shipping_cost": 499,
            "order_tax_amount": 0,
            "order_total_price__AFTER_TAX_DISCOUNT_AND_SHIPPING": 7874,
            "order_total_price__BEFORE_TAX_DISCOUNT_AND_SHIPPING": 7375,
            "order_vendor": {
              "is_archived": false,
              "livemode": true,
              "vendor_address": {
                "city": "Mississauga",
                "country": "CA",
                "line1": "1 Example Wharf",
                "line2": "Unit 4",
                "postal_code": "L5B 1M2",
                "state": "ON"
              },
              "vendor_customer_support_email": "help@harbour.example.com",
              "vendor_customer_support_phone": "+14165550123",
              "vendor_id": "vendor-harbour-kitchen",
              "vendor_logo_image": "https://cdn.example.com/harbour/logo.png",
              "vendor_name": "Harbour Kitchen",
              "vendor_short_description": "Fresh, chef-made meals for the week.",
              "vendor_timezone": "America/Toronto",
              "vendor_website_url": "https://harbour.example.com"
            },
            "reference": "web-order-1001",
            "stripe_payment_intent": {
              "stripe_payment_intent_client_secret": "pi_3QExample0001_secret_a1B2c3D4e5F6g7H8i9J0",
              "stripe_payment_intent_status": "requires_payment_method"
            },
            "stripe_publishable_key": "pk_test_51QExample0001abcdefghijklmnop",
            "user": "6f1c0d2e-0000-4000-8000-000000000101"
          }
        ],
        "properties": {
          "is_shipping_cost_waived": {
            "default": false,
            "description": "Whether the shipping cost is waived.",
            "title": "Is Shipping Cost Waived",
            "type": "boolean"
          },
          "line_items": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/OrderLineItemOutput"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The line items of the order. Only when you read one order; `null` in lists.",
            "title": "Line Items"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Your own key-value data, as you sent it.",
            "title": "Metadata",
            "type": "object"
          },
          "order_admin_waived_amount": {
            "default": 0,
            "description": "The amount an administrator waived, in cents.",
            "title": "Order Admin Waived Amount",
            "type": "integer"
          },
          "order_cancellation_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The notes about the cancellation of the order.",
            "title": "Order Cancellation Notes"
          },
          "order_completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the kitchen completed the order, in UTC.",
            "title": "Order Completed At"
          },
          "order_contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email address of the customer for this order.",
            "title": "Order Contact Email"
          },
          "order_contact_phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The phone number of the customer for this order.",
            "title": "Order Contact Phone"
          },
          "order_created_at": {
            "description": "When the order was placed, in UTC.",
            "format": "date-time",
            "title": "Order Created At",
            "type": "string"
          },
          "order_credits_claimed_amount": {
            "default": 0,
            "description": "The credits used, in cents.",
            "title": "Order Credits Claimed Amount",
            "type": "integer"
          },
          "order_currency": {
            "description": "The currency of every amount, for example `CAD`.",
            "title": "Order Currency",
            "type": "string"
          },
          "order_customer_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The notes for the kitchen.",
            "title": "Order Customer Notes"
          },
          "order_cutoff_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When ordering for the delivery date closes, in UTC.",
            "title": "Order Cutoff Date"
          },
          "order_delivery_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The delivery date, as midnight of the day in the vendor's timezone, in UTC.",
            "title": "Order Delivery Date"
          },
          "order_delivery_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The notes about the delivery of the order.",
            "title": "Order Delivery Notes"
          },
          "order_delivery_status": {
            "$ref": "#/components/schemas/OrderDeliveryStatusEnum",
            "description": "How far the delivery is: `draft`, `pending payment`, `not yet shipped`, `shipped`, `delivered`, `delivery failed`, `cancelled` or `do not process`.",
            "title": "Order Delivery Status"
          },
          "order_discount_amount": {
            "default": 0,
            "description": "The discount code amount in cents.",
            "title": "Order Discount Amount",
            "type": "integer"
          },
          "order_financial_status": {
            "$ref": "#/components/schemas/OrderFinancialStatusEnum",
            "description": "The payment status: `draft`, `pending`, `failed payment`, `paid`, `cancelled`, `partially refunded`, `refunded` or `chargeback`.",
            "title": "Order Financial Status"
          },
          "order_fulfillment_status": {
            "$ref": "#/components/schemas/OrderFulfillmentStatusEnum",
            "description": "How far the kitchen is: `draft`, `pending payment`, `not started`, `preparing meals`, `partially completed`, `completed`, `cancelled` or `do not process`.",
            "title": "Order Fulfillment Status"
          },
          "order_id": {
            "description": "The ID of the order.",
            "title": "Order Id",
            "type": "string"
          },
          "order_insurance_claim_amount": {
            "default": 0,
            "description": "The insurance claim amount in cents.",
            "title": "Order Insurance Claim Amount",
            "type": "integer"
          },
          "order_organization_discount_amount": {
            "default": 0,
            "description": "The organization discount in cents.",
            "title": "Order Organization Discount Amount",
            "type": "integer"
          },
          "order_paid": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount paid, in cents.",
            "title": "Order Paid"
          },
          "order_paid_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the order was paid, in UTC. `null` until then.",
            "title": "Order Paid At"
          },
          "order_paid_out_of_band": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount paid outside the system, in cents.",
            "title": "Order Paid Out Of Band"
          },
          "order_paid_through_organization": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount paid through an organization, in cents.",
            "title": "Order Paid Through Organization"
          },
          "order_paid_through_points": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount paid with loyalty points, in cents.",
            "title": "Order Paid Through Points"
          },
          "order_points_claimed_amount": {
            "default": 0,
            "description": "The loyalty points used, in cents.",
            "title": "Order Points Claimed Amount",
            "type": "integer"
          },
          "order_production_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the kitchen starts preparing the order, in UTC.",
            "title": "Order Production Date"
          },
          "order_refund_amount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount refunded, in cents.",
            "title": "Order Refund Amount"
          },
          "order_service_charges": {
            "description": "The service charges, added after tax. The total includes them.",
            "items": {
              "$ref": "#/components/schemas/OrderServiceChargeOutput"
            },
            "title": "Order Service Charges",
            "type": "array"
          },
          "order_shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderAddressOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the order is delivered.",
            "title": "Order Shipping Address"
          },
          "order_shipping_cost": {
            "default": 0,
            "description": "The shipping cost in cents.",
            "title": "Order Shipping Cost",
            "type": "integer"
          },
          "order_tax_amount": {
            "default": 0,
            "description": "The tax in cents.",
            "title": "Order Tax Amount",
            "type": "integer"
          },
          "order_total_price__AFTER_TAX_DISCOUNT_AND_SHIPPING": {
            "description": "What the customer pays, in cents.",
            "title": "Order Total Price After Tax Discount And Shipping",
            "type": "integer"
          },
          "order_total_price__BEFORE_TAX_DISCOUNT_AND_SHIPPING": {
            "description": "The value of the line items in cents.",
            "title": "Order Total Price Before Tax Discount And Shipping",
            "type": "integer"
          },
          "order_updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the order was last updated, in UTC.",
            "title": "Order Updated At"
          },
          "order_vendor": {
            "$ref": "#/components/schemas/OrderVendorOutput",
            "description": "The vendor that prepares the order.",
            "title": "Order Vendor"
          },
          "reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own reference for the order, if you sent one.",
            "title": "Reference"
          },
          "stripe_payment_intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderPaymentIntentOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The Stripe payment to confirm. Only while the payment is `pending`; `null` otherwise and in lists.",
            "title": "Stripe Payment Intent"
          },
          "stripe_publishable_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The Stripe publishable key to confirm the payment with, or `null` when none is configured.",
            "title": "Stripe Publishable Key"
          },
          "user": {
            "description": "The ID of the customer the order is for.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "user",
          "order_id",
          "order_vendor",
          "order_financial_status",
          "order_fulfillment_status",
          "order_delivery_status",
          "order_currency",
          "order_total_price__BEFORE_TAX_DISCOUNT_AND_SHIPPING",
          "order_total_price__AFTER_TAX_DISCOUNT_AND_SHIPPING",
          "order_created_at"
        ],
        "title": "OrderOutput",
        "type": "object"
      },
      "OrderPageOutput": {
        "description": "A `PARTNER` output schema for a page of orders. Line items and the payment intent are not included in a list.",
        "examples": [
          {
            "data": [
              {
                "metadata": {
                  "basket": "b-77"
                },
                "order_contact_email": "ada.lovelace@example.com",
                "order_contact_phone": "+14165550123",
                "order_created_at": "2026-04-01T12:05:00Z",
                "order_currency": "CAD",
                "order_customer_notes": "Leave with the doorman.",
                "order_cutoff_date": "2026-04-04T19:30:00Z",
                "order_delivery_date": "2026-04-07T04:00:00Z",
                "order_delivery_status": "pending payment",
                "order_discount_amount": 0,
                "order_financial_status": "pending",
                "order_fulfillment_status": "pending payment",
                "order_id": "ORD-ONE-OFF-4F7K2A9Q",
                "order_production_date": "2026-04-06T04:00:00Z",
                "order_service_charges": [],
                "order_shipping_address": {
                  "city": "Toronto",
                  "country": "CA",
                  "line1": "100 King St W",
                  "line2": "Apt 4B",
                  "postal_code": "M5V 2T6",
                  "state": "ON"
                },
                "order_shipping_cost": 499,
                "order_tax_amount": 0,
                "order_total_price__AFTER_TAX_DISCOUNT_AND_SHIPPING": 7874,
                "order_total_price__BEFORE_TAX_DISCOUNT_AND_SHIPPING": 7375,
                "order_vendor": {
                  "is_archived": false,
                  "livemode": true,
                  "vendor_address": {
                    "city": "Mississauga",
                    "country": "CA",
                    "line1": "1 Example Wharf",
                    "line2": "Unit 4",
                    "postal_code": "L5B 1M2",
                    "state": "ON"
                  },
                  "vendor_customer_support_email": "help@harbour.example.com",
                  "vendor_customer_support_phone": "+14165550123",
                  "vendor_id": "vendor-harbour-kitchen",
                  "vendor_logo_image": "https://cdn.example.com/harbour/logo.png",
                  "vendor_name": "Harbour Kitchen",
                  "vendor_short_description": "Fresh, chef-made meals for the week.",
                  "vendor_timezone": "America/Toronto",
                  "vendor_website_url": "https://harbour.example.com"
                },
                "reference": "web-order-1001",
                "stripe_publishable_key": "pk_test_51QExample0001abcdefghijklmnop",
                "user": "6f1c0d2e-0000-4000-8000-000000000101"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The orders of the page, newest first.",
            "items": {
              "$ref": "#/components/schemas/OrderOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "OrderPageOutput",
        "type": "object"
      },
      "OrderPaymentIntentOutput": {
        "description": "A `PARTNER` output schema for the Stripe payment a page confirms to pay an order.",
        "examples": [
          {
            "stripe_payment_intent_client_secret": "pi_3QExample0001_secret_a1B2c3D4e5F6g7H8i9J0",
            "stripe_payment_intent_status": "requires_payment_method"
          }
        ],
        "properties": {
          "stripe_payment_intent_client_secret": {
            "description": "The Stripe PaymentIntent client secret the page confirms the payment with.",
            "title": "Stripe Payment Intent Client Secret",
            "type": "string"
          },
          "stripe_payment_intent_status": {
            "description": "The status of the Stripe PaymentIntent, for example `requires_payment_method`.",
            "title": "Stripe Payment Intent Status",
            "type": "string"
          }
        },
        "required": [
          "stripe_payment_intent_client_secret",
          "stripe_payment_intent_status"
        ],
        "title": "OrderPaymentIntentOutput",
        "type": "object"
      },
      "OrderServiceChargeOutput": {
        "description": "A `PARTNER` output schema for one service charge on an order. It is added after tax: it is not taxed and no discount reduces it.",
        "examples": [
          {
            "service_charge__cents": 250,
            "service_charge__one_word_reason": "Packaging",
            "service_charge__reason": "Cold-chain packaging for a delivery on a hot day."
          }
        ],
        "properties": {
          "service_charge__cents": {
            "description": "The amount of the charge, in cents.",
            "title": "Service Charge Cents",
            "type": "integer"
          },
          "service_charge__one_word_reason": {
            "description": "The reason as one upper-case word.",
            "title": "Service Charge One Word Reason",
            "type": "string"
          },
          "service_charge__reason": {
            "description": "The reason for the charge, as a sentence.",
            "title": "Service Charge Reason",
            "type": "string"
          }
        },
        "required": [
          "service_charge__cents",
          "service_charge__reason",
          "service_charge__one_word_reason"
        ],
        "title": "OrderServiceChargeOutput",
        "type": "object"
      },
      "OrderShippingAddressInput": {
        "description": "A `PARTNER` input schema for the address an order is delivered to. It is a postal address with\nthe limits the order system holds an address to, so that a value it would refuse is refused here\nwith the name of the field.",
        "examples": [
          {
            "city": "Toronto",
            "country": "CA",
            "line1": "100 King St W",
            "line2": "Apt 4B",
            "postal_code": "M5V 2T6",
            "state": "ON"
          }
        ],
        "properties": {
          "city": {
            "description": "The city, up to 100 characters. `$`, `{` and `}` are not accepted.",
            "maxLength": 100,
            "minLength": 1,
            "pattern": "^[^${}]{1,100}$",
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "The two-letter country code, in capitals.",
            "pattern": "^[A-Z]{2}$",
            "title": "Country",
            "type": "string"
          },
          "line1": {
            "description": "The first line of the street address, up to 200 characters. `$`, `{` and `}` are not accepted.",
            "maxLength": 200,
            "minLength": 1,
            "pattern": "^[^${}]{1,200}$",
            "title": "Line 1",
            "type": "string"
          },
          "line2": {
            "anyOf": [
              {
                "maxLength": 200,
                "pattern": "^[^${}]{0,200}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The second line of the street address, up to 200 characters. `$`, `{` and `}` are not accepted.",
            "title": "Line 2"
          },
          "postal_code": {
            "description": "The postal code: letters, digits, spaces and hyphens, up to 20 characters.",
            "maxLength": 20,
            "minLength": 1,
            "pattern": "^[a-zA-Z0-9\\s-]{1,20}$",
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "The two-letter province code, in capitals.",
            "pattern": "^[A-Z]{2}$",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "line1",
          "city",
          "state",
          "postal_code",
          "country"
        ],
        "title": "OrderShippingAddressInput",
        "type": "object"
      },
      "OrderStageEnum": {
        "description": "An enum to store the values of the `status` filter of the order list. A stage is read from the\nmoments this service has recorded for the order, so an order is in exactly one of four stages.",
        "enum": [
          "pending",
          "paid",
          "fulfilled",
          "canceled"
        ],
        "title": "OrderStageEnum",
        "type": "string"
      },
      "OrderVendorOutput": {
        "description": "A `PARTNER` output schema for the vendor of an order, as it was when the order was placed. The vendor admin's own email and phone are not shown.",
        "examples": [
          {
            "is_archived": false,
            "livemode": true,
            "vendor_address": {
              "city": "Mississauga",
              "country": "CA",
              "line1": "1 Example Wharf",
              "line2": "Unit 4",
              "postal_code": "L5B 1M2",
              "state": "ON"
            },
            "vendor_customer_support_email": "help@harbour.example.com",
            "vendor_customer_support_phone": "+14165550123",
            "vendor_id": "vendor-harbour-kitchen",
            "vendor_logo_image": "https://cdn.example.com/harbour/logo.png",
            "vendor_name": "Harbour Kitchen",
            "vendor_short_description": "Fresh, chef-made meals for the week.",
            "vendor_timezone": "America/Toronto",
            "vendor_website_url": "https://harbour.example.com"
          }
        ],
        "properties": {
          "is_archived": {
            "default": false,
            "description": "Whether the vendor is archived.",
            "title": "Is Archived",
            "type": "boolean"
          },
          "livemode": {
            "default": false,
            "description": "Whether the vendor is live.",
            "title": "Livemode",
            "type": "boolean"
          },
          "vendor_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderAddressOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the vendor.",
            "title": "Vendor Address"
          },
          "vendor_customer_support_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email of the vendor customer support.",
            "title": "Vendor Customer Support Email"
          },
          "vendor_customer_support_phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The phone number of the vendor customer support.",
            "title": "Vendor Customer Support Phone"
          },
          "vendor_faq_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor FAQ.",
            "title": "Vendor Faq Url"
          },
          "vendor_id": {
            "description": "The ID of the vendor.",
            "title": "Vendor Id",
            "type": "string"
          },
          "vendor_images": {
            "description": "The URLs of the vendor images.",
            "items": {
              "type": "string"
            },
            "title": "Vendor Images",
            "type": "array"
          },
          "vendor_logo_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor logo image.",
            "title": "Vendor Logo Image"
          },
          "vendor_long_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The long description of the vendor.",
            "title": "Vendor Long Description"
          },
          "vendor_name": {
            "description": "The name of the vendor.",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_short_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The short description of the vendor.",
            "title": "Vendor Short Description"
          },
          "vendor_social_media_facebook": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor Facebook page.",
            "title": "Vendor Social Media Facebook"
          },
          "vendor_social_media_instagram": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor Instagram page.",
            "title": "Vendor Social Media Instagram"
          },
          "vendor_social_media_linkedin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor LinkedIn page.",
            "title": "Vendor Social Media Linkedin"
          },
          "vendor_social_media_twitter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor Twitter page.",
            "title": "Vendor Social Media Twitter"
          },
          "vendor_timezone": {
            "description": "The timezone of the vendor.",
            "title": "Vendor Timezone",
            "type": "string"
          },
          "vendor_website_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the vendor website.",
            "title": "Vendor Website Url"
          }
        },
        "required": [
          "vendor_id",
          "vendor_name",
          "vendor_timezone"
        ],
        "title": "OrderVendorOutput",
        "type": "object"
      },
      "PatientCreateInput": {
        "description": "A `PARTNER` input schema for creating a patient: a person your company will book care visits for once they approve a connection.",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/Address",
            "description": "The patient's home address. Required: a dietitian must be licensed in the patient's province, and a visit cannot be booked for a patient with no address. It is saved only on a new Nurish'd account; an existing account is never changed.",
            "title": "Address"
          },
          "date_of_birth": {
            "description": "The patient's date of birth, as `YYYY-MM-DD`. It must be in the past.",
            "format": "date",
            "title": "Date Of Birth",
            "type": "string"
          },
          "email": {
            "description": "The patient's email address. The approval page sends its code to the address on the patient's Nurish'd account.",
            "format": "email",
            "title": "Email",
            "type": "string"
          },
          "external_id": {
            "description": "Your own ID for the patient (your customer ID), 1 to 200 characters. Sending the same ID again returns the same patient and a fresh link.",
            "maxLength": 200,
            "minLength": 1,
            "title": "External ID",
            "type": "string"
          },
          "first_name": {
            "description": "The patient's first name.",
            "maxLength": 100,
            "minLength": 1,
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "description": "The patient's last name.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Last Name",
            "type": "string"
          },
          "return_url": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the patient goes after the approval page. It must be one of the return URLs registered for your company, otherwise the call answers `validation_error`. The URL carries `connection_id` and `status`, but never trust that status: trust the `connection.approved` event or read the connection.",
            "title": "Return URL"
          }
        },
        "required": [
          "external_id",
          "email",
          "first_name",
          "last_name",
          "date_of_birth",
          "address"
        ],
        "title": "PatientCreateInput",
        "type": "object"
      },
      "PatientOutput": {
        "description": "A `PARTNER` output schema for a patient and its connection with your company. It is a public shape written field by field. The answer never says whether the email already had a Nurish'd account, and never repeats the patient's name, email, date of birth or address.",
        "example": {
          "connect_url": "https://app.nurishd.ca/connect/abc123",
          "connect_url_expires_at": "2026-12-01T15:04:05Z",
          "connection": {
            "company_id": "company-0001",
            "connection_id": "connection-0001",
            "created_at": "2026-11-30T15:04:05Z",
            "external_id": "patient-1001",
            "scopes": [
              "care.bookings",
              "care.reports"
            ],
            "status": "pending",
            "user": "6f1c0d2e-0000-4000-8000-000000000101"
          },
          "user": "6f1c0d2e-0000-4000-8000-000000000101"
        },
        "properties": {
          "connect_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send the patient to this link as a full page or a new tab, never inside a frame or a web view. The patient confirms with a code sent to the email on their Nurish'd account, signs the health privacy agreement and the telehealth consent, and approves. It is valid for 24 hours and works once. Calling create again with the same `external_id` returns a fresh link. `null` when the patient is not asked to approve now, and always `null` when you read the patient.",
            "title": "Connect URL"
          },
          "connect_url_expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When `connect_url` stops working, in UTC. `null` whenever `connect_url` is `null`.",
            "title": "Connect URL Expires At"
          },
          "connection": {
            "$ref": "#/components/schemas/CareConnectionOutput",
            "description": "The connection with your company. Nothing can be booked for the patient until its status is `active`.",
            "title": "Connection"
          },
          "user": {
            "description": "The ID of the patient's Nurish'd user. Use it to read the patient and, later, to book visits for them. Your own ID for the patient is `connection.external_id`.",
            "format": "uuid",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "user",
          "connection"
        ],
        "title": "PatientOutput",
        "type": "object"
      },
      "PaymentMethodCard": {
        "description": "A `PARTNER` output schema for the card details of a saved card.",
        "examples": [
          {
            "brand": "visa",
            "exp_month": 12,
            "exp_year": 2030,
            "last4": "4242"
          }
        ],
        "properties": {
          "brand": {
            "description": "The card brand, for example `visa` or `mastercard`.",
            "title": "Brand",
            "type": "string"
          },
          "exp_month": {
            "description": "The month the card expires, 1 to 12.",
            "title": "Expiry Month",
            "type": "integer"
          },
          "exp_year": {
            "description": "The four-digit year the card expires.",
            "title": "Expiry Year",
            "type": "integer"
          },
          "last4": {
            "description": "The last four digits of the card.",
            "title": "Last Four",
            "type": "string"
          }
        },
        "required": [
          "brand",
          "exp_month",
          "exp_year",
          "last4"
        ],
        "title": "PaymentMethodCard",
        "type": "object"
      },
      "PaymentMethodOutput": {
        "description": "A `PARTNER` output schema for one card saved to a person's Nurish'd account.",
        "examples": [
          {
            "card": {
              "brand": "visa",
              "exp_month": 12,
              "exp_year": 2030,
              "last4": "4242"
            },
            "id": "pm_1Qexample0001",
            "is_default": true
          }
        ],
        "properties": {
          "card": {
            "$ref": "#/components/schemas/PaymentMethodCard",
            "description": "The card details: brand, expiry month and year, and the last four digits.",
            "title": "Card"
          },
          "id": {
            "description": "The ID of the card.",
            "title": "ID",
            "type": "string"
          },
          "is_default": {
            "description": "Whether this is the person's default card, the one later charges use.",
            "title": "Is Default",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "card",
          "is_default"
        ],
        "title": "PaymentMethodOutput",
        "type": "object"
      },
      "PaymentMethodPageOutput": {
        "description": "A `PARTNER` output schema for the cards saved to a person's Nurish'd account. It is always one page and holds at most 10 cards.",
        "examples": [
          {
            "data": [
              {
                "card": {
                  "brand": "visa",
                  "exp_month": 12,
                  "exp_year": 2030,
                  "last4": "4242"
                },
                "id": "pm_1Qexample0001",
                "is_default": true
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The saved cards. At most 10.",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "PaymentMethodPageOutput",
        "type": "object"
      },
      "PaymentMethodSetupOutput": {
        "description": "A `PARTNER` output schema for what your page needs to let a person type in a card.",
        "examples": [
          {
            "client_secret": "seti_1Qexample0001_secret_Zk8mN2pQ4rT6vX0y",
            "id": "seti_1Qexample0001",
            "status": "requires_payment_method",
            "stripe_publishable_key": "pk_test_51QExample0001abcdefghijklmnop"
          }
        ],
        "properties": {
          "client_secret": {
            "description": "The secret the card form confirms the card with. Give it to Stripe.js on your page, never to anything else, and never log it.",
            "title": "Client Secret",
            "type": "string"
          },
          "id": {
            "description": "The ID of the setup. Send it back to the confirm route once the card form has confirmed the card.",
            "title": "ID",
            "type": "string"
          },
          "status": {
            "description": "Where the setup is, for example `requires_payment_method` until a card is typed in.",
            "title": "Status",
            "type": "string"
          },
          "stripe_publishable_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The Stripe publishable key to load Stripe.js with, or `null` when none is configured.",
            "title": "Stripe Publishable Key"
          }
        },
        "required": [
          "id",
          "client_secret",
          "status"
        ],
        "title": "PaymentMethodSetupOutput",
        "type": "object"
      },
      "ProductBarcodeOutput": {
        "description": "A `PARTNER` output schema for the barcode of a product.",
        "examples": [
          {
            "barcode__EAN13": "4006381333931",
            "is_barcode_auto_generated": true,
            "is_barcode_gs1": false
          }
        ],
        "properties": {
          "barcode__EAN13": {
            "description": "The barcode of the product, as an EAN-13.",
            "title": "Barcode [EAN13]",
            "type": "string"
          },
          "is_barcode_auto_generated": {
            "description": "Whether the barcode was generated for the vendor rather than entered by them.",
            "title": "Is Barcode Auto Generated",
            "type": "boolean"
          },
          "is_barcode_gs1": {
            "description": "Whether the barcode follows the GS1 standard.",
            "title": "Is Barcode GS1",
            "type": "boolean"
          }
        },
        "required": [
          "barcode__EAN13",
          "is_barcode_gs1",
          "is_barcode_auto_generated"
        ],
        "title": "ProductBarcodeOutput",
        "type": "object"
      },
      "ProductCarbohydratesOutput": {
        "description": "A `PARTNER` output schema for the carbohydrates of a product.",
        "examples": [
          {
            "added_sugars__G": 4,
            "dietary_fiber__G": 5,
            "total_sugars__G": 9
          }
        ],
        "properties": {
          "added_sugars__G": {
            "description": "The added sugars of the product, in grams.",
            "title": "Added Sugars (g)",
            "type": "number"
          },
          "dietary_fiber__G": {
            "description": "The dietary fiber of the product, in grams.",
            "title": "Dietary Fiber (g)",
            "type": "number"
          },
          "total_sugars__G": {
            "description": "The total sugars of the product, in grams.",
            "title": "Total Sugars (g)",
            "type": "number"
          }
        },
        "required": [
          "dietary_fiber__G",
          "total_sugars__G",
          "added_sugars__G"
        ],
        "title": "ProductCarbohydratesOutput",
        "type": "object"
      },
      "ProductCholesterolOutput": {
        "description": "A `PARTNER` output schema for the cholesterol of a product.",
        "examples": [
          {
            "cholesterol__MG": 85
          }
        ],
        "properties": {
          "cholesterol__MG": {
            "description": "The cholesterol of the product, in milligrams.",
            "title": "Cholesterol (mg)",
            "type": "number"
          }
        },
        "required": [
          "cholesterol__MG"
        ],
        "title": "ProductCholesterolOutput",
        "type": "object"
      },
      "ProductCollectionEnum": {
        "description": "An enum to store the collections a product can belong to, with the values the product itself\nuses, and the values of the `collection` filter.",
        "enum": [
          "Breakfast",
          "Lunch",
          "Dinner",
          "Drink",
          "Snack",
          "Supplement",
          "Sauce"
        ],
        "title": "ProductCollectionEnum",
        "type": "string"
      },
      "ProductFatsOutput": {
        "description": "A `PARTNER` output schema for the fats of a product.",
        "examples": [
          {
            "monounsaturated_fat__G": 8.1,
            "omega_3_fatty_acids__G": 2.1,
            "omega_6_fatty_acids__G": 1.6,
            "polyunsaturated_fat__G": 4.2,
            "saturated_fat__G": 3.5,
            "trans_fat__G": 0
          }
        ],
        "properties": {
          "monounsaturated_fat__G": {
            "description": "The monounsaturated fat of the product, in grams.",
            "title": "Monounsaturated Fat (g)",
            "type": "number"
          },
          "omega_3_fatty_acids__G": {
            "description": "The omega-3 fatty acids of the product, in grams.",
            "title": "Omega-3 Fatty Acids (g)",
            "type": "number"
          },
          "omega_6_fatty_acids__G": {
            "description": "The omega-6 fatty acids of the product, in grams.",
            "title": "Omega-6 Fatty Acids (g)",
            "type": "number"
          },
          "polyunsaturated_fat__G": {
            "description": "The polyunsaturated fat of the product, in grams.",
            "title": "Polyunsaturated Fat (g)",
            "type": "number"
          },
          "saturated_fat__G": {
            "description": "The saturated fat of the product, in grams.",
            "title": "Saturated Fat (g)",
            "type": "number"
          },
          "trans_fat__G": {
            "description": "The trans fat of the product, in grams.",
            "title": "Trans Fat (g)",
            "type": "number"
          }
        },
        "required": [
          "saturated_fat__G",
          "trans_fat__G",
          "polyunsaturated_fat__G",
          "monounsaturated_fat__G",
          "omega_3_fatty_acids__G",
          "omega_6_fatty_acids__G"
        ],
        "title": "ProductFatsOutput",
        "type": "object"
      },
      "ProductLabelTypeEnum": {
        "description": "An enum to store the nutrition label standards of a product, with the values the product itself\nuses.",
        "enum": [
          "Canada Food Label Standard",
          "US Food Label Standard"
        ],
        "title": "ProductLabelTypeEnum",
        "type": "string"
      },
      "ProductMacrosOutput": {
        "description": "A `PARTNER` output schema for the macro nutrients of a product.",
        "examples": [
          {
            "total_calories__KCAL": 520,
            "total_carbohydrate__G": 52,
            "total_fat__G": 18,
            "total_protein__G": 38
          }
        ],
        "properties": {
          "total_calories__KCAL": {
            "description": "The total calories of the product, in kcal.",
            "title": "Total Calories (kcal)",
            "type": "number"
          },
          "total_carbohydrate__G": {
            "description": "The total carbohydrate of the product, in grams.",
            "title": "Total Carbohydrate (g)",
            "type": "number"
          },
          "total_fat__G": {
            "description": "The total fat of the product, in grams.",
            "title": "Total Fat (g)",
            "type": "number"
          },
          "total_protein__G": {
            "description": "The total protein of the product, in grams.",
            "title": "Total Protein (g)",
            "type": "number"
          }
        },
        "required": [
          "total_calories__KCAL",
          "total_fat__G",
          "total_carbohydrate__G",
          "total_protein__G"
        ],
        "title": "ProductMacrosOutput",
        "type": "object"
      },
      "ProductMineralsOutput": {
        "description": "A `PARTNER` output schema for the minerals of a product.",
        "examples": [
          {
            "calcium__MG": 70,
            "chromium__MCG": 12,
            "copper__MG": 0.4,
            "iodine__MCG": 30,
            "iron__MG": 2.4,
            "magnesium__MG": 95,
            "manganese__MG": 1.5,
            "molybdenum__MCG": 60,
            "phosphorus__MG": 410,
            "potassium__MG": 820,
            "selenium__MCG": 48,
            "zinc__MG": 1.8
          }
        ],
        "properties": {
          "calcium__MG": {
            "description": "The calcium of the product, in milligrams.",
            "title": "Calcium (mg)",
            "type": "number"
          },
          "chromium__MCG": {
            "description": "The chromium of the product, in micrograms.",
            "title": "Chromium (mcg)",
            "type": "number"
          },
          "copper__MG": {
            "description": "The copper of the product, in milligrams.",
            "title": "Copper (mg)",
            "type": "number"
          },
          "iodine__MCG": {
            "description": "The iodine of the product, in micrograms.",
            "title": "Iodine (mcg)",
            "type": "number"
          },
          "iron__MG": {
            "description": "The iron of the product, in milligrams.",
            "title": "Iron (mg)",
            "type": "number"
          },
          "magnesium__MG": {
            "description": "The magnesium of the product, in milligrams.",
            "title": "Magnesium (mg)",
            "type": "number"
          },
          "manganese__MG": {
            "description": "The manganese of the product, in milligrams.",
            "title": "Manganese (mg)",
            "type": "number"
          },
          "molybdenum__MCG": {
            "description": "The molybdenum of the product, in micrograms.",
            "title": "Molybdenum (mcg)",
            "type": "number"
          },
          "phosphorus__MG": {
            "description": "The phosphorus of the product, in milligrams.",
            "title": "Phosphorus (mg)",
            "type": "number"
          },
          "potassium__MG": {
            "description": "The potassium of the product, in milligrams.",
            "title": "Potassium (mg)",
            "type": "number"
          },
          "selenium__MCG": {
            "description": "The selenium of the product, in micrograms.",
            "title": "Selenium (mcg)",
            "type": "number"
          },
          "zinc__MG": {
            "description": "The zinc of the product, in milligrams.",
            "title": "Zinc (mg)",
            "type": "number"
          }
        },
        "required": [
          "potassium__MG",
          "calcium__MG",
          "iron__MG",
          "magnesium__MG",
          "phosphorus__MG",
          "zinc__MG",
          "copper__MG",
          "manganese__MG",
          "selenium__MCG",
          "chromium__MCG",
          "molybdenum__MCG",
          "iodine__MCG"
        ],
        "title": "ProductMineralsOutput",
        "type": "object"
      },
      "ProductNutritionFactsOutput": {
        "description": "A `PARTNER` output schema for the nutrition facts of a product, in eight groups.Every group is always complete.",
        "examples": [
          {
            "carbohydrates": {
              "added_sugars__G": 4,
              "dietary_fiber__G": 5,
              "total_sugars__G": 9
            },
            "cholesterol": {
              "cholesterol__MG": 85
            },
            "fats": {
              "monounsaturated_fat__G": 8.1,
              "omega_3_fatty_acids__G": 2.1,
              "omega_6_fatty_acids__G": 1.6,
              "polyunsaturated_fat__G": 4.2,
              "saturated_fat__G": 3.5,
              "trans_fat__G": 0
            },
            "macros": {
              "total_calories__KCAL": 520,
              "total_carbohydrate__G": 52,
              "total_fat__G": 18,
              "total_protein__G": 38
            },
            "minerals": {
              "calcium__MG": 70,
              "chromium__MCG": 12,
              "copper__MG": 0.4,
              "iodine__MCG": 30,
              "iron__MG": 2.4,
              "magnesium__MG": 95,
              "manganese__MG": 1.5,
              "molybdenum__MCG": 60,
              "phosphorus__MG": 410,
              "potassium__MG": 820,
              "selenium__MCG": 48,
              "zinc__MG": 1.8
            },
            "other_nutrients": {
              "alcohol__PERCENT": 0,
              "caffeine__MG": 0,
              "water_content__G": 210
            },
            "sodium": {
              "sodium__MG": 640
            },
            "vitamins": {
              "biotin__MCG": 9,
              "choline__MCG": 160000,
              "folate__MCG": 140,
              "niacin__MCG": 12000,
              "pantothenic_acid__MCG": 1800,
              "riboflavin__MCG": 380,
              "thiamin__MCG": 450,
              "vitamin_a__MCG": 120,
              "vitamin_b12__MCG": 4.2,
              "vitamin_b6__MCG": 900,
              "vitamin_c__MCG": 38000,
              "vitamin_d__MCG": 11,
              "vitamin_e__MCG": 2600,
              "vitamin_k__MCG": 85
            }
          }
        ],
        "properties": {
          "carbohydrates": {
            "$ref": "#/components/schemas/ProductCarbohydratesOutput",
            "description": "The carbohydrates: fiber and sugars.",
            "title": "Carbohydrates"
          },
          "cholesterol": {
            "$ref": "#/components/schemas/ProductCholesterolOutput",
            "description": "The cholesterol.",
            "title": "Cholesterol"
          },
          "fats": {
            "$ref": "#/components/schemas/ProductFatsOutput",
            "description": "The fats.",
            "title": "Fats"
          },
          "macros": {
            "$ref": "#/components/schemas/ProductMacrosOutput",
            "description": "The macro nutrients: calories, fat, carbohydrate and protein.",
            "title": "Macros"
          },
          "minerals": {
            "$ref": "#/components/schemas/ProductMineralsOutput",
            "description": "The minerals.",
            "title": "Minerals"
          },
          "other_nutrients": {
            "$ref": "#/components/schemas/ProductOtherNutrientsOutput",
            "description": "Water, caffeine and alcohol.",
            "title": "Other Nutrients"
          },
          "sodium": {
            "$ref": "#/components/schemas/ProductSodiumOutput",
            "description": "The sodium.",
            "title": "Sodium"
          },
          "vitamins": {
            "$ref": "#/components/schemas/ProductVitaminsOutput",
            "description": "The vitamins.",
            "title": "Vitamins"
          }
        },
        "required": [
          "macros",
          "fats",
          "cholesterol",
          "sodium",
          "carbohydrates",
          "minerals",
          "vitamins",
          "other_nutrients"
        ],
        "title": "ProductNutritionFactsOutput",
        "type": "object"
      },
      "ProductNutritionOutput": {
        "description": "A `PARTNER` output schema for the nutrition of a product.",
        "examples": [
          {
            "label_ingredient_listing": "Salmon, brown rice, broccoli, teriyaki sauce.",
            "nutrition": {
              "carbohydrates": {
                "added_sugars__G": 4,
                "dietary_fiber__G": 5,
                "total_sugars__G": 9
              },
              "cholesterol": {
                "cholesterol__MG": 85
              },
              "fats": {
                "monounsaturated_fat__G": 8.1,
                "omega_3_fatty_acids__G": 2.1,
                "omega_6_fatty_acids__G": 1.6,
                "polyunsaturated_fat__G": 4.2,
                "saturated_fat__G": 3.5,
                "trans_fat__G": 0
              },
              "macros": {
                "total_calories__KCAL": 520,
                "total_carbohydrate__G": 52,
                "total_fat__G": 18,
                "total_protein__G": 38
              },
              "minerals": {
                "calcium__MG": 70,
                "chromium__MCG": 12,
                "copper__MG": 0.4,
                "iodine__MCG": 30,
                "iron__MG": 2.4,
                "magnesium__MG": 95,
                "manganese__MG": 1.5,
                "molybdenum__MCG": 60,
                "phosphorus__MG": 410,
                "potassium__MG": 820,
                "selenium__MCG": 48,
                "zinc__MG": 1.8
              },
              "other_nutrients": {
                "alcohol__PERCENT": 0,
                "caffeine__MG": 0,
                "water_content__G": 210
              },
              "sodium": {
                "sodium__MG": 640
              },
              "vitamins": {
                "biotin__MCG": 9,
                "choline__MCG": 160000,
                "folate__MCG": 140,
                "niacin__MCG": 12000,
                "pantothenic_acid__MCG": 1800,
                "riboflavin__MCG": 380,
                "thiamin__MCG": 450,
                "vitamin_a__MCG": 120,
                "vitamin_b12__MCG": 4.2,
                "vitamin_b6__MCG": 900,
                "vitamin_c__MCG": 38000,
                "vitamin_d__MCG": 11,
                "vitamin_e__MCG": 2600,
                "vitamin_k__MCG": 85
              }
            },
            "per_serving_size": {
              "quantity": 420,
              "unit": "g"
            },
            "total_servings": 2,
            "total_weight": {
              "quantity": 840,
              "unit": "g"
            }
          }
        ],
        "properties": {
          "label_ingredient_listing": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ingredients, as printed on the label. `null` when the vendor has not entered them.",
            "title": "Label Ingredient Listing"
          },
          "nutrition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductNutritionFactsOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The nutrition facts. `null` when the vendor has not entered them.",
            "title": "Nutrition"
          },
          "per_serving_size": {
            "$ref": "#/components/schemas/ProductQuantityOutput",
            "description": "The size of one serving.",
            "title": "Per Serving Size"
          },
          "total_servings": {
            "description": "The number of servings in the product.",
            "title": "Total Servings",
            "type": "integer"
          },
          "total_weight": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductQuantityOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The weight of the whole product. `null` when the vendor has not entered it.",
            "title": "Total Weight"
          }
        },
        "required": [
          "per_serving_size",
          "total_servings"
        ],
        "title": "ProductNutritionOutput",
        "type": "object"
      },
      "ProductOtherNutrientsOutput": {
        "description": "A `PARTNER` output schema for the other nutrients (water, caffeine and alcohol) of a product.",
        "examples": [
          {
            "alcohol__PERCENT": 0,
            "caffeine__MG": 0,
            "water_content__G": 210
          }
        ],
        "properties": {
          "alcohol__PERCENT": {
            "description": "The alcohol content of the product, in percent alcohol by volume.",
            "title": "Alcohol Content (%)",
            "type": "number"
          },
          "caffeine__MG": {
            "description": "The caffeine of the product, in milligrams.",
            "title": "Caffeine (mg)",
            "type": "number"
          },
          "water_content__G": {
            "description": "The water content of the product, in grams (1 g of water is 1 ml).",
            "title": "Water Content (g)",
            "type": "number"
          }
        },
        "required": [
          "water_content__G",
          "caffeine__MG",
          "alcohol__PERCENT"
        ],
        "title": "ProductOtherNutrientsOutput",
        "type": "object"
      },
      "ProductOutput": {
        "description": "A `PARTNER` output schema for a product. It has the field names, the nesting and the values of the product itself, so the type is `Meal`, `Bulk` or `Misc`. The list answer leaves out the description, the features and the creation and update times; they read as `null` (the features as an empty list) there, and are filled in when you read one product. Left out on purpose: the recipe, the stock levels, the variants and options, the tag weightages, the build-your-own combinations, the live and archived flags and the internal nutrition flags.",
        "examples": [
          {
            "created_at": "2025-11-03T15:04:05Z",
            "product_barcode": {
              "barcode__EAN13": "4006381333931",
              "is_barcode_auto_generated": true,
              "is_barcode_gs1": false
            },
            "product_client_side_instruction_url": "https://docs.example.com/heating-instructions.md",
            "product_contains": "Contains fish and soy.",
            "product_description": "Glazed salmon on brown rice with greens.",
            "product_features": [
              "High protein",
              "Gluten free"
            ],
            "product_id": "product-salmon-bowl",
            "product_images": [
              "https://cdn.example.com/products/salmon-1.jpg"
            ],
            "product_label_type": "Canada Food Label Standard",
            "product_logo_image": "https://cdn.example.com/products/salmon-logo.png",
            "product_meal_collections": [
              "Lunch",
              "Dinner"
            ],
            "product_name": "Salmon Bowl",
            "product_nutrition": {
              "label_ingredient_listing": "Salmon, brown rice, broccoli, teriyaki sauce.",
              "nutrition": {
                "carbohydrates": {
                  "added_sugars__G": 4,
                  "dietary_fiber__G": 5,
                  "total_sugars__G": 9
                },
                "cholesterol": {
                  "cholesterol__MG": 85
                },
                "fats": {
                  "monounsaturated_fat__G": 8.1,
                  "omega_3_fatty_acids__G": 2.1,
                  "omega_6_fatty_acids__G": 1.6,
                  "polyunsaturated_fat__G": 4.2,
                  "saturated_fat__G": 3.5,
                  "trans_fat__G": 0
                },
                "macros": {
                  "total_calories__KCAL": 520,
                  "total_carbohydrate__G": 52,
                  "total_fat__G": 18,
                  "total_protein__G": 38
                },
                "minerals": {
                  "calcium__MG": 70,
                  "chromium__MCG": 12,
                  "copper__MG": 0.4,
                  "iodine__MCG": 30,
                  "iron__MG": 2.4,
                  "magnesium__MG": 95,
                  "manganese__MG": 1.5,
                  "molybdenum__MCG": 60,
                  "phosphorus__MG": 410,
                  "potassium__MG": 820,
                  "selenium__MCG": 48,
                  "zinc__MG": 1.8
                },
                "other_nutrients": {
                  "alcohol__PERCENT": 0,
                  "caffeine__MG": 0,
                  "water_content__G": 210
                },
                "sodium": {
                  "sodium__MG": 640
                },
                "vitamins": {
                  "biotin__MCG": 9,
                  "choline__MCG": 160000,
                  "folate__MCG": 140,
                  "niacin__MCG": 12000,
                  "pantothenic_acid__MCG": 1800,
                  "riboflavin__MCG": 380,
                  "thiamin__MCG": 450,
                  "vitamin_a__MCG": 120,
                  "vitamin_b12__MCG": 4.2,
                  "vitamin_b6__MCG": 900,
                  "vitamin_c__MCG": 38000,
                  "vitamin_d__MCG": 11,
                  "vitamin_e__MCG": 2600,
                  "vitamin_k__MCG": 85
                }
              },
              "per_serving_size": {
                "quantity": 420,
                "unit": "g"
              },
              "total_servings": 2,
              "total_weight": {
                "quantity": 840,
                "unit": "g"
              }
            },
            "product_price": 1495,
            "product_sku": "HK-SALMON-001",
            "product_title": "Teriyaki Salmon Rice Bowl",
            "product_type": "Meal",
            "product_unit_label": "Bowl",
            "product_use_by": 5,
            "tags": [
              "tag-high-protein",
              "tag-gluten-free"
            ],
            "updated_at": "2026-02-14T09:30:00Z",
            "vendor": "vendor-harbour-kitchen"
          }
        ],
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the product was created. Only when you read one product.",
            "title": "Created At"
          },
          "product_barcode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductBarcodeOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The barcode of the product.",
            "title": "Product Barcode"
          },
          "product_client_side_instruction_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the instructions for the product, for example how to heat it.",
            "title": "Product Client Side Instruction Url"
          },
          "product_contains": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The allergen statement of the product.",
            "title": "Product Contains"
          },
          "product_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A description of the product. Only when you read one product.",
            "title": "Product Description"
          },
          "product_features": {
            "description": "The selling points of the product. Only when you read one product.",
            "items": {
              "type": "string"
            },
            "title": "Product Features",
            "type": "array"
          },
          "product_id": {
            "description": "The ID of the product.",
            "title": "Product Id",
            "type": "string"
          },
          "product_images": {
            "description": "The URLs of the product images.",
            "items": {
              "type": "string"
            },
            "title": "Product Images",
            "type": "array"
          },
          "product_label_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductLabelTypeEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "The nutrition label standard of the product: `Canada Food Label Standard` or `US Food Label Standard`.",
            "title": "Product Label Type"
          },
          "product_logo_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of a small product image.",
            "title": "Product Logo Image"
          },
          "product_meal_collections": {
            "description": "The collections the product belongs to, for example `Breakfast` or `Snack`.",
            "items": {
              "$ref": "#/components/schemas/ProductCollectionEnum"
            },
            "title": "Product Meal Collections",
            "type": "array"
          },
          "product_name": {
            "description": "The name of the product.",
            "title": "Product Name",
            "type": "string"
          },
          "product_nutrition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductNutritionOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The nutrition of the product, `null` when the vendor has none.",
            "title": "Product Nutrition"
          },
          "product_price": {
            "description": "The price of one unit, an integer number of cents. A product has no currency of its own: the currency is the `zone_currency` of the delivery zone you order in.",
            "title": "Product Price",
            "type": "integer"
          },
          "product_sku": {
            "description": "The stock keeping unit of the product.",
            "title": "Product Sku",
            "type": "string"
          },
          "product_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The title of the product, as it appears on receipts.",
            "title": "Product Title"
          },
          "product_type": {
            "$ref": "#/components/schemas/ProductTypeEnum",
            "description": "The type of the product: `Meal`, `Bulk` or `Misc`.",
            "title": "Product Type"
          },
          "product_unit_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What one unit is called, for example `Box`.",
            "title": "Product Unit Label"
          },
          "product_use_by": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number of days the product keeps.",
            "title": "Product Use By"
          },
          "tags": {
            "description": "The tags of the product, as IDs.",
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the product was last updated. Only when you read one product.",
            "title": "Updated At"
          },
          "vendor": {
            "description": "The ID of the vendor that makes the product.",
            "title": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "vendor",
          "product_id",
          "product_name",
          "product_price",
          "product_type",
          "product_sku"
        ],
        "title": "ProductOutput",
        "type": "object"
      },
      "ProductPageOutput": {
        "description": "A `PARTNER` output schema for a page of products.",
        "examples": [
          {
            "data": [
              {
                "product_barcode": {
                  "barcode__EAN13": "4006381333931",
                  "is_barcode_auto_generated": true,
                  "is_barcode_gs1": false
                },
                "product_client_side_instruction_url": "https://docs.example.com/heating-instructions.md",
                "product_contains": "Contains fish and soy.",
                "product_features": [],
                "product_id": "product-salmon-bowl",
                "product_images": [
                  "https://cdn.example.com/products/salmon-1.jpg"
                ],
                "product_label_type": "Canada Food Label Standard",
                "product_logo_image": "https://cdn.example.com/products/salmon-logo.png",
                "product_meal_collections": [
                  "Lunch",
                  "Dinner"
                ],
                "product_name": "Salmon Bowl",
                "product_nutrition": {
                  "label_ingredient_listing": "Salmon, brown rice, broccoli, teriyaki sauce.",
                  "nutrition": {
                    "carbohydrates": {
                      "added_sugars__G": 4,
                      "dietary_fiber__G": 5,
                      "total_sugars__G": 9
                    },
                    "cholesterol": {
                      "cholesterol__MG": 85
                    },
                    "fats": {
                      "monounsaturated_fat__G": 8.1,
                      "omega_3_fatty_acids__G": 2.1,
                      "omega_6_fatty_acids__G": 1.6,
                      "polyunsaturated_fat__G": 4.2,
                      "saturated_fat__G": 3.5,
                      "trans_fat__G": 0
                    },
                    "macros": {
                      "total_calories__KCAL": 520,
                      "total_carbohydrate__G": 52,
                      "total_fat__G": 18,
                      "total_protein__G": 38
                    },
                    "minerals": {
                      "calcium__MG": 70,
                      "chromium__MCG": 12,
                      "copper__MG": 0.4,
                      "iodine__MCG": 30,
                      "iron__MG": 2.4,
                      "magnesium__MG": 95,
                      "manganese__MG": 1.5,
                      "molybdenum__MCG": 60,
                      "phosphorus__MG": 410,
                      "potassium__MG": 820,
                      "selenium__MCG": 48,
                      "zinc__MG": 1.8
                    },
                    "other_nutrients": {
                      "alcohol__PERCENT": 0,
                      "caffeine__MG": 0,
                      "water_content__G": 210
                    },
                    "sodium": {
                      "sodium__MG": 640
                    },
                    "vitamins": {
                      "biotin__MCG": 9,
                      "choline__MCG": 160000,
                      "folate__MCG": 140,
                      "niacin__MCG": 12000,
                      "pantothenic_acid__MCG": 1800,
                      "riboflavin__MCG": 380,
                      "thiamin__MCG": 450,
                      "vitamin_a__MCG": 120,
                      "vitamin_b12__MCG": 4.2,
                      "vitamin_b6__MCG": 900,
                      "vitamin_c__MCG": 38000,
                      "vitamin_d__MCG": 11,
                      "vitamin_e__MCG": 2600,
                      "vitamin_k__MCG": 85
                    }
                  },
                  "per_serving_size": {
                    "quantity": 420,
                    "unit": "g"
                  },
                  "total_servings": 2,
                  "total_weight": {
                    "quantity": 840,
                    "unit": "g"
                  }
                },
                "product_price": 1495,
                "product_sku": "HK-SALMON-001",
                "product_title": "Teriyaki Salmon Rice Bowl",
                "product_type": "Meal",
                "product_unit_label": "Bowl",
                "product_use_by": 5,
                "tags": [
                  "tag-high-protein",
                  "tag-gluten-free"
                ],
                "vendor": "vendor-harbour-kitchen"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The products of the page.",
            "items": {
              "$ref": "#/components/schemas/ProductOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "ProductPageOutput",
        "type": "object"
      },
      "ProductQuantityOutput": {
        "description": "A `PARTNER` output schema for an amount with its unit.",
        "examples": [
          {
            "quantity": 420,
            "unit": "g"
          }
        ],
        "properties": {
          "quantity": {
            "description": "The amount.",
            "title": "Quantity",
            "type": "number"
          },
          "unit": {
            "description": "The unit of the amount, for example `g`.",
            "title": "Unit",
            "type": "string"
          }
        },
        "required": [
          "quantity",
          "unit"
        ],
        "title": "ProductQuantityOutput",
        "type": "object"
      },
      "ProductSodiumOutput": {
        "description": "A `PARTNER` output schema for the sodium of a product.",
        "examples": [
          {
            "sodium__MG": 640
          }
        ],
        "properties": {
          "sodium__MG": {
            "description": "The sodium of the product, in milligrams.",
            "title": "Sodium (mg)",
            "type": "number"
          }
        },
        "required": [
          "sodium__MG"
        ],
        "title": "ProductSodiumOutput",
        "type": "object"
      },
      "ProductTypeEnum": {
        "description": "An enum to store the product types a partner can see and filter by, with the values the product\nitself uses. Only products a partner can order as they are are listed here; `Build Your Own`,\n`Points`, `Placeholders` and `Out of Loop` are never shown.",
        "enum": [
          "Meal",
          "Bulk",
          "Misc"
        ],
        "title": "ProductTypeEnum",
        "type": "string"
      },
      "ProductVitaminsOutput": {
        "description": "A `PARTNER` output schema for the vitamins of a product.",
        "examples": [
          {
            "biotin__MCG": 9,
            "choline__MCG": 160000,
            "folate__MCG": 140,
            "niacin__MCG": 12000,
            "pantothenic_acid__MCG": 1800,
            "riboflavin__MCG": 380,
            "thiamin__MCG": 450,
            "vitamin_a__MCG": 120,
            "vitamin_b12__MCG": 4.2,
            "vitamin_b6__MCG": 900,
            "vitamin_c__MCG": 38000,
            "vitamin_d__MCG": 11,
            "vitamin_e__MCG": 2600,
            "vitamin_k__MCG": 85
          }
        ],
        "properties": {
          "biotin__MCG": {
            "description": "The biotin of the product, in micrograms.",
            "title": "Biotin (mcg)",
            "type": "number"
          },
          "choline__MCG": {
            "description": "The choline of the product, in micrograms.",
            "title": "Choline (mcg)",
            "type": "number"
          },
          "folate__MCG": {
            "description": "The folate of the product, in micrograms.",
            "title": "Folate (mcg)",
            "type": "number"
          },
          "niacin__MCG": {
            "description": "The niacin of the product, in micrograms.",
            "title": "Niacin (mcg)",
            "type": "number"
          },
          "pantothenic_acid__MCG": {
            "description": "The pantothenic acid of the product, in micrograms.",
            "title": "Pantothenic Acid (mcg)",
            "type": "number"
          },
          "riboflavin__MCG": {
            "description": "The riboflavin of the product, in micrograms.",
            "title": "Riboflavin (mcg)",
            "type": "number"
          },
          "thiamin__MCG": {
            "description": "The thiamin of the product, in micrograms.",
            "title": "Thiamin (mcg)",
            "type": "number"
          },
          "vitamin_a__MCG": {
            "description": "The vitamin A of the product, in micrograms.",
            "title": "Vitamin A (mcg)",
            "type": "number"
          },
          "vitamin_b12__MCG": {
            "description": "The vitamin B12 of the product, in micrograms.",
            "title": "Vitamin B12 (mcg)",
            "type": "number"
          },
          "vitamin_b6__MCG": {
            "description": "The vitamin B6 of the product, in micrograms.",
            "title": "Vitamin B6 (mcg)",
            "type": "number"
          },
          "vitamin_c__MCG": {
            "description": "The vitamin C of the product, in micrograms.",
            "title": "Vitamin C (mcg)",
            "type": "number"
          },
          "vitamin_d__MCG": {
            "description": "The vitamin D of the product, in micrograms.",
            "title": "Vitamin D (mcg)",
            "type": "number"
          },
          "vitamin_e__MCG": {
            "description": "The vitamin E of the product, in micrograms.",
            "title": "Vitamin E (mcg)",
            "type": "number"
          },
          "vitamin_k__MCG": {
            "description": "The vitamin K of the product, in micrograms.",
            "title": "Vitamin K (mcg)",
            "type": "number"
          }
        },
        "required": [
          "vitamin_a__MCG",
          "vitamin_b6__MCG",
          "vitamin_b12__MCG",
          "vitamin_c__MCG",
          "vitamin_d__MCG",
          "vitamin_e__MCG",
          "vitamin_k__MCG",
          "thiamin__MCG",
          "riboflavin__MCG",
          "niacin__MCG",
          "folate__MCG",
          "pantothenic_acid__MCG",
          "biotin__MCG",
          "choline__MCG"
        ],
        "title": "ProductVitaminsOutput",
        "type": "object"
      },
      "ReportFileOutput": {
        "description": "A `PARTNER` output schema for the file of a report section: a link that works for a short time only. Fetch the file at once; do not store the link.",
        "properties": {
          "url": {
            "description": "The time-limited link to the file. It stops working after a short time: ask for a new one when you need the file again.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "ReportFileOutput",
        "type": "object"
      },
      "ReportListItem": {
        "description": "A `PARTNER` output schema for one report in a list: the ids and the time it was signed. Read one report to get its sections.",
        "properties": {
          "booking_id": {
            "description": "The ID of the booking the report documents.",
            "title": "Booking ID",
            "type": "string"
          },
          "report_id": {
            "description": "The ID of the report.",
            "title": "Report ID",
            "type": "string"
          },
          "signed_at": {
            "description": "When the report was signed, in UTC.",
            "format": "date-time",
            "title": "Signed At",
            "type": "string"
          },
          "specialist": {
            "description": "The ID of the specialist who wrote the report.",
            "title": "Specialist",
            "type": "string"
          },
          "user": {
            "description": "The ID of the patient.",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "report_id",
          "booking_id",
          "user",
          "specialist",
          "signed_at"
        ],
        "title": "ReportListItem",
        "type": "object"
      },
      "ReportOutput": {
        "description": "A `PARTNER` output schema for a signed visit report, as the patient sees it: only the sections the specialist shared with the patient. It never holds the patient's own details, the specialist's signature or private notes.",
        "properties": {
          "booking_id": {
            "description": "The ID of the booking the report documents.",
            "title": "Booking ID",
            "type": "string"
          },
          "created_at": {
            "description": "When the report was created, in UTC.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "report_id": {
            "description": "The ID of the report.",
            "title": "Report ID",
            "type": "string"
          },
          "sections": {
            "description": "The shared sections, lowest order first.",
            "items": {
              "$ref": "#/components/schemas/ReportSectionOutput"
            },
            "title": "Sections",
            "type": "array"
          },
          "signed_at": {
            "description": "When the report was signed, in UTC.",
            "format": "date-time",
            "title": "Signed At",
            "type": "string"
          },
          "specialist": {
            "description": "The ID of the specialist who wrote the report.",
            "title": "Specialist",
            "type": "string"
          },
          "specialist_snapshot": {
            "$ref": "#/components/schemas/ReportSpecialistSnapshotOutput",
            "description": "Who wrote the report, as they were named when it was written.",
            "title": "Specialist Snapshot"
          },
          "status": {
            "$ref": "#/components/schemas/ReportStatusEnum",
            "description": "The status of the report: `draft` or `signed`.",
            "title": "Status"
          },
          "updated_at": {
            "description": "When the report was last updated, in UTC.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "user": {
            "description": "The ID of the patient.",
            "title": "User",
            "type": "string"
          }
        },
        "required": [
          "report_id",
          "booking_id",
          "user",
          "specialist",
          "specialist_snapshot",
          "status",
          "signed_at",
          "sections",
          "created_at",
          "updated_at"
        ],
        "title": "ReportOutput",
        "type": "object"
      },
      "ReportPageOutput": {
        "description": "A `PARTNER` output schema for a page of reports.",
        "properties": {
          "data": {
            "description": "The reports of the page, newest signed first.",
            "items": {
              "$ref": "#/components/schemas/ReportListItem"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "ReportPageOutput",
        "type": "object"
      },
      "ReportSectionOutput": {
        "description": "A `PARTNER` output schema for one section of a report. Only sections the specialist shared with the patient are listed.",
        "properties": {
          "created_at": {
            "description": "When the section was created, in UTC.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "has_file": {
            "description": "Whether the section has a file to download. If it does, ask for a time-limited link to the file of the section.",
            "title": "Has File",
            "type": "boolean"
          },
          "report_id": {
            "description": "The ID of the report the section belongs to.",
            "title": "Report ID",
            "type": "string"
          },
          "section_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The Markdown body of the section. An `image` or a `pdf` section has none: read its file instead.",
            "title": "Section Content"
          },
          "section_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the section, if any.",
            "title": "Section Description"
          },
          "section_id": {
            "description": "The ID of the section.",
            "title": "Section ID",
            "type": "string"
          },
          "section_name": {
            "description": "The name of the section.",
            "title": "Section Name",
            "type": "string"
          },
          "section_order": {
            "description": "The render order of the section, lowest first.",
            "title": "Section Order",
            "type": "integer"
          },
          "section_type": {
            "$ref": "#/components/schemas/ReportSectionTypeEnum",
            "description": "The type of the section: `note`, `table`, `image`, `pdf` or `signature`.",
            "title": "Section Type"
          },
          "signed_on": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the specialist signed the section, in UTC, if they did.",
            "title": "Signed On"
          },
          "updated_at": {
            "description": "When the section was last updated, in UTC.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "section_id",
          "report_id",
          "section_name",
          "section_type",
          "section_order",
          "has_file",
          "created_at",
          "updated_at"
        ],
        "title": "ReportSectionOutput",
        "type": "object"
      },
      "ReportSectionTypeEnum": {
        "description": "An enum to store the kind of a section of a visit report as a partner sees it. It carries the\nvalues of the report's own section type.",
        "enum": [
          "note",
          "table",
          "image",
          "pdf",
          "signature"
        ],
        "title": "ReportSectionTypeEnum",
        "type": "string"
      },
      "ReportSpecialistSnapshotOutput": {
        "description": "A `PARTNER` output schema for the specialist who wrote a report, as they were named when it was written. It holds the name and the kind only.",
        "properties": {
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first name, as it stood when the report was written.",
            "title": "First Name"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The full name of the specialist, for display.",
            "title": "Full Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last name, as it stood when the report was written.",
            "title": "Last Name"
          },
          "specialist_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ID of the specialist who wrote the report.",
            "title": "Specialist ID"
          },
          "specialist_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialistTypeEnum"
              },
              {
                "type": "null"
              }
            ],
            "description": "The kind of specialist.",
            "title": "Specialist Type"
          }
        },
        "title": "ReportSpecialistSnapshotOutput",
        "type": "object"
      },
      "ReportStatusEnum": {
        "description": "An enum to store the status of a visit report as a partner sees it. It carries the values of the\nreport's own status.",
        "enum": [
          "draft",
          "signed"
        ],
        "title": "ReportStatusEnum",
        "type": "string"
      },
      "ServiceModeEnum": {
        "description": "An enum to store how a service is delivered. The words are the ones the service itself uses.",
        "enum": [
          "In Person",
          "Virtual"
        ],
        "title": "ServiceModeEnum",
        "type": "string"
      },
      "ServiceOutput": {
        "description": "A `PARTNER` output schema for a service a specialist offers.",
        "properties": {
          "accepted_insurance_providers": {
            "description": "The insurance providers accepted for the service.",
            "items": {
              "type": "string"
            },
            "title": "Accepted Insurance Providers",
            "type": "array"
          },
          "is_insurance_accepted": {
            "description": "Whether insurance is accepted for the service. Insurance cannot be used for a booking made through this API.",
            "title": "Is Insurance Accepted",
            "type": "boolean"
          },
          "service_currency": {
            "description": "The currency of the price: `USD` or `CAD`.",
            "title": "Service Currency",
            "type": "string"
          },
          "service_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The description of the service.",
            "title": "Service Description"
          },
          "service_duration_in_minutes": {
            "description": "The length of the visit in minutes.",
            "title": "Service Duration In Minutes",
            "type": "integer"
          },
          "service_id": {
            "description": "The ID of the service.",
            "title": "Service ID",
            "type": "string"
          },
          "service_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of an image of the service.",
            "title": "Service Image URL"
          },
          "service_mode_of_delivery": {
            "$ref": "#/components/schemas/ServiceModeEnum",
            "description": "How the visit is delivered: `In Person` or `Virtual`.",
            "title": "Service Mode Of Delivery"
          },
          "service_name": {
            "description": "The name of the service.",
            "title": "Service Name",
            "type": "string"
          },
          "service_price_in_cents": {
            "description": "The price in cents.",
            "title": "Service Price In Cents",
            "type": "integer"
          },
          "specialist": {
            "description": "The ID of the specialist who offers it.",
            "title": "Specialist",
            "type": "string"
          }
        },
        "required": [
          "specialist",
          "service_id",
          "service_name",
          "service_currency",
          "service_price_in_cents",
          "service_duration_in_minutes",
          "service_mode_of_delivery",
          "is_insurance_accepted"
        ],
        "title": "ServiceOutput",
        "type": "object"
      },
      "ServicePageOutput": {
        "description": "A `PARTNER` output schema for a page of services.",
        "properties": {
          "data": {
            "description": "The services of the page.",
            "items": {
              "$ref": "#/components/schemas/ServiceOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "ServicePageOutput",
        "type": "object"
      },
      "SleepQualityEnum": {
        "description": "An enum to store how well a patient sleeps.",
        "enum": [
          "Low sleep quality",
          "Moderate sleep quality",
          "High sleep quality",
          "Excellent sleep quality"
        ],
        "title": "SleepQualityEnum",
        "type": "string"
      },
      "SmokingStatusEnum": {
        "description": "An enum to store the smoking status of a patient. Vaping and smoking cannabis count as smoking.",
        "enum": [
          "Non-Smoker",
          "Former Smoker",
          "Occasional Smoker",
          "Regular Smoker"
        ],
        "title": "SmokingStatusEnum",
        "type": "string"
      },
      "SpecialistCertificationOutput": {
        "description": "A `PARTNER` output schema for one certification of a specialist. It never carries the certification number.",
        "properties": {
          "certification_expiry_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The date it expires, as YYYY-MM-DD, if it does.",
            "title": "Certification Expiry Date"
          },
          "certification_issued_at": {
            "description": "The date it was issued, as YYYY-MM-DD.",
            "title": "Certification Issued At",
            "type": "string"
          },
          "certification_issuing_organization": {
            "description": "Who issued it.",
            "title": "Certification Issuing Organization",
            "type": "string"
          },
          "certification_name": {
            "description": "The name of the certification.",
            "title": "Certification Name",
            "type": "string"
          },
          "certification_type": {
            "description": "The type of the certification.",
            "title": "Certification Type",
            "type": "string"
          }
        },
        "required": [
          "certification_name",
          "certification_type",
          "certification_issuing_organization",
          "certification_issued_at"
        ],
        "title": "SpecialistCertificationOutput",
        "type": "object"
      },
      "SpecialistEducationOutput": {
        "description": "A `PARTNER` output schema for one education entry of a specialist.",
        "properties": {
          "education_level": {
            "description": "The level of the education, for example `Bachelor` or `Master`.",
            "title": "Education Level",
            "type": "string"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The end date, as YYYY-MM-DD. `null` while the specialist is still studying.",
            "title": "End Date"
          },
          "field_of_study": {
            "description": "The field of study.",
            "title": "Field Of Study",
            "type": "string"
          },
          "institution": {
            "description": "The institution.",
            "title": "Institution",
            "type": "string"
          },
          "is_currently_studying": {
            "description": "Whether the specialist is still studying.",
            "title": "Is Currently Studying",
            "type": "boolean"
          },
          "start_date": {
            "description": "The start date, as YYYY-MM-DD.",
            "title": "Start Date",
            "type": "string"
          }
        },
        "required": [
          "education_level",
          "institution",
          "field_of_study",
          "start_date",
          "is_currently_studying"
        ],
        "title": "SpecialistEducationOutput",
        "type": "object"
      },
      "SpecialistLanguageOutput": {
        "description": "A `PARTNER` output schema for a language a specialist speaks.",
        "properties": {
          "language": {
            "description": "The name of the language.",
            "title": "Language",
            "type": "string"
          },
          "proficiency": {
            "description": "How well the specialist speaks it: `Beginner`, `Intermediate`, `Advanced` or `Native`.",
            "title": "Proficiency",
            "type": "string"
          }
        },
        "required": [
          "language",
          "proficiency"
        ],
        "title": "SpecialistLanguageOutput",
        "type": "object"
      },
      "SpecialistOutput": {
        "description": "A `PARTNER` output schema for a specialist. The list answer leaves out the long description; it reads as `null` there and is filled in when you read one specialist.",
        "properties": {
          "specialist_certifications": {
            "description": "The certifications.",
            "items": {
              "$ref": "#/components/schemas/SpecialistCertificationOutput"
            },
            "title": "Specialist Certifications",
            "type": "array"
          },
          "specialist_education": {
            "description": "The education.",
            "items": {
              "$ref": "#/components/schemas/SpecialistEducationOutput"
            },
            "title": "Specialist Education",
            "type": "array"
          },
          "specialist_first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first name.",
            "title": "Specialist First Name"
          },
          "specialist_id": {
            "description": "The ID of the specialist.",
            "title": "Specialist ID",
            "type": "string"
          },
          "specialist_insurance_accepted": {
            "description": "The insurance providers the specialist accepts.",
            "items": {
              "type": "string"
            },
            "title": "Specialist Insurance Accepted",
            "type": "array"
          },
          "specialist_languages": {
            "description": "The languages the specialist speaks.",
            "items": {
              "$ref": "#/components/schemas/SpecialistLanguageOutput"
            },
            "title": "Specialist Languages",
            "type": "array"
          },
          "specialist_last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last name.",
            "title": "Specialist Last Name"
          },
          "specialist_locations": {
            "description": "The places the specialist practises in, as `STATE:COUNTRY`, for example `ON:CA`. When you filter a list by `state`, only the places that match the filter are shown.",
            "items": {
              "type": "string"
            },
            "title": "Specialist Locations",
            "type": "array"
          },
          "specialist_long_introduction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A long introduction. Only when you read one specialist.",
            "title": "Specialist Long Introduction"
          },
          "specialist_profile_picture_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the photo.",
            "title": "Specialist Profile Picture URL"
          },
          "specialist_short_introduction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A short introduction.",
            "title": "Specialist Short Introduction"
          },
          "specialist_specializations": {
            "description": "The specializations.",
            "items": {
              "type": "string"
            },
            "title": "Specialist Specializations",
            "type": "array"
          },
          "specialist_type": {
            "$ref": "#/components/schemas/SpecialistTypeEnum",
            "description": "The kind of specialist: `Dietitian`, `Certified Nutrition Specialist` or `Physical Trainer`.",
            "title": "Specialist Type"
          }
        },
        "required": [
          "specialist_id",
          "specialist_type"
        ],
        "title": "SpecialistOutput",
        "type": "object"
      },
      "SpecialistPageOutput": {
        "description": "A `PARTNER` output schema for a page of specialists.",
        "properties": {
          "data": {
            "description": "The specialists of the page.",
            "items": {
              "$ref": "#/components/schemas/SpecialistOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "SpecialistPageOutput",
        "type": "object"
      },
      "SpecialistTypeEnum": {
        "description": "An enum to store the kinds of specialist a partner can see and filter by.",
        "enum": [
          "Dietitian",
          "Certified Nutrition Specialist",
          "Physical Trainer"
        ],
        "title": "SpecialistTypeEnum",
        "type": "string"
      },
      "SpecializationEnum": {
        "description": "An enum to store the specializations a specialist can hold and the values of the\n`specialization` filter. The values are the words shown on the specialist.",
        "enum": [
          "Athletes/Performance",
          "Weight Loss/Management",
          "Eating Disorders / Food Relationships",
          "Diabetes & Pre-Diabetes",
          "Gastrointestinal (GI)",
          "Crohn's/Ulcerative Colitis/Celiac/Gastroparesis",
          "Renal Conditions",
          "Gut Health & Microbiome Support",
          "PCOS",
          "Pediatric",
          "Food Allergies",
          "Oncology",
          "Vegan/Vegetarian Diets",
          "Strength Training",
          "Cardiovascular Fitness",
          "Flexibility & Mobility",
          "Weight Loss",
          "Sports Performance",
          "Functional Training",
          "Senior Fitness",
          "Pre/Post Natal",
          "Injury Rehabilitation",
          "Corrective Exercise",
          "High-Intensity Interval Training (HIIT)",
          "Yoga & Pilates",
          "Endurance Training",
          "Powerlifting"
        ],
        "title": "SpecializationEnum",
        "type": "string"
      },
      "StressLevelEnum": {
        "description": "An enum to store how stressed a patient is.",
        "enum": [
          "Low stress (relaxed throughout the day)",
          "Moderate stress (some stress throughout the day)",
          "High stress (stressed throughout the day)",
          "Extremely High stress (very stressed throughout the day)"
        ],
        "title": "StressLevelEnum",
        "type": "string"
      },
      "SubscribableEventTypeEnum": {
        "description": "An enum to store the event types a webhook endpoint can subscribe to: every `EventTypeEnum` value except `ping`, which is only sent by the test action. `tests/unit/test_event_enums.py` keeps the two in step.",
        "enum": [
          "connection.approved",
          "connection.declined",
          "connection.revoked",
          "booking.created",
          "booking.canceled",
          "report.signed",
          "order.created",
          "order.paid",
          "order.fulfilled",
          "order.shipped",
          "order.delivered",
          "order.refunded",
          "order.canceled"
        ],
        "title": "SubscribableEventTypeEnum",
        "type": "string"
      },
      "TestHelperBookingCompleteOutput": {
        "description": "A `PARTNER` output schema for a test booking that was completed with a sample report.",
        "examples": [
          {
            "booking_id": "booking-0001",
            "report_id": "report-0001",
            "status": "meeting_completed"
          }
        ],
        "properties": {
          "booking_id": {
            "description": "The ID of the booking that was completed.",
            "title": "Booking ID",
            "type": "string"
          },
          "report_id": {
            "description": "The ID of the sample report that was signed. Its content is invented.",
            "title": "Report ID",
            "type": "string"
          },
          "status": {
            "const": "meeting_completed",
            "description": "The status of the booking, always `meeting_completed`.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "booking_id",
          "report_id",
          "status"
        ],
        "title": "TestHelperBookingCompleteOutput",
        "type": "object"
      },
      "VendorAddressOutput": {
        "description": "A `PARTNER` output schema for the address of a vendor.",
        "examples": [
          {
            "city": "Mississauga",
            "country": "CA",
            "line1": "1 Example Wharf",
            "line2": "Unit 4",
            "postal_code": "L5B 1M2",
            "state": "ON"
          }
        ],
        "properties": {
          "city": {
            "description": "The city.",
            "title": "City",
            "type": "string"
          },
          "country": {
            "description": "The two-letter country code.",
            "title": "Country",
            "type": "string"
          },
          "line1": {
            "description": "The first line of the address.",
            "title": "Line1",
            "type": "string"
          },
          "line2": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The second line of the address, if there is one.",
            "title": "Line2"
          },
          "postal_code": {
            "description": "The postal code.",
            "title": "Postal Code",
            "type": "string"
          },
          "state": {
            "description": "The two-letter province code.",
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "line1",
          "city",
          "state",
          "postal_code",
          "country"
        ],
        "title": "VendorAddressOutput",
        "type": "object"
      },
      "VendorOutput": {
        "description": "A `PARTNER` output schema for a vendor. It has the field names, the nesting and the values of the vendor itself. The list answer leaves out the long description, the timezone, the address and the customer support contacts; they read as `null` there, and are filled in when you read one vendor. Left out on purpose: the live and archived flags.",
        "examples": [
          {
            "created_at": "2025-11-03T15:04:05Z",
            "updated_at": "2026-02-14T09:30:00Z",
            "vendor_address": {
              "city": "Mississauga",
              "country": "CA",
              "line1": "1 Example Wharf",
              "line2": "Unit 4",
              "postal_code": "L5B 1M2",
              "state": "ON"
            },
            "vendor_customer_support_email": "help@harbour.example.com",
            "vendor_customer_support_phone": "+14165550123",
            "vendor_faq_url": "https://harbour.example.com/faq",
            "vendor_id": "vendor-harbour-kitchen",
            "vendor_images": [
              "https://cdn.example.com/harbour/1.jpg",
              "https://cdn.example.com/harbour/2.jpg"
            ],
            "vendor_logo_image": "https://cdn.example.com/harbour/logo.png",
            "vendor_long_description": "Harbour Kitchen cooks small batches of seasonal meals in Mississauga.",
            "vendor_maximum_order_items": 40,
            "vendor_maximum_order_value": 250000,
            "vendor_minimum_order_items": 4,
            "vendor_minimum_order_value": 5000,
            "vendor_name": "Harbour Kitchen",
            "vendor_short_description": "Fresh, chef-made meals for the week.",
            "vendor_social_media_facebook": "https://facebook.example.com/harbour",
            "vendor_social_media_instagram": "https://instagram.example.com/harbour",
            "vendor_timezone": "America/Toronto",
            "vendor_website_url": "https://harbour.example.com"
          }
        ],
        "properties": {
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the vendor was created.",
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the vendor was last updated.",
            "title": "Updated At"
          },
          "vendor_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VendorAddressOutput"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address of the vendor. Only when you read one vendor.",
            "title": "Vendor Address"
          },
          "vendor_customer_support_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email address of the support of the vendor. Only when you read one vendor.",
            "title": "Vendor Customer Support Email"
          },
          "vendor_customer_support_phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The phone number of the support of the vendor. Only when you read one vendor.",
            "title": "Vendor Customer Support Phone"
          },
          "vendor_faq_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the frequently asked questions of the vendor.",
            "title": "Vendor Faq Url"
          },
          "vendor_id": {
            "description": "The ID of the vendor.",
            "title": "Vendor Id",
            "type": "string"
          },
          "vendor_images": {
            "description": "The URLs of the images of the vendor.",
            "items": {
              "type": "string"
            },
            "title": "Vendor Images",
            "type": "array"
          },
          "vendor_logo_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the logo of the vendor.",
            "title": "Vendor Logo Image"
          },
          "vendor_long_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A long description of the vendor. Only when you read one vendor.",
            "title": "Vendor Long Description"
          },
          "vendor_maximum_order_items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most items the vendor takes in one order.",
            "title": "Vendor Maximum Order Items"
          },
          "vendor_maximum_order_value": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The largest order value the vendor takes, in cents. A vendor has no currency of its own: it is the `zone_currency` of the delivery zone you order in.",
            "title": "Vendor Maximum Order Value"
          },
          "vendor_minimum_order_items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The fewest items the vendor takes in one order.",
            "title": "Vendor Minimum Order Items"
          },
          "vendor_minimum_order_value": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The smallest order value the vendor takes, in cents. A vendor has no currency of its own: it is the `zone_currency` of the delivery zone you order in.",
            "title": "Vendor Minimum Order Value"
          },
          "vendor_name": {
            "description": "The name of the vendor.",
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_short_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A short description of the vendor.",
            "title": "Vendor Short Description"
          },
          "vendor_social_media_facebook": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the Facebook page of the vendor.",
            "title": "Vendor Social Media Facebook"
          },
          "vendor_social_media_instagram": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the Instagram page of the vendor.",
            "title": "Vendor Social Media Instagram"
          },
          "vendor_social_media_linkedin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the LinkedIn page of the vendor.",
            "title": "Vendor Social Media Linkedin"
          },
          "vendor_social_media_twitter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the Twitter page of the vendor.",
            "title": "Vendor Social Media Twitter"
          },
          "vendor_timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The IANA timezone of the vendor, for example `America/Toronto`. The delivery days of its zones start at midnight in this timezone. Only when you read one vendor.",
            "title": "Vendor Timezone"
          },
          "vendor_website_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The URL of the website of the vendor.",
            "title": "Vendor Website Url"
          }
        },
        "required": [
          "vendor_id",
          "vendor_name"
        ],
        "title": "VendorOutput",
        "type": "object"
      },
      "VendorPageOutput": {
        "description": "A `PARTNER` output schema for a page of vendors.",
        "examples": [
          {
            "data": [
              {
                "created_at": "2025-11-03T15:04:05Z",
                "updated_at": "2026-02-14T09:30:00Z",
                "vendor_faq_url": "https://harbour.example.com/faq",
                "vendor_id": "vendor-harbour-kitchen",
                "vendor_images": [
                  "https://cdn.example.com/harbour/1.jpg",
                  "https://cdn.example.com/harbour/2.jpg"
                ],
                "vendor_logo_image": "https://cdn.example.com/harbour/logo.png",
                "vendor_maximum_order_items": 40,
                "vendor_maximum_order_value": 250000,
                "vendor_minimum_order_items": 4,
                "vendor_minimum_order_value": 5000,
                "vendor_name": "Harbour Kitchen",
                "vendor_short_description": "Fresh, chef-made meals for the week.",
                "vendor_social_media_facebook": "https://facebook.example.com/harbour",
                "vendor_social_media_instagram": "https://instagram.example.com/harbour",
                "vendor_website_url": "https://harbour.example.com"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The vendors of the page.",
            "items": {
              "$ref": "#/components/schemas/VendorOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "VendorPageOutput",
        "type": "object"
      },
      "WebhookEndpointCreateInput": {
        "description": "A `PARTNER` input schema for creating a webhook endpoint.",
        "examples": [
          {
            "description": "Order and connection events",
            "events": [
              "connection.approved",
              "order.paid"
            ],
            "url": "https://shop.example.com/nurishd/events"
          }
        ],
        "properties": {
          "description": {
            "anyOf": [
              {
                "maxLength": 500,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the endpoint is for. Optional, at most 500 characters.",
            "title": "Description"
          },
          "events": {
            "description": "The event types the endpoint receives: at least one, no duplicates. `ping` cannot be chosen, it is only sent by a test. Your key's scopes must let it see each type.",
            "items": {
              "$ref": "#/components/schemas/SubscribableEventTypeEnum"
            },
            "minItems": 1,
            "title": "Events",
            "type": "array"
          },
          "url": {
            "description": "The HTTPS address events are sent to. It must be a public address: no `http`, no user name or password, no fragment, no `localhost` or private IP address, at most 2000 characters.",
            "minLength": 1,
            "title": "URL",
            "type": "string"
          }
        },
        "required": [
          "url",
          "events"
        ],
        "title": "WebhookEndpointCreateInput",
        "type": "object"
      },
      "WebhookEndpointDeleteOutput": {
        "description": "A `PARTNER` output schema for a deleted endpoint.",
        "examples": [
          {
            "message": "Webhook endpoint deleted."
          }
        ],
        "properties": {
          "message": {
            "default": "Webhook endpoint deleted.",
            "description": "A plain sentence saying the endpoint was deleted.",
            "title": "Message",
            "type": "string"
          }
        },
        "title": "WebhookEndpointDeleteOutput",
        "type": "object"
      },
      "WebhookEndpointOutput": {
        "description": "A `PARTNER` output schema for a webhook endpoint. It is a public shape written field by field and never holds the secret, only its last four characters.",
        "examples": [
          {
            "company_id": "company-0001",
            "created_at": "2026-04-01T11:40:00Z",
            "description": "Order and connection events",
            "endpoint_id": "whe-01JD2ZQ4M8K7R5T3V9X1B6C0HN",
            "events": [
              "connection.approved",
              "order.paid"
            ],
            "is_enabled": true,
            "mode": "test",
            "previous_secret_expires_at": null,
            "secret_last_four": "4f1a",
            "updated_at": "2026-04-01T11:40:00Z",
            "url": "https://shop.example.com/nurishd/events"
          }
        ],
        "properties": {
          "company_id": {
            "description": "The ID of the company the endpoint belongs to.",
            "title": "Company ID",
            "type": "string"
          },
          "created_at": {
            "description": "When the endpoint was created, in UTC.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the endpoint is for, or `null`.",
            "title": "Description"
          },
          "endpoint_id": {
            "description": "The ID of the endpoint.",
            "title": "Endpoint ID",
            "type": "string"
          },
          "events": {
            "description": "The event types the endpoint receives.",
            "items": {
              "$ref": "#/components/schemas/SubscribableEventTypeEnum"
            },
            "title": "Events",
            "type": "array"
          },
          "is_enabled": {
            "description": "Whether events are sent to the endpoint.",
            "title": "Is Enabled",
            "type": "boolean"
          },
          "mode": {
            "$ref": "#/components/schemas/KeyModeEnum",
            "description": "`test` for the sandbox, `prod` for production.",
            "title": "Mode"
          },
          "previous_secret_expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "After a roll, when the old secret stops being valid, in UTC. `null` when there is no old secret to accept.",
            "title": "Previous Secret Expires At"
          },
          "secret_last_four": {
            "description": "The last four characters of the signing secret, to tell secrets apart.",
            "title": "Secret Last Four",
            "type": "string"
          },
          "updated_at": {
            "description": "When the endpoint was last changed, in UTC.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "url": {
            "description": "The HTTPS address events are sent to.",
            "title": "URL",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id",
          "company_id",
          "mode",
          "url",
          "events",
          "description",
          "is_enabled",
          "secret_last_four",
          "previous_secret_expires_at",
          "created_at",
          "updated_at"
        ],
        "title": "WebhookEndpointOutput",
        "type": "object"
      },
      "WebhookEndpointPageOutput": {
        "description": "A `PARTNER` output schema for a page of webhook endpoints.",
        "examples": [
          {
            "data": [
              {
                "company_id": "company-0001",
                "created_at": "2026-04-01T11:40:00Z",
                "description": "Order and connection events",
                "endpoint_id": "whe-01JD2ZQ4M8K7R5T3V9X1B6C0HN",
                "events": [
                  "connection.approved",
                  "order.paid"
                ],
                "is_enabled": true,
                "mode": "test",
                "previous_secret_expires_at": null,
                "secret_last_four": "4f1a",
                "updated_at": "2026-04-01T11:40:00Z",
                "url": "https://shop.example.com/nurishd/events"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The endpoints of the page, newest first.",
            "items": {
              "$ref": "#/components/schemas/WebhookEndpointOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "WebhookEndpointPageOutput",
        "type": "object"
      },
      "WebhookEndpointUpdateInput": {
        "description": "A `PARTNER` input schema for changing a webhook endpoint. Only the fields that are sent change.",
        "examples": [
          {
            "is_enabled": false
          }
        ],
        "properties": {
          "description": {
            "anyOf": [
              {
                "maxLength": 500,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The new description, or `null` to clear it.",
            "title": "Description"
          },
          "events": {
            "description": "The new event types, replacing the old ones: at least one, no duplicates, never `ping`.",
            "items": {
              "$ref": "#/components/schemas/SubscribableEventTypeEnum"
            },
            "minItems": 1,
            "title": "Events",
            "type": "array"
          },
          "is_enabled": {
            "description": "`false` to stop sending events to the endpoint, `true` to start again.",
            "title": "Is Enabled",
            "type": "boolean"
          },
          "url": {
            "description": "The new HTTPS address. The same rules as when the endpoint was created apply.",
            "minLength": 1,
            "title": "URL",
            "type": "string"
          }
        },
        "title": "WebhookEndpointUpdateInput",
        "type": "object"
      },
      "WebhookEndpointWithSecretOutput": {
        "description": "A `PARTNER` output schema for an endpoint together with its signing secret, answered by a create and by a roll.",
        "examples": [
          {
            "endpoint": {
              "company_id": "company-0001",
              "created_at": "2026-04-01T11:40:00Z",
              "description": "Order and connection events",
              "endpoint_id": "whe-01JD2ZQ4M8K7R5T3V9X1B6C0HN",
              "events": [
                "connection.approved",
                "order.paid"
              ],
              "is_enabled": true,
              "mode": "test",
              "previous_secret_expires_at": null,
              "secret_last_four": "4f1a",
              "updated_at": "2026-04-01T11:40:00Z",
              "url": "https://shop.example.com/nurishd/events"
            },
            "secret": "nk-whsec-3d9b0c7a51e84f62a1c3e5b7d9f1024368ace0b1d2f3a4c5e6f7089a1b2c4f1a"
          }
        ],
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/WebhookEndpointOutput",
            "description": "The endpoint.",
            "title": "Endpoint"
          },
          "secret": {
            "description": "The signing secret of the endpoint, starting with `nk-whsec-`. Verify every delivery with it. Keep it private.",
            "title": "Secret",
            "type": "string"
          }
        },
        "required": [
          "endpoint",
          "secret"
        ],
        "title": "WebhookEndpointWithSecretOutput",
        "type": "object"
      },
      "WeekDayEnum": {
        "description": "An `CORE` enum which define the week days of a day. This enum\ncan be used to represent the days of a week.\n\nThe following enum values are allowed:\n- MONDAY: Monday - day is Monday.\n- TUESDAY: Tuesday - day is Tuesday.\n- WEDNESDAY: Wednesday - day is Wednesday.\n- THURSDAY: Thursday - day is Thursday.\n- FRIDAY: Friday - day is Friday.\n- SATURDAY: Saturday - day is Saturday.\n- SUNDAY: Sunday - day is Sunday.",
        "enum": [
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday",
          "Sunday"
        ],
        "title": "WeekDayEnum",
        "type": "string"
      },
      "ZoneDeliveryDayOutput": {
        "description": "A `PARTNER` output schema for one delivery day of a zone.",
        "examples": [
          {
            "delivery_day": "Tuesday",
            "delivery_day_cutoff": 3,
            "delivery_day_cutoff_hour": 15,
            "delivery_day_cutoff_minute": 30,
            "delivery_fee": 499,
            "free_delivery_threshold": 7500,
            "fulfillment_days": 1
          }
        ],
        "properties": {
          "delivery_day": {
            "$ref": "#/components/schemas/WeekDayEnum",
            "description": "The weekday, for example `Monday`.",
            "title": "Delivery Day"
          },
          "delivery_day_cutoff": {
            "description": "How many days before the delivery date ordering closes.",
            "title": "Delivery Day Cutoff",
            "type": "integer"
          },
          "delivery_day_cutoff_hour": {
            "description": "The hour ordering closes, 0 to 23, in the vendor timezone.",
            "title": "Delivery Day Cutoff Hour",
            "type": "integer"
          },
          "delivery_day_cutoff_minute": {
            "description": "The minute ordering closes, 0 to 59, in the vendor timezone.",
            "title": "Delivery Day Cutoff Minute",
            "type": "integer"
          },
          "delivery_fee": {
            "description": "The delivery fee, in cents, in the currency of the zone (`zone_currency`).",
            "title": "Delivery Fee",
            "type": "integer"
          },
          "free_delivery_threshold": {
            "description": "The order value, in cents, above which delivery is free, in the currency of the zone (`zone_currency`).",
            "title": "Free Delivery Threshold",
            "type": "integer"
          },
          "fulfillment_days": {
            "description": "How many days the vendor needs to prepare an order.",
            "title": "Fulfillment Days",
            "type": "integer"
          }
        },
        "required": [
          "delivery_day",
          "delivery_day_cutoff",
          "delivery_day_cutoff_hour",
          "delivery_day_cutoff_minute",
          "fulfillment_days",
          "delivery_fee",
          "free_delivery_threshold"
        ],
        "title": "ZoneDeliveryDayOutput",
        "type": "object"
      },
      "ZoneOutput": {
        "description": "A `PARTNER` output schema for a delivery zone: an area a vendor delivers to. It has the field names, the nesting and the values of the zone itself. A zone limited to a province has no city; a zone for a whole country has neither city nor state. Left out on purpose: the sample products, the live and archived flags and the timestamps.",
        "examples": [
          {
            "vendor": "vendor-harbour-kitchen",
            "zone_city": "Toronto",
            "zone_country": "CA",
            "zone_currency": "CAD",
            "zone_delivery_days": [
              {
                "delivery_day": "Tuesday",
                "delivery_day_cutoff": 3,
                "delivery_day_cutoff_hour": 15,
                "delivery_day_cutoff_minute": 30,
                "delivery_fee": 499,
                "free_delivery_threshold": 7500,
                "fulfillment_days": 1
              },
              {
                "delivery_day": "Friday",
                "delivery_day_cutoff": 3,
                "delivery_day_cutoff_hour": 0,
                "delivery_day_cutoff_minute": 0,
                "delivery_fee": 699,
                "free_delivery_threshold": 10000,
                "fulfillment_days": 1
              }
            ],
            "zone_id": "zone-harbour-nyc",
            "zone_state": "ON"
          }
        ],
        "properties": {
          "vendor": {
            "description": "The ID of the vendor that delivers to the zone.",
            "title": "Vendor",
            "type": "string"
          },
          "zone_city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The city of the zone. `null` for a zone that covers a whole province or country.",
            "title": "Zone City"
          },
          "zone_country": {
            "description": "The two-letter country code of the zone.",
            "title": "Zone Country",
            "type": "string"
          },
          "zone_currency": {
            "description": "The three-letter currency code of the zone. Prices and fees in the zone are in this currency.",
            "title": "Zone Currency",
            "type": "string"
          },
          "zone_delivery_days": {
            "description": "The weekdays the zone is delivered on, with their cut-offs and fees.",
            "items": {
              "$ref": "#/components/schemas/ZoneDeliveryDayOutput"
            },
            "title": "Zone Delivery Days",
            "type": "array"
          },
          "zone_id": {
            "description": "The ID of the zone.",
            "title": "Zone Id",
            "type": "string"
          },
          "zone_state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The two-letter province code of the zone. `null` for a zone that covers a whole country.",
            "title": "Zone State"
          }
        },
        "required": [
          "vendor",
          "zone_id",
          "zone_country",
          "zone_currency"
        ],
        "title": "ZoneOutput",
        "type": "object"
      },
      "ZonePageOutput": {
        "description": "A `PARTNER` output schema for a page of delivery zones.",
        "examples": [
          {
            "data": [
              {
                "vendor": "vendor-harbour-kitchen",
                "zone_city": "Toronto",
                "zone_country": "CA",
                "zone_currency": "CAD",
                "zone_delivery_days": [
                  {
                    "delivery_day": "Tuesday",
                    "delivery_day_cutoff": 3,
                    "delivery_day_cutoff_hour": 15,
                    "delivery_day_cutoff_minute": 30,
                    "delivery_fee": 499,
                    "free_delivery_threshold": 7500,
                    "fulfillment_days": 1
                  },
                  {
                    "delivery_day": "Friday",
                    "delivery_day_cutoff": 3,
                    "delivery_day_cutoff_hour": 0,
                    "delivery_day_cutoff_minute": 0,
                    "delivery_fee": 699,
                    "free_delivery_threshold": 10000,
                    "fulfillment_days": 1
                  }
                ],
                "zone_id": "zone-harbour-nyc",
                "zone_state": "ON"
              }
            ],
            "has_next": false,
            "has_previous": false,
            "page": 1,
            "size": 10,
            "total": 1,
            "total_pages": 1
          }
        ],
        "properties": {
          "data": {
            "description": "The zones of the page.",
            "items": {
              "$ref": "#/components/schemas/ZoneOutput"
            },
            "title": "Data",
            "type": "array"
          },
          "has_next": {
            "description": "Whether the data has a next page or not",
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "description": "Whether the data has a previous page or not",
            "title": "Has Previous",
            "type": "boolean"
          },
          "page": {
            "description": "The page number of the data",
            "title": "Page",
            "type": "integer"
          },
          "size": {
            "description": "The size of the data",
            "title": "Size",
            "type": "integer"
          },
          "total": {
            "description": "The total number of data",
            "title": "Total Data",
            "type": "integer"
          },
          "total_pages": {
            "description": "The total number of pages",
            "title": "Total Pages",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "total_pages",
          "total",
          "page",
          "size",
          "has_next",
          "has_previous"
        ],
        "title": "ZonePageOutput",
        "type": "object"
      }
    },
    "securitySchemes": {
      "PartnerApiKey": {
        "in": "header",
        "name": "X-Partner-API-Key",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Build meals ordering and care booking into your own product.\n\n## Authentication\n\nSend your API key in the `X-Partner-API-Key` header on every call. A key starts with `nk-test-`\nor `nk-prod-`. A test key works in the sandbox only; a prod key works on live data only. The two\nnever see each other's data. Keep a key on your server and never put it in a web page or an app.\n\n## Reference\n\nThis document is served at `/openapi.json` on the host of the API, and a page to read it and try\ncalls with your key at `/docs` on the same host. Both are open: no key is needed to read them.\n\n## Errors\n\nEvery error, on every route, has the same shape:\n\n```json\n{\"error\": {\"code\": \"scope_not_granted\", \"message\": \"Plain words.\", \"request_id\": \"req_...\"}}\n```\n\nBranch on `code`; it does not change. The `message` is for a person. Quote the `request_id` when\nyou contact support. The same ID is in the `X-Request-Id` response header.\n\n## Rate limits\n\nLimits are counted for each key.\n\n| Limit | Sandbox | Production |\n| --- | --- | --- |\n| Sustained calls | your key's calls per minute | your key's calls per minute |\n| Burst | 120 in any 10 seconds | 600 in any 10 seconds |\n| Report routes and the event list | 10 per minute | 30 per minute |\n| Calls in progress at the same time | 10 | 50 |\n\n`GET /developer/v1/key/get/document` answers your key's calls per minute. Calls you do not use\nadd up, so a quiet key can go above that for a moment, up to the burst line. A call to a report\nroute or to the event list (`GET /developer/v1/event/query/documents`) counts against its own\nline and against your key's calls per minute.\n\nEvery answer carries `RateLimit-Limit`, the calls per minute, and `RateLimit-Remaining`, the\ncalls you can make right now, which can be more than the limit after a quiet moment. On a report\nroute and on the event list, both headers describe that line. When you pass a limit you get a\n`429` with the code `rate_limited` and a `Retry-After` header, the number of seconds to wait.\n\n## Lists\n\nA list takes `page` (from 1) and `size` (at most 50) and answers `data`, `total`, `total_pages`,\n`page`, `size`, `has_next` and `has_previous`.\n\n## Events\n\nAn event is thin: a type, an ID and the IDs it relates to, never the object itself. Read the\nobject with its own route. List events with `GET /developer/v1/event/query/documents`, or have\nthem sent to a webhook endpoint of yours. Each delivery is signed with the secret of the endpoint.\nYour endpoint has 5 seconds to answer a delivery with a success\nstatus; after that the delivery is retried.\n\n## Versioning\n\nThe version is in the path (`/v1`). Within `v1` we only add things: a new route, a new optional\ninput, a new field in an answer. Ignore fields you do not know. We never remove, rename or\nretype a field within `v1`; a change like that comes as `v2`.",
    "title": "Nurish'd Connect API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/care/v1/booking/create/document": {
      "post": {
        "description": "Books one of the open times of a service for a patient. The patient must have an active\n    connection with your company that allows bookings. Insurance cannot be used for a booking made\n    through this API.\n\n    The order of calls is: connect the patient, save a card, book. A visit charges nothing when it\n    is booked; the visit, a late-cancellation fee and a no-show fee are charged later to the\n    patient's default card, so a patient with no default card cannot be booked. Save one first\n    with `POST /care/v1/patient/{patient_id}/payment-method/setup/create/document` and its confirm\n    route.\n\n    Booking the same patient, specialist and start again returns the first booking, so a retry is\n    safe. A new booking raises one `booking.created` event; a repeat raises none.\n\n    Answers:\n    - `404` when the patient has no connection with your company that allows care.\n    - `403 connection_scope_not_granted` when the patient did not allow bookings.\n    - `409 connection_not_active` when the connection is pending or was revoked.\n    - `409 payment_method_required` when the patient has no card saved to their account. Nothing\n      is booked.\n    - `409 agreements_not_signed` when the patient has not signed the agreements a visit needs.\n    - `409 service_not_bookable` when the service cannot be booked online, or the specialist or\n      the service does not exist.\n    - `409 not_licensed_here` when the specialist cannot serve the booking yet.\n    - `409 slot_taken` when the time is no longer open.\n\n    Needs the `booking:write` scope.",
        "operationId": "care_v1_booking_create_document_care_v1_booking_create_document_post",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "booking": {
                  "description": "Book one of the open times of a service, with a note for the specialist.",
                  "summary": "A visit with a note",
                  "value": {
                    "client_note": "I would like to talk about meal planning for the week.",
                    "service_id": "service-initial-consult",
                    "specialist_id": "3b7d9a52-0000-4000-8000-0000000000a1",
                    "start_time": "2026-06-02T14:00:00Z",
                    "timezone": "America/Toronto",
                    "user": "6f1c0d2e-0000-4000-8000-000000000101"
                  }
                },
                "booking without note": {
                  "description": "The note is optional.",
                  "summary": "A visit without a note",
                  "value": {
                    "service_id": "service-initial-consult",
                    "specialist_id": "3b7d9a52-0000-4000-8000-0000000000a1",
                    "start_time": "2026-06-02T14:00:00Z",
                    "timezone": "America/Toronto",
                    "user": "6f1c0d2e-0000-4000-8000-000000000101"
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/BookingCreateInput",
                "description": "The visit to book.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_80fc231594086c1defd3a743231aad96"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_e67713a41c22728e35fb58c71be66176"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_d46fe747d482cb9b7c3c79c06c755888"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_07bb9136052fc160e9d820cb08486bc1"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.bookings scope.",
                        "request_id": "req_376893112ccea1779090032f834ca5e9"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the booking:write scope.",
                        "request_id": "req_c2a006f5940180482be622897489f85f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_9606a4b17ef0e3d17cf524b4573d2c9f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "agreements_not_signed": {
                    "value": {
                      "error": {
                        "code": "agreements_not_signed",
                        "message": "The patient has not signed the agreements a visit needs.",
                        "request_id": "req_fb86044f0fd2f35375d2fcc829026428"
                      }
                    }
                  },
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_4faf90fd4c526a29aed3eb9e7357f131"
                      }
                    }
                  },
                  "not_licensed_here": {
                    "value": {
                      "error": {
                        "code": "not_licensed_here",
                        "message": "The specialist cannot serve this booking yet.",
                        "request_id": "req_4d57e4d3e6f80c416f7eec40c1ea2987"
                      }
                    }
                  },
                  "payment_method_required": {
                    "value": {
                      "error": {
                        "code": "payment_method_required",
                        "message": "A card must be saved to the patient's account before a visit can be booked.",
                        "request_id": "req_7a21802adaaeb49bba1d505424c6c280"
                      }
                    }
                  },
                  "service_not_bookable": {
                    "value": {
                      "error": {
                        "code": "service_not_bookable",
                        "message": "This service cannot be booked online right now.",
                        "request_id": "req_3780870bf6e9b2d2b1ec119e7d9ca5be"
                      }
                    }
                  },
                  "slot_taken": {
                    "value": {
                      "error": {
                        "code": "slot_taken",
                        "message": "That time is no longer open. Pick another time.",
                        "request_id": "req_ce188e688eff2b24b760b3c8dd18bfc5"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.user: Field required",
                        "request_id": "req_95806c33bd3bd84f176eb1772482351f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_118737004bd49a1351f603af2cc55f90"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_a52527570dd8ec1a7c86bd0cd0707dbd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_79d628bed94564e5d9e01ee438174765"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_ce56d895ecabe8062d7ba77121466331"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_7e5379e4d01c7c540aa965147be677e1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Book a visit.",
        "tags": [
          "Care [Booking]"
        ]
      }
    },
    "/care/v1/booking/query/documents": {
      "get": {
        "description": "Returns a page of the visits your company booked, newest visit first. Visits booked by the\n    patient themselves or by another company are never listed, and neither are visits of patients\n    whose connection with your company is no longer active. The list has no note; read one booking\n    to get it.\n\n    The `status` filter works on the status last seen for each booking, which is refreshed whenever\n    a booking is read, so a visit that changed outside this API can show under its old status until\n    it is read. The status of every booking in the answer is current.\n\n    Query parameters:\n    - patient: Keep only the visits of this patient.\n    - status: Keep only visits in this status: `booked`, `meeting_rescheduled`, `meeting_completed`,\n      `meeting_cancelled` or `no_show`.\n    - from: Keep only visits that start at or after this time, with a UTC offset.\n    - to: Keep only visits that start at or before this time, with a UTC offset.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `booking:read` scope.",
        "operationId": "care_v1_booking_query_documents_care_v1_booking_query_documents_get",
        "parameters": [
          {
            "description": "Keep only the visits of this patient.",
            "in": "query",
            "name": "patient",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only the visits of this patient.",
              "title": "Patient"
            }
          },
          {
            "description": "Keep only visits in this status: `booked`, `meeting_rescheduled`, `meeting_completed`, `meeting_cancelled` or `no_show`.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/BookingStatusEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only visits in this status: `booked`, `meeting_rescheduled`, `meeting_completed`, `meeting_cancelled` or `no_show`.",
              "title": "Status"
            }
          },
          {
            "description": "Keep only visits that start at or after this time, with a UTC offset.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only visits that start at or after this time, with a UTC offset.",
              "title": "From"
            }
          },
          {
            "description": "Keep only visits that start at or before this time, with a UTC offset.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only visits that start at or before this time, with a UTC offset.",
              "title": "To"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error": {
                        "code": "bad_request",
                        "message": "The `from` time must not be after the `to` time.",
                        "request_id": "req_3fe4737051018885d3cd22504eeabf0a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request cannot be processed as sent, for example a range that ends before it starts."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_96ffb1f05b46cbebec384a3b02106c22"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_1bf145a1b08862839a9dba1dc664f0bc"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_2770a562a2078fbb53a01f495b0599c7"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_af1c61c11c835900ea446e3083572feb"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the booking:read scope.",
                        "request_id": "req_7d080f4907c6d49070371f07449a8f6d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_4b3126ae9a3928310bf1cf837cc3ff1a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_9c577a15c7a6a85fd5ea9ec44439b1c2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_ef2d0413cc1533645382520b3d07de3f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_6ab5d6d3eba63242ddaba71a0cc06cc3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_905525cb63adff65603d7825c4bb7971"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_fb3cce59a13db09da620301e1c7cbf7d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List bookings.",
        "tags": [
          "Care [Booking]"
        ]
      }
    },
    "/care/v1/booking/{booking_id}/cancel/document": {
      "put": {
        "description": "Cancels a visit your company booked. WARNING: a visit canceled less than 24 hours before it\n    starts may be charged Nurish'd's late-cancellation fee, billed to the patient. Tell the patient\n    before you cancel.\n\n    A booking that is already canceled, completed or past answers `409 booking_not_cancelable`. A\n    cancellation raises one `booking.canceled` event. The body is optional. Answers `404` for a\n    visit your company did not book, and `409 connection_not_active` when the patient's connection\n    with your company was revoked.\n\n    Needs the `booking:write` scope.",
        "operationId": "care_v1_booking_cancel_document_care_v1_booking__booking_id__cancel_document_put",
        "parameters": [
          {
            "description": "The ID of the booking.",
            "in": "path",
            "name": "booking_id",
            "required": true,
            "schema": {
              "description": "The ID of the booking.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Booking ID",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "with a reason": {
                  "description": "The reason is optional.",
                  "summary": "Cancel with a reason",
                  "value": {
                    "reason": "The patient asked to cancel."
                  }
                }
              },
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/BookingCancelInput"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Why the visit is canceled. The body is optional.",
                "title": "Input Schema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_33501ecec5fc0dcf90133da338ab7960"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_761271f71c98f598bd0a6d7753a692ac"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_26a2592c290c97489f1c615c98f8966b"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_b7b5813d3999ccf594be26d56f433aee"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.bookings scope.",
                        "request_id": "req_e20e1072824a1735f75fafb6b550eed0"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the booking:write scope.",
                        "request_id": "req_454aae435d81cbed3111199f55c01132"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_babe48cb413ecc5f1393f04dab8da2d9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "booking_not_cancelable": {
                    "value": {
                      "error": {
                        "code": "booking_not_cancelable",
                        "message": "This booking can no longer be canceled.",
                        "request_id": "req_772390a6df63c2ffd4fdf3c3044ee10b"
                      }
                    }
                  },
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_aad4a6b0a560d85b5d0bab480a15ab2c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.reason: Input should be a valid string",
                        "request_id": "req_e77cff6db645813f553a46c95750e603"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_608e7d340a065d56076cce8a49380ed7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_bd9afd567909dad09415ac0f68693039"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_5c5272d68ee853e364808a65ed373be6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_f9584acb4825b2ccb0cc964df5698bda"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_dd5ae446ae0cff0acea43aec00c17918"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Cancel a booking.",
        "tags": [
          "Care [Booking]"
        ]
      }
    },
    "/care/v1/booking/{booking_id}/get/document": {
      "get": {
        "description": "Returns one visit your company booked, with the note. A visit the patient booked themselves, or\n    that another company booked, answers `404`. Answers `409 connection_not_active` when the\n    patient's connection with your company was revoked: the visit stays booked, but you can no\n    longer read or change it.\n\n    If the visit was canceled by the patient or the specialist, the answer says so and a\n    `booking.canceled` event is raised once.\n\n    Needs the `booking:read` scope.",
        "operationId": "care_v1_booking_get_document_care_v1_booking__booking_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the booking.",
            "in": "path",
            "name": "booking_id",
            "required": true,
            "schema": {
              "description": "The ID of the booking.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Booking ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_544f3ab7ea8b34662dfae3a5d8ee341a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_3a6f0db8c308f0297c891aa67c96c2f8"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_c36258e8c961c95ce1d76b19e8a09439"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_a4c3a71d4a7cb4c5742ba38e25934ca2"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.bookings scope.",
                        "request_id": "req_c1aa12250fe17b0a7d2ae6c4b76db0fa"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the booking:read scope.",
                        "request_id": "req_478fc958eb3b568494fdd7a442558c20"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_1a60022bd0931db1822227ab12b1b010"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_a5f74632ac3db7cc5a88c408890958b7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.booking_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_f8a8afd415ef622ec47becee13f08551"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_65d692ae069fd77a07cc19437070013e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_62e08027927345b4bd19d8917bb31f69"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_89d0f5d53971c2364f83db3ea8f3c5c5"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_c7e84c86f0f592a283a0ed97b1a43e7a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_9452d248be24e582f62ca3a38f41cdc8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a booking.",
        "tags": [
          "Care [Booking]"
        ]
      }
    },
    "/care/v1/connection/{connection_id}/get/document": {
      "get": {
        "description": "Returns a connection between your company and a patient, with its status brought up to date.\n    Nothing can be booked for the patient until the status is `active`. Read the connection, or\n    trust the `connection.approved` event, to learn that the patient approved; never trust the\n    `status` in the return URL. A connection that does not exist, is not a care connection, or\n    belongs to another company or mode, answers `not_found`. Needs the `patient:write` scope.",
        "operationId": "care_v1_connection_get_document_care_v1_connection__connection_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the connection, as `create` answered it.",
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "description": "The ID of the connection, as `create` answered it.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Connection ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CareConnectionOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_37963464088296a7570119503bb0fb9b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_4eef5922649d983b37e787a16dacdf03"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_da55d65dbea125383e0cbca1ba9825ee"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_d58f4ee2d9e7b81b8a333a72c38c89fb"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_edc0b15bbe66c2fc3a89b53b712ad66f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_96d3fe000ebb773658f96abad556dbb3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.connection_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_a33393ea99636c25fa56d3fe80ff6e37"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_77661a47ab6613a2c0c07c2f0ca8d026"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_d2c5b63262e0b62b5c963d4f76eab6c1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_d86a2f9bbbd9806f453e618cc1b5985d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_9b723b7c4b719dd77376a8b1243cf9f7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_24a19975a2cd01ed24d339b77ecebacb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a connection.",
        "tags": [
          "Care [Connection]"
        ]
      }
    },
    "/care/v1/connection/{connection_id}/revoke/document": {
      "put": {
        "description": "Ends a connection. Visits already booked stay booked, but can no longer be read or changed\n    through your key. To connect again, call create with the same `external_id` and send the\n    patient to the new `connect_url`. Raises a `connection.revoked` event. A connection that is\n    already revoked or declined answers `connection_not_active`. Needs the `patient:write` scope.",
        "operationId": "care_v1_connection_revoke_document_care_v1_connection__connection_id__revoke_document_put",
        "parameters": [
          {
            "description": "The ID of the connection to end.",
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "description": "The ID of the connection to end.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Connection ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CareConnectionOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_92e15b47fd4f20039985dd9815d14dc8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_de07053126d27be6a09729f6ebf3a70d"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_221af4ad8da003a686ebfd5350179a22"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_325e658cd106806b43d214cc2f99d5ea"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_489a9e225317c35226412709c184038d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_d661e281da51601bfbf6ef662331fc2f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_b87d70f652d059602d0fcc44f48c79d9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.connection_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_8db94617fa59f1993f71f6a98b85a9d2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_d838d8c7363ce11edf2cee52ed16d43d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_2bd6302c9bd6f58440ca7225dc2e9ef0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_244e7e000fcb1a37b1bf5839c0e40266"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_07e89db76481d0f4650567aea98c828d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_e04091298473b75a651c4770e9019838"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Revoke a connection.",
        "tags": [
          "Care [Connection]"
        ]
      }
    },
    "/care/v1/patient/create/document": {
      "post": {
        "description": "Creates a patient, or connects to the patient's existing Nurish'd account, and starts a\n    connection with them. Nothing can be booked for a patient until they approve the connection,\n    so the answer carries a `connect_url`:\n\n    - Send the patient to `connect_url` as a full page or a new tab. Never open it inside a frame\n      or a web view.\n    - The patient confirms with a code sent to the email on their Nurish'd account, signs the\n      health privacy agreement and the telehealth consent, and approves.\n    - The link is valid for 24 hours and works once. Calling create again with the same\n      `external_id` returns the same patient and a fresh link.\n    - The connection is `pending` until the patient approves it. Nothing can be booked for the\n      patient until the connection is `active`.\n    - To find out, trust the `connection.approved` event or read the connection. Never trust the\n      `status` in the return URL, because anyone can edit a URL.\n\n    The address is required: a dietitian must be licensed in the patient's province, and a visit\n    cannot be booked for a patient with no address. The patient is asked to\n    allow every care permission your key can use: `care.bookings` when it holds `booking:write`,\n    `care.reports` when it holds `report:read`, and `care.health-profile` when it holds\n    `health-profile:read` or `health-profile:write`. A key with none of those is refused with\n    `scope_not_granted`. The answer never says whether the email already had a Nurish'd account.\n\n    A patient is known to your company under one `external_id`. Two requests are refused with a\n    `409` and create nothing: `external_id_conflict` when the `external_id` already belongs to a\n    patient with a different email, and `person_already_connected` when the email is already\n    connected under a different `external_id`. To change the id you use for a patient, keep using\n    the first one.\n\n    Needs the `patient:write` scope, which needs a signed BAA.",
        "operationId": "care_v1_patient_create_document_care_v1_patient_create_document_post",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "patient": {
                  "description": "The patient comes back to one of your registered return URLs after the approval page.",
                  "summary": "A patient with an address and a return URL",
                  "value": {
                    "address": {
                      "city": "Vancouver",
                      "country": "CA",
                      "line1": "100 King St W",
                      "line2": "Apt 2",
                      "postal_code": "V6B 1A1",
                      "state": "BC"
                    },
                    "date_of_birth": "1990-12-10",
                    "email": "ada.lovelace@example.com",
                    "external_id": "patient-1001",
                    "first_name": "Ada",
                    "last_name": "Lovelace",
                    "return_url": "https://clinic.example.com/nurishd/return"
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/PatientCreateInput",
                "description": "The patient to create.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_cd9463ac203d1e97b5afd682d2ae4397"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_50c6ab9f8ea483a55cd39fc228d20f43"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_980e20b4b014576b325d751392b26bd8"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_0617089cbfeb0028ab5fb37efaf9cd92"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_086cede8d245e61a8129eedd3ce76807"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_5e8f9667dcf466f0544f1c132b879ec5"
                      }
                    }
                  },
                  "external_id_conflict": {
                    "value": {
                      "error": {
                        "code": "external_id_conflict",
                        "message": "This external_id is already used for another person. Use the external_id this person was first created with.",
                        "request_id": "req_85c6690c97a84558d8f2d84ef0a0c411"
                      }
                    }
                  },
                  "person_already_connected": {
                    "value": {
                      "error": {
                        "code": "person_already_connected",
                        "message": "This email is already connected to your company under a different external_id. Keep using the external_id the person was first created with.",
                        "request_id": "req_c4cd2a80724a9899e01d4e732dd133a4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.external_id: Field required",
                        "request_id": "req_fbd7afa1e500545d6888373eb8bd0d85"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_9e0093b2bb0db2adc57432654a9df41e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_69c5bb192b607718d6195399be21da8c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_751f7044d982157009dda8f683b0ae44"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_def5a4ad2d6fdefdf7886482c873f6c3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_0f41b8dd1a9eb0bc93bd04355ceee45f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Create a patient.",
        "tags": [
          "Care [Patient]"
        ]
      }
    },
    "/care/v1/patient/{patient_id}/get/document": {
      "get": {
        "description": "Returns a patient and their connection with your company, with the connection's status\n    brought up to date. `connect_url` and `connect_url_expires_at` are always `null` here: call\n    create again with the same `external_id` for a fresh link. A patient that does not exist, or\n    belongs to another company or mode, answers `not_found`. Needs the `patient:write` scope.",
        "operationId": "care_v1_patient_get_document_care_v1_patient__patient_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the patient, as `create` answered it.",
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "description": "The ID of the patient, as `create` answered it.",
              "format": "uuid",
              "title": "Patient ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_681eb87660054610c84189d2ebed6573"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_4e675d14e1553d8b61c8193478f9fdbe"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_cd5db33a11d631facf19e3554e27f56b"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_345451988d0e912d8825f0ac0bb8d371"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_57add07c8494c4e8e54cb0f17b0f2a60"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_d124cef939f875593964bace9afc8439"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.patient_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_6843e873a6eb86b146bc007a84ee5296"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_28d651c0db69ee11dfefc3c4dce1dda6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_9ff494b7082c4d5af017b793ba27abc9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_89e82374f81500c10597fe0f82053658"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_07e5bf808b01336104e1be88db977470"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_63e539e9417c6c96af491cbe7e899b8d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a patient.",
        "tags": [
          "Care [Patient]"
        ]
      }
    },
    "/care/v1/patient/{patient_id}/health-profile/get/document": {
      "get": {
        "description": "Returns the health profile of a patient with their latest measurement. The patient must have\n    an active connection with your company that allows the health profile: a pending or revoked\n    connection answers `connection_not_active`, a connection made without the health profile\n    permission answers `connection_scope_not_granted`, and an unknown patient, or one of another\n    company or mode, answers `not_found`.\n\n    A patient who has no health profile yet answers `health_profile_not_found`; create it with the\n    update route. `diabetes_information` and `heart_condition_information` are `null` when none\n    was saved, and `general_health_data`, the latest measurement, is `null` when there is none. Needs the `health-profile:read` scope,\n    which needs a signed BAA.",
        "operationId": "care_v1_health_profile_get_document_care_v1_patient__patient_id__health_profile_get_document_get",
        "parameters": [
          {
            "description": "The ID of the patient, as `create` answered it.",
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "description": "The ID of the patient, as `create` answered it.",
              "format": "uuid",
              "title": "Patient ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthProfileOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_18bb46e0e347fe2634bf4057cc2f2835"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_1a1bca5f396a31d18aa65eae0853af64"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_d60acdaa7b2d5af6d0e9d2878eb258d1"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_ea0832c97c505762c8d6d65eade9fe36"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.health-profile scope.",
                        "request_id": "req_fddd04570c3dfec68680f2a26740bec2"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the health-profile:read scope.",
                        "request_id": "req_e2b7fd28c6e085489121dfc32bded11a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "health_profile_not_found": {
                    "value": {
                      "error": {
                        "code": "health_profile_not_found",
                        "message": "The patient has no health profile yet. Create it with the update route.",
                        "request_id": "req_99c857635d9e0e2b1810e52a1041f98d"
                      }
                    }
                  },
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_032791e783a2f68ed0030c19e2947ee6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_4334d904d5c147c07ba00d147381b8f1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.patient_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_2b7df3e6a14752701e4087c00b925334"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_29362d135202e7dfa3114b2f99c40c77"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_6b74f30f36b363b78e30d71eb4246bdf"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_d7791ca394fbaa274798122de7614bbf"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_700661a22c378cb6ec5eb01246001c83"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_5c593d8bb07c63446b508e68e108d62f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get the health profile of a patient.",
        "tags": [
          "Care [Health Profile]"
        ]
      }
    },
    "/care/v1/patient/{patient_id}/health-profile/update/document": {
      "put": {
        "description": "Saves the whole health profile of a patient, and answers it as `get` would. It creates the\n    profile the first time and replaces it every time after.\n\n    **This is a full replace: send the whole profile; a field you leave out is cleared.** To change\n    one thing, read the profile, change it and send all of it back. A flag you leave out is\n    false. `has_diabetes`, `has_heart_condition` and `has_other_diseases` set to true need\n    `diabetes_information`, `heart_condition_information` and `other_diseases_notes`\n    respectively, or the answer is 422; a block sent with its flag false is not refused and is\n    saved as sent.\n\n    `general_health_data` adds a new measurement (height, weight, activity, goal and more) to the\n    patient's history; `get` answers the latest one. It is required the first time, because a\n    profile cannot be created without one: without it a patient who has no profile yet answers\n    `measurement_required`. A patient can have one measurement every 24 hours: a\n    `general_health_data` sent sooner answers `measurement_too_recent`, and nothing is saved.\n    Leave `general_health_data` out\n    to change the profile alone.\n\n    The patient must have an active connection with your company that allows the health profile\n    (see `get`). A body that fails validation answers 422 and saves nothing. Needs the\n    `health-profile:write` scope, which needs a signed BAA.",
        "operationId": "care_v1_health_profile_update_document_care_v1_patient__patient_id__health_profile_update_document_put",
        "parameters": [
          {
            "description": "The ID of the patient, as `create` answered it.",
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "description": "The ID of the patient, as `create` answered it.",
              "format": "uuid",
              "title": "Patient ID",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "profile only": {
                  "description": "Replaces the profile of a patient who already has one. Everything you leave out is cleared.",
                  "summary": "A profile without a measurement",
                  "value": {
                    "biological_sex": "Male",
                    "date_of_birth": "1985-03-02"
                  }
                },
                "profile with a measurement": {
                  "description": "The first save of a profile needs `general_health_data`. Later saves may leave it out.",
                  "summary": "A profile with a measurement",
                  "value": {
                    "additional_information": "Prefers vegetarian meals.",
                    "biological_sex": "Female",
                    "date_of_birth": "1990-12-10",
                    "diabetes_information": {
                      "additional_information": "Diagnosed three years ago.",
                      "diabetes_type": "Type 2",
                      "does_user_have_diabetic_complications": false,
                      "does_user_have_family_history_of_diabetes": true
                    },
                    "general_health_data": {
                      "activity_level": "Moderate",
                      "alcohol_consumption_frequency": "Never drinks",
                      "goal": "Managed Condition",
                      "height_in_cm": 165.5,
                      "managed_condition": "Diabetes [Weight Loss]",
                      "sleep_quality": "High sleep quality",
                      "smoking_status": "Non-Smoker",
                      "stress_level": "Low stress (relaxed throughout the day)",
                      "weight_in_kg": 70.25
                    },
                    "has_diabetes": true,
                    "has_heart_condition": false,
                    "has_other_diseases": true,
                    "medications": [
                      {
                        "dosage_amount": 500,
                        "dosage_unit": "mg",
                        "frequency": "Twice daily",
                        "medication_name": "Metformin"
                      }
                    ],
                    "other_diseases_notes": "Seasonal allergies.",
                    "supplements": [
                      {
                        "dosage_amount": 1000,
                        "dosage_unit": "IU",
                        "frequency": "Once daily",
                        "medication_name": "Vitamin D"
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/HealthProfileUpdateInput",
                "description": "The whole health profile, and an optional new measurement.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthProfileOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_d82f718f2b919f1cf4d5bae06739fcb3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_18acc4a42bdbe5890c4735f8f6892ec9"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_38ed3bb503e3ec4fc1695dcceef5f304"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_f57b8fc576f247180ee0eaa2b987f3f2"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.health-profile scope.",
                        "request_id": "req_ff458432e323665382cf9936c479834c"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the health-profile:write scope.",
                        "request_id": "req_2a0fe224c39208d12e46efcb167fc437"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_d507a9c9f8ed6333b3de0534dd46c1f7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_ee81e9cfe43879bc5d91f8d66150bbaa"
                      }
                    }
                  },
                  "measurement_too_recent": {
                    "value": {
                      "error": {
                        "code": "measurement_too_recent",
                        "message": "The patient already has a measurement from the last 24 hours. Save the profile without a measurement, or send the next one later.",
                        "request_id": "req_140f5565f9c34d67b28ef7c089a62abe"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "measurement_required": {
                    "value": {
                      "error": {
                        "code": "measurement_required",
                        "message": "The first save of a health profile needs a measurement.",
                        "request_id": "req_250465a9b54927b8c488c97a62a69589"
                      }
                    }
                  },
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.biological_sex: Field required",
                        "request_id": "req_18004cde2faab8af81ca1c10e8121621"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_6102e892d12f6cec9f13681c2d9710fb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_81dc444a522acff44c06f7f2178d2067"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_cb34af5d5f2ac2000d563b14460a3eb4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_87f0f0cd2cc33cae4262281b229811c8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_e98078b14c7a2c4a67379c6810de8ae9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Save the health profile of a patient.",
        "tags": [
          "Care [Health Profile]"
        ]
      }
    },
    "/care/v1/patient/{patient_id}/payment-method/query/documents": {
      "get": {
        "description": "Returns the cards saved to the patient's Nurish'd account, at most 10, in one page. Each card\n    has `id`, `card` (`brand`, `exp_month`, `exp_year` and `last4`) and `is_default`, which is `true`\n    for the card visits and fees are charged to. The patient can also add, remove and choose cards\n    in their own account, so the list can change without you. A patient with no card gets an empty\n    list.\n\n    Answers `404` when the patient has no connection with your company that allows care, `403\n    connection_scope_not_granted` when the patient did not allow bookings, and `409\n    connection_not_active` when the connection is pending or was revoked.\n\n    Needs the `patient:write` scope.",
        "operationId": "care_v1_patient_payment_method_query_documents_care_v1_patient__patient_id__payment_method_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the patient, as the create-patient route answered it.",
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "description": "The ID of the patient, as the create-patient route answered it.",
              "format": "uuid",
              "title": "Patient ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_dd9ffd01ff6d582ef7e7a12afe6053e2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_8b814b10d02714c5f263972ffcef5d0f"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_1b742ef6f41b9c5cf529dd935f0e5957"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_07c6c75baf9993a3dc8d575d5919aef2"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.bookings scope.",
                        "request_id": "req_78c9c9b7d60f09658b1cef5f81c7b62d"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_09b076cea1a5997498a750671d941b21"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_bd67ebd51ef282761ce30b0244267f98"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_cf0c6fdbc6159ebb0527e1239bb3dc54"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.patient_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_7b3e074d11cd56922dae4d6883045504"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_aa05764d823b1b26eaed0e072a8af8de"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_52c2e394c752975c4542d7003b8d8992"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_392217efe5fd85d802191abb1334bae9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_1af2bb251b76b79f637a31743f50b48e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_bb1c18b5d68f496d16f505308c09a8c6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List a patient's saved cards.",
        "tags": [
          "Care [Payment Method]"
        ]
      }
    },
    "/care/v1/patient/{patient_id}/payment-method/setup/create/document": {
      "post": {
        "description": "Starts saving a card to the patient's Nurish'd account. A visit cannot be booked for a patient\n    until a card is saved, because the visit, a late-cancellation fee and a no-show fee are charged\n    later to the patient's default card. The order of calls is: connect the patient, save a card,\n    book.\n\n    The card number never reaches your server or ours. Your page loads Stripe.js with the answered\n    `stripe_publishable_key` and confirms the card with the answered `client_secret`: the patient\n    types the card into Stripe's own form on your page. Then call the confirm route with\n    the answered `id`. Never log the client secret.\n\n    The card is saved to the patient's Nurish'd account and may be charged for visits, late-\n    cancellation fees and no-show fees. Tell the patient so before they type the card in.\n\n    Calling it again returns the same open setup while it is less than a day old. The patient must\n    have an active connection with your company that allows bookings. Answers `404` when the\n    patient has no connection with your company that allows care, `403\n    connection_scope_not_granted` when the patient did not allow bookings, and `409\n    connection_not_active` when the connection is pending or was revoked.\n\n    Needs the `patient:write` scope.",
        "operationId": "care_v1_patient_payment_method_setup_create_document_care_v1_patient__patient_id__payment_method_setup_create_document_post",
        "parameters": [
          {
            "description": "The ID of the patient, as the create-patient route answered it.",
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "description": "The ID of the patient, as the create-patient route answered it.",
              "format": "uuid",
              "title": "Patient ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodSetupOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_f47905c927913624e7e163cf7868c221"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_4ab58130042d9005a6ae3ffb28afb570"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_1f25d6e2ad52246292d4bde3db6a857a"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_1a693b4877e41356f0434762b579fb05"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.bookings scope.",
                        "request_id": "req_b6c117d56b51d2a03c200878ac4cf060"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_6b308b73179b50f6747345e4b97f845c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_bf8e88cc0aee8ff10bbd798e3019b2cd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_d784d55f4a8647a4cf71f92408281eb0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.patient_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_d4452dd363494b45f3be1f68801ec5c8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_6f58816855af83c66c197c2825f7c2cd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_f6babb580d90eb9a97e8650525d1bbf7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_e3b14f1e168e04430c6e27f48f181df6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_467e32fde2ae6f57fbbc95a08225b9ab"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_9e73528d28c3d96dd74a0a574b128c71"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Start saving a card for a patient.",
        "tags": [
          "Care [Payment Method]"
        ]
      }
    },
    "/care/v1/patient/{patient_id}/payment-method/setup/{setup_id}/confirm/document": {
      "put": {
        "description": "Call it after Stripe.js confirmed the card on your page. It checks the setup, makes sure the\n    card is recorded on the patient's Nurish'd account, and answers the card. When the patient had\n    no default card, the card becomes their default card, the one visits and fees are charged to.\n    A patient who already has a default card keeps it, and the answer says `is_default: false`.\n\n    Calling it again for the same setup is safe, and it does not wait for any notification, so call\n    it right after the card form says it worked. Answers `409 payment_method_setup_incomplete` when\n    the card form has not confirmed the card yet, `404` for a setup that is not this patient's, and\n    the same `404`, `403` and `409` as the start route for the patient's connection.\n\n    Needs the `patient:write` scope.",
        "operationId": "care_v1_patient_payment_method_setup_confirm_document_care_v1_patient__patient_id__payment_method_setup__setup_id__confirm_document_put",
        "parameters": [
          {
            "description": "The ID of the patient, as the create-patient route answered it.",
            "in": "path",
            "name": "patient_id",
            "required": true,
            "schema": {
              "description": "The ID of the patient, as the create-patient route answered it.",
              "format": "uuid",
              "title": "Patient ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the setup, as the start route answered it.",
            "in": "path",
            "name": "setup_id",
            "required": true,
            "schema": {
              "description": "The ID of the setup, as the start route answered it.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Setup ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_84dc4fb3042c1f971ac523b59c1042a3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_ab02e651f30109d6d915f1d173255771"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_d9b9be1db6abc897566e443979d401eb"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_11c71527d9675b671fdd85d41d9d293e"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.bookings scope.",
                        "request_id": "req_469f401b22f1ce0ebe7d73edd4e85e0a"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the patient:write scope.",
                        "request_id": "req_ba9d813d9eea35d3da65682f40cf454e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_64ba0192e3015b1ed814c4a6eb9b2d54"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_234138c2a8b8cd6dfa1dab16cda1fc91"
                      }
                    }
                  },
                  "payment_method_setup_incomplete": {
                    "value": {
                      "error": {
                        "code": "payment_method_setup_incomplete",
                        "message": "The card has not been confirmed with the card form yet. Confirm it on your page, then call this route again.",
                        "request_id": "req_7f4486d6a9f4ce3deedeeb04f1d45417"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.patient_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_523ddb37653c47c5bc7cf5b80f3f1516"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_7f957539167b695ba6a39f02ffbd4d4a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_93a07bc9695035e09f2c753e2fb21659"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_f403e0169744827b8899340d6b4f16d0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_0f0dacb594184416c83ef54f4ed1723b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_5536a1159361c359597d4cde642771a1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Finish saving a card for a patient.",
        "tags": [
          "Care [Payment Method]"
        ]
      }
    },
    "/care/v1/report/query/documents": {
      "get": {
        "description": "Returns a page of the signed reports of the visits your company booked, newest signed first. A\n    report of a visit the patient booked themselves, or that another company booked, is never\n    listed, and neither is a report of a patient whose connection with your company is no longer\n    active. The list is thin: read one report to get its sections.\n\n    You learn that a report exists from the `report.signed` event. When you ask for one `booking`\n    and no report of it is known yet, the answer also looks for a signed report of that visit, so a\n    report whose event you missed still shows up, and its event is raised once.\n\n    Query parameters:\n    - patient: Keep only the reports of this patient.\n    - booking: Keep only the reports of this booking.\n    - from: Keep only reports signed at or after this time, with a UTC offset.\n    - to: Keep only reports signed at or before this time, with a UTC offset.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `report:read` scope.",
        "operationId": "care_v1_report_query_documents_care_v1_report_query_documents_get",
        "parameters": [
          {
            "description": "Keep only the reports of this patient.",
            "in": "query",
            "name": "patient",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only the reports of this patient.",
              "title": "Patient"
            }
          },
          {
            "description": "Keep only the reports of this booking.",
            "in": "query",
            "name": "booking",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only the reports of this booking.",
              "title": "Booking"
            }
          },
          {
            "description": "Keep only reports signed at or after this time, with a UTC offset.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only reports signed at or after this time, with a UTC offset.",
              "title": "From"
            }
          },
          {
            "description": "Keep only reports signed at or before this time, with a UTC offset.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only reports signed at or before this time, with a UTC offset.",
              "title": "To"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error": {
                        "code": "bad_request",
                        "message": "The `from` time must not be after the `to` time.",
                        "request_id": "req_756db8a1e03b8956fc31885a37f2d7cb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request cannot be processed as sent, for example a range that ends before it starts."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_278e8d10c45df1ce3076db51ceb4301e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_ca4fc2ffadab8dae994f8fa44ccba179"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_eb161d3bfc11723c3d49120eb9f22010"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_5837181734a084640a54610fe8a7eb75"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the report:read scope.",
                        "request_id": "req_577e2aea5633c5a2d36f1ba76264538e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_310ce4967c21a81ba75d92dbc589bd94"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_6395e708564b05bb7b6953ee6e24fe07"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_281f625873792f996bb7dcfefb607504"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_56bdf910c3b554d379b8cdb0c399a457"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_e5d306429814e53731b776fef68cea7f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_9d17d2de521d9945c3dc6d371ebf89ba"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List reports.",
        "tags": [
          "Care [Report]"
        ]
      }
    },
    "/care/v1/report/{report_id}/get/document": {
      "get": {
        "description": "Returns one signed report of a visit your company booked, as the patient sees it: only the\n    sections the specialist shared with the patient. The patient's own details, the specialist's\n    signature and any private notes are never part of it. A section of type `image` or `pdf` has\n    `has_file: true`; ask for a time-limited link to read its file.\n\n    Answers `404` for a report of a visit the patient booked themselves, that another company\n    booked, or that does not exist; `409 connection_not_active` when the patient's connection with\n    your company was revoked; `403 connection_scope_not_granted` when the patient does not share\n    reports.\n\n    Needs the `report:read` scope.",
        "operationId": "care_v1_report_get_document_care_v1_report__report_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the report.",
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "description": "The ID of the report.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Report ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_c6ffff526d2ddf61b256a7b4365b9399"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_1a73c6613e2855a236548a5afc8c580b"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_9eb0e2be83f3c7cb362e7d8b5b543a4e"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_5394a26058bdda631109441eb3863932"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.reports scope.",
                        "request_id": "req_c302f5bef7be7f509e01b1c8b0b1925c"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the report:read scope.",
                        "request_id": "req_24be1f0e7fa02de2833f4e64a0eff6d9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_5dbacb4f8e1f8882b495353aa484e7c4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_0a4b7887a750c97fcbb2cdcea4eaca5c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.report_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_21dec6c2d3025e0019e8e5721611f3de"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_856d61e41cd73cd4d520bd70ec2590c2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_35fe458a14221d66072a30e6e06bf56c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_30f7ec599c8d5d0033d031be231f32a4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_fddefab1fadcf493592c022f5aaa6ffd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_f3963095dfa7ff00f88df0edc1b68c18"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a report.",
        "tags": [
          "Care [Report]"
        ]
      }
    },
    "/care/v1/report/{report_id}/section/{section_id}/file/get/document": {
      "get": {
        "description": "Returns a link to the file of an `image` or `pdf` section of a report (the sections with\n    `has_file: true`). The link works for a short time only: fetch the file at once and do not\n    store the link. Ask again when you need the file again.\n\n    Answers `404` for a report your company has no access to, a section the specialist did not\n    share, and a section without a file; `409 connection_not_active` when the patient's connection\n    with your company was revoked; `403 connection_scope_not_granted` when the patient does not\n    share reports.\n\n    Needs the `report:read` scope.",
        "operationId": "care_v1_report_section_file_get_document_care_v1_report__report_id__section__section_id__file_get_document_get",
        "parameters": [
          {
            "description": "The ID of the report.",
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "description": "The ID of the report.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Report ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the section whose file to read.",
            "in": "path",
            "name": "section_id",
            "required": true,
            "schema": {
              "description": "The ID of the section whose file to read.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Section ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportFileOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_59e78018cb290d72daee845cdc635ce5"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_4c5ddea050ec1b45dfe1eb1edc8b046f"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_af8cfb942a9e679db2c8f3562d57ba42"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_58e8405f09c6b54bafef48e678840901"
                      }
                    }
                  },
                  "connection_scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "connection_scope_not_granted",
                        "message": "The connection does not hold the care.reports scope.",
                        "request_id": "req_8c82f4317f3fec92b6d9dd05528735c1"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the report:read scope.",
                        "request_id": "req_cea7655ce38fb559146f7c2f711775fd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_1ed57f807032ddd13e96f5edab74d016"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_98efa246753c8040cca0093d9331de3e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.report_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_80269e81786ef9491490ccce76dbc749"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_2d3b471338a8b54e4f3d87f2ce986675"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_880817878f1bb697fea01b5f8c306f38"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_426d30f817b4fbf5be47f97201f086e3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_4a27d636f12059827ddcc6632fee10c6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_80a859b795ec4d7b8b4a60f8d127e46d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get the file of a report section.",
        "tags": [
          "Care [Report]"
        ]
      }
    },
    "/care/v1/specialist/query/documents": {
      "get": {
        "description": "Returns a page of the specialists you can book, by name. Specialists that are not live yet,\n    that are hidden or that were retired are never listed. The list leaves out the long\n    description of each specialist; read one specialist to get it. Listing needs no patient and no\n    business associate agreement.\n\n    Query parameters:\n    - type: Keep only this kind of specialist: `Dietitian`, `Certified Nutrition Specialist` or\n      `Physical Trainer`.\n    - language: Keep only specialists who speak this language, for example `Spanish`.\n    - specialization: Keep only specialists with this specialization, for example\n      `Weight Loss/Management`.\n    - state: Keep only specialists who practise in this province, as two capital letters, for example\n      `ON`. The `specialist_locations` of a specialist then show only the places in that province.\n    - name: Keep only specialists whose name starts with this text. One word matches the start of\n      the last name; with more words, the first word matches the start of the first name and the\n      rest the start of the last name. Not case sensitive.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `specialist:read` scope.",
        "operationId": "care_v1_specialist_query_documents_care_v1_specialist_query_documents_get",
        "parameters": [
          {
            "description": "Keep only this kind of specialist: `Dietitian`, `Certified Nutrition Specialist` or `Physical Trainer`.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SpecialistTypeEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only this kind of specialist: `Dietitian`, `Certified Nutrition Specialist` or `Physical Trainer`.",
              "title": "Type"
            }
          },
          {
            "description": "Keep only specialists who speak this language, for example `Spanish`.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^[^${}]{1,100}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only specialists who speak this language, for example `Spanish`.",
              "title": "Language"
            }
          },
          {
            "description": "Keep only specialists with this specialization, for example `Weight Loss/Management`.",
            "in": "query",
            "name": "specialization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SpecializationEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only specialists with this specialization, for example `Weight Loss/Management`.",
              "title": "Specialization"
            }
          },
          {
            "description": "Keep only specialists who practise in this province, as two capital letters, for example `ON`.",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^[A-Z]{2}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only specialists who practise in this province, as two capital letters, for example `ON`.",
              "title": "State"
            }
          },
          {
            "description": "Keep only specialists whose name starts with this text. Not case sensitive.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^[^${}]{1,150}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only specialists whose name starts with this text. Not case sensitive.",
              "title": "Name"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpecialistPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_5ea1c3b38ac325aec58f94884aa376b4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_92199c2c25e509898839509ca2aee268"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_31728b79b37571e30ec21d2b0e6ce98e"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_f0bf13600d2e71d071f6c39781a40aeb"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the specialist:read scope.",
                        "request_id": "req_10575cc72df02bed64cde8eed2c4c47d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_314cf2d27ccac878daa01a45e87468c9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_670d2f04b249fd29c511788ff245f93d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_83e4a817d3102fc26dba06b8d2be2d8a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_8731a9ab5d8674b455b941021323e2d3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_9e0c5555d14f91254b7ccb9481c9a3b0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_f8d1509fdcd5d5e7012a9e62e64e928c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List specialists.",
        "tags": [
          "Care [Specialist]"
        ]
      }
    },
    "/care/v1/specialist/{specialist_id}/get/document": {
      "get": {
        "description": "Returns one specialist with the long description. Answers `404` when the specialist does not\n    exist, is not live yet, is hidden or was retired.\n\n    Needs the `specialist:read` scope.",
        "operationId": "care_v1_specialist_get_document_care_v1_specialist__specialist_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the specialist.",
            "in": "path",
            "name": "specialist_id",
            "required": true,
            "schema": {
              "description": "The ID of the specialist.",
              "format": "uuid",
              "title": "Specialist ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpecialistOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_6dc8b2c070b69a3d0a196e7b59c97c10"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_8cff744a5fbe124258f7e78810da2bdb"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_e685de46761591245a14953687c19198"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_2a32353d9cfdf86c8131e5694b137e51"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the specialist:read scope.",
                        "request_id": "req_ae503b961d3e763c20ef71157ca68654"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_cf1e359cbb95d28899caf461007d8a3e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.specialist_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_1f5b73060a43e14b5a2f4332505c649f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_5f98c093491ae63d023dba0d3c8710a2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_c79e663d8467ab5bb8536dbb04f5115d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_d0b378d2c69a2207817a534f98604c1d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_272944a6b37822fc4672b093ab9e40c4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_f62054b4de8084a2af5fd6c3f136d1c8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a specialist.",
        "tags": [
          "Care [Specialist]"
        ]
      }
    },
    "/care/v1/specialist/{specialist_id}/service/query/documents": {
      "get": {
        "description": "Returns a page of the services of one specialist that you can book. Services that are not live\n    yet or that were retired are never listed. Answers `404` when the specialist does not exist,\n    is not live yet, is hidden or was retired.\n\n    Query parameters:\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `specialist:read` scope.",
        "operationId": "care_v1_specialist_service_query_documents_care_v1_specialist__specialist_id__service_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the specialist.",
            "in": "path",
            "name": "specialist_id",
            "required": true,
            "schema": {
              "description": "The ID of the specialist.",
              "format": "uuid",
              "title": "Specialist ID",
              "type": "string"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicePageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_7782a7aca757ea37796cb27d240aa4c9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_7ae4dadaf9c8f75d139057874883c3a2"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_c6f3797ba82edafb2b31890217958b5f"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_52492f942f6e292280f5ee17b5612a74"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the specialist:read scope.",
                        "request_id": "req_cfa6a71b7d96a49310385d71360e4815"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_48a473e5165457a30dd990f488fdab0c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_b7165bb5613ee22612606cb531e5d87d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_f8ea23a4e9b6f212c0322d0ada7a633e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_03fd329578d154522865a5653deb81e1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_65ea0945bfd65e2fbf4b37bb0a403b17"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_5693694034c8c68a492ae8e180b7f5ed"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_ef09bf188f450f22c0450a558ac0e0cb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List the services of a specialist.",
        "tags": [
          "Care [Service]"
        ]
      }
    },
    "/care/v1/specialist/{specialist_id}/service/{service_id}/availability/query/documents": {
      "get": {
        "description": "Returns the times a patient can still book for one service of a specialist, earliest first, in\n    UTC. Pass one of these times as the `start` of a booking. Needs no patient and no business\n    associate agreement.\n\n    The range must start before it ends and be at most 31 days long, otherwise the answer is\n    `422 invalid_time_range`. A `from` in the past is moved up to the present, and the answer says\n    the range that was searched. Answers `409 service_not_bookable` when the service cannot be\n    booked online, for example a service delivered in person, and `404` when the specialist does\n    not exist, is not live yet, is hidden or was retired.\n\n    Query parameters:\n    - from: The start of the range, with a UTC offset, for example `2026-06-01T00:00:00Z`.\n    - to: The end of the range, with a UTC offset.\n\n    Needs the `specialist:read` scope.",
        "operationId": "care_v1_specialist_service_availability_query_documents_care_v1_specialist__specialist_id__service__service_id__availability_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the specialist.",
            "in": "path",
            "name": "specialist_id",
            "required": true,
            "schema": {
              "description": "The ID of the specialist.",
              "format": "uuid",
              "title": "Specialist ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the service.",
            "in": "path",
            "name": "service_id",
            "required": true,
            "schema": {
              "description": "The ID of the service.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Service ID",
              "type": "string"
            }
          },
          {
            "description": "The start of the range, with a UTC offset, for example `2026-06-01T00:00:00Z`.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "description": "The start of the range, with a UTC offset, for example `2026-06-01T00:00:00Z`.",
              "format": "date-time",
              "title": "From",
              "type": "string"
            }
          },
          {
            "description": "The end of the range, with a UTC offset. At most 31 days after `from`.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "description": "The end of the range, with a UTC offset. At most 31 days after `from`.",
              "format": "date-time",
              "title": "To",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvailabilityOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_02420f1b3eb1fde939350d5dfd0bd179"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_4aba76cbecb49445d3d0c7d7020e7ab0"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_1f0dd18f0b393ee84daad09ac80e323d"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_45895ea5b218f29b70277fa573d2e6f0"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the specialist:read scope.",
                        "request_id": "req_e18bdf510dc58a4b68ad237ebe3e9f7b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_142f740828318b956a0bbecc830f466a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "service_not_bookable": {
                    "value": {
                      "error": {
                        "code": "service_not_bookable",
                        "message": "This service cannot be booked online right now.",
                        "request_id": "req_322c7655404bdbbb234542196861f3e1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_time_range": {
                    "value": {
                      "error": {
                        "code": "invalid_time_range",
                        "message": "The range must end after it starts and be at most 31 days long.",
                        "request_id": "req_0a9e3ed75875c156be3e0456329af081"
                      }
                    }
                  },
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.from: Field required",
                        "request_id": "req_edf4a6c6569751d99a0fe6777180067f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_9ebcbae3d1a14a60e789e76ea659d7cb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_a2a8387c1e1c7472861b1c4ca364dc2e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_4648c0224fb13cb1cfec51cf4f368649"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_a408ffb120f3ca9792b8cabae765709c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_2583c347a59ad995217d4c7ebabd3a3c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List the open times of a service.",
        "tags": [
          "Care [Availability]"
        ]
      }
    },
    "/developer/v1/event/query/documents": {
      "get": {
        "description": "Returns what happened to your company's connections, bookings, reports and orders, newest\n    first. An event is thin: it holds a type and ids, never the object itself, so fetch the object\n    with your API key. Only events of the last 30 days are listed, only those made with the mode\n    of your key, and only the types your key's scopes allow. The same events are what a webhook\n    endpoint receives.\n\n    Query parameters:\n    - type: Keep only events of this type, such as `report.signed`.\n    - from: Keep only events created at or after this time (ISO 8601 with a time zone).\n    - to: Keep only events created at or before this time (ISO 8601 with a time zone).\n    - page: The page number, from 1.\n    - size: The page size, at most 50.",
        "operationId": "developer_v1_event_query_documents_developer_v1_event_query_documents_get",
        "parameters": [
          {
            "description": "Keep only events of this type.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/EventTypeEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only events of this type.",
              "title": "Type"
            }
          },
          {
            "description": "Keep only events created at or after this time. It must carry a time zone.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only events created at or after this time. It must carry a time zone.",
              "title": "From"
            }
          },
          {
            "description": "Keep only events created at or before this time. It must carry a time zone.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only events created at or before this time. It must carry a time zone.",
              "title": "To"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error": {
                        "code": "bad_request",
                        "message": "The `from` time must not be after the `to` time.",
                        "request_id": "req_9fdd93e6ab356658c26bba3b37b704c7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request cannot be processed as sent, for example a range that ends before it starts."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_ead184fc0ae358ebbdb66a71b05220e7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_dfc69bcc23d4c976b5d220cac8cb0d83"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_d98342dab832bc9895c6e96ed41d8d30"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_f4f917c7011b7772d87f08d7ce209110"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_e196b9a14dd641fb31e1fdeab991754b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_533ca3c08d50e191689ac9ae89527f4c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_fe54424eeefb472a0cde328ea60734d0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_58c44dd9c7f0f288bf0d596394077eeb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_5b1e5e0aaa0305b24ee008de08a45cc0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_83f6fe1defbb8dbe2f6f7dc5ad3afd9b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List events.",
        "tags": [
          "Developer [Event]"
        ]
      }
    },
    "/developer/v1/event/{event_id}/get/document": {
      "get": {
        "description": "Returns one event. An event is thin: it holds a type and ids, never the object itself, so\n    fetch the object with your API key. An event that does not exist, belongs to another company\n    or mode, or is of a type your key's scopes do not allow answers `not_found`.",
        "operationId": "developer_v1_event_get_document_developer_v1_event__event_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the event, such as `evt_...`.",
            "in": "path",
            "name": "event_id",
            "required": true,
            "schema": {
              "description": "The ID of the event, such as `evt_...`.",
              "title": "Event ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_9bbbb20554a8052da62370b524ec09d6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_5117eecfad1ef6a421a2a1d134188cb4"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_8fdd7d3c225d983af32191a4942ca5eb"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_3d9a05d03faf2ac5ebac0c7ad423e88a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_7d01b551c1781f8f72f9c4145796ae65"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_749b9ae6317d03188d5081f685834784"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_d077eb9a13cc8a36c3b36a095992b980"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_7e7958e535650501bd54ec978c304054"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_fd1462a666bd96f22ed90f79d1fbad21"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_4c40d08f523d4fa77a0011ca45dc7340"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get an event.",
        "tags": [
          "Developer [Event]"
        ]
      }
    },
    "/developer/v1/key/get/document": {
      "get": {
        "description": "Returns the API key the request was made with: its name, its mode (`test` or `prod`), what it\n    may do, the company it belongs to and the number of calls per minute it may make. Use it to\n    confirm that a key works and has the access you expect. It needs no scope.",
        "operationId": "developer_v1_key_get_document_developer_v1_key_get_document_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_f8fe1f70acad2f4c7bae8ece3fbe2e27"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_db2debf060932d1c555734d52e9f9faf"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_260fa52cf2dcf001042603a91982e42f"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_20f05b372db08f193642f73ffc120c0e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_52850d9e86b75e5d9b04473b4256f817"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_529a9487f6cfdb02d7421297f0bf1e88"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_4511e35d1abe6a48da78cfc3f920a1b1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_4ae09d35a6f4df336236ef5bb4428e79"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_85172c470fa8c9ce0fb8ba5d5315530e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Check your API key.",
        "tags": [
          "Developer [Key]"
        ]
      }
    },
    "/developer/v1/test-helper/booking/{booking_id}/complete/document": {
      "post": {
        "description": "Sandbox only. There are no real visits in the sandbox, so nothing ever produces a signed\n    report. This route finishes a test booking for you: it marks the visit `meeting_completed` and signs a\n    sample report, so you can try the `report.signed` event and the report routes from start to\n    end. The content of the sample report is invented.\n\n    It works only with a test key (`nk-test-`). A prod key (`nk-prod-`) answers\n    `403 test_mode_only` and nothing happens.\n\n    The `report.signed` event follows shortly after this route answers. The booking must be one\n    your company made with a test key: otherwise the answer is `404`. A booking that was canceled,\n    or is already completed, answers `409 booking_not_completable`.\n\n    Needs the `booking:write` scope.",
        "operationId": "developer_v1_test_helper_booking_complete_document_developer_v1_test_helper_booking__booking_id__complete_document_post",
        "parameters": [
          {
            "description": "The ID of the test booking.",
            "in": "path",
            "name": "booking_id",
            "required": true,
            "schema": {
              "description": "The ID of the test booking.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Booking ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestHelperBookingCompleteOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_a54480820678ec59441c906b2f356339"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_48faacca87ff150ad951b8184e388a89"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_74f01750c2473f94a0521a2e350d517a"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_0cbad953dd990774f37c044db6874f4a"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the booking:write scope.",
                        "request_id": "req_0e2e1daed5eb577048e1e3368be5c531"
                      }
                    }
                  },
                  "test_mode_only": {
                    "value": {
                      "error": {
                        "code": "test_mode_only",
                        "message": "This route works only with a test key.",
                        "request_id": "req_63770ab497b09c7af0ff5d0083fe2d94"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_c045550729a97cf3b1cc0c69dc07814d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "booking_not_completable": {
                    "value": {
                      "error": {
                        "code": "booking_not_completable",
                        "message": "This booking cannot be completed.",
                        "request_id": "req_7d87a876867d7d6a54455baba3bc9d2a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.booking_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_aa378a5bf3f73ade9bdce5df8a008847"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_c5b6592c2aba21d2cd13941f306ba0f0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_4af9063c8d19ffdd8b92187e43d4fee2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_aa391a353b45566009c59ed7e1cbef59"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_27114640c109abfd6c86255cf24086af"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_b1de31d31ba53d55fd4da6fb7ea825d9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Complete a test booking.",
        "tags": [
          "Developer [Test Helper]"
        ]
      }
    },
    "/developer/v1/webhook-endpoint/create/document": {
      "post": {
        "description": "Registers an HTTPS address that receives the event types you choose, with a signing secret of\n    its own. The secret is shown here, in `secret`, and can be read again in the developer\n    console. Verify every delivery with it. The URL must be public: `https` only, no user name or\n    password, no fragment, no `localhost` or private IP address. Choose at least one event type,\n    each once; `ping` cannot be chosen. Your key's scopes must let it see every type you choose,\n    otherwise the call answers `scope_not_granted`. A company has at most 10 endpoints per mode;\n    the 11th answers `webhook_endpoint_limit_reached`. The endpoint is made in the mode of your key.\n\n    Events are thin: an event holds a type and ids, never the object itself, so fetch the object\n    with your API key. Each endpoint has its own signing secret; verify every delivery with it.",
        "operationId": "developer_v1_webhook_endpoint_create_document_developer_v1_webhook_endpoint_create_document_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointCreateInput",
                "description": "The URL, event types and description of the endpoint.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointWithSecretOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_5c7632560ae2653057948eebbfdf0fde"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_433c21968c14821d847d00b9fa720782"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_fecc4339c793685c3214805d85edf2e9"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_bf18dac5d977e89692ea6da5df946380"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the scope to receive: order.created.",
                        "request_id": "req_2b85f8efbb24b34dce7ebdc46a0eb207"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "webhook_endpoint_limit_reached": {
                    "value": {
                      "error": {
                        "code": "webhook_endpoint_limit_reached",
                        "message": "A company can have at most 10 webhook endpoints in one mode.",
                        "request_id": "req_a844e5a2b75a6c68596d32309fe42d60"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.url: Field required",
                        "request_id": "req_339f56b65ea3ce654402ba80276c2bd0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_eef9fbd24558aeb4c8a7664de3695b42"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_ab5dfbe1b22302079c484a400b50b12b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_0a4d54f02326022149051dfbf1fd293c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_07b0e0110be9850f70c9283d8ad76531"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_9f3de7ff5787829dcd948ce714025c7b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Create a webhook endpoint.",
        "tags": [
          "Developer [Webhook Endpoint]"
        ]
      }
    },
    "/developer/v1/webhook-endpoint/query/documents": {
      "get": {
        "description": "Returns your company's webhook endpoints in the mode of your key, newest first. The signing\n    secret is not listed: only its last four characters.\n\n    Query parameters:\n    - page: The page number, from 1.\n    - size: The page size, at most 50.",
        "operationId": "developer_v1_webhook_endpoint_query_documents_developer_v1_webhook_endpoint_query_documents_get",
        "parameters": [
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_00f02278780dbd01af0325dd119f8490"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_bd02ef3763964c2a7a68893422ae4a4f"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_4208e3059df99e4cab23b9ec6ecd8229"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_30ef0a3c1524f4959b5e3a850a8c8c0c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_05264836a043547ed2e22ef76a42f7e3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_f454e2f8f6ed42936648dd658128b0ac"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_0ddec7beefa9712afc17ab7897d6e130"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_caab31747a10ec643fae6e04d27bba14"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_361d8041bf062169af0d3c5a61be155d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_c99f3edb5e27eede9211965bdc0c638f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List webhook endpoints.",
        "tags": [
          "Developer [Webhook Endpoint]"
        ]
      }
    },
    "/developer/v1/webhook-endpoint/{endpoint_id}/delete/document": {
      "delete": {
        "description": "Deletes a webhook endpoint. Events are no longer sent to it. An endpoint of another mode\n    answers `not_found`.",
        "operationId": "developer_v1_webhook_endpoint_delete_document_developer_v1_webhook_endpoint__endpoint_id__delete_document_delete",
        "parameters": [
          {
            "description": "The ID of the webhook endpoint, such as `whe-...`.",
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "description": "The ID of the webhook endpoint, such as `whe-...`.",
              "title": "Endpoint ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointDeleteOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_c81d48aa69edd7d8ab1867a680839ae7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_2a460f873c0f106684133844be4e231b"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_73921c6ba94b5b5018a59b35910ea32e"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_8c649c53fc8c877fd48a9c1fd6273446"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_38b079eda7a900d6b1ac0b781e472928"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_27f40c8bc9e42157c7fe15f30611ec4a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_6de144fbd91a20fb48eb5337d6818ff4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_29b98ce9ebf8b6b049b5b79162b7de26"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_6d9b8dcca27bff4a4f4531a0fa6c4f98"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_a7bc1abdda5079181d7193c322047d72"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Delete a webhook endpoint.",
        "tags": [
          "Developer [Webhook Endpoint]"
        ]
      }
    },
    "/developer/v1/webhook-endpoint/{endpoint_id}/secret/roll/document": {
      "put": {
        "description": "Makes a new signing secret at once and returns it in `secret`. After a roll both secrets are\n    valid for 24 hours, so you can switch over without missing a delivery; then the old one stops\n    working. `previous_secret_expires_at` says when. Each endpoint has one secret; verify every\n    delivery with it. The secret can also be read in the developer console.",
        "operationId": "developer_v1_webhook_endpoint_secret_roll_document_developer_v1_webhook_endpoint__endpoint_id__secret_roll_document_put",
        "parameters": [
          {
            "description": "The ID of the webhook endpoint, such as `whe-...`.",
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "description": "The ID of the webhook endpoint, such as `whe-...`.",
              "title": "Endpoint ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointWithSecretOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_ce5e50120701019a4b4982aacab16779"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_42d4a98676c5421951adaffb4bd572cf"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_a12efc090c523d8e1e84eefa02e7050f"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_2028ffb873cc20b9fe59d88d89bd090a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_65a90c3e9c2f345c399efc0a82e083ca"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error": {
                        "code": "bad_request",
                        "message": "The secret was rolled at the same moment. Please try again.",
                        "request_id": "req_d648cc15ac493fd68ac23bd20baffe70"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_d6e76f3fc77ec4821e630be283a72a32"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_6ff772beb43d987eb0caa5feea3fe0c9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_3e94ecbc4671cc4f837840bafcda3a67"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_9aeca3d23bc2ce16497ebd042b50c867"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_fee94315fdbbd2e408d4e1d69abe48d2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Replace the signing secret of a webhook endpoint.",
        "tags": [
          "Developer [Webhook Endpoint]"
        ]
      }
    },
    "/developer/v1/webhook-endpoint/{endpoint_id}/update/document": {
      "put": {
        "description": "Changes the fields you send and leaves the others as they are. Send `description` as `null` to\n    clear it. Send `is_enabled: false` to pause deliveries. The same rules as on create apply to\n    `url` and `events`. An endpoint of another mode answers `not_found`.",
        "operationId": "developer_v1_webhook_endpoint_update_document_developer_v1_webhook_endpoint__endpoint_id__update_document_put",
        "parameters": [
          {
            "description": "The ID of the webhook endpoint, such as `whe-...`.",
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "description": "The ID of the webhook endpoint, such as `whe-...`.",
              "title": "Endpoint ID",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointUpdateInput",
                "description": "The fields to change.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_2fd153bfdd517b09824e48f03723e592"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_c1044fdc2bacbb26d4f5c553090bc627"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_69fb321ecdcec394ac57c4d2690aa28a"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_821afc25f5f2fbab6a39426fc64fb44f"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the scope to receive: order.created.",
                        "request_id": "req_ed511a5b3bed250a467675f08edcabf5"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_afc2cd9d329ae9f79f9ba10561bd3e8e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "Send at least one field to change.",
                        "request_id": "req_b3ffef5655f04fb214d14236febf07b0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_039fcb058a1551c6efe8734eda978611"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_398685f7de57eee8e351809070124fd4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_6c63227158a5b579bead16b6acdd0cd5"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_5ecc6b44b5e326af81d26d05c1da4484"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_03c768bacc70449a86ff3014e1998e34"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Change a webhook endpoint.",
        "tags": [
          "Developer [Webhook Endpoint]"
        ]
      }
    },
    "/meals/v1/connection/{connection_id}/get/document": {
      "get": {
        "description": "Returns a connection between your company and a customer, with its status brought up to date.\n    Nothing can be ordered for the customer until the status is `active`. Read the connection, or\n    trust the `connection.approved` event, to learn that the customer approved; never trust the\n    `status` in the return URL. A connection that does not exist, or belongs to another company or\n    mode, answers `not_found`. Needs the `order:read` scope.",
        "operationId": "meals_v1_connection_get_document_meals_v1_connection__connection_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the connection, as `create` answered it.",
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "description": "The ID of the connection, as `create` answered it.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Connection ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MealsConnectionOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_e79fb7794ad8521d5ec7f10efa9baa05"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_a76e8fb8bd360e96ed4198a524348ed3"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_433a63170b63b92fdf1971cbb258c129"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_18202d6f466d149a5983985717ad3556"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:read scope.",
                        "request_id": "req_12172f6d98f06630fc529076753351c4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_c1c9950ea024b7469b8345e9c58c821d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.connection_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_915e327bf65f900b95a8cd3d743b41a9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_90bb7b213ccbb0ce499f5ec1d0511e4c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_154258f27ad9516a507847b4e6e81518"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_a1fecc679cce3647cc0279491618b253"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_f7eba016db9faaff085b21a1d7439646"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_e2ca46c68e02ce82bb855e723646d4fe"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a connection.",
        "tags": [
          "Meals [Connection]"
        ]
      }
    },
    "/meals/v1/connection/{connection_id}/revoke/document": {
      "put": {
        "description": "Ends a connection. Nothing can be ordered for the customer afterwards; to connect again, call\n    create with the same `external_id` and send the customer to the new `connect_url`. Raises a\n    `connection.revoked` event. A connection that is already revoked or declined answers\n    `connection_not_active`. Needs the `order:write` scope.",
        "operationId": "meals_v1_connection_revoke_document_meals_v1_connection__connection_id__revoke_document_put",
        "parameters": [
          {
            "description": "The ID of the connection to end.",
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "description": "The ID of the connection to end.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Connection ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MealsConnectionOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_857989c46a3c220f03f3e5bfac38e9d9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_4eaa685ea6b99319d92ee50eb7aa08e9"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_e3e37c958bd86ffd3d9748c8b3bf22e4"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_0879f74eaa49855922927014f250b632"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:write scope.",
                        "request_id": "req_bb9d20218d8e1901fc61e13f511410c7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_5c7c8a831b5626f3c37cdf8c6dad04e8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_ee9b704e6492cf36477a9f9ea1d16796"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.connection_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_c9d1d3c6c34014762430b94b3df1d2d3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_530202c9b3dc6910e1d086a500507ecb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_40dd8508cdbe1c17a3ba086bb9377760"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_0de524bab2cffc5d18b2665fd0a68d69"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_28e8067dc562183d0217e32aee24aab0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_1e06be56fbd8d3f89157b8e554738cdb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Revoke a connection.",
        "tags": [
          "Meals [Connection]"
        ]
      }
    },
    "/meals/v1/customer/create/document": {
      "post": {
        "description": "Creates a customer and starts a connection with them. Nothing can be ordered for a customer\n    until they approve the connection, so the answer carries a `connect_url`:\n\n    - Send the customer to `connect_url` as a full page or a new tab. Never open it inside a\n      frame or a web view.\n    - The link is valid for 24 hours and works once.\n    - The connection is `pending` until the customer approves it. Nothing can be ordered for the\n      customer until the connection is `active`.\n    - To find out, trust the `connection.approved` event or read the connection. Never trust the\n      `status` in the return URL, because anyone can edit a URL.\n\n    Calling create again with the same `external_id` returns the same customer and a fresh link.\n    The answer never says whether the email already had a Nurish'd account.\n\n    A customer is known to your company under one `external_id`. Two requests are refused with a\n    `409` and create nothing: `external_id_conflict` when the `external_id` already belongs to a\n    customer with a different email, and `person_already_connected` when the email is already\n    connected under a different `external_id`. To change the id you use for a customer, keep using\n    the first one.\n\n    Needs the `order:write` scope.",
        "operationId": "meals_v1_customer_create_document_meals_v1_customer_create_document_post",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "customer": {
                  "description": "The customer comes back to one of your registered return URLs after the approval page.",
                  "summary": "A customer with a return URL",
                  "value": {
                    "email": "ada.lovelace@example.com",
                    "external_id": "customer-1001",
                    "first_name": "Ada",
                    "last_name": "Lovelace",
                    "return_url": "https://shop.example.com/nurishd/return"
                  }
                },
                "customer without return url": {
                  "description": "The customer stays on the approval page; read the connection or wait for the `connection.approved` event.",
                  "summary": "A customer without a return URL",
                  "value": {
                    "email": "grace.hopper@example.com",
                    "external_id": "customer-1002",
                    "first_name": "Grace",
                    "last_name": "Hopper"
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/CustomerCreateInput",
                "description": "The customer to create.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_2464dba1416326a9322bbc28b7427c4a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_97786c8ba50be6b0afe0bdddb5f7effa"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_901ab041b4fe627fc35f1d42f262ab29"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_895943352332f69ab90b3ed5d289a04e"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:write scope.",
                        "request_id": "req_039e267d7f2b90dcc7583d5e31451bd0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_6c0822b668ebe8da0c0bc6de29247032"
                      }
                    }
                  },
                  "external_id_conflict": {
                    "value": {
                      "error": {
                        "code": "external_id_conflict",
                        "message": "This external_id is already used for another person. Use the external_id this person was first created with.",
                        "request_id": "req_00b0010c7099e75a254a5707c2b2277a"
                      }
                    }
                  },
                  "person_already_connected": {
                    "value": {
                      "error": {
                        "code": "person_already_connected",
                        "message": "This email is already connected to your company under a different external_id. Keep using the external_id the person was first created with.",
                        "request_id": "req_5a8b0c7526bc6c69a22a91c36d4c75cf"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.external_id: Field required",
                        "request_id": "req_37446c35b3448bd6d218e6a471130e7b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_9e05569125f3fed2c28b1ca91c99b045"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_58995019119b01e196d3dbcf78210a7c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_df3371633478629bfe107532adcf3011"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_cc5f4231d05c15e936e943a6c6d37206"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_eed2b0cf26905b31a555abc6c7902620"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Create a customer.",
        "tags": [
          "Meals [Customer]"
        ]
      }
    },
    "/meals/v1/customer/{customer_id}/get/document": {
      "get": {
        "description": "Returns a customer and their connection with your company, with the connection's status\n    brought up to date. `connect_url` and `connect_url_expires_at` are always `null` here: call\n    create again with the same `external_id` for a fresh link. A customer that does not exist, or\n    belongs to another company or mode, answers `not_found`. Needs the `order:read` scope.",
        "operationId": "meals_v1_customer_get_document_meals_v1_customer__customer_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the customer, as `create` answered it.",
            "in": "path",
            "name": "customer_id",
            "required": true,
            "schema": {
              "description": "The ID of the customer, as `create` answered it.",
              "format": "uuid",
              "title": "Customer ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_68dd4dbdd7dc15d373e8a8454612fb29"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_36ea9b773468003d5e1bb242489448be"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_703f1b0792aec3446d2125bc78f7708f"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_3f4f3e85172d6534dd18b43dec829564"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:read scope.",
                        "request_id": "req_c4895276f49cfa428ba0c6822eb22f5d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_052a75306b5e5a631808679f9e87577a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.customer_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_601e99d29ebb8bfa11d4c9471c7b591e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_d429e64df66e1da5f9aba034c0fd66e3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_1338fe5e2f4f7dddbdcd606dbc934ec3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_fd7733bd7348f017e2d86bec3b908a89"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_926fdfe831865730f3a286e3081eeb90"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_1d7b46688c9ebbe6901dca13b5858069"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a customer.",
        "tags": [
          "Meals [Customer]"
        ]
      }
    },
    "/meals/v1/customer/{customer_id}/payment-method/query/documents": {
      "get": {
        "description": "Returns the cards saved to the customer's Nurish'd account, at most 10, in one page. Each card\n    has `id`, `card` (`brand`, `exp_month`, `exp_year` and `last4`) and `is_default`, which is `true`\n    for the customer's default card. The customer can also add, remove and choose cards in their\n    own account, so the list can change without you. A customer with no card gets an empty list.\n\n    Answers `404` when the customer has no connection with your company that allows meals, `403\n    connection_scope_not_granted` when the customer did not allow orders, and `409\n    connection_not_active` when the connection is pending or was revoked.\n\n    Needs the `order:read` scope.",
        "operationId": "meals_v1_customer_payment_method_query_documents_meals_v1_customer__customer_id__payment_method_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the customer, as the create-customer route answered it.",
            "in": "path",
            "name": "customer_id",
            "required": true,
            "schema": {
              "description": "The ID of the customer, as the create-customer route answered it.",
              "format": "uuid",
              "title": "Customer ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_380272930123b27dc5e83d9475e8ea30"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_6fded35c24322fe91370ab92a8853922"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_4b182e1b633b6666373ceec6e3324464"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_f44f08412255783322994fc47671b793"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:read scope.",
                        "request_id": "req_7abdca1423c107960ef0a08a8bf49ff9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_14d71c86ec5277122f9f5f4276346480"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_4c9f35a9abf6a4885fa2f2d92001e826"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.customer_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_dceb0ea54b2a0c556a46b5a5f82ae2e7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_0475c7d1391678b8f268486acc9833bb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_a72d0df00affc2fe7f5afbf29b4b5bb0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_f936a3a8c0e1d83914de2e0680368ee8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_f4d388d06438a042dfab1d43c6ea042d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_1878ca944579ab0f217be403c1791e88"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List a customer's saved cards.",
        "tags": [
          "Meals [Payment Method]"
        ]
      }
    },
    "/meals/v1/customer/{customer_id}/payment-method/setup/create/document": {
      "post": {
        "description": "Starts saving a card to the customer's Nurish'd account, so the customer can pay for orders\n    you place for them without typing the card in each time.\n\n    The card number never reaches your server or ours. Your page loads Stripe.js with the answered\n    `stripe_publishable_key` and confirms the card with the answered `client_secret`: the customer\n    types the card into Stripe's own form on your page. Then call the confirm route with\n    the answered `id`. Never log the client secret.\n\n    The card is saved to the customer's Nurish'd account and may be charged for orders the\n    customer confirms. Tell the customer so before they type the card in.\n\n    Calling it again returns the same open setup while it is less than a day old. The customer must\n    have an active connection with your company that allows orders. Answers `404` when the\n    customer has no connection with your company that allows meals, `403\n    connection_scope_not_granted` when the customer did not allow orders, and `409\n    connection_not_active` when the connection is pending or was revoked.\n\n    Needs the `order:write` scope.",
        "operationId": "meals_v1_customer_payment_method_setup_create_document_meals_v1_customer__customer_id__payment_method_setup_create_document_post",
        "parameters": [
          {
            "description": "The ID of the customer, as the create-customer route answered it.",
            "in": "path",
            "name": "customer_id",
            "required": true,
            "schema": {
              "description": "The ID of the customer, as the create-customer route answered it.",
              "format": "uuid",
              "title": "Customer ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodSetupOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_c954c871ac65c52dd6ea8238c7d1704c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_2e1573f31669888da586126f90a45fe6"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_bf75fbf64f9f0c16c39ea289a6e729de"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_97a463660058d7a97e6ff0081a5e63bc"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:write scope.",
                        "request_id": "req_f051f5fb2d74489ea76eb140a1cfd955"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_e479e401ef94c1a174c5f121b4802c2e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_417a91cc1e84649d32468d7b385bef4a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.customer_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_ee881b4c3460eefe9a44483fdac8150c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_cf608a57860ffb06821a0ba96591ff76"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_e54158ff46b97afc1325a59b72ec7fcc"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_60bc9dc526f25027f0c14da474278428"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_73f0b8444bcefc3acc0fc5b474841f3c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_b794e3e26eaf127cd65d4dd2ce02c699"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Start saving a card for a customer.",
        "tags": [
          "Meals [Payment Method]"
        ]
      }
    },
    "/meals/v1/customer/{customer_id}/payment-method/setup/{setup_id}/confirm/document": {
      "put": {
        "description": "Call it after Stripe.js confirmed the card on your page. It checks the setup, makes sure the\n    card is recorded on the customer's Nurish'd account, and answers the card. When the customer\n    had no default card, the card becomes their default card. A customer who already has a\n    default card keeps it, and the answer says `is_default: false`.\n\n    Calling it again for the same setup is safe, and it does not wait for any notification, so call\n    it right after the card form says it worked. Answers `409 payment_method_setup_incomplete`\n    when the card form has not confirmed the card yet, `404` for a setup that is not this\n    customer's, and the same `404`, `403` and `409` as the start route for the customer's\n    connection.\n\n    Needs the `order:write` scope.",
        "operationId": "meals_v1_customer_payment_method_setup_confirm_document_meals_v1_customer__customer_id__payment_method_setup__setup_id__confirm_document_put",
        "parameters": [
          {
            "description": "The ID of the customer, as the create-customer route answered it.",
            "in": "path",
            "name": "customer_id",
            "required": true,
            "schema": {
              "description": "The ID of the customer, as the create-customer route answered it.",
              "format": "uuid",
              "title": "Customer ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the setup, as the start route answered it.",
            "in": "path",
            "name": "setup_id",
            "required": true,
            "schema": {
              "description": "The ID of the setup, as the start route answered it.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Setup ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_52cabe4a1f484619df6f145a30efcc0a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_b749d3f257ecc417d9a740b1133eaac3"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_98c92b405f973f92456f41133e29154b"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_a349f7aa027758b3fcb3b2f03b090ebb"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:write scope.",
                        "request_id": "req_fd76a1f940adb68e33948f8f4039ee9f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_32ee7856cc7982af637a1364e886bb48"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_d00df709f01bcea62a5316df3909f81b"
                      }
                    }
                  },
                  "payment_method_setup_incomplete": {
                    "value": {
                      "error": {
                        "code": "payment_method_setup_incomplete",
                        "message": "The card has not been confirmed with the card form yet. Confirm it on your page, then call this route again.",
                        "request_id": "req_6d2f976f8d614f5216ddb08061275cec"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.customer_id: Input should be a valid UUID, invalid character: found `n` at 0",
                        "request_id": "req_9971cf59560e1817927329588b1c6761"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_183cdbff5c96fcdbced5723fdc628a27"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_7f9f3351a0e96fb36535ddf3446d50c6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_d6b169996728d1ba17b02fc5f358ff8f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_5d58cfd5470dcfc1e913d4ce87d998e1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_745dd974a840df07128502600f3c8b84"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Finish saving a card for a customer.",
        "tags": [
          "Meals [Payment Method]"
        ]
      }
    },
    "/meals/v1/order/create/document": {
      "post": {
        "description": "Places a meal order for a customer who approved the connection, to be delivered to an address\n    on a delivery date. The customer pays with their own card, so the answer carries what your page\n    needs to take the payment:\n\n    - Confirm the payment on your page with Stripe.js, using `stripe_publishable_key` and\n      `stripe_payment_intent.stripe_payment_intent_client_secret`.\n    - The order is paid when `order_financial_status` is `paid` or the `order.paid` event arrives.\n      Do not treat the order as paid when your page says the card was accepted.\n    - An order that costs nothing is paid at once and `stripe_payment_intent` is `null`.\n\n    The order carries its own field names: the three statuses `order_financial_status`,\n    `order_fulfillment_status` and `order_delivery_status`, the amounts in cents, the vendor as it\n    was when the order was placed, and the `line_items`. Your own `reference` and `metadata` come\n    back as you sent them.\n\n    Before anything is placed, the order is checked against the catalog, the vendor first: a vendor\n    that does not exist, is not live, is archived or is not enabled for your company answers `404\n    not_found`. Then each failure answers `422` with its own code and nothing is created:\n\n    - `delivery_not_available`: the vendor does not deliver to the address, or not on that date\n      (a weekday it does not deliver on, a blackout date, a date with no menu, or a date whose\n      order cutoff has passed).\n    - `product_not_available`: a product is not offered on that date, is not live, or cannot be\n      ordered.\n    - `order_limits_not_met`: the order is below or above the vendor's limits on items or value.\n    - `vendor_not_allowed_for_customer`: the customer's account is limited to certain vendors and\n      this is not one of them; offer another vendor.\n\n    The delivery address, the contact email address, the contact phone number and the notes are\n    checked against the limits the order system holds them to (the fields say which). A value\n    that fails answers `422 validation_error` naming the field. If the order system still refuses\n    one of them, the answer is `422 validation_error` too, with a fixed message and no field.\n\n    Other answers: `404 not_found` for an unknown customer, or for a vendor that cannot be used (see\n    above); `409 connection_not_active`\n    while the customer has not approved the connection or after they revoked it; `409\n    order_conflict` when the order cannot be placed in its current state. `order_limits_not_met` says which limit\n    the order breaks; the vendor's limits are on the vendor.\n\n    The order holds only the items you send. If the customer already started a cart for the same\n    vendor, address zone and date in the Nurish'd app, that cart is emptied first, including any\n    discount code or points on it.\n\n    Sending the same `reference` again returns the order already placed instead of placing a second\n    one. The reference, `metadata` and the key that placed the order are kept with the order. Needs\n    the `order:write` scope.",
        "operationId": "meals_v1_order_create_document_meals_v1_order_create_document_post",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "order": {
                  "description": "Place an order for a connected customer. Sending the same reference again returns this order instead of placing a second one.",
                  "summary": "An order with a reference",
                  "value": {
                    "line_items": [
                      {
                        "line_item_product_id": "product-salmon-bowl",
                        "line_quantity": 4
                      },
                      {
                        "line_item_product_id": "product-chicken-wrap",
                        "line_quantity": 1
                      }
                    ],
                    "metadata": {
                      "basket": "b-77"
                    },
                    "order_contact_email": "ada.lovelace@example.com",
                    "order_contact_phone": "+14165550123",
                    "order_customer_notes": "Leave with the doorman.",
                    "order_delivery_date": "2026-04-07",
                    "order_shipping_address": {
                      "city": "Toronto",
                      "country": "CA",
                      "line1": "100 King St W",
                      "line2": "Apt 4B",
                      "postal_code": "M5V 2T6",
                      "state": "ON"
                    },
                    "order_vendor": "vendor-harbour-kitchen",
                    "reference": "web-order-1001",
                    "user": "6f1c0d2e-0000-4000-8000-000000000101"
                  }
                },
                "order without extras": {
                  "description": "Only what is required: no notes, no reference, no metadata.",
                  "summary": "The smallest order",
                  "value": {
                    "line_items": [
                      {
                        "line_item_product_id": "product-salmon-bowl",
                        "line_quantity": 5
                      }
                    ],
                    "order_contact_email": "ada.lovelace@example.com",
                    "order_contact_phone": "+14165550123",
                    "order_delivery_date": "2026-04-07",
                    "order_shipping_address": {
                      "city": "Toronto",
                      "country": "CA",
                      "line1": "100 King St W",
                      "postal_code": "M5V 2T6",
                      "state": "ON"
                    },
                    "order_vendor": "vendor-harbour-kitchen",
                    "user": "6f1c0d2e-0000-4000-8000-000000000101"
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/OrderCreateInput",
                "description": "The order to place.",
                "title": "Input Schema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_f8081cf50103a84fea0808714a791715"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_97afd731d1001cae1270830069490f6c"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_d1dc0b0aa56c948dd94171aaa38e6115"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_54c3ab13bee136d32548b8e76bf549ff"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:write scope.",
                        "request_id": "req_0d0dce5ccca3320fd66ddec5ca52a3e0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_d6dbceb100096028bcce323038c0807a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_d698c26238a14e47f05ee13bc802924c"
                      }
                    }
                  },
                  "order_conflict": {
                    "value": {
                      "error": {
                        "code": "order_conflict",
                        "message": "The order could not be placed in its current state.",
                        "request_id": "req_65c564d59d1b1709092660a9a628a1d6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "delivery_not_available": {
                    "value": {
                      "error": {
                        "code": "delivery_not_available",
                        "message": "The vendor cannot deliver this order to the address on that date.",
                        "request_id": "req_c5d33865fc096cd4755d363fa55c5ba9"
                      }
                    }
                  },
                  "order_limits_not_met": {
                    "value": {
                      "error": {
                        "code": "order_limits_not_met",
                        "message": "The order does not meet the vendor's limits.",
                        "request_id": "req_2554e12faf45d3e930f1179653ae9dce"
                      }
                    }
                  },
                  "product_not_available": {
                    "value": {
                      "error": {
                        "code": "product_not_available",
                        "message": "A product in the order is not available.",
                        "request_id": "req_2de7120a4df8f96114590d4c2b9f75de"
                      }
                    }
                  },
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "body.user: Field required",
                        "request_id": "req_4ac8771913c44475f873a000c6e1bf11"
                      }
                    }
                  },
                  "vendor_not_allowed_for_customer": {
                    "value": {
                      "error": {
                        "code": "vendor_not_allowed_for_customer",
                        "message": "This customer cannot order from this vendor.",
                        "request_id": "req_a3f7c8a25b9dba04c53dc6f92cf510e2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_d472220be742cede351b3b1fc7ec57fe"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_612797ee740ecb8fcb0b401c12fba0ab"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_96ed8eb9ae81b5228c9758da958a8034"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_c0c848a18b6c4e4522cc71f35fa00d6c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_2362b91f7862fa2c3f5ad4579134c383"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Place an order.",
        "tags": [
          "Meals [Order]"
        ]
      }
    },
    "/meals/v1/order/query/documents": {
      "get": {
        "description": "Returns a page of the orders your company placed, newest first, without their line items;\n    read one order to get them. Orders of a customer whose connection is no longer active are left out.\n\n    Query parameters:\n    - customer: Keep only the orders of this customer.\n    - vendor: Keep only the orders of this vendor.\n    - status: Keep only orders in this stage: `pending`, `paid`, `fulfilled` or `canceled`. This is\n      the stage this API records for the order, not one of the statuses an order carries\n      (`order_financial_status`, `order_fulfillment_status`, `order_delivery_status`). The stage is\n      updated when an order is read or when a change is reported, so a list filter can lag behind\n      until then.\n    - from: Keep only orders placed at or after this time (ISO 8601).\n    - to: Keep only orders placed at or before this time (ISO 8601).\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `order:read` scope.",
        "operationId": "meals_v1_order_query_documents_meals_v1_order_query_documents_get",
        "parameters": [
          {
            "description": "Keep only the orders of this customer.",
            "in": "query",
            "name": "customer",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only the orders of this customer.",
              "title": "Customer"
            }
          },
          {
            "description": "Keep only the orders of this vendor.",
            "in": "query",
            "name": "vendor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only the orders of this vendor.",
              "title": "Vendor"
            }
          },
          {
            "description": "Keep only orders in this stage: `pending`, `paid`, `fulfilled` or `canceled`. It is the stage this API records for the order, not an order status.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/OrderStageEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only orders in this stage: `pending`, `paid`, `fulfilled` or `canceled`. It is the stage this API records for the order, not an order status.",
              "title": "Status"
            }
          },
          {
            "description": "Keep only orders placed at or after this time.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only orders placed at or after this time.",
              "title": "From"
            }
          },
          {
            "description": "Keep only orders placed at or before this time.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only orders placed at or before this time.",
              "title": "To"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error": {
                        "code": "bad_request",
                        "message": "The `from` time must not be after the `to` time.",
                        "request_id": "req_d3691286feb0245fb037dad8b6636803"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request cannot be processed as sent, for example a range that ends before it starts."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_824fe0bd65d2befe95c26b14c682d9a9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_9f321235b069b628e82eaf1fd39665b9"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_601ee996c483d8f2f9fff09f8ec72321"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_a010084fc58ef5a31be105157aa9b899"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:read scope.",
                        "request_id": "req_b9ca6fe478f264653bddaaae345790c6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_a6766f9c6c28e87f1e42a4a3158e73d6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_96c6eacbdc8b46394fb8b672e4ed45d6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_5ba41efe19084f75cebd183645a0a7bf"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_08e15c65db337d112e7678f35f4fad8b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_c7e404fa7b9fd73f379a458f97b78785"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_6cd41226f92e1f53aee4064cf7a24d57"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List the orders you placed.",
        "tags": [
          "Meals [Order]"
        ]
      }
    },
    "/meals/v1/order/{order_id}/get/document": {
      "get": {
        "description": "Returns one order your company placed, with its `line_items`. While the payment is `pending`\n    the answer carries the Stripe payment again, so a page can take the payment after a reload:\n    confirm it with Stripe.js using `stripe_publishable_key` and\n    `stripe_payment_intent.stripe_payment_intent_client_secret`. The order is paid when\n    `order_financial_status` is `paid` or the `order.paid` event arrives.\n\n    Answers `404` for an order that does not exist or belongs to another company or mode, and `409\n    connection_not_active` once the customer revoked the connection: you can no longer read their\n    orders. Needs the `order:read` scope.",
        "operationId": "meals_v1_order_get_document_meals_v1_order__order_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the order, as `create` answered it.",
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "description": "The ID of the order, as `create` answered it.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Order ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_e2d8c9f2152afd34f639e367dea6eb7b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_f2eb74fa89a81b3d8a7822d405c2d503"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_8feaa0a8f308b02d6b1e0f83fb416eb4"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_fadcd4d7d725a5362c55288a025aa3f2"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the order:read scope.",
                        "request_id": "req_03088aae8389ceb6a2079938812fab4e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_6bac74f76e45a09074320f6bb2c25443"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "connection_not_active": {
                    "value": {
                      "error": {
                        "code": "connection_not_active",
                        "message": "The connection is not active.",
                        "request_id": "req_80120fc5463d114afdc2f1655c12cf2d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request conflicts with the current state, for example a time slot that is already taken."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.order_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_bad9508ab72e8c91d584294fe38bc805"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_c2464cb10c18d9732578a9c7caee17eb"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_89074b85c299a0e21b820cad4898603e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_4a1905249898bb749e594a24a03f9ec9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_f363c3c3b0db6ee3b478f1b5ea529c1d"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_82a9c19663ea8766ea81a43bab49bbf3"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get an order.",
        "tags": [
          "Meals [Order]"
        ]
      }
    },
    "/meals/v1/vendor/query/documents": {
      "get": {
        "description": "Returns a page of the vendors you can order from. Vendors that are not live yet or that were\n    retired are never listed. The list leaves out the long description, the timezone, the address and\n    the support contact of each vendor; read one vendor to get them.\n\n    Query parameters:\n    - name: Keep only vendors whose name contains this text. Not case sensitive.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_query_documents_meals_v1_vendor_query_documents_get",
        "parameters": [
          {
            "description": "Keep only vendors whose name contains this text. Not case sensitive.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^[^${}]{1,150}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only vendors whose name contains this text. Not case sensitive.",
              "title": "Name"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_9f40b5b6a4560139787a291eddd53d0e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_bf6d6025c69521615ad4eb323d7e8b8c"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_fd81126bcc08a782c31e7a9c61f0f824"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_9702cfcaed6ab5d5538b0d79f1eb844f"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_0d4ff47ad04662d92527fb5be9bffee2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_a71c73292182cd761c09c3458e8ea8ba"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_63f76672f34d7004ddd8d41013f0b0e7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_e19f8a4b770ca66dda2c17e8aa2568d6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_197a28efa0ba4de80efa413a7dbe802e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_f5711a63b1e01fb87828cb1832972b1a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_fe8fdd28fddd5f6efaa6b9131c52454f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List vendors.",
        "tags": [
          "Meals [Vendor]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/get/document": {
      "get": {
        "description": "Returns one vendor with its full description, timezone, address and support contact. Answers\n    `404` when the vendor does not exist, is not live yet or was retired.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_get_document_meals_v1_vendor__vendor_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_cb8576bdc583241dc0b8536c0f176bc7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_41aa59aad5740f98528711ebe355aa81"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_665c92c9f6b148b0dd54173bc7120078"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_35b28b5885bf9efce4d700c14a2aa2a9"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_7ef05c851126f0f2ff92c4aafd63207c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_c9d045c4c7ebf46e7ca991a63e17ef96"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.vendor_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_02881408d346a8966c0ce1e72e40326a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_c9465a89e4363be35f30462cd13f5a5f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_7a69268359f15c06fab079241e2a8a9b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_8e07c7e28a6095727b800208b64ead55"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_6a40347ac508834b46966cc30b91b850"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_0f0655c0117b31c60f9bf83bea990579"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a vendor.",
        "tags": [
          "Meals [Vendor]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/menu/query/documents": {
      "get": {
        "description": "Returns a page of the menus of one vendor. A menu that is still being prepared or that was\n    retired is never listed. The list leaves out the description of each menu; read one menu to get\n    it.\n\n    Query parameters:\n    - status: Keep only menus in this status: `in_production`, `upcoming`, `expired` or\n      `not_in_production`.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_menu_query_documents_meals_v1_vendor__vendor_id__menu_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          },
          {
            "description": "Keep only menus in this status: `in_production`, `upcoming`, `expired` or `not_in_production`.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/MenuStatusEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only menus in this status: `in_production`, `upcoming`, `expired` or `not_in_production`.",
              "title": "Status"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MenuPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_263a5ca4884dd7bdcab2e844ed6a8534"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_617f3c1c159f265f1e706a1a396dad25"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_407999e077dc3695281ac243ab9b038b"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_18d83bf768591397169ae6562cbdaffd"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_026acfb74c1c3d7255aff09aa75adc00"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_ed0867a66ca62e859305ba4f98cc0a89"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_ac93de888b92d39cb3cb2af06a22c191"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_0d8225d3451dc152e849ebc3824397f4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_a7606364cb025526868a4296f65fac1b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_1549d32b74e5f01c22dee43e62f023fd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_17487e496ad59bf485aa4644df78e79c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List the menus of a vendor.",
        "tags": [
          "Meals [Menu]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/menu/{menu_id}/get/document": {
      "get": {
        "description": "Returns one menu of a vendor with the IDs of its products for each meal slot: breakfast, lunch,\n    dinner, snacks, supplements, drinks and misc. Answers `404` when the menu does not exist, is\n    still being prepared or was retired.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_menu_get_document_meals_v1_vendor__vendor_id__menu__menu_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the menu.",
            "in": "path",
            "name": "menu_id",
            "required": true,
            "schema": {
              "description": "The ID of the menu.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Menu ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MenuOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_5e5ba8c30b29c9c9b00d12a17667e098"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_56ed07515fd4d400dac7c6bff894ec39"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_bc1784598d6def5c8b04f59d62180201"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_b5087068ccea9f7f78fe85849187cd83"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_cb039e92700f1e307da243e45846437a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_bba6c4a2ecc6287f680d27e3797a309e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.vendor_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_41d7d75f1e4c93379482452dfb8e80b2"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_c1d4bb1df3146c4dbdc0a971793aa58b"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_d5f6a3213cd51b8e54570f5fe0e343db"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_03e24fc9d44b9c57ea51ead78d93cf39"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_b5f08c3f95b3f937aece63e5a42be66c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_6fd89b1c5cdbaed5678b34ca565fdcc9"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a menu.",
        "tags": [
          "Meals [Menu]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/product/query/documents": {
      "get": {
        "description": "Returns a page of the products of one vendor that you can order. Products that are not live yet\n    or that were retired are never listed. The list leaves out the description and the features of\n    each product, and its creation and update times; read one product to get them.\n\n    Query parameters:\n    - name: Keep only products whose name contains this text. Not case sensitive.\n    - type: Keep only products of this type: `Meal`, `Bulk` or `Misc`.\n    - collection: Keep only products of this collection: `Breakfast`, `Lunch`, `Dinner`, `Drink`,\n      `Snack`, `Supplement` or `Sauce`.\n    - tag: Keep only products with this tag, given as the tag ID.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_product_query_documents_meals_v1_vendor__vendor_id__product_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          },
          {
            "description": "Keep only products whose name contains this text. Not case sensitive.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^[^${}]{1,250}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only products whose name contains this text. Not case sensitive.",
              "title": "Name"
            }
          },
          {
            "description": "Keep only products of this type: `Meal`, `Bulk` or `Misc`.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ProductTypeEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only products of this type: `Meal`, `Bulk` or `Misc`.",
              "title": "Type"
            }
          },
          {
            "description": "Keep only products of this collection, for example `Breakfast` or `Snack`.",
            "in": "query",
            "name": "collection",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ProductCollectionEnum"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only products of this collection, for example `Breakfast` or `Snack`.",
              "title": "Collection"
            }
          },
          {
            "description": "Keep only products with this tag, given as the tag ID.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "pattern": "^[^${}]{1,100}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only products with this tag, given as the tag ID.",
              "title": "Tag"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductPageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_b11a55040450bfe1e98fc8f7c60f8617"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_a0a8e45889d2871ab39565cef0313abe"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_2acb131dc8d654b9f5b44639e690bb09"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_88938e62c43b652e01698f888c09fa0f"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_de556878e75943560f67ec70e13fdeb1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_9595f6c4bab2eb58ec40021bd41d8af4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_8c24fcb3963cca914266c2e89e2cc407"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_6dc5c8b1b1be4c181f54956d03e98604"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_a7114487de4a63588e574763e9c812b4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_76c8eade1f98b61e6fadf1a65963670f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_c76648d12cebeae3770bc7c5c78f587e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List the products of a vendor.",
        "tags": [
          "Meals [Product]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/product/{product_id}/get/document": {
      "get": {
        "description": "Returns one product of a vendor with its description and features. Answers `404` when the\n    product does not exist, is not live yet, was retired, or is not something you can order as it\n    is.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_product_get_document_meals_v1_vendor__vendor_id__product__product_id__get_document_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the product.",
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "description": "The ID of the product.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Product ID",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_d68115a73862ba54fa03e80a54152a5f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_7d25381b5d5a6dfa113525642cba94fb"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_e7c3110a0dd46dfaf9399812a7d24297"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_15e951af24631407778c0f4511087a89"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_0e4b37a0d1185b9ee06429cfaf71f8ae"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_487e94338e39873006f94f5cd5c9c8d7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.vendor_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$'",
                        "request_id": "req_8f2467b81f6b3852386fe50ddb338fed"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_f51e3412b7ae5e61dbaa7c6f844d3830"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_905133b8842ba942e0301d0e47003afd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_08d7af78365d1bc8206f55b04d26ca92"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_ff2618d086d3dca0893988d7d87b773f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_7bb5e048c912aaf98234df704f1ab08e"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get a product.",
        "tags": [
          "Meals [Product]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/zone/{zone_id}/delivery-date/query/documents": {
      "get": {
        "description": "Returns `valid_delivery_dates`: the dates a delivery zone can deliver on between two dates,\n    oldest first. Each date is the instant of midnight at the start of the delivery day in the\n    timezone of the vendor (`vendor_timezone` on the vendor, an IANA name such as\n    `America/Toronto`), written in UTC: for a vendor in Eastern time, the delivery day 2026-11-24\n    is listed as `2026-11-24T05:00:00Z`. The date part of each value is the delivery day, and that\n    day, as `YYYY-MM-DD`, is what the date route and `order_delivery_date` take. A date is listed only when the zone delivers on that weekday, ordering for it is still\n    open (its order cutoff has not passed), a menu is in production for it, and it is not a blackout\n    date. Dates that can no longer be ordered are never listed, so a `from` in the past lists\n    nothing before today, and a `from` in the future still lists every date from that day on that\n    can be ordered. The two dates can be at most 60 days apart, and `to` at most 60 days from now.\n    Answers `400` when `from` is after `to`, the range is longer than 60 days, or `to` is more than\n    60 days from now. Answers `404` when the vendor or the zone cannot be seen, which includes a vendor\n    that is not live.\n\n    Query parameters:\n    - from: The first date to look at, as `YYYY-MM-DD`. Required.\n    - to: The last date to look at, as `YYYY-MM-DD`. Required.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_zone_delivery_date_query_documents_meals_v1_vendor__vendor_id__zone__zone_id__delivery_date_query_documents_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the delivery zone.",
            "in": "path",
            "name": "zone_id",
            "required": true,
            "schema": {
              "description": "The ID of the delivery zone.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Zone ID",
              "type": "string"
            }
          },
          {
            "description": "The first date to look at, as `YYYY-MM-DD`.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "description": "The first date to look at, as `YYYY-MM-DD`.",
              "format": "date",
              "title": "From",
              "type": "string"
            }
          },
          {
            "description": "The last date to look at, as `YYYY-MM-DD`. At most 60 days after `from` and at most 60 days from now.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "description": "The last date to look at, as `YYYY-MM-DD`. At most 60 days after `from` and at most 60 days from now.",
              "format": "date",
              "title": "To",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryDatesOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "bad_request": {
                    "value": {
                      "error": {
                        "code": "bad_request",
                        "message": "The `from` time must not be after the `to` time.",
                        "request_id": "req_e9f946857ae3d2fa806bc2611e7bb9ba"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request cannot be processed as sent, for example a range that ends before it starts."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_a672bb77d0115e38fffa066b56b4d2c8"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_95114945ee32d3ca5b37422d03d0d17c"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_8f9ecc1a69eefcd7c5b80e2912fce7a2"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_4235acd47d35bfd9780469d971734ecd"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_3b824a92041ab1b6ced6d6b40f857d83"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_21ccb1df302beccc402625d3255b25d6"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.from: Field required",
                        "request_id": "req_c0a111cdf78c26a66910a20205de3fff"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_a1408e2f8ff56168e38753095f3911fc"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_922bbfe9297fbccc5b9a174aa28c96e1"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_dc9ffb787a2281dd5b3fb0cfd0959840"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_574bf3feb0866383502b369749d99e07"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_c278579ba3ee8299b39d032bcd6e3949"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "List the delivery dates of a zone.",
        "tags": [
          "Meals [Delivery Date]"
        ]
      }
    },
    "/meals/v1/vendor/{vendor_id}/zone/{zone_id}/delivery-date/{date}/get/document": {
      "get": {
        "description": "Returns what a delivery zone offers on one delivery day. The day is written `YYYY-MM-DD` in the\n    path, which is the date part of a value of `valid_delivery_dates` (the full value with its time\n    is not accepted here). The answer has when production starts, the delivery date, when\n    ordering for it closes (`order_cutoff_date`), the ID of the menu in production for it (`menu`)\n    and the IDs of the products you can order for it (`all_unique_product_ids`, the supplements of\n    the menu included). Every product ID in the answer, in `all_unique_product_ids` and in\n    `additional_product_ids`, is a product the product routes of this vendor answer: an ID of a\n    product that is not live, is archived or cannot be ordered is left out. The vendor, the zone,\n    the blackout date and the menu are answered as IDs.\n    To read the answer: when `menu` is `null` and `all_unique_product_ids` is empty, the zone cannot\n    deliver on the date. That is the case for a blackout date (`is_given_date_blackout` is `true`),\n    for a date with no menu, and for a weekday the zone does not deliver on, which also has no\n    `production_date`, `delivery_date` or `order_cutoff_date`. A date whose order cutoff has passed,\n    which includes every date in the past, is answered the same way as a weekday the zone does not\n    deliver on: nothing can be ordered for it. Answers `404` when the vendor or the zone cannot be\n    seen, which includes a vendor that is not live.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_vendor_zone_delivery_date_get_document_meals_v1_vendor__vendor_id__zone__zone_id__delivery_date__date__get_document_get",
        "parameters": [
          {
            "description": "The ID of the vendor.",
            "in": "path",
            "name": "vendor_id",
            "required": true,
            "schema": {
              "description": "The ID of the vendor.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Vendor ID",
              "type": "string"
            }
          },
          {
            "description": "The ID of the delivery zone.",
            "in": "path",
            "name": "zone_id",
            "required": true,
            "schema": {
              "description": "The ID of the delivery zone.",
              "maxLength": 200,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
              "title": "Zone ID",
              "type": "string"
            }
          },
          {
            "description": "The delivery day, as `YYYY-MM-DD`: the date part of a value of `valid_delivery_dates`, for example `2026-11-24` for `2026-11-24T05:00:00Z`. A time of day is not accepted.",
            "in": "path",
            "name": "date",
            "required": true,
            "schema": {
              "description": "The delivery day, as `YYYY-MM-DD`: the date part of a value of `valid_delivery_dates`, for example `2026-11-24` for `2026-11-24T05:00:00Z`. A time of day is not accepted.",
              "format": "date",
              "title": "Date",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryDateOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_5ae4ae12d6d1609fdf5a9e03707d8284"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_73af27321b443168a7bdf823bc0abbff"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_7f213f7eb0624b32de7a731b0e6aaea6"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_f9e3b928534ad15295d68c5c1a3ac04c"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_a66771bf636a1387f8c1b4a5e8f85331"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "not_found": {
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "The requested resource was not found.",
                        "request_id": "req_5fa0b0e45dcdc4480b519d69712140f0"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The thing you asked for does not exist, or it belongs to another company or to the other mode."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "path.date: Value error, Send the day as YYYY-MM-DD, for example 2026-04-07.",
                        "request_id": "req_74617d67967afa56ead5000f6ed4f4bd"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_e2fd28b70d81623bf30d60855033a10f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_892f962dd305a4051b7ff18f88e08033"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_2c19ac2173f66df4062e954bb57835dc"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_d4a05ac9c402441db0088eccd0ba47d4"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_ae11ef2dd56ff4dc88ce4e4ad4b52814"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Get what a zone offers on a delivery date.",
        "tags": [
          "Meals [Delivery Date]"
        ]
      }
    },
    "/meals/v1/zone/query/documents": {
      "get": {
        "description": "Returns a page of the delivery zones that serve a city: the best matching zone of each vendor\n    that delivers there. A zone can cover one city, one province or a whole country. Pass `vendor` to\n    ask about one vendor: the page then holds that vendor's zone, and an empty page means the\n    vendor does not deliver there.\n\n    The place is compared exactly with what the zone holds: `city`, `state` and `country` must\n    match letter for letter, and letter case counts (`Toronto` does not find a zone stored as\n    `toronto`), so nothing is guessed or trimmed. Each vendor answers one zone at most: the one\n    that fits the place best, which is a zone for the city, else a zone for the whole province, else a\n    zone for the whole country. A vendor with a zone for another city of the province is not found.\n\n    Query parameters:\n    - city: The city to look up, exactly as the zone holds it. Required.\n    - state: The two-letter province code, in capitals, for example `ON`. Required.\n    - country: The two-letter country code, in capitals, for example `CA`. Required.\n    - vendor: The ID of one vendor to look at. Optional.\n    - page: The page number, from 1.\n    - size: The page size, at most 50.\n\n    Needs the `catalog:read` scope.",
        "operationId": "meals_v1_zone_query_documents_meals_v1_zone_query_documents_get",
        "parameters": [
          {
            "description": "The city to look up, exactly as the zone holds it: letter case counts.",
            "in": "query",
            "name": "city",
            "required": true,
            "schema": {
              "description": "The city to look up, exactly as the zone holds it: letter case counts.",
              "pattern": "^[^${}]{1,200}$",
              "title": "City",
              "type": "string"
            }
          },
          {
            "description": "The two-letter province code, in capitals, for example `ON`.",
            "in": "query",
            "name": "state",
            "required": true,
            "schema": {
              "description": "The two-letter province code, in capitals, for example `ON`.",
              "pattern": "^[A-Z]{2}$",
              "title": "State",
              "type": "string"
            }
          },
          {
            "description": "The two-letter country code, in capitals, for example `CA`.",
            "in": "query",
            "name": "country",
            "required": true,
            "schema": {
              "description": "The two-letter country code, in capitals, for example `CA`.",
              "pattern": "^[A-Z]{2}$",
              "title": "Country",
              "type": "string"
            }
          },
          {
            "description": "The ID of one vendor to look at. Without it, every vendor is looked at.",
            "in": "query",
            "name": "vendor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The ID of one vendor to look at. Without it, every vendor is looked at.",
              "title": "Vendor"
            }
          },
          {
            "description": "The page number, from 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "description": "The page number, from 1.",
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "description": "The page size, at most 50.",
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 10,
              "description": "The page size, at most 50.",
              "maximum": 50,
              "minimum": 1,
              "title": "Size",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZonePageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "invalid_api_key": {
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is missing or not valid.",
                        "request_id": "req_8215bd390efb7859d95b62167df4f87c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The API key is missing, wrong, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "company_archived": {
                    "value": {
                      "error": {
                        "code": "company_archived",
                        "message": "This company is archived.",
                        "request_id": "req_1333ff3b74fb1f1b35cf35e8b181f50a"
                      }
                    }
                  },
                  "company_not_live": {
                    "value": {
                      "error": {
                        "code": "company_not_live",
                        "message": "The company must be live to use prod keys.",
                        "request_id": "req_f7ec2c5d5b4a9c43158d0cfcda54731d"
                      }
                    }
                  },
                  "company_suspended": {
                    "value": {
                      "error": {
                        "code": "company_suspended",
                        "message": "This company is suspended.",
                        "request_id": "req_fbff8b5a457dc732f5c15eb3413bd925"
                      }
                    }
                  },
                  "scope_not_granted": {
                    "value": {
                      "error": {
                        "code": "scope_not_granted",
                        "message": "This API key does not have the catalog:read scope.",
                        "request_id": "req_6b486a9c110856df6375aebe9012aa34"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The key is not allowed to do this: a missing scope, a connection that is not active or a company that is not live."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "validation_error": {
                    "value": {
                      "error": {
                        "code": "validation_error",
                        "message": "query.size: Input should be less than or equal to 50",
                        "request_id": "req_5504999e984afa928f397793373f9c4f"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request is not valid. The message says which part."
          },
          "429": {
            "content": {
              "application/json": {
                "examples": {
                  "rate_limited": {
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "Too many requests. Wait before calling again.",
                        "request_id": "req_d5746000966cb4c9d065c485cbfceb2c"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Too many calls. Wait the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next call.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "internal_error": {
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "Something went wrong on our side. Please try again later.",
                        "request_id": "req_9ca990704fc031141cd14eade9884c46"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "Something went wrong on our side. Try again later and quote the `request_id`."
          },
          "502": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_error": {
                    "value": {
                      "error": {
                        "code": "upstream_error",
                        "message": "A Nurish'd service could not complete the request.",
                        "request_id": "req_641af473e094daba94628d3951d4472a"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on could not complete it. Try again later."
          },
          "503": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_unavailable": {
                    "value": {
                      "error": {
                        "code": "upstream_unavailable",
                        "message": "A Nurish'd service is unavailable. Please try again later.",
                        "request_id": "req_681196d6e7b9e9e5e967b6bad4ec4273"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on is unavailable. Try again later."
          },
          "504": {
            "content": {
              "application/json": {
                "examples": {
                  "upstream_timeout": {
                    "value": {
                      "error": {
                        "code": "upstream_timeout",
                        "message": "A Nurish'd service did not answer in time. Please try again.",
                        "request_id": "req_93a2d84efb84b9f0cb57fbfcfea69000"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "A Nurish'd service this call depends on did not answer in time. Try again."
          }
        },
        "security": [
          {
            "PartnerApiKey": []
          }
        ],
        "summary": "Find the delivery zones that serve a place.",
        "tags": [
          "Meals [Zone]"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.dev.nurishd.ca"
    }
  ],
  "tags": [
    {
      "description": "The meal vendors you can order from.",
      "name": "Meals [Vendor]"
    },
    {
      "description": "The delivery zones that serve a city, province or country.",
      "name": "Meals [Zone]"
    },
    {
      "description": "The dates a delivery zone delivers on, and what each date offers.",
      "name": "Meals [Delivery Date]"
    },
    {
      "description": "The products of a vendor, with their prices and nutrition.",
      "name": "Meals [Product]"
    },
    {
      "description": "The menus of a vendor and the products on each.",
      "name": "Meals [Menu]"
    },
    {
      "description": "Create a customer and read them.",
      "name": "Meals [Customer]"
    },
    {
      "description": "Read or end the consent connection with a customer.",
      "name": "Meals [Connection]"
    },
    {
      "description": "Save a card to a customer's Nurish'd account and list the saved cards.",
      "name": "Meals [Payment Method]"
    },
    {
      "description": "Place meal orders for your customers, pay for them, and read them.",
      "name": "Meals [Order]"
    },
    {
      "description": "Create a patient and read them.",
      "name": "Care [Patient]"
    },
    {
      "description": "Read or end the consent connection with a patient.",
      "name": "Care [Connection]"
    },
    {
      "description": "Save a card to a patient's Nurish'd account and list the saved cards.",
      "name": "Care [Payment Method]"
    },
    {
      "description": "The specialists you can book.",
      "name": "Care [Specialist]"
    },
    {
      "description": "The services of a specialist.",
      "name": "Care [Service]"
    },
    {
      "description": "The open times of a specialist's service.",
      "name": "Care [Availability]"
    },
    {
      "description": "Book, read and cancel visits for your patients.",
      "name": "Care [Booking]"
    },
    {
      "description": "The signed reports of the visits you booked.",
      "name": "Care [Report]"
    },
    {
      "description": "Read and save a patient's health profile.",
      "name": "Care [Health Profile]"
    },
    {
      "description": "Check the API key you are calling with.",
      "name": "Developer [Key]"
    },
    {
      "description": "List and read what happened to your connections, bookings, reports and orders.",
      "name": "Developer [Event]"
    },
    {
      "description": "Register, change, roll the secret of and delete the endpoints that receive events.",
      "name": "Developer [Webhook Endpoint]"
    },
    {
      "description": "Sandbox-only calls that move test data along.",
      "name": "Developer [Test Helper]"
    }
  ]
}
