tread.io AutoAddOnAssignments API

The AutoAddOnAssignments API from tread.io — 10 operation(s) for autoaddonassignments.

OpenAPI Specification

treadio-autoaddonassignments-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Horizon API V1 AccountExternalTruckIdentifier AutoAddOnAssignments API
  version: '1.0'
  contact:
    name: Tread
    url: https://tread.io
    email: developers@tread.io
  description: 'This is the Version 1 implementation.


    When in doubt we default to the practices outlined [here](https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#advanced-queries)'
  license:
    name: Private
    url: https://tread.io
servers:
- description: production
  url: https://api.tread-horizon.com
security:
- bearerAuth: []
tags:
- name: AutoAddOnAssignments
paths:
  /v1/accounts/{account-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: account-id
      in: path
      required: true
      description: Account ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignments for an Account
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-accounts-account-id-auto_add_on_assignments
      x-stoplight:
        id: nv3sjczmet07b
      description: Create `AutoAddOnAssignment` for an `Account`
      x-internal: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
      tags:
      - AutoAddOnAssignments
    get:
      summary: Get AutoAddOnAssignments for an Account
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: ' Contains prev and next links for pagination'
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-accounts-account-id-auto_add_on_assignments
      x-stoplight:
        id: 757f5cafedvsz
      description: Get `AutoAddOnAssignments` for an `Account`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
      - $ref: '#/components/parameters/filter-account_type'
      x-internal: true
      tags:
      - AutoAddOnAssignments
  /v1/auto_add_on_assignments/{id}:
    parameters:
    - schema:
        type: string
        format: uuid
      name: id
      in: path
      required: true
      description: AutoAddOnAssignment ID
    - $ref: '#/components/parameters/Accept-Language'
    patch:
      summary: Update AutoAddOnAssignment
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: patch-v1-auto_add_on_assignments-id
      x-stoplight:
        id: ow454f0kwjhfi
      description: Update `AutoAddOnAssignment` by ID
      x-internal: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Update'
      tags:
      - AutoAddOnAssignments
    delete:
      summary: Delete AutoAddOnAssignment
      responses:
        '204':
          description: No Content
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: delete-v1-auto_add_on_assignments-id
      x-stoplight:
        id: 3r8r9o1v6eko9
      description: Delete `AutoAddOnAssignment` by ID
      x-internal: true
      tags:
      - AutoAddOnAssignments
  /v1/companies/{company-id}/orders/{order-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - schema:
        type: string
        format: uuid
      name: order-id
      in: path
      required: true
      description: Order ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for an Order for a Company
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-companies-company-id-orders-order-id-auto_add_on_assignments
      x-stoplight:
        id: 5h33djbg21gmm
      x-internal: true
      description: Create `AutoAddOnAssignment` for an `Order`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
    get:
      summary: Get AutoAddOnAssignments for an Order for a Company
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: mb1vbj8e4ha9n
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-companies-company-id-orders-order-id-auto_add_on_assignments
      x-stoplight:
        id: rdj0rl8ypn9am
      x-internal: true
      description: Get `AutoAddOnAssignments` for an `Order`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
      - $ref: '#/components/parameters/filter-account_type'
  /v1/drivers/{driver-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: driver-id
      in: path
      required: true
      description: Driver ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for a Driver
      responses:
        '201':
          description: Created
          headers: {}
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-drivers-driver-id-auto_add_on_assignments
      x-stoplight:
        id: gpplt50s4ratm
      description: Create `AutoAddOnAssignment` for a `Driver`
      x-internal: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
      tags:
      - AutoAddOnAssignments
    get:
      summary: Get AutoAddOnAssignments for a Driver
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: dltpky6py8r7v
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-drivers-driver-id-auto_add_on_assignments
      x-stoplight:
        id: huuaz4g6borkb
      x-internal: true
      description: Get `AutoAddOnAssignments` for a `Driver`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
      tags:
      - AutoAddOnAssignments
  /v1/job_assignments/{job-assignment-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: job-assignment-id
      in: path
      required: true
      description: JobAssignment ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for a JobAssignment
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-job_assignments-job-assignment-id-auto_add_on_assignments
      x-stoplight:
        id: ib7d4gjlhyy4o
      x-internal: true
      description: Create `AutoAddOnAssignment` for a `JobAssignment`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
    get:
      summary: Get AutoAddOnAssignments for a JobAssignment
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: 6a4oijcsoj4ic
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-job_assignments-job-assignment-id-auto_add_on_assignments
      x-stoplight:
        id: df6no3h7kigff
      x-internal: true
      description: Get `AutoAddOnAssignments` for a `JobAssignment`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
  /v1/jobs/{job-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: job-id
      in: path
      required: true
      description: Job ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for a Job
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-jobs-job-id-auto_add_on_assignments
      x-stoplight:
        id: rlpg83fl77xfh
      x-internal: true
      description: Create `AutoAddOnAssignment` for a `Job`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
    get:
      summary: Get AutoAddOnAssignments for a Job
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: jmdovwyzpttad
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-jobs-job-id-auto_add_on_assignments
      x-stoplight:
        id: a5itcv0qdnt8a
      x-internal: true
      description: Get `AutoAddOnAssignments` for a `Job`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
  /v1/orders/{order-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: order-id
      in: path
      required: true
      description: Order ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for an Order
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-orders-order-id-auto_add_on_assignments
      x-stoplight:
        id: 46vbpxwxyaj60
      x-internal: true
      description: Create `AutoAddOnAssignment` for an `Order`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
      deprecated: true
    get:
      summary: Get AutoAddOnAssignments for an Order
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: mb1vbj8e4ha9n
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-orders-order-id-auto_add_on_assignments
      x-stoplight:
        id: wb920awxysm98
      x-internal: true
      description: Get `AutoAddOnAssignments` for an `Order`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
      - $ref: '#/components/parameters/filter-account_type'
      deprecated: true
  /v1/projects/{project-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: project-id
      in: path
      required: true
      description: Project ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for a Project
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-projects-project-id-auto_add_on_assignments
      x-stoplight:
        id: 1swriowasik3r
      x-internal: true
      description: Create `AutoAddOnAssignment` for a `Project`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
    get:
      summary: Get AutoAddOnAssignments for a Project
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: bv5wgrh96b3x4
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-projects-project-id-auto_add_on_assignments
      x-stoplight:
        id: w0i7tozhjlfjz
      description: Get `AutoAddOnAssignments` for a `Project`
      x-internal: true
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
      - $ref: '#/components/parameters/filter-account_type'
  /v1/rates/{rate-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: rate-id
      in: path
      required: true
      description: Rate ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignment for a Rate
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-rates-rate-id-auto_add_on_assignments
      x-stoplight:
        id: ri1es0xegbx5i
      x-internal: true
      description: Create `AutoAddOnAssignment` for a `Rate`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
    get:
      summary: Get AutoAddOnAssignments for a Rate
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: rcpv6isrxmyuh
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-rates-rate-id-auto_add_on_assignments
      x-stoplight:
        id: m5a3yxp26uywt
      x-internal: true
      description: Get `AutoAddOnAssignments` for a `Rate`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
  /v1/site_rate_schedules/{site-rate-schedule-id}/auto_add_on_assignments:
    parameters:
    - schema:
        type: string
        format: uuid
      name: site-rate-schedule-id
      in: path
      required: true
      description: SiteRateSchedule ID
    - $ref: '#/components/parameters/Accept-Language'
    post:
      summary: Create AutoAddOnAssignments for a SiteRateSchedule
      tags:
      - AutoAddOnAssignments
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/AutoAddOnAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: post-v1-site_rate_schedules-site-rate-schedule-id-auto_add_on_assignments
      x-stoplight:
        id: 2utuw9y73vppe
      x-internal: true
      description: Create `AutoAddOnAssignments` for a `SiteRateSchedule`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoAddOnAssignment-Create'
    get:
      summary: Get AutoAddOnAssignments for a SiteRateSchedule
      tags:
      - AutoAddOnAssignments
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: 1v8fq6f1bnymy
                    items:
                      $ref: '#/components/schemas/AutoAddOnAssignment-Read'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-site_rate_schedules-site-rate-schedule-id-auto_add_on_assignments
      x-stoplight:
        id: lb6t2lbbjuhhx
      x-internal: true
      description: Get `AutoAddOnAssignments` for a `SiteRateSchedule`
      parameters:
      - $ref: '#/components/parameters/page-limit'
      - $ref: '#/components/parameters/page-after'
      - $ref: '#/components/parameters/page-before'
      - $ref: '#/components/parameters/filter-account_type'
components:
  responses:
    ModelError:
      description: ''
      content:
        application/json:
          schema:
            type: object
            $ref: '#/components/schemas/ModelError-Response'
    Error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            $ref: '#/components/schemas/Error-Response'
    UnauthenticatedError:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            $ref: '#/components/schemas/UnauthenticatedError-Response'
  parameters:
    Accept-Language:
      name: Accept-Language
      in: header
      schema:
        type: string
        default: en
        example: en
      description: 'The Accept-Language request HTTP header indicates the natural language and locale that the client prefers. '
    page-limit:
      name: page[limit]
      in: query
      schema:
        type: integer
        format: int32
        default: 25
        maximum: 100
      description: The maximum number of paginated results to return
    filter-account_type:
      name: filter[account_type]
      in: query
      required: false
      schema:
        type: string
      description: AccountType filter. See `AccountType` enum for accepted values.
    page-before:
      name: page[before]
      in: query
      required: false
      schema:
        type: string
      description: The cursor to stop paginating at
    page-after:
      name: page[after]
      in: query
      required: false
      schema:
        type: string
      description: The cursor to start paginating after
  schemas:
    FuelSurchargeSchedule-Read-Nested:
      title: FuelSurchargeSchedule-Read-Nested
      x-stoplight:
        id: cfxi1bfv03rdl
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - type: object
        x-stoplight:
          id: ug5goi9re1abe
        required:
        - name
        properties:
          name:
            type: string
            x-stoplight:
              id: 2izdii9s4bcmr
    Error-Response:
      title: Error-Response
      x-stoplight:
        id: 52cydhphee3qe
      type: object
      required:
      - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
      additionalProperties: false
    AccountType:
      title: AccountType
      x-stoplight:
        id: i4vfmd4rwrq8p
      enum:
      - customer
      - vendor
      example: customer
    AutoAddOnAssignment-Read:
      title: AutoAddOnAssignment-Read
      x-stoplight:
        id: mrei4t0lzdaps
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - type: object
        required:
        - name
        - quantity
        - rate
        - percentage
        - add_on_rate_type
        - external_id
        - accounting_id
        - add_on_types
        - total_installments
        - auto_add_on_installments_count
        - revenue_rate_value
        - revenue_cost_rate_type
        - cost_rate_value
        - account_type
        - add_on_id
        - original_auto_add_on_assignment_id
        - source_id
        - source_type
        properties:
          name:
            type: string
            x-stoplight:
              id: nniiufnqbcrt6
            nullable: true
          quantity:
            type: string
            x-stoplight:
              id: zw1rycytuuf81
            nullable: true
          rate:
            type: string
            x-stoplight:
              id: ogfdds5jcdlwy
            deprecated: true
            description: Deprecated in favor of `revenue_rate_value`.
            nullable: true
          percentage:
            type: string
            x-stoplight:
              id: ydlu6qwh4b5j7
            nullable: true
          add_on_rate_type:
            $ref: '#/components/schemas/NullableAddOnRateType'
          external_id:
            type: string
            x-stoplight:
              id: 9ttqi0mwfjnm3
            nullable: true
          accounting_id:
            type: string
            x-stoplight:
              id: bluyzie0m

# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/treadio/refs/heads/main/openapi/treadio-autoaddonassignments-api-openapi.yml