Skip to main content
GET
/
invoices
/
{invoiceId}
Get Invoice
curl --request GET \
  --url https://api.jtl-cloud.com/erp/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": "A1004465",
  "ExternalNumber": "D456-64894-132",
  "CompanyId": 123,
  "DepartureCountry": {
    "CountryISO": "DE",
    "State": "Berlin",
    "CurrencyIso": "TODO",
    "CurrencyFactor": 1.37
  },
  "CustomerId": 123,
  "BillingAddress": {
    "Id": 123,
    "Company": "Sportbedarf Sommer",
    "Company2": "Innovation Division",
    "FormOfAddress": "Mr.",
    "Title": "Dr.",
    "FirstName": "John",
    "LastName": "Doe",
    "Street": "Main St. 123",
    "Address2": "Floor 5, Apt 302",
    "PostalCode": "12345",
    "City": "Example City",
    "State": "Example State",
    "CountryIso": "DE",
    "VatID": "DE123456789",
    "PhoneNumber": "+49 1234 445556661",
    "MobilePhoneNumber": "+49 160 123 4567",
    "EmailAddress": "example@email.com",
    "Fax": "+49 1234 4455566615"
  },
  "ShipmentAddress": {
    "Id": 123,
    "Company": "Sportbedarf Sommer",
    "Company2": "Innovation Division",
    "FormOfAddress": "Mr.",
    "Title": "Dr.",
    "FirstName": "John",
    "LastName": "Doe",
    "Street": "Main St. 123",
    "Address2": "Floor 5, Apt 302",
    "PostalCode": "12345",
    "City": "Example City",
    "State": "Example State",
    "CountryIso": "DE",
    "VatID": "DE123456789",
    "PhoneNumber": "+49 1234 445556661",
    "MobilePhoneNumber": "+49 160 123 4567",
    "EmailAddress": "example@email.com",
    "Fax": "+49 1234 4455566615"
  },
  "InvoiceDate": "2023-02-01T12:45:00.0000000+00:00",
  "InvoicePaymentDetails": {
    "PaymentMethodId": 123,
    "PaymentStatus": 0,
    "TotalGrossAmount": 19.99,
    "CurrencyIso": "TODO",
    "CurrencyFactor": 1.37,
    "StillToPay": 0,
    "PaymentTarget": 0,
    "CashDiscount": 5,
    "CashDiscountDays": 2,
    "StopPaymentRequest": false,
    "DunningLevel": 0,
    "NextDueDate": "2023-02-01T12:45:00.0000000+00:00"
  },
  "ColorcodeId": 123,
  "DunningBlock": false,
  "IsExternalInvoice": false,
  "Comment": "an additional order comment",
  "CustomerComment": "an additional customer comment",
  "IsCancelled": false,
  "LanguageIso": "DE",
  "CancellationDetails": {
    "CancellationReasonId": 123,
    "CancellationComment": "Change of mind (once again); we should consider terminating the customer relationship",
    "Date": "2023-02-01T12:45:00.0000000+00:00"
  }
}

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

api-version
string

Specify the desired API version, e.g. '1.0'. If not provided, the last available version is set.

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-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

invoiceId
integer<int32>
required

Response

Returns the invoice for the given ID.

Model Class: Invoice

Id
integer<int32>
required
Number
string
required

The number of the invoice.

Example:

"A1004465"

ExternalNumber
string
required

The external number of the sales order.

Example:

"D456-64894-132"

CompanyId
integer<int32>
required
DepartureCountry
object
required

Model Class: InvoiceDepartureCountry

CustomerId
integer<int32>
required
BillingAddress
object
required

Model Class: Address

ShipmentAddress
object
required

Model Class: Address

InvoiceDate
string<date-time>
required

The date when the invoice was created.

Example:

"2023-02-01T12:45:00.0000000+00:00"

InvoicePaymentDetails
object
required

Model Class: InvoicePaymentDetail

ColorcodeId
integer<int32>
required
DunningBlock
boolean
required

The creation of dunning letters is blocked.

Example:

false

IsExternalInvoice
boolean
required

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

Example:

false

Comment
string
required

A comment on the sales order.

Example:

"an additional order comment"

CustomerComment
string
required

A customer comment on the sales order.

Example:

"an additional customer comment"

IsCancelled
boolean
required

Indicates if the invoice has been cancelled.

Example:

false

LanguageIso
string
required

The language of the invoice.

Example:

"DE"

CancellationDetails
object
required

Model Class: InvoiceCancellationDetails