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

# List Orders

> Return list of recent orders.



## OpenAPI

````yaml get /orders/list
openapi: 3.1.0
info:
  title: thanks.io API
  description: >-
    Use the thanks.io API to send postcards, letters, notecards, windowless
    letters, and gift cards.
  contact:
    url: https://thanks.io
    email: support@thanks.io
  version: 1.0.0
servers:
  - url: https://api.thanks.io/api/v2
    description: The main API server for thanks.io
security:
  - bearerAuth: []
tags:
  - name: Recipients
  - name: Mailing Lists
  - name: Send Mailer
  - name: Order Estimates
  - name: Orders
  - name: Message Templates
  - name: Image Templates
  - name: Creatives Library
    description: >-
      Your Creatives library: saved pairings of an image template and a message
      template. Sending one by `creative_id` is the recommended way to send.
      Creatives are designed in your dashboard; these endpoints list and read
      them so your integration can find the right `creative_id`.
  - name: Handwriting Styles
  - name: Giftcards
  - name: Dynamic Images
    description: ''
  - name: Image Builder
  - name: Sub Accounts
  - name: Webhooks
  - name: Webhook Events
externalDocs:
  description: Learn more about thanks.io
  url: https://docs.thanks.io
paths:
  /orders/list:
    get:
      tags:
        - Orders
      summary: List Orders
      description: Return list of recent orders.
      parameters:
        - $ref: '#/components/parameters/items_per_page'
        - $ref: '#/components/parameters/sub_account_id'
        - name: type
          in: query
          schema:
            type: string
            enum:
              - postcard
              - postcard6x9
              - postcard6x11
              - letter
              - windowlessletter
              - notecard
              - giftcard
              - magnacard
              - 4x6-postcard
              - 6x9-postcard
          description: >-
            Only return orders of this mailer type. `postcard` returns 4x6
            postcards only; `postcard6x9` returns all 6x9 postcards, including
            6x9 orders placed before 6x9 had its own type. `4x6-postcard` and
            `6x9-postcard` are accepted as aliases for `postcard` and
            `postcard6x9`.
        - name: creative_id
          in: query
          schema:
            type: integer
          description: >-
            Only return orders sent as this creative from your Creatives
            library. Use an `id` from [List
            Creatives](/api-reference/endpoint/creatives-library/list-all-creatives).
        - name: campaign
          in: query
          schema:
            type: integer
          description: >-
            Only return orders sent by a campaign. Pass the ID of the campaign's
            mailing list: every order sent by that list's campaign actions is
            returned, including actions that have since been deleted.
      responses:
        '200':
          description: OK
          headers:
            Content-Type:
              schema:
                type: string
                example: application/json
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/order'
                  links:
                    $ref: '#/components/schemas/links'
                  meta:
                    $ref: '#/components/schemas/meta'
              example:
                data:
                  - id: 42708
                    message: >-
                      Hey %FIRST_NAME%!,


                      THANK YOU for allowing us the opportunity to HELP you with
                      your plan!
                    size: 4x6
                    sub_account_id: null
                    type: postcard
                    display_type: Postcard-4x6
                    style: 1
                    front_image: https://cdn.thanks.io/letter-backgrounds/bg0.png
                    high_quality_preview: ''
                    authorization_total: 73
                    grand_total: 73
                    order_total: 73
                    total_estimated_recipients: 1
                    total_recipients: 1
                    recipient_count: 1
                    status: Fulfilled
                    method: Campaign
                    cancellable: false
                    total_scans: 0
                    metadata:
                      crm_deal_id: D-1042
                    created_at: '2025-09-08T16:05:12.000000Z'
                    updated_at: '2025-09-08T16:06:08.000000Z'
                links:
                  first: https://api.thanks.io/api/v2/orders/list?page=1
                  last: https://api.thanks.io/api/v2/orders/list?page=4992
                  prev: null
                  next: https://api.thanks.io/api/v2/orders/list?page=2
                meta:
                  current_page: 1
                  from: 1
                  last_page: 4992
                  path: https://api.thanks.io/api/v2/orders/list
                  per_page: '1'
                  to: 1
                  total: 4992
        '403':
          $ref: '#/components/responses/Unauthorized'
components:
  parameters:
    items_per_page:
      name: items_per_page
      in: query
      description: Number of items to return per page.
      required: false
      schema:
        type: integer
        default: 25
      example: 5
    sub_account_id:
      name: sub_account_id
      in: query
      description: Filter results by Sub Account ID.
      required: false
      schema:
        type: integer
      example: 1
  schemas:
    order:
      type: object
      properties:
        id:
          type: integer
          example: 42708
        message:
          type: string
          example: >-
            Hey %FIRST_NAME%!,


            THANK YOU for allowing us the opportunity to HELP you with your
            plan!
        size:
          type: string
          description: Only valid for postcards
          example: 4x6
        sub_account_id:
          type:
            - integer
            - 'null'
          example: null
        type:
          type: string
          enum:
            - postcard
            - postcard6x9
            - postcard6x11
            - letter
            - notecard
            - giftcard
            - windowlessletter
          example: postcard
        display_type:
          type: string
          example: Postcard-4x6
        style:
          type: integer
          description: Handwriting Style ID used for this order
          example: 1
        front_image:
          type: string
          example: https://cdn.thanks.io/letter-backgrounds/bg0.png
        high_quality_preview:
          type: string
          description: PDF of the high quality preview of the order
        authorization_total:
          type: integer
          example: 73
        grand_total:
          type: integer
          example: 73
        order_total:
          type: integer
          example: 73
        total_estimated_recipients:
          type: integer
          example: 1
        total_recipients:
          type: integer
          example: 1
        recipient_count:
          type: integer
          example: 1
        status:
          type: string
          example: Fulfilled
        method:
          type: string
          example: Campaign
        cancellable:
          type: boolean
          example: false
        total_scans:
          type: integer
          example: 0
        metadata:
          type:
            - object
            - 'null'
          description: >-
            The metadata object submitted with the order, returned exactly as it
            was sent. Null when the order was created without metadata.
          additionalProperties: true
          example:
            crm_deal_id: D-1042
        created_at:
          type: string
          format: date-time
          example: '2025-09-08T16:05:12.000000Z'
        updated_at:
          type: string
          format: date-time
          example: '2025-09-08T16:06:08.000000Z'
    links:
      type: object
      properties:
        first:
          type:
            - string
            - 'null'
          description: URL of the first page of results
        last:
          type:
            - string
            - 'null'
          description: URL of the last page of results
        prev:
          type:
            - string
            - 'null'
          description: URL of the previous page of results
        next:
          type:
            - string
            - 'null'
          description: URL of the next page of results
    meta:
      type: object
      properties:
        current_page:
          type: integer
          example: 1
          description: Current page number
        from:
          type:
            - integer
            - 'null'
          example: 1
          description: Index of the first item on the current page
        last_page:
          type: integer
          example: 1
          description: Total number of pages
        path:
          type: string
          description: Base URL for the resource
        per_page:
          type: integer
          example: 25
          description: Number of items per page
        to:
          type:
            - integer
            - 'null'
          example: 1
          description: Index of the last item on the current page
        total:
          type: integer
          example: 1
          description: Total number of items
  responses:
    Unauthorized:
      description: Access token is missing or invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication using your thanks.io API key

````

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