Get self-billed e-invoice
https://api.light.inc/v1/einvoicing/self-billed-einvoices/{id}
Returns a self-billed e-invoice by ID
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
idstring · uuidrequired
Response
-
idstring · uuid -
companyEntityIdstring · uuid -
accountingDocumentIdstring · uuidThe bill the e-invoice was created for. Null once the bill is deleted
-
accountingDocumentTypestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
APARBPCCCNCTDEFXJEYC -
linkedSelfBilledEInvoiceIdstring · uuid -
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
SELF_BILLED_CREDIT_NOTESELF_BILLED_INVOICE -
networkstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
FINVOICEFR_PAMYDATANEMHANDELPEPPOLPORTUGUESE_TAX_REPORTINGSDIVERIFACTU -
selfBilledEInvoiceNumberstring -
issueDatestring · dateThe date on the self-billed e-invoice
-
deadlinestring · dateThe last day to send the e-invoice to the network
-
documentNumberstringThe number on the supplier's document
-
documentDatestring · dateThe date of the supplier's document
-
currencystring -
amountinteger · int64Total amount in cents, expressed in the invoice currency.
-
netAmountinteger · int64Net amount in cents, expressed in the invoice currency.
-
taxAmountinteger · int64Tax amount in cents, expressed in the invoice currency.
-
buyerNamestring -
buyerVatNumberstring -
supplierNamestring -
supplierVatNumberstring -
statusstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACCEPTEDARCHIVEDDRAFTFAILEDSUBMITTED -
failureContextobjectFailure context when vendor onboarding fails.
-
namestringThe error name
-
typestringThe error type
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
BAD_REQUESTUNAUTHORIZEDFORBIDDENNOT_FOUNDCONFLICTUNPROCESSABLE_CONTENT -
errorsarray of objectList of errors providing details about what went wrong
-
typestringA string code identifying the error type
-
messagestringA human-readable message providing more details about the error
-
patharray of stringOptional 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
-
contextobjectOptional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
-
-
-
einvoiceIdstring -
submittedAtstring · date-time -
createdAtstring · date-time -
sdiTdCodestringThe SDI document type code. Only set on the SDI network
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
TD16TD17TD18TD19TD20TD21TD22TD23TD28