> ## Documentation Index
> Fetch the complete documentation index at: https://docs.journeybee.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List the partnership's order lines

> The sales report lines (orders, quotes and similar) the Orders room shows the calling partnership, newest line date first. Filter by `line_type` and an inclusive `date_from` / `date_to` on the line date. Only line types the vendor marked for partners and only the extra columns marked for partners are returned, never which importer a line came from. A line's lead or deal is returned only when the partnership can open it in its portal. A distributor may pass `reseller_id` (a linked reseller's uuid) to read that reseller's lines that came from the distributor's own importers. Needs the Orders room in the partner portal and the Sales reports module.



## OpenAPI

````yaml /partner-openapi.json get /partner/{partnershipId}/order-lines
openapi: 3.1.0
info:
  title: Journeybee Partner API
  description: Partner-facing REST API for the Journeybee PRM platform.
  version: 1.0.0
servers:
  - url: https://api.journeybee.io/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Partner
    description: Partner-facing API endpoints — used only by the partner spec
paths:
  /partner/{partnershipId}/order-lines:
    get:
      tags:
        - Partner
      summary: List the partnership's order lines
      description: >-
        The sales report lines (orders, quotes and similar) the Orders room
        shows the calling partnership, newest line date first. Filter by
        `line_type` and an inclusive `date_from` / `date_to` on the line date.
        Only line types the vendor marked for partners and only the extra
        columns marked for partners are returned, never which importer a line
        came from. A line's lead or deal is returned only when the partnership
        can open it in its portal. A distributor may pass `reseller_id` (a
        linked reseller's uuid) to read that reseller's lines that came from the
        distributor's own importers. Needs the Orders room in the partner portal
        and the Sales reports module.
      operationId: listPartnerOrderLines
      parameters:
        - schema:
            type: string
            maxLength: 64
          in: query
          name: line_type
          required: false
          description: Only lines of this line type key.
        - schema:
            type: string
            format: date
            pattern: >-
              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
          in: query
          name: date_from
          required: false
          description: Only lines dated on or after this date (YYYY-MM-DD).
        - schema:
            type: string
            format: date
            pattern: >-
              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
          in: query
          name: date_to
          required: false
          description: Only lines dated on or before this date (YYYY-MM-DD).
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          in: query
          name: reseller_id
          required: false
          description: >-
            A distributor only: the uuid of a reseller linked beneath it.
            Returns that reseller's lines that came from this distributor's own
            importers. Omit for the partnership's own lines.
        - schema:
            default: 1
            type: integer
            exclusiveMinimum: 0
            maximum: 10000
          in: query
          name: page
          required: false
        - schema:
            default: 25
            type: integer
            exclusiveMinimum: 0
            maximum: 200
          in: query
          name: perPage
          required: false
        - schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          in: path
          name: partnershipId
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        uuid:
                          type: string
                        line_type:
                          type: string
                        line_type_label:
                          type: string
                        reference:
                          type: string
                        line_date:
                          anyOf:
                            - type: string
                            - type: 'null'
                        status:
                          anyOf:
                            - type: string
                            - type: 'null'
                        value:
                          anyOf:
                            - type: number
                            - type: 'null'
                        shipped_value:
                          anyOf:
                            - type: number
                            - type: 'null'
                        currency:
                          anyOf:
                            - type: string
                            - type: 'null'
                        project:
                          anyOf:
                            - type: object
                              properties:
                                lead_uuid:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                lead_title:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                deal_uuid:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                deal_title:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                              required:
                                - lead_uuid
                                - lead_title
                                - deal_uuid
                                - deal_title
                              additionalProperties: false
                            - type: 'null'
                        report_date:
                          type: string
                        importer_uuid:
                          anyOf:
                            - type: string
                            - type: 'null'
                        importer_name:
                          anyOf:
                            - type: string
                            - type: 'null'
                        extra:
                          type: array
                          items:
                            oneOf:
                              - type: object
                                properties:
                                  label:
                                    type: string
                                  format:
                                    type: string
                                    enum:
                                      - text
                                  value:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                required:
                                  - label
                                  - format
                                  - value
                                additionalProperties: false
                              - type: object
                                properties:
                                  label:
                                    type: string
                                  format:
                                    type: string
                                    enum:
                                      - number
                                  value:
                                    anyOf:
                                      - type: number
                                      - type: 'null'
                                required:
                                  - label
                                  - format
                                  - value
                                additionalProperties: false
                              - type: object
                                properties:
                                  label:
                                    type: string
                                  format:
                                    type: string
                                    enum:
                                      - money
                                  value:
                                    anyOf:
                                      - type: number
                                      - type: 'null'
                                required:
                                  - label
                                  - format
                                  - value
                                additionalProperties: false
                              - type: object
                                properties:
                                  label:
                                    type: string
                                  format:
                                    type: string
                                    enum:
                                      - date
                                  value:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                required:
                                  - label
                                  - format
                                  - value
                                additionalProperties: false
                      required:
                        - uuid
                        - line_type
                        - line_type_label
                        - reference
                        - line_date
                        - status
                        - value
                        - shipped_value
                        - currency
                        - project
                        - report_date
                        - importer_uuid
                        - importer_name
                        - extra
                      additionalProperties: false
                      description: >-
                        One sales report line of a partner. `extra` holds the
                        extra columns the importer's mapping defines, resolved
                        for their format.
                  pagination:
                    type: object
                    properties:
                      page:
                        type: number
                      per_page:
                        type: number
                      total:
                        type: number
                      total_pages:
                        type: number
                    required:
                      - page
                      - per_page
                      - total
                      - total_pages
                    additionalProperties: false
                required:
                  - data
                  - pagination
                additionalProperties: false
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.