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

# List Transactions

> List a customer's transactions, with their balance after each one.

This lists every [transaction](https://docs.usejuiced.com/features/transactions.md) on the customer's balance, newest first, 50 at a time. Pass `next_cursor` back as `cursor` to get the next page. Archived customers' transactions can be listed too.

It needs the `customers:read` ability. There's no separate ability for reading transactions.

## Amounts and balances

* **`amount`** is signed, positive for a credit and negative for a debit.
* **`balance`** is the customer's wallet balance right after that transaction, before funds held for pending pings. It carries over correctly from page to page, and it's the same figure the [Add or Remove Funds](https://docs.usejuiced.com/api-reference/endpoint/v1/transactions-create.md) response gave for that transaction.
* **`lead`** is the lead's ID on transactions for a lead, such as a lead charge or a refund for a returned lead.
* **`receipt_url`** is only set on payments and credits that came with a receipt.
* **`description`** is the description you sent on credits and debits you made. Other transactions get a short label for their event, like `Lead charge` or `Payment`.

The customer's own `balance` from [Get a Customer](https://docs.usejuiced.com/api-reference/endpoint/v1/customers-get.md) subtracts funds held for pending pings. So the newest transaction's `balance` can be higher than the customer's while a ping is waiting.

## Events

`event` says what produced each transaction.

| `event` | What happened |
| - | - |
| `customer_payment` | The customer added funds in their portal, or bought lead credit on a [checkout page](https://docs.usejuiced.com/features/checkout-pages.md). |
| `auto_recharge` | The customer's card was charged automatically when their balance ran low. |
| `checkout_bonus` | Bonus credit that came with a checkout page purchase. |
| `manual_credit` | You added funds, in Juiced or with [Add or Remove Funds](https://docs.usejuiced.com/api-reference/endpoint/v1/transactions-create.md). |
| `manual_debit` | You removed funds, in Juiced or through the API. |
| `lead_charge` | The customer was charged for a lead. |
| `lead_refund` | A returned lead was refunded. |
| `buy_order_placed` | A marketplace buy order held funds. |
| `buy_order_canceled` | The customer canceled a buy order, releasing its funds. |
| `buy_order_released` | A buy order expired or lost, releasing its funds. |


## OpenAPI

````yaml GET /v1/customers/{id}/transactions
openapi: 3.1.0
info:
  title: Juiced API
  description: >-
    API for submitting pings and leads to Juiced. Build on the v1 endpoints
    under `/v1`. The unversioned `/ping` and `/leads` endpoints are the frozen
    legacy contract and are deprecated.
  version: 1.0.0
servers:
  - url: https://usejuiced.com/api
    description: Production server
security:
  - Basic Auth: []
  - Bearer Token: []
tags:
  - name: v1
    description: The current API. Build on these endpoints.
  - name: Customers
    description: Create and look up your customers with an API key.
  - name: Leads
    description: Look up your leads and their details with an API key.
  - name: Funds
    description: >-
      Add funds to and remove funds from a customer's balance, and list their
      transactions.
  - name: Bids
    description: Manage your customers' bids and look up your lead types.
  - name: Legacy
    description: The frozen, deprecated unversioned endpoints.
paths:
  /v1/customers/{id}/transactions:
    get:
      tags:
        - Funds
      summary: List transactions
      description: >-
        Lists a customer's transactions, newest first, 50 at a time, each with
        the customer's balance right after it.


        Requires the `customers:read` ability.
      operationId: listCustomerTransactionsV1
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^cus_[0-9a-z]{26}$
          description: The customer's ID.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: The `next_cursor` from the previous page.
      responses:
        '200':
          description: A page of transactions.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionListResponseV1'
              example:
                data:
                  - id: txn_01jbxa8c0e2g4j6k8m0p2r4t6v
                    type: debit
                    event: lead_charge
                    amount: -25
                    balance: 100.5
                    description: Lead charge
                    lead: lead_01jbx8m2d4f6g8h0j2k4m6n8pq
                    receipt_url: null
                    created_at: '2026-11-20T10:00:00Z'
                  - id: txn_01jbxb3d5f7h9k1m3p5r7t9v2w
                    type: credit
                    event: manual_credit
                    amount: 125.5
                    balance: 125.5
                    description: Invoice 1042 paid
                    lead: null
                    receipt_url: https://billing.example.com/r/1042
                    created_at: '2026-11-19T16:20:00Z'
                next_cursor: null
                version: v1
        '401':
          $ref: '#/components/responses/ApiKeyUnauthenticatedV1'
        '403':
          description: >-
            The key lacks the ability this endpoint needs, your plan doesn't
            include the API, or your account is locked for an unpaid
            subscription.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorV1'
              examples:
                Missing ability:
                  summary: Missing ability
                  value:
                    error:
                      code: bad_request
                      message: This API key does not have the customers:read ability.
                    version: v1
                Plan without the API:
                  summary: Plan without the API
                  value:
                    error:
                      code: bad_request
                      message: >-
                        The API is not included in your plan. Upgrade to a paid
                        plan to use it.
                    version: v1
                Account locked:
                  summary: Account locked
                  value:
                    error:
                      code: bad_request
                      message: This workspace is locked until its subscription is paid.
                    version: v1
        '404':
          description: No customer in your account has this ID.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorV1'
              example:
                error:
                  code: not_found
                  message: No customer matches this request.
                version: v1
        '422':
          description: The cursor isn't valid.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorV1'
              example:
                error:
                  code: validation_failed
                  message: >-
                    The cursor is not valid. Pass the next_cursor from the
                    previous page.
                  errors:
                    cursor:
                      - >-
                        The cursor is not valid. Pass the next_cursor from the
                        previous page.
                version: v1
        '429':
          $ref: '#/components/responses/RateLimitedV1'
        '500':
          $ref: '#/components/responses/ServerErrorV1'
      security:
        - API Key: []
components:
  headers:
    XRequestId:
      description: >-
        Unique ID for this request, sent on every v1 response (errors included).
        Quote it when contacting support.
      schema:
        type: string
        pattern: ^req_[0-9a-z]{26}$
        example: req_01jbx8k6y3a5c7e9g1j3m5p7rt
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        example: 30
  schemas:
    TransactionListResponseV1:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TransactionV1'
        next_cursor:
          type:
            - string
            - 'null'
          description: Pass as `cursor` to get the next page. `null` on the last page.
        version:
          type: string
          enum:
            - v1
    ErrorV1:
      title: Error
      type: object
      required:
        - error
        - version
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthenticated
                - validation_failed
                - quota_reached
                - ping_mismatch
                - idempotency_conflict
                - idempotency_in_progress
                - idempotency_reserved
                - idempotency_version_mismatch
                - rate_limited
                - not_found
                - method_not_allowed
                - bad_request
                - server_error
              description: Machine-readable error code. Branch on this, not on `message`.
            message:
              type: string
              description: Human-readable explanation.
            errors:
              type: object
              description: Only with `validation_failed`. Messages keyed by field.
              additionalProperties:
                type: array
                items:
                  type: string
            lead_id:
              type: string
              pattern: ^lead_[0-9a-z]{26}$
              description: >-
                Only with `idempotency_version_mismatch`. The lead the
                `transaction_id` already created.
            bid:
              type: string
              pattern: ^bid_[0-9a-z]{26}$
              description: >-
                Only when a customer already has an active bid on that lead type
                and location. That bid's ID, so you can change it instead.
        version:
          type: string
          enum:
            - v1
          description: Always `v1`.
    TransactionV1:
      title: Transaction
      type: object
      properties:
        id:
          type: string
          pattern: ^txn_[0-9a-z]{26}$
          description: The transaction's public ID.
        type:
          type: string
          enum:
            - credit
            - debit
          description: '`credit` added to the balance and `debit` took from it.'
        event:
          type: string
          enum:
            - customer_payment
            - lead_charge
            - manual_credit
            - lead_refund
            - manual_debit
            - auto_recharge
            - buy_order_placed
            - buy_order_canceled
            - buy_order_released
            - checkout_bonus
          description: >-
            What produced the transaction. See [List
            Transactions](/api-reference/endpoint/v1/transactions-list) for what
            each one means.
        amount:
          type: number
          description: In dollars. Positive for a credit, negative for a debit.
        balance:
          type: number
          description: >-
            The customer's wallet balance right after this transaction, in
            dollars, before funds held for pending pings. It's the same in the
            transaction history and in the response to [Add or Remove
            Funds](/api-reference/endpoint/v1/transactions-create).
        description:
          type: string
          description: >-
            What the transaction was for. Your own description on credits and
            debits you make, otherwise a short label for the event, like `Lead
            charge` or `Payment`.
        lead:
          type:
            - string
            - 'null'
          description: >-
            The lead's ID when the transaction is for a lead, such as a
            `lead_charge` or `lead_refund`.
          pattern: ^lead_[0-9a-z]{26}$
        receipt_url:
          type:
            - string
            - 'null'
          description: >-
            A link to the payment's receipt. Only on `customer_payment`,
            `manual_credit` and `auto_recharge`.
        created_at:
          type: string
          format: date-time
  responses:
    ApiKeyUnauthenticatedV1:
      description: The API key is missing, unknown, revoked or expired.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            error:
              code: unauthenticated
              message: >-
                Missing or invalid API key. Send an active jz_live_ key as a
                bearer token.
            version: v1
    RateLimitedV1:
      description: Too many requests.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            error:
              code: rate_limited
              message: >-
                Too many requests. Retry after the number of seconds in the
                Retry-After header.
            version: v1
    ServerErrorV1:
      description: >-
        Something went wrong on our side. Quote the `X-Request-Id` header when
        contacting support.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            error:
              code: server_error
              message: >-
                An unexpected error occurred. Quote the X-Request-Id header when
                contacting support.
            version: v1
  securitySchemes:
    Basic Auth:
      type: http
      scheme: basic
      description: >-
        Use your source's API key as the username and API secret as the
        password. Base64 encode the credentials in the format
        `api_key:api_secret`.
    Bearer Token:
      type: http
      scheme: bearer
      description: Use a bearer token generated for your source.
    API Key:
      type: http
      scheme: bearer
      description: >-
        An API key from **Configure → API Keys** (it starts with `jz_live_`),
        sent as a bearer token. See [API Keys](/api-reference/api-keys).

````

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