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

# Associate transaction with case

> Associates a transaction with a case ID and optional party ID after creation. This is primarily used for case creation where the charge happens before the case exists. Requires billing.transactions.creator permission.



## OpenAPI

````yaml api-reference/billing.yaml post /_internal/transactions/set-case
openapi: 3.0.3
info:
  title: billing
  description: >-
    The Billing Service manages billing-related operations across the platform.
    It handles all financial transactions, balance management, and SKU-based
    pricing across the platform.
  version: 1.0.0
servers:
  - url: https://billing.platform.arb.inc
security: []
tags:
  - name: /
  - name: _internal
  - name: balance
  - name: charge
  - name: checkout
  - name: pricing
  - name: skus
  - name: transactions
paths:
  /_internal/transactions/set-case:
    post:
      tags:
        - _internal
      summary: Associate transaction with case
      description: >-
        Associates a transaction with a case ID and optional party ID after
        creation. This is primarily used for case creation where the charge
        happens before the case exists. Requires billing.transactions.creator
        permission.
      operationId: setTransactionCase
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - transactionID
                - caseID
              properties:
                transactionID:
                  type: string
                  description: ID of the transaction to update
                  example: 8f3d9b7a-2c1e-4f6a-9d8b-3e7f6a5c4d2b
                caseID:
                  type: string
                  description: >-
                    Case ID to associate with the transaction (max 20
                    characters)
                  example: 2025-08-00292
                partyID:
                  type: string
                  description: >-
                    Optional party ID to associate with the transaction (max 20
                    characters)
                  example: claimant
      responses:
        '200':
          description: Transaction successfully updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
        '404':
          description: Transaction not found
        '409':
          description: Transaction already has a case ID or party ID set
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````