Otter Orders Endpoints API

Endpoints to manage orders for a store.

OpenAPI Specification

otter-orders-endpoints-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Public Account Pairing Endpoints Orders Endpoints API
  description: "# Overview\n\nThe API endpoints are developed around [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) principles secure via the OAuth2.0 protocol.\n\nBeyond the entry points, the API also provides a line of communication into your system via [webhooks](https://en.wikipedia.org/wiki/Webhook).\n\nFor testing purposes, we offer a staging environment. Also, more detailed information about the business rules and workflows can be found on the [**Documentation Section**](/docs/)\n\n## Versioning\nEach API is versioned individually, but we follow these rules:\n- Non breaking changes (eg: adding new fields) are added in the current version without previous communication\n- Breaking changes (fields removal, semantic changed or schema update) have the version incremented\n- Users will be notified about new versions and will be given time to migrate (the time will be set on a case by case basis)\n- Once users migrate to the new version, we will deprecate the old ones\n- Once there is a new version for an API, we won't accept new integrations targeting old versions\n\n## API General Definitions\nThe APIs use resource-oriented URLs communicating, primarily, via JSON and leveraging the HTTP headers, [response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status), and verbs.\n\nTo exemplify how the API is to be consumed, consider a fake GET resource endpoint invocation below:\n\n```\ncurl --request GET 'https://{{public-api-url}}/v1/resource/123' \\\n--header 'Authorization: Bearer 34fdabeeafds=' --header 'X-Store-Id: 321'\n```\n\n|      Header      | Description |\n| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n|`Authorization`   | Standard HTTP header is used to associate the request with the originating invoker. The content of this header is a `Bearer` token generated from you client_secret, defined in the [API Auth](#/section/Guides/API-Auth) guide.|\n|`X-Store-Id`      | The ID of the store in your system this call acts on behalf of. |\n\n_All resource endpoints expect the `Authorization` header, the remaining headers are explicitly stated in the individual endpoint documentation section._\n\nWith these headers, the system will:\n - Validate the client token, making sure the call is originating from a trusted source.\n - Validate that the Application has the permission to access the `v1/resource/{id}` resource via the Application's pre-configured scopes.\n - Translate your X-Store-Id to our internal store ID (e.g. `AAA`).\n - Validate and retrieve resource `AAA`, that is associated to your Application via store id `321`.\n\nPOST/PUT methods will look similar to the GET calls, but they'll take in a body in the HTTP request (default to the application/json content-type).\n\n```\ncurl --location --request POST 'https://{{public-api-url}}/v1/resource' \\\n--header 'Authorization: Bearer 34fdabeeafds=' --header 'X-Store-Id: 321'\n--data '{\"foo\": \"bar\"}'\n```\n\n## API Authentication/Authorization\n\n<SecurityDefinitions />\n\n## Webhook\n\nThe Public API is able to send notifications to your system via HTTP POST requests.\n\nEvery webhook is signed using HMAC-SHA256 that is present in the header `X-HMAC-SHA256`, and you can also authenticate the requests using Basic Auth, Bearer Token or HMAC-SHA1 (legacy). Please, refer to [**Webhook Authentication Guide**](/docs/guides-webhook-authentication/) for more details.\n\n_Please work with your Account Representative to setup your Application's Webhook configurations._\n\n```\nExample Base-URL = https://{{your-server-url}}/webhook\n```\n\n### Notification Schema\n\n| **Name**                | **Type** | **Description**                                                      |\n| ------------------------| ---------| -------------------------------------------------------------------- |\n| eventId                 | string   | Unique id of the event.                                              |\n| eventTime               | string   | The time the event occurred.                                         |\n| eventType               | string   | The type of event (e.g. create_order).                               |\n| metadata.storeId        | string   | Id of the store for which the event is being published.              |\n| metadata.applicationId  | string   | Id of the application for which the event is being published.        |\n| metadata.resourceId     | string   | The external identifier of the resource that this event refers to.   |\n| metadata.resourceHref   | string   | The endpoint to fetch the details of the resource.                   |\n| metadata.payload        | object   | The event object which will be detailed in each Webhook description. |\n\n### Notification Request Example\n\n```\ncurl --location --request POST 'https://{{your-server-url}}/webhook' \\\n--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36' \\\n--header 'Authorization: MAC <hash signature>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n   \"eventId\": \"123456\",\n   \"eventTime\": \"2020-10-10T20:06:02:123Z\",\n   \"eventType\": \"orders.new_order\",\n   \"metadata\": {\n      \"storeId\": \"755fd19a-7562-487a-b615-171a9f89d669\",\n      \"applicationId\": \"e22f94b3-967c-4e26-bf39-9e364066b68b\",\n      \"resourceHref\": \"https://{{public-api-url}}/v1/orders/bf9f1d81-f213-496e-a026-91b6af44996c\",\n      \"resourceId\": \"bf9f1d81-f213-496e-a026-91b6af44996c\",\n      \"payload\": {}\n   }\n}\n```\n\n### Expected Response\n\nThe partner application should return an HTTP 200 response code with an empty response body to acknowledge receipt of the webhook event.\n## Rate Limiting\nPlease, refer to [**Rate Limiting Guide**](/docs/guides-rate-limiting/) for more details.\n\n## Error codes\nThe APIs use standard HTTP status codes to indicate the success or failure of a request. Error codes are divided into two categories: 4XX codes for client-side errors and 5xx codes for server-side errors.\n### 4XX Client-Side Errors\nClient-side errors are indicated by status codes in the 4xx range. These errors are typically the result of a problem with the request made by your application.\nIf a client-side error occurs, our API will return a response that includes an appropriate error message. This message will provide information about the cause of the error. The aim of these messages is to assist you in identifying and resolving the issue.\nFor example, if you submit a request with missing or invalid parameters, you might receive a 400 Bad Request error with a message indicating which parameters were missing or incorrect.\n### 5XX Server-Side Errors\nServer-side errors are represented by status codes in the 5xx range. These errors suggest a problem with our server, not with your application's request.\nServer-side errors are typically transient, meaning they are temporary. If a server-side error occurs, we recommend that the client retries the same request with the exact same parameters.\nFor example, if you get a 500 Internal Server Error, it's possible that our server is suffering a temporary problem. In such cases, retrying the request after a short delay is often successful.\nIf you continually receive server-side errors, reach out to our support team for further assistance."
  version: v1
  license:
    name: Proprietary
  contact:
    name: Kin Lane
    email: kin@apievangelist.com
  x-generated-from: documentation
  x-source-url: https://developer-guides.tryotter.com/api-reference/
  x-last-validated: '2026-06-03'
