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

# Get Transaction Invoice

> Generate a PDF invoice for a transaction.

Only supports swap, buy, sell, and withdrawal transactions.
Returns 501 Not Implemented for other transaction types.



## OpenAPI

````yaml /openapi.json get /api/private/wallet/all-transactions/{id}/invoice/
openapi: 3.0.3
info:
  title: Digital Surge API
  version: '2.0'
  description: >-
    Digital Surge is an Australian cryptocurrency exchange. This API provides
    programmatic access to your account: live AUD pricing for hundreds of
    assets, instant swaps, recurring buys, price triggers, portfolio balances,
    transaction history, and crypto withdrawals.


    **Authentication** — create an API key in the Digital Surge app under
    *Account Settings → API Keys* and send it with every request:
    `Authorization: Bearer <your-api-key>`. Read-only and read & write keys are
    available.


    **Guides and interactive documentation** — https://digitalsurge.com.au/docs


    **AI agents** — connect via the Digital Surge MCP server:
    https://mcp.digitalsurge.com.au/mcp
servers:
  - url: https://app.digitalsurge.com.au
    description: Production
security: []
tags:
  - name: Public
    description: Unauthenticated endpoints — market data, asset info, pricing
  - name: Private
    description: Authenticated endpoints — trading, portfolio, account management
paths:
  /api/private/wallet/all-transactions/{id}/invoice/:
    get:
      tags:
        - Private
      summary: Get Transaction Invoice
      description: |-
        Generate a PDF invoice for a transaction.

        Only supports swap, buy, sell, and withdrawal transactions.
        Returns 501 Not Implemented for other transaction types.
      operationId: private_wallet_all_transactions_invoice_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this transaction summary.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AllAssetTransactionHistory'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    AllAssetTransactionHistory:
      type: object
      description: >-
        Serializer for TransactionSummary matching
        IndividualAssetWalletIOV2Serializer structure.

        All related field logic is pre-computed in the materialized view.
      properties:
        summary_id:
          type: integer
          readOnly: true
        id:
          type: integer
          readOnly: true
        object_id:
          type: integer
          readOnly: true
        created:
          type: string
          format: date-time
        src_asset:
          type: string
          readOnly: true
          nullable: true
        dst_asset:
          type: string
          readOnly: true
          nullable: true
        src_amount:
          type: string
          format: decimal
          nullable: true
        dst_amount:
          type: string
          format: decimal
          nullable: true
        quote_cost:
          type: string
          format: decimal
          nullable: true
        exchange_rate:
          type: string
          readOnly: true
          nullable: true
        cost:
          type: string
          format: decimal
          nullable: true
        fee:
          type: string
          format: decimal
          nullable: true
        aud_fee:
          type: string
          format: decimal
          nullable: true
        aud_value:
          type: string
          format: decimal
          nullable: true
        fee_currency:
          type: string
          readOnly: true
          nullable: true
        status:
          type: string
          maxLength: 50
        transaction_type:
          $ref: '#/components/schemas/TransactionTypeEnum'
        transaction_subtype:
          type: string
          description: Convert transaction_subtype choice to V2 format.
          readOnly: true
      required:
        - created
        - dst_asset
        - exchange_rate
        - fee_currency
        - id
        - object_id
        - src_asset
        - summary_id
        - transaction_subtype
        - transaction_type
    TransactionTypeEnum:
      enum:
        - buy
        - sell
        - swap
        - deposit
        - withdrawal
        - commission
        - airdrop
        - stake
        - unstake
        - reward
      type: string
      description: |-
        * `buy` - Buy
        * `sell` - Sell
        * `swap` - Swap
        * `deposit` - Deposit
        * `withdrawal` - Withdrawal
        * `commission` - Commission
        * `airdrop` - Airdrop
        * `stake` - Stake
        * `unstake` - Unstake
        * `reward` - Reward
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal API key, created in the Digital Surge app under Account
        Settings → API Keys. Send it with every request as `Authorization:
        Bearer <your-api-key>`.

````