---
title: "GET /api/invoices/trans/{transactionId}"
method: GET
path: "/api/invoices/trans/{transactionId}"
tags: ["api", "invoices"]
deprecated: true
---

# GET /api/invoices/trans/{transactionId}

`GET /api/invoices/trans/{transactionId}`

> **Deprecated.**

Get Invoice for Transaction (deprecated - use GET /invoices with the transactionId query parameter instead)

## Path parameters

- `transactionId` string, required — The ID of the transaction.

## Response `200`

OK

- InvoiceResource — The invoice of the transaction
  - `_id` string, required — The ID of the invoice.
  - `type` 'invoice' | 'cancellation' — The type of the invoice.
  - `sellerId` string, required — The ID of the seller associated with the invoice.
  - `recipient` object, required — Information on the recipient of the invoice.
    - `company` string — The company name of the recipient.
    - `name` string, required — The name of the recipient.
    - `firstname` string, required — The first name of the recipient.
    - `lastname` string, required — The last name of the recipient.
    - `address` object — The address of the recipient.
      - `fullAddress` string, nullable — Optional full address
      - `street` string, nullable — The street of the address. Street name including number.
      - `line2` string, nullable — The additional field of the address.
      - `postal` string, nullable — The postal code of the address.
      - `city` string, nullable — The city of the address.
      - `country` string, nullable — The country of the address. An ISO 3166 country code.
      - `state` string, nullable — The state of the address. If applicable
  - `transactionId` string — The ID of the transaction the invoice originated from.
  - `cancellationId` string — The ID of the associated cancellation.
  - `counter` number, float, required — The counter used to create no.
  - `no` string, required — A unique number for the invoice consisting of the creation date and an increasing counter.
  - `items` object[], required — An array of invoice items.
    - `type` 'product' | 'ticket' | 'fulfillment' | 'outerCharge' | 'discount' | 'voucher' | 'bundle' | 'additionalFee' | 'insurance' — The type of the invoice item.
    - `title` string, required — The title of the invoice item.
    - `amount` number, float, required — The amount of the invoice item.
    - `total` number, float, required — The total of the invoice item.
    - `regularTotal` number, float, required — The non-discounted total of the invoice item.
    - `includedTax` number, float, required — The total of taxes included in the invoice item.
    - `taxRate` number, float, required — The tax rate applied on the invoice item.
  - `components` object[] — An array of exposed price components.
    - `name` string
    - `total` number, float
  - `total` number, float — The invoice total after discounts and taxes.
  - `discountSum` number, float — The total of all discounts applied.
  - `detailsPerRate` object[] — The tax details grouped by tax rates.
    - `taxRate` number, float, required — The applied tax rate.
    - `includedTax` number, float, required — The total of taxes associated with the tax rate.
    - `reducedTax` number, float, required — The tax reduction through applied discounts.
  - `taxItems` object[] — An array of tax items.
    - `name` string, nullable
    - `taxTypeId` string, nullable
    - `rate` number, float, required
    - `perUnit` number, float, required
    - `total` number, float, required
    - `netTotal` number, float, nullable
    - `netPerUnit` number, float, nullable
    - `taxPayableAccountId` string, nullable
    - `taxPayableAccountCode` string, nullable
  - `includedTax` number, float — The total of all taxes included.
  - `taxRate` number, float — The default tax rate applied on items.
  - `includedOuterChargeTax` number, float — The total of all taxes on included outer charges.
  - `outerChargeTaxRate` number, float — The tax rate applied on outer charges.
  - `origin` 'onlinesale' | 'pos' — Whether the invoice has been created through an online or offline transaction.
  - `currency` 'EUR' | 'USD' | 'GBP' | 'AUD' | 'CHF' | 'THB' | 'ILS' | 'COP' | 'MXN' | 'DKK' | 'NOK' | 'SEK' | 'QAR' | 'CAD' | 'ISK' | 'GTQ' | 'INR' | 'DOP' | 'SGD' | 'PLN' | 'SAR' | 'TTD' | 'ZAR' | 'KYD' | 'HKD' | 'CZK' | 'KRW' | 'JPY' | 'NZD' | 'AED' | 'MAD' | 'TWD' | 'BRL' | 'BWP' | 'NAD' | 'KES' | 'SCR' | 'TRY' | 'SZL' | 'LSL' | 'TZS' | 'UGX' | 'ZMW' | 'ZWG' | 'GHS' | 'NGN' | 'SLE' | 'LRD' | 'XOF' | 'XAF' | 'GEL' | 'IDR' | 'ARS' | 'CRC' | 'HUF' | 'EGP' | 'MYR' | 'VND' | 'PHP' | 'MWK', required — An ISO 4217 3-character code of the currency.
  - `extraFields` object — The extra fields of the invoice.
  - `secret` string — The secret of the invoice.
  - `referenceInvoiceId` string — The reference invoice which the invoice evolved from.
  - `footerText` string[] — The custom footer columns of the invoice.
  - `createdAt` string, date-time — An ISO Timestamp indicating when the invoice was created.
  - `updatedAt` string, date-time — An ISO Timestamp indicating when the invoice was last updated.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
