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

# List transactions

> Lists transactions. Filter by program, partner, customer or status, and page with cursors.



## OpenAPI

````yaml /api-reference/openapi.json get /v2/transactions
openapi: 3.1.0
info:
  title: Tolt Public API
  version: 2.0.0
servers:
  - url: https://platform.tolt.dev
    description: Development
security:
  - bearerAuth: []
paths:
  /v2/transactions:
    get:
      tags:
        - Transactions
      summary: List transactions
      description: >-
        Lists transactions. Filter by program, partner, customer or status, and
        page with cursors.
      operationId: listTransactions
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
            description: How many rows to return in one page.
          required: false
          description: How many rows to return in one page.
          name: limit
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
            description: >-
              Ranking direction: desc puts the most recently created or updated
              rows first.
          required: false
          description: >-
            Ranking direction: desc puts the most recently created or updated
            rows first.
          name: order
          in: query
        - schema:
            type: string
            enum:
              - created_at
              - updated_at
            default: created_at
            description: >-
              Timestamp to order and page by: created_at follows creation order,
              updated_at follows each item's most recent change.
          required: false
          description: >-
            Timestamp to order and page by: created_at follows creation order,
            updated_at follows each item's most recent change.
          name: sort
          in: query
        - schema:
            type: string
            description: >-
              Continue after a position: the next_cursor of a previous page, or
              an item id when sorting by created_at. Cannot be combined with
              ending_before.
          required: false
          description: >-
            Continue after a position: the next_cursor of a previous page, or an
            item id when sorting by created_at. Cannot be combined with
            ending_before.
          name: starting_after
          in: query
        - schema:
            type: string
            description: >-
              Page backward from a position: the prev_cursor of a previous page,
              or an item id when sorting by created_at. Cannot be combined with
              starting_after.
          required: false
          description: >-
            Page backward from a position: the prev_cursor of a previous page,
            or an item id when sorting by created_at. Cannot be combined with
            starting_after.
          name: ending_before
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Start of a window on when items were created: items created at
              this time or later are included, for example 2026-01-01T00:00:00Z.
              Leave it out for no lower bound.
          required: false
          description: >-
            Start of a window on when items were created: items created at this
            time or later are included, for example 2026-01-01T00:00:00Z. Leave
            it out for no lower bound.
          name: created_after
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              End of a window on when items were created: only items created
              before this time are included. Leave it out for no upper bound.
          required: false
          description: >-
            End of a window on when items were created: only items created
            before this time are included. Leave it out for no upper bound.
          name: created_before
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Only items last changed at or after this moment; with
              sort=updated_at, use it to fetch what changed since a previous
              sync.
          required: false
          description: >-
            Only items last changed at or after this moment; with
            sort=updated_at, use it to fetch what changed since a previous sync.
          name: updated_after
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Only items last changed before this moment; pair it with
              updated_after to fetch what changed in a period.
          required: false
          description: >-
            Only items last changed before this moment; pair it with
            updated_after to fetch what changed in a period.
          name: updated_before
          in: query
        - schema:
            type: string
            description: >-
              Limit to one program, by its id (prg_...) as returned when listing
              programs.
          required: false
          description: >-
            Limit to one program, by its id (prg_...) as returned when listing
            programs.
          name: program_id
          in: query
        - schema:
            type: string
            description: >-
              Limit to one partner, by its id (part_...) as returned when
              listing partners.
          required: false
          description: >-
            Limit to one partner, by its id (part_...) as returned when listing
            partners.
          name: partner_id
          in: query
        - schema:
            type: string
            description: >-
              Only transactions from this customer, by Tolt customer id
              (cus_...) as returned when listing customers.
          required: false
          description: >-
            Only transactions from this customer, by Tolt customer id (cus_...)
            as returned when listing customers.
          name: customer_id
          in: query
        - schema:
            type: string
            description: >-
              Only transactions in this status, matched exactly, such as paid or
              refunded.
          required: false
          description: >-
            Only transactions in this status, matched exactly, such as paid or
            refunded.
          name: status
          in: query
        - schema:
            type: string
            maxLength: 255
            description: >-
              Text matched anywhere in the transaction id or its charge_id,
              ignoring case.
          required: false
          description: >-
            Text matched anywhere in the transaction id or its charge_id,
            ignoring case.
          name: search
          in: query
      responses:
        '200':
          description: A page of transactions
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Request successful
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Transaction'
                  has_more:
                    type: boolean
                    example: false
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Opaque cursor marking the last item on this page. Pass it
                      as starting_after to continue. Null when the page is
                      empty.
                  prev_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Opaque cursor marking the first item on this page. Pass it
                      as ending_before to page backward. Null when the page is
                      empty.
                required:
                  - success
                  - message
                  - data
                  - has_more
                  - next_cursor
                  - prev_cursor
              example:
                success: true
                message: Successfully fetched transactions
                data:
                  - id: txn_A79SdSnx2WQn8ZVFTH9ddLda
                    amount: '5000'
                    amount_excluding_tax: '5000'
                    amount_including_tax: '5000'
                    currency: usd
                    tax: 0
                    payment_amount: '5000'
                    payment_currency: usd
                    status: paid
                    source: api
                    billing_type: subscription
                    interval: month
                    quantity: 1
                    partner_id: part_NLYzgNKuSuASvrvoxNtau6SY
                    customer_id: cus_LBfjvtfct9pVUeLojMHiGnXv
                    program_id: prg_T6z8aRW3XCmvFWP972RKxpAd
                    promotion_code_id: promo_gTCAUsWfdmN2GuCVRaHWNRan
                    promotion_code_name: SAM20
                    charge_id: ch_T7vN3kP6mQ9rW2xY
                    click_id: clk_mEsbFYv6ZjqXjAoFwokjS6v6
                    product_ids:
                      - prod_pro
                    product_names:
                      - Pro plan
                    conversion_rate: '1'
                    metadata:
                      order_id: order_12346
                      subscription_id: sub_R8qW2mN6kP4vT9xY
                      billing_reason: subscription_update
                    created_at: '2026-10-19T10:15:19.228Z'
                    updated_at: '2026-10-19T10:15:19.228Z'
                  - id: txn_fB3egT1sKNVNu3ZYuU1ypYDA
                    amount: '5000'
                    amount_excluding_tax: '5000'
                    amount_including_tax: '5000'
                    currency: usd
                    tax: 0
                    payment_amount: '5000'
                    payment_currency: usd
                    status: paid
                    source: api
                    billing_type: subscription
                    interval: month
                    quantity: 1
                    partner_id: part_NLYzgNKuSuASvrvoxNtau6SY
                    customer_id: cus_LBfjvtfct9pVUeLojMHiGnXv
                    program_id: prg_T6z8aRW3XCmvFWP972RKxpAd
                    promotion_code_id: promo_gTCAUsWfdmN2GuCVRaHWNRan
                    promotion_code_name: SAM20
                    charge_id: ch_R8qW2mN6kP4vT9xY
                    click_id: clk_mEsbFYv6ZjqXjAoFwokjS6v6
                    product_ids:
                      - prod_pro
                    product_names:
                      - Pro plan
                    conversion_rate: '1'
                    metadata:
                      order_id: order_12345
                      subscription_id: sub_R8qW2mN6kP4vT9xY
                      billing_reason: subscription_create
                    created_at: '2026-10-01T12:00:00Z'
                    updated_at: '2026-10-01T12:00:00Z'
                has_more: false
                next_cursor: >-
                  cur_WyJjcmVhdGVkX2F0IiwiMjAyNi0xMC0wMSAxMjowMDowMCswMCIsInR4bl9mQjNlZ1Qxc0tOVk51M1pZdVUxeXBZREEiXQ
                prev_cursor: >-
                  cur_WyJjcmVhdGVkX2F0IiwiMjAyNi0xMC0xOSAxMDoxNToxOS4yMjgrMDAiLCJ0eG5fQTc5U2RTbngyV1FuOFpWRlRIOWRkTGRhIl0
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: 'starting_after: malformed cursor'
                code: invalid_cursor
                doc_url: https://docs.tolt.com/errors#invalid_cursor
                errors:
                  - field: starting_after
                    message: malformed cursor
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Unauthorized
                code: unauthorized
                doc_url: https://docs.tolt.com/errors#unauthorized
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Transaction:
      type: object
      properties:
        id:
          type: string
          example: txn_fB3egT1sKNVNu3ZYuU1ypYDA
        amount:
          type:
            - string
            - 'null'
          description: >-
            Integer amount in the smallest currency unit (cents), serialized as
            a string.
          example: '5000'
        amount_excluding_tax:
          type:
            - string
            - 'null'
          description: >-
            Integer amount in the smallest currency unit (cents), serialized as
            a string.
          example: '5000'
        amount_including_tax:
          type:
            - string
            - 'null'
          description: >-
            Integer amount in the smallest currency unit (cents), serialized as
            a string.
          example: '5000'
        currency:
          type:
            - string
            - 'null'
          example: usd
        tax:
          type:
            - number
            - 'null'
          example: 0
        payment_amount:
          type:
            - string
            - 'null'
          description: >-
            Integer amount in the smallest currency unit (cents), serialized as
            a string.
          example: '5000'
        payment_currency:
          type:
            - string
            - 'null'
          example: usd
        status:
          type:
            - string
            - 'null'
          example: paid
        source:
          type:
            - string
            - 'null'
          example: api
        billing_type:
          type:
            - string
            - 'null'
          example: subscription
        interval:
          type:
            - string
            - 'null'
          example: month
        quantity:
          type:
            - number
            - 'null'
          example: 1
        partner_id:
          type:
            - string
            - 'null'
          example: part_NLYzgNKuSuASvrvoxNtau6SY
        customer_id:
          type:
            - string
            - 'null'
          example: cus_LBfjvtfct9pVUeLojMHiGnXv
        program_id:
          type:
            - string
            - 'null'
          example: prg_T6z8aRW3XCmvFWP972RKxpAd
        promotion_code_id:
          type:
            - string
            - 'null'
          example: promo_gTCAUsWfdmN2GuCVRaHWNRan
        promotion_code_name:
          type:
            - string
            - 'null'
          example: SAM20
        charge_id:
          type:
            - string
            - 'null'
          example: ch_R8qW2mN6kP4vT9xY
        click_id:
          type:
            - string
            - 'null'
          example: clk_mEsbFYv6ZjqXjAoFwokjS6v6
        product_ids:
          type:
            - array
            - 'null'
          items:
            type: string
          example:
            - prod_pro
        product_names:
          type:
            - array
            - 'null'
          items:
            type: string
          example:
            - Pro plan
        conversion_rate:
          type:
            - string
            - 'null'
          example: '1'
        metadata:
          example:
            order_id: order_12345
            subscription_id: sub_R8qW2mN6kP4vT9xY
            billing_reason: subscription_create
        created_at:
          type: string
          format: date-time
          example: '2026-10-01T12:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-01T12:00:00Z'
      required:
        - id
        - amount
        - amount_excluding_tax
        - amount_including_tax
        - currency
        - tax
        - payment_amount
        - payment_currency
        - status
        - source
        - billing_type
        - interval
        - quantity
        - partner_id
        - customer_id
        - program_id
        - promotion_code_id
        - promotion_code_name
        - charge_id
        - click_id
        - product_ids
        - product_names
        - conversion_rate
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          description: Human-readable explanation. May change; branch on code instead.
        code:
          type: string
          enum:
            - bad_request
            - validation_error
            - invalid_reference
            - invalid_cursor
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - already_exists
            - commission_paid
            - commission_frozen
            - transaction_refunded
            - commission_exists
            - rate_limited
            - payload_too_large
            - internal_error
          description: Stable machine-readable error code.
          example: not_found
        doc_url:
          type: string
          example: https://docs.tolt.com/errors#not_found
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
            required:
              - field
              - message
          description: >-
            One entry per offending field. Present on validation_error and
            invalid_reference.
      required:
        - success
        - message
        - code
        - doc_url
  headers:
    X-RateLimit-Limit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix time, in seconds, when the window resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  responses:
    PayloadTooLarge:
      description: Request body exceeds 1 MB
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            message: Request body exceeds 1 MB
            code: payload_too_large
            doc_url: https://docs.tolt.com/errors#payload_too_large
    RateLimited:
      description: The API key exceeded its rate limit
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            message: Too many requests. Retry after the window resets.
            code: rate_limited
            doc_url: https://docs.tolt.com/errors#rate_limited
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Tolt API key sent as a bearer token.

````

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