Skip to main content
GET
/
v1
/
invoices
/
{invoiceId}
Get Invoice
curl --request GET \
  --url https://api.jtl-cloud.com/erp/v1/invoices/{invoiceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-api-key: <api-key>' \
  --header 'x-appid: <x-appid>' \
  --header 'x-appversion: <x-appversion>' \
  --header 'x-tenant-id: <x-tenant-id>'
{
  "Id": 123,
  "Number": "<string>",
  "ExternalNumber": "<string>",
  "CompanyId": 123,
  "DepartureCountry": {
    "CountryISO": "<string>",
    "State": "<string>",
    "CurrencyIso": "<string>",
    "CurrencyFactor": 123
  },
  "CustomerId": 123,
  "BillingAddress": {
    "Id": 123,
    "Company": "<string>",
    "Company2": "<string>",
    "FormOfAddress": "<string>",
    "Title": "<string>",
    "FirstName": "<string>",
    "LastName": "<string>",
    "Street": "<string>",
    "Address2": "<string>",
    "PostalCode": "<string>",
    "City": "<string>",
    "State": "<string>",
    "CountryIso": "<string>",
    "VatID": "<string>",
    "PhoneNumber": "<string>",
    "MobilePhoneNumber": "<string>",
    "EmailAddress": "<string>",
    "Fax": "<string>"
  },
  "ShipmentAddress": {
    "Id": 123,
    "Company": "<string>",
    "Company2": "<string>",
    "FormOfAddress": "<string>",
    "Title": "<string>",
    "FirstName": "<string>",
    "LastName": "<string>",
    "Street": "<string>",
    "Address2": "<string>",
    "PostalCode": "<string>",
    "City": "<string>",
    "State": "<string>",
    "CountryIso": "<string>",
    "VatID": "<string>",
    "PhoneNumber": "<string>",
    "MobilePhoneNumber": "<string>",
    "EmailAddress": "<string>",
    "Fax": "<string>"
  },
  "InvoiceDate": "2023-11-07T05:31:56Z",
  "InvoicePaymentDetails": {
    "PaymentMethodId": 123,
    "PaymentStatus": 0,
    "TotalGrossAmount": 123,
    "CurrencyIso": "<string>",
    "CurrencyFactor": 123,
    "StillToPay": 123,
    "PaymentTarget": 123,
    "CashDiscount": 123,
    "CashDiscountDays": 123,
    "StopPaymentRequest": true,
    "DunningLevel": 123,
    "NextDueDate": "2023-11-07T05:31:56Z"
  },
  "ColorcodeId": 123,
  "DunningBlock": true,
  "IsExternalInvoice": true,
  "Comment": "<string>",
  "CustomerComment": "<string>",
  "IsCancelled": true,
  "LanguageIso": "<string>",
  "CancellationDetails": {
    "CancellationReasonId": 123,
    "CancellationComment": "<string>",
    "Date": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

x-api-key
string
header
required

Optional: If no token is present, the API Gateway injects it.

Headers

x-appid
string
required

This is the name of your application, e.g. "MyApp/1.0.0". It is used to identify your application.

x-appversion
string
required

This is where the version number of your application is entered, e.g. "1.0.0".

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

X-SessionId
string<uuid>

The id of a session in which the call will be executed.

x-companyid
string

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

invoiceId
integer<int32>
required

The ID of the invoice to return.

Response

Returns the invoice for the given ID.

Model Class: Invoice

Id
integer<int32>
required

Unique ID to identify an invoice.

Number
string
required

The number of the invoice.

ExternalNumber
string
required

The external number of the sales order.

CompanyId
integer<int32>
required

The company ID on the invoice.

DepartureCountry
object
required

The departure country information on the invoice. If none is indicated, it will be determined from the company's information.

CustomerId
integer<int32>
required

The customer ID.

BillingAddress
object
required

The address to which the invoice is issued.

ShipmentAddress
object
required

The adress to which the goods are shipped.

InvoiceDate
string<date-time>
required

The date when the invoice was created.

InvoicePaymentDetails
object
required

Payment-specific information of the sales invoice.

ColorcodeId
integer<int32>
required

The colour code of the invoice.

DunningBlock
boolean
required

The creation of dunning letters is blocked.

IsExternalInvoice
boolean
required

Indicates if the invoice of the sales order was created in an external system like Amazon VCS.

Comment
string
required

A comment on the sales order.

CustomerComment
string
required

A customer comment on the sales order.

IsCancelled
boolean
required

Indicates if the invoice has been cancelled.

LanguageIso
string
required

The language of the invoice.

CancellationDetails
object
required

The cancellation details in case the invoice has been cancelled.