servers:
- url: https://{public-api-url}/
  description: Otter Public API base URL. The concrete host is provisioned per integration partner/account via your Otter account representative; substitute the value provided during onboarding.
  variables:
    public-api-url:
      default: public-api-url
      description: Account-specific Public API host provided by Otter during onboarding.
tags:
- name: Orders Endpoints
  description: Endpoints to manage orders for a store.
  x-displayName: Orders
paths:
  /v1/orders:
    post:
      tags:
      - Orders Endpoints
      summary: Otter Create Order
      description: '`RATE LIMIT: 32 per minute`

        '
      operationId: createOrder
      parameters:
      - $ref: '#/components/parameters/storeIdHeader'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Order'
            examples:
              CreateOrderRequestExample:
                summary: Default createOrder request
                x-microcks-default: true
                value:
                  externalIdentifiers:
                    id: 69f60a06-c335-46d9-b5a1-97f1a211c514
                    friendlyId: ABCDE
                    source: ubereats
                    sourceType: POINT_OF_SALE
                    sourceExternalIdentifiers: {}
                  currencyCode: EUR
                  status: NEW_ORDER
                  items:
                  - quantity: 1
                    skuPrice: 5.9
                    id: 33e0418f-3d56-4360-ba03-18fc5f8844a3
                    lineItemId: 2f91f9f3-2d7e-4898-ae81-00fe06ed7dbf
                    skuId: 867b8fdc-cf7b-4fc3-b7e0-4c7b68d8b1cc
                    name: Juicy Cheeseburger
                    note: Please cook to well done!
                    categoryId: 303de078-870d-4349-928b-946869d4d69b
                    internalCategoryId: 76a66bba-48fb-4bac-80ee-2616a5ca1ab9
                    categoryName: Burgers
                    internalCategoryName: Burgers
                    stationId: 5247b8a1-77de-4844-b024-cb59fcec59bd
                    price: 5.9
                    modifiers:
                    - {}
                  orderedAt: '2007-12-03T10:15:30+01:00'
                  customer:
                    name: Jane Doe
                    phone: +1-555-555-5555
                    phoneCode: 111 11 111
                    email: email@email.com
                    personalIdentifiers: {}
                  customerNote: Please include extra napkins!
                  deliveryInfo:
                    courier: {}
                    destination: {}
                    licensePlate: ABC 123
                    makeModel: Honda CR-V
                    lastKnownLocation: {}
                    dropoffInstructions: {}
                    note: Gate code 123
                  orderTotal:
                    subtotal: 11.97
                    claimedSubtotal: 1.0
                    discount: 1
                    tax: 1.1
                    tip: 2
                    deliveryFee: 5
                    total: 19.07
                    couponCode: VWXYZ98765
                  orderTotalV2:
                    customerTotal: {}
                    customerPayment: {}
                    payout: {}
                  customerPayments:
                  - value: 2
                    processingStatus: COLLECTABLE
                    paymentMethod: CASH
                    paymentAuthorizer: UNKNOWN_TYPE
                    cardInfo: {}
                    externalPaymentType: string
                    paymentRecords:
                    - {}
                    loyaltyInfo: {}
                  fulfillmentInfo:
                    pickupTime: '2007-12-03T10:15:30+01:00'
                    estimatedPickupTime: '2007-12-03T10:15:30+01:00'
                    deliveryTime: '2007-12-03T10:15:30+01:00'
                    fulfillmentMode: DELIVERY
                    schedulingType: ASAP
                    courierStatus: COURIER_ASSIGNED
                    tableIdentifier: R-45
                  promotionsDetails:
                  - externalId: store_123
                    name: 20% off, up to $5
                    value: 2
                  preparationTime:
                    estimatedPreparationTime: PT30M
        required: true
      responses:
        '200':
          description: The order was successfully created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderReference'
              examples:
                CreateOrder200Example:
                  summary: Default createOrder 200 response
                  x-microcks-default: true
                  value:
                    externalIdentifiers:
                      id: 69f60a06-c335-46d9-b5a1-97f1a211c514
                      friendlyId: ABCDE
                      source: ubereats
                      sourceType: POINT_OF_SALE
                      sourceExternalIdentifiers: {}
                    storeId: ckdss-store-id
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
      security:
      - OAuth2.0:
        - orders.create
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v1/orders/{orderId}:
    put:
      tags:
      - Orders Endpoints
      summary: Otter Update Order
      description: '`RATE LIMIT: 32 per minute`

        '
      operationId: updateOrder
      parameters:
      - $ref: '#/components/parameters/storeIdHeader'
      - $ref: '#/components/parameters/orderId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Order'
            examples:
              UpdateOrderRequestExample:
                summary: Default updateOrder request
                x-microcks-default: true
                value:
                  externalIdentifiers:
                    id: 69f60a06-c335-46d9-b5a1-97f1a211c514
                    friendlyId: ABCDE
                    source: ubereats
                    sourceType: POINT_OF_SALE
                    sourceExternalIdentifiers: {}
                  currencyCode: EUR
                  status: NEW_ORDER
                  items:
                  - quantity: 1
                    skuPrice: 5.9
                    id: 33e0418f-3d56-4360-ba03-18fc5f8844a3
                    lineItemId: 2f91f9f3-2d7e-4898-ae81-00fe06ed7dbf
                    skuId: 867b8fdc-cf7b-4fc3-b7e0-4c7b68d8b1cc
                    name: Juicy Cheeseburger
                    note: Please cook to well done!
                    categoryId: 303de078-870d-4349-928b-946869d4d69b
                    internalCategoryId: 76a66bba-48fb-4bac-80ee-2616a5ca1ab9
                    categoryName: Burgers
                    internalCategoryName: Burgers
                    stationId: 5247b8a1-77de-4844-b024-cb59fcec59bd
                    price: 5.9
                    modifiers:
                    - {}
                  orderedAt: '2007-12-03T10:15:30+01:00'
                  customer:
                    name: Jane Doe
                    phone: +1-555-555-5555
                    phoneCode: 111 11 111
                    email: email@email.com
                    personalIdentifiers: {}
                  customerNote: Please include extra napkins!
                  deliveryInfo:
                    courier: {}
                    destination: {}
                    licensePlate: ABC 123
                    makeModel: Honda CR-V
                    lastKnownLocation: {}
                    dropoffInstructions: {}
                    note: Gate code 123
                  orderTotal:
                    subtotal: 11.97
                    claimedSubtotal: 1.0
                    discount: 1
                    tax: 1.1
                    tip: 2
                    deliveryFee: 5
                    total: 19.07
                    couponCode: VWXYZ98765
                  orderTotalV2:
                    customerTotal: {}
                    customerPayment: {}
                    payout: {}
                  customerPayments:
                  - value: 2
                    processingStatus: COLLECTABLE
                    paymentMethod: CASH
                    paymentAuthorizer: UNKNOWN_TYPE
                    cardInfo: {}
                    externalPaymentType: string
                    paymentRecords:
                    - {}
                    loyaltyInfo: {}
                  fulfillmentInfo:
                    pickupTime: '2007-12-03T10:15:30+01:00'
                    estimatedPickupTime: '2007-12-03T10:15:30+01:00'
                    deliveryTime: '2007-12-03T10:15:30+01:00'
                    fulfillmentMode: DELIVERY
                    schedulingType: ASAP
                    courierStatus: COURIER_ASSIGNED
                    tableIdentifier: R-45
                  promotionsDetails:
                  - externalId: store_123
                    name: 20% off, up to $5
                    value: 2
                  preparationTime:
                    estimatedPreparationTime: PT30M
        required: true
      responses:
        '200':
          description: The order was successfully updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderReference'
              examples:
                UpdateOrder200Example:
                  summary: Default updateOrder 200 response
                  x-microcks-default: true
                  value:
                    externalIdentifiers:
                      id: 69f60a06-c335-46d9-b5a1-97f1a211c514
                      friendlyId: ABCDE
                      source: ubereats
                      sourceType: POINT_OF_SALE
                      sourceExternalIdentifiers: {}
                    storeId: ckdss-store-id
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
      security:
      - OAuth2.0:
        - orders.update
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v1/orders/{orderId}/status:
    post:
      tags:
      - Orders Endpoints
      summary: Otter Update Order Status
      description: '`RATE LIMIT: 32 per minute`

        '
      operationId: updateOrderStatus
      parameters:
      - $ref: '#/components/parameters/storeIdHeader'
      - $ref: '#/components/parameters/eventIdOptionalHeader'
      - $ref: '#/components/parameters/orderId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderStatusUpdateRequest'
            examples:
              UpdateOrderStatusRequestExample:
                summary: Default updateOrderStatus request
                x-microcks-default: true
                value:
                  orderStatus: PREPARED
        required: true
      responses:
        '202':
          description: The order status was successfully accepted.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
      security:
      - OAuth2.0:
        - orders.update
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v1/orders/{orderId}/payments:
    put:
      tags:
      - Orders Endpoints
      summary: Otter Update Order Customer Payment
      description: '`RATE LIMIT: 8 per minute`


        Notice that this operation do not completely replace the existent customer payment, instead, it overwrites the field if the latest update is a non-null value. If the update value is null, the existent value will continue to be used.

        '
      operationId: updateOrderCustomerPayment
      parameters:
      - $ref: '#/components/parameters/storeIdHeader'
      - $ref: '#/components/parameters/orderId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCustomerPaymentUpdateRequest'
            examples:
              UpdateOrderCustomerPaymentRequestExample:
                summary: Default updateOrderCustomerPayment request
                x-microcks-default: true
                value:
                  currencyCode: EUR
                  customerPayment:
                  - value: 2
                    processingStatus: COLLECTABLE
                    paymentMethod: CASH
                    paymentAuthorizer: UNKNOWN_TYPE
                    cardInfo: {}
                    externalPaymentType: string
                    paymentRecords:
                    - {}
                    loyaltyInfo: {}
                  orderTotal:
                    subtotal: 11.97
                    claimedSubtotal: 1.0
                    discount: 1
                    tax: 1.1
                    tip: 2
                    deliveryFee: 5
                    total: 19.07
                    couponCode: VWXYZ98765
                  orderTotalsV2:
                    customerTotal: {}
                    customerPayment: {}
                    payout: {}
        required: true
      responses:
        '200':
          description: The order payment information was successfully updated.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
      security:
      - OAuth2.0:
        - orders.update
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v1/orders/{orderId}/delivery:
    put:
      tags:
      - Orders Endpoints
      summary: Otter Update Order Delivery Information
      description: '`RATE LIMIT: 8 per minute`

        '
      operationId: updateOrderDeliveryInfo
      parameters:
      - $ref: '#/components/parameters/storeIdHeader'
      - $ref: '#/components/parameters/orderId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderDeliveryInfoUpdateRequest'
            examples:
              UpdateOrderDeliveryInfoRequestExample:
                summary: Default updateOrderDeliveryInfo request
                x-microcks-default: true
                value:
                  deliveryInfo:
                    courier: {}
                    destination: {}
                    licensePlate: ABC 123
                    makeModel: Honda CR-V
                    lastKnownLocation: {}
                    dropoffInstructions: {}
                    note: Gate code 123
        required: true
      responses:
        '202':
          description: The order delivery information was successfully accepted.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
      security:
      - OAuth2.0:
        - orders.update
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v1/orders/past-orders:
    post:
      tags:
      - Orders Endpoints
      summary: Otter Upload Past Orders
      description: '`RATE LIMIT: 32 per minute`; orders must have a status of FULFILLED, REJECTED, or CANCELED

        '
      operationId: uploadPastOrders
      parameters:
      - $ref: '#/components/parameters/storeIdHeader'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadPastOrdersRequest'
            examples:
              UploadPastOrdersRequestExample:
                summary: Default uploadPastOrders request
                x-microcks-default: true
                value:
                  orders:
                  - externalIdentifiers: {}
                    currencyCode: EUR
                    status: NEW_ORDER
                    items:
                    - {}
                    orderedAt: '2007-12-03T10:15:30+01:00'
                    customer: {}
                    customerNote: Please include extra napkins!
                    deliveryInfo: {}
                    orderTotal: {}
                    orderTotalV2: {}
                    customerPayments:
                    - {}
                    fulfillmentInfo: {}
                    promotionsDetails:
                    - {}
                    preparationTime: {}
        required: true
      responses:
        '200':
          description: The orders was successfully uploaded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadPastOrdersResponse'
              examples:
                UploadPastOrders200Example:
                  summary: Default uploadPastOrders 200 response
                  x-microcks-default: true
                  value:
                    orderReferences:
                    - externalIdentifiers: {}
                      storeId: ckdss-store-id
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
      security:
      - OAuth2.0:
        - orders.create
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    Address:
      type: object
      nullable: true
      properties:
        fullAddress:
          type: string
          nullable: true
          description: Full, human comprehensible address. It is usually formatted in the order appropriate for your locale.
          example: 123 Sample Street Ste 100, San Francisco, CA 94103
        postalCode:
          type: string
          description: Postal code of the address.
          example: '20500'
        city:
          type: string
          description: The city/town portion of the address.
          example: Washington
        state:
          type: string
          description: Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, or a prefecture.
          example: DC
        countryCode:
          type: string
          description: CLDR country code. See http://cldr.unicode.org/
          example: US
        addressLines:
          type: array
          nullable: true
          description: Address lines (e.g. street, PO Box, or company name) or the full single line address (e.g. street, city, state, country, zip).
          example:
          - 1600 Pennsylvania Avenue NW
          - 123 Sample Street Ste 100, San Francisco, CA 94103
          items:
            type: string
        linesOfAddress:
          type: array
          nullable: true
          deprecated: true
          description: 'Deprecated: use addressLines. Address lines (e.g. street, PO Box, or company name) or the full single line address (e.g. street, city, state, country, zip).'
          example:
          - 1600 Pennsylvania Avenue NW
          - 123 Sample Street Ste 100, San Francisco, CA 94103
          items:
            type: string
        location:
          $ref: '#/components/schemas/Location'
      description: Order delivery address.
    PromotionDetails:
      type: object
      nullable: true
      description: Order promotion details.
      properties:
        externalId:
          type: string
          description: External promotion identifier.
          example: store_123
        name:
          type: string
          description: Promotion name.
          example: 20% off, up to $5
        value:
          type: number
          description: Promotion value.
          example: 2
    CardFundingType:
      type: string
      enum:
      - UNKNOWN
      - CREDIT
      - DEBIT
      - PREPAID
      description: The funding type of the card.
      example: CREDIT
    Person:
      type: object
      nullable: true
      properties:
        name:
          type: string
          nullable: true
          description: The person's name as it should be displayed.
          example: Jane Doe
          maxLength: 255
        phone:
          type: string
          nullable: true
          description: The person's phone number.
          example: +1-555-555-5555
          maxLength: 25
        phoneCode:
          type: string
          nullable: true
          description: A code or extension of the phone number.
          example: 111 11 111
          maxLength: 25
        email:
          type: string
          nullable: true
          description: The person's email address.
          example: email@email.com
        personalIdentifiers:
          $ref: '#/components/schemas/PersonalIdentifiers'
      description: The recipient information.
    RequiredDeliveryInfo:
      type: object
      properties:
        courier:
          $ref: '#/components/schemas/Courier'
        destination:
          $ref: '#/components/schemas/Address'
        licensePlate:
          type: string
          nullable: true
          description: License plate of a vehicle used by the courier.
          example: ABC 123
        makeModel:
          type: string
          nullable: true
          description: Make and model of a vehicle used by the courier.
          example: Honda CR-V
        lastKnownLocation:
          $ref: '#/components/schemas/Location'
        dropoffInstructions:
          $ref: '#/components/schemas/DropoffInstructions'
        note:
          type: string
          nullable: true
          description: Special delivery instructions, if any.
          example: Gate code 123
      description: Information on order's delivery process.
    AccountHolderType:
      type: string
      enum:
      - INDIVIDUAL
      - COMPANY
      description: The type of account holder.
      example: INDIVIDUAL
    OrderExternalIdentifiers:
      required:
      - friendlyId
      - id
      type: object
      properties:
        id:
          type: string
          description: Unique ID for the order that was placed.
          example: 69f60a06-c335-46d9-b5a1-97f1a211c514
        friendlyId:
          type: string
          description: ID used for driver pickup and restaurant management.
          example: ABCDE
        source:
          type: string
          nullable: true
          description: Describes the source of the order, typically from a food ordering marketplace.
          example: ubereats
        sourceType:
          type: string
          nullable: true
          description: source type of the order
          enum:
          - POINT_OF_SALE
          - ORDERING_MARKETPLACE
          - AGGREGATOR
          - CUSTOMER_INTERACTION
          example: POINT_OF_SALE
        sourceExternalIdentifiers:
          nullable: true
          $ref: '#/components/schemas/SourceExternalIdentifiers'
      description: The external identifiers.
    OrderTotalV2:
      required:
      - customerTotal
      type: object
      nullable: true
      properties:
        customerTotal:
          nullable: false
          allOf:
          - $ref: '#/components/schemas/FinancialData'
        customerPayment:
          nullable: true
          description: The customer perspective, each price field in this model is meant to represent the values the customer paid/received and how. Values must match amounts and payment methods described in customerPayments.
          allOf:
          - $ref: '#/components/schemas/CustomerPaymentV2'
        payout:
          nullable: true
          description: Breakdown of net payout received by the store. Optional object, should be provided when payout information is available during the order lifecycle.
          allOf:
          - $ref: '#/components/schemas/Payout'
      description: V2 for details about values of the order, provides richer obje

# --- truncated at 32 KB (131 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/openapi/otter-orders-endpoints-api-openapi.yml