---
title: "Get self-billed e-invoice"
method: GET
path: "/v1/einvoicing/self-billed-einvoices/{id}"
tags: ["v1 - EInvoicing"]
---

# Get self-billed e-invoice

`GET /v1/einvoicing/self-billed-einvoices/{id}`

## Request

- Base URL: `https://light.inc` (the document declares no server; this is the origin it was published from)
- URL: `https://light.inc/v1/einvoicing/self-billed-einvoices/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Returns a self-billed e-invoice by ID

## Path parameters

- `id` string, uuid, required

## Response `default`

default response

- ExternalSelfBilledEInvoiceV1Model: An e-invoice the company issues to itself for an accounting document, as some networks require
  - `id` string, uuid
  - `companyEntityId` string, uuid
  - `accountingDocumentId` string, uuid, nullable: The accounting document the e-invoice was created for. Null once the accounting document is deleted
  - `accountingDocumentType` 'AP' | 'AR' | 'BP' | 'CC' | 'CN' | 'CT' | 'DE' | 'FX' | 'JE' | 'YC', nullable: ⚠️ This enum is not exhaustive; new values may be added in the future.
  - `linkedSelfBilledEInvoiceId` string, uuid, nullable
  - `type` 'SELF_BILLED_CREDIT_NOTE' | 'SELF_BILLED_INVOICE': ⚠️ This enum is not exhaustive; new values may be added in the future.
  - `network` 'FINVOICE' | 'FR_PA' | 'MYDATA' | 'NEMHANDEL' | 'PEPPOL' | 'PORTUGUESE_TAX_REPORTING' | 'SDI' | 'VERIFACTU': ⚠️ This enum is not exhaustive; new values may be added in the future.
  - `selfBilledEInvoiceNumber` string, nullable
  - `issueDate` string, date: The date on the self-billed e-invoice
  - `deadline` string, date, nullable: The last day to send the e-invoice to the network
  - `documentNumber` string, nullable: The number on the supplier's document
  - `documentDate` string, date, nullable: The date of the supplier's document
  - `currency` string, nullable
  - `amount` integer, nullable: Total amount in cents, expressed in the invoice currency.
  - `netAmount` DirectedAmount
    - `amount` integer
    - `dcSign` 'D' | 'C': ⚠️ This enum is not exhaustive; new values may be added in the future.
  - `taxAmount` DirectedAmount
    - `amount` integer
    - `dcSign` 'D' | 'C': ⚠️ This enum is not exhaustive; new values may be added in the future.
  - `buyerName` string
  - `buyerVatNumber` string
  - `buyerBusinessRegistrationNumber` string, nullable
  - `supplierName` string
  - `supplierVatNumber` string, nullable
  - `supplierBusinessRegistrationNumber` string, nullable
  - `areLinesWithTax` boolean: How the accounting document's amounts were entered: true means with tax. Line amounts in this response are always net
  - `buyerAddress` Address
    - `country` 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BU' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CP' | 'CR' | 'CS' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DG' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EA' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'EU' | 'EZ' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'FX' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'IC' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NT' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SF' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SU' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TP' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UK' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XI' | 'XU' | 'XK' | 'YE' | 'YT' | 'YU' | 'ZA' | 'ZM' | 'ZR' | 'ZW': ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `city` string
    - `state` string
    - `zipcode` string
    - `street` string
    - `street2` string
  - `supplierAddress` Address
    - `country` 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AN' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BU' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CP' | 'CR' | 'CS' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DG' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EA' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'EU' | 'EZ' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'FX' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'IC' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NT' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SF' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SU' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TP' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UK' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XI' | 'XU' | 'XK' | 'YE' | 'YT' | 'YU' | 'ZA' | 'ZM' | 'ZR' | 'ZW': ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `city` string
    - `state` string
    - `zipcode` string
    - `street` string
    - `street2` string
  - `lines` ExternalSelfBilledEInvoiceLineV1Model[]
    - `description` string, nullable
    - `ledgerTaxId` string, uuid, nullable: The tax code's ID as stored on the line
    - `taxName` string, nullable: The tax code's name as stored on the line
    - `edifactCode` 'AE' | 'E' | 'G' | 'K' | 'L' | 'M' | 'O' | 'S' | 'Z', nullable: The tax code's UNCL5305 code as stored on the line ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `taxCategory` 'GOODS' | 'SERVICES', nullable: Whether the tax code is for goods or for services, as stored on the line ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `quantity` number, nullable
    - `rate` number, nullable: The tax rate as a fraction, so 0.22 is 22%
    - `netTransactionAmount` DirectedAmount
      - `amount` integer
      - `dcSign` 'D' | 'C': ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `taxTransactionAmount` DirectedAmount
      - `amount` integer
      - `dcSign` 'D' | 'C': ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `countryProperties` object: The tax code's country property values, by group internal name, as stored on the line
  - `status` 'ACCEPTED' | 'ARCHIVED' | 'DRAFT' | 'FAILED' | 'SUBMITTED': ⚠️ This enum is not exhaustive; new values may be added in the future.
  - `failureContext` ExternalUiClientExceptionV1Model, nullable: Failure context when vendor onboarding fails.
    - `name` string: The error name
    - `type` 'BAD_REQUEST' | 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'CONFLICT' | 'UNPROCESSABLE_CONTENT': The error type ⚠️ This enum is not exhaustive; new values may be added in the future.
    - `errors` ExternalUiClientExceptionErrorV1Model[]: List of errors providing details about what went wrong
      - `type` string: A string code identifying the error type
      - `message` string: A human-readable message providing more details about the error
      - `path` string[], nullable: Optional path of the error when the error is for a specific field. Used mostly on BAD_REQUEST errors, that path will match the field name on the request object
      - `context` object, nullable: Optional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
  - `einvoiceId` string, nullable
  - `submittedAt` string, date-time, nullable
  - `createdAt` string, date-time
  - `sdiTdCode` 'TD16' | 'TD17' | 'TD18' | 'TD19' | 'TD20' | 'TD21' | 'TD22' | 'TD23' | 'TD28', nullable: The SDI document type code. Only set on the SDI network ⚠️ This enum is not exhaustive; new values may be added in the future.

---

[API](https://skmtc.dev/light/apis/light-api.md) - [All operations](https://skmtc.dev/light/apis/light-api/llms.txt) - [OpenAPI document](https://skmtc.dev/light/apis/light-api/revisions/84f51306f648?raw)
