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

# List credit activity

> Returns a cursor-paginated history of credit draws and repayments for your account. Trade activity is grouped by order. Pass the returned next_cursor as cursor to read the next page; a null next_cursor marks the end of the list.



## OpenAPI

````yaml /openapi/openapi.json get /partner/wallets/credit/activity
openapi: 3.1.0
info:
  contact:
    email: support@stabyl.com
    name: Stabyl Support
  description: >-
    REST API for approved Stabyl accounts to automate exchange, wallet, and
    non-production simulation workflows.
  license:
    name: Proprietary
  title: Stabyl API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.stabyl.com/v1
  - description: Staging
    url: https://api-staging.stabyl.com/v1
security: []
tags:
  - description: Trading market data and order management for account automation.
    name: Exchange
  - description: >-
      Supported routes, deposit destinations, balances, transactions, and saved
      recipients.
    name: Wallets
  - description: >-
      Outbound event delivery configuration and eventually consistent delivery
      history. Verify Standard Webhooks webhook-id, webhook-timestamp, and
      webhook-signature headers against the unchanged raw request body before
      parsing JSON.
    name: Webhooks
  - description: Non-production endpoints for testing integration behavior.
    name: Simulation
paths:
  /partner/wallets/credit/activity:
    get:
      tags:
        - Wallets
      summary: List credit activity
      description: >-
        Returns a cursor-paginated history of credit draws and repayments for
        your account. Trade activity is grouped by order. Pass the returned
        next_cursor as cursor to read the next page; a null next_cursor marks
        the end of the list.
      operationId: get_partner_wallets_credit_activity
      parameters:
        - description: >-
            Opaque cursor returned as `next_cursor` by the previous response for
            this endpoint.
          in: query
          name: cursor
          required: false
          schema:
            type:
              - string
              - 'null'
        - description: Page size (default 20, max 100).
          in: query
          name: limit
          required: false
          schema:
            format: int32
            minimum: 0
            type:
              - integer
              - 'null'
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  items:
                    - amount: '2000.00'
                      currency: USD
                      draw_lot_id: null
                      id: 01980d95-5537-76aa-88a8-ad59117632ef
                      occurred_at: '2026-10-06T10:00:00Z'
                      order_id: 01980d95-5537-76aa-88a8-ad59117632ee
                      quote_amount: '3100000.00'
                      quote_currency: NGN
                      type: draw
                  next_cursor: null
                status: success
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/CreditActivityResponse'
                  status:
                    enum:
                      - success
                    type: string
                required:
                  - status
                  - data
                type: object
          description: Credit activity page
        '400':
          content:
            application/json:
              example:
                error:
                  code: VALIDATION_FAILED
                  message: invalid request parameters
                status: error
              schema:
                properties:
                  error:
                    properties:
                      code:
                        example: VALIDATION_FAILED
                        type: string
                      message:
                        example: invalid request parameters
                        type: string
                    required:
                      - code
                      - message
                    type: object
                  status:
                    enum:
                      - error
                    type: string
                required:
                  - status
                  - error
                type: object
          description: Invalid cursor
        '401':
          content:
            application/json:
              example:
                error:
                  code: UNAUTHORIZED
                  message: missing X-Api-Key header
                status: error
              schema:
                properties:
                  error:
                    properties:
                      code:
                        example: UNAUTHORIZED
                        type: string
                      message:
                        example: missing X-Api-Key header
                        type: string
                    required:
                      - code
                      - message
                    type: object
                  status:
                    enum:
                      - error
                    type: string
                required:
                  - status
                  - error
                type: object
          description: Unauthorized
      security:
        - api_key: []
components:
  schemas:
    CreditActivityResponse:
      description: Paginated credit activity list.
      properties:
        items:
          items:
            $ref: '#/components/schemas/CreditActivityItem'
          type: array
        next_cursor:
          type:
            - string
            - 'null'
      required:
        - items
      type: object
    CreditActivityItem:
      description: |-
        One customer-facing credit operation. Trade draws and repayments are
        grouped by order; deposit repayments remain one operation per deposit.
      properties:
        amount:
          example: '2000.00'
          type: string
        currency:
          example: USD
          type: string
        draw_lot_id:
          description: Draw lot the event applies to, when applicable.
          format: uuid
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        occurred_at:
          type: string
        order_id:
          description: Trade order the event applies to, when applicable.
          format: uuid
          type:
            - string
            - 'null'
        quote_amount:
          description: >-
            Same movement in the trade's quote currency, in major units, when
            the

            event carries one (e.g. the NGN equivalent of a USD credit draw).
          example: '3100000.00'
          type:
            - string
            - 'null'
        quote_currency:
          example: NGN
          type:
            - string
            - 'null'
        type:
          description: 'Credit operation type: `draw` or `repay`.'
          example: draw
          type: string
      required:
        - id
        - type
        - amount
        - currency
        - occurred_at
      type: object
  securitySchemes:
    api_key:
      description: >-
        API credential. Withdrawal quote and submit operations additionally
        require the documented Ed25519 timestamp, nonce, and signature headers.
      in: header
      name: X-Api-Key
      type: apiKey
      x-default: sb_test_your_key

````

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