JTL-WAWI API (Cloud) (1.0)

Introduction

Welcome to the JTL-WAWI technical API documentation. This guide is here to help developers understand how our REST API works and how it can be integrated into your existing systems. We'll delve into the details of authentication and data manipulation processes, providing clear examples along the way. Whether you're a developer or an IT professional, this documentation aims to give you a practical understanding, laying the groundwork for effectively using the JTL-WAWI API to enhance your processes.

Authentication

You register your application with the API by sending a POST request with the required information and corresponding keys. You can find the exact request details at https://developer.jtl-software.com/products/erp/swagger/appregistration. This information has to include the following:

  • AppId
  • DisplayName
  • Description
  • Version
  • ProviderName
  • ProviderWebsite
  • MandatoryApiScopes

This data is crucial for identifying and registering your application with the API. The API uses it to generate a temporary authentication ID that allows your application to access the necessary resources. After successful validation of this information, you will receive the API key required for future authentication and API requests.

Before you can begin the registration process, you must open JTL-Wawi (new interface) and start the registration process under 'Admin->App registration'. Only at this point are you authorised to send the first API call. This step in JTL-Wawi ensures that your application is properly registered and has permission to use the API.

The API will send you an authentication ID in the form of a token. Once you have received this token and successfully completed the registration in JTL-Wawi, you will send another request to the API by including this authentication ID in the URL path.

After successful validation of this second request by the API and confirmation of the correct information, you will be provided with the actual API key. It is important to note that this API key will not be displayed again!

This API key will be used in the future to authenticate requests to the API. It is of utmost importance that you securely store the API key upon receipt, as it cannot be retrieved from any other location in the system.

Download OpenAPI description
Languages
Servers
Mock server
https://developer.jtl-software.com/_mock/products/erpapi/1.0-cloud/openapi/
https://api.jtl-cloud.com/erp/

info

Operations

features

Operations

printer

Operations

company

Operations

supplier

Operations

colorcodes

Operations

item

Operations

property

Operations

returnstate

Planned

Operations

onholdreason

Operations

returnreason

Planned

Operations

saleschannel

Operations

customerGroup

Operations

paymentmethod

Operations

odata

Operations

shippingmethod

Operations

warehouse

Operations

customerCategory

Operations

return

Operations

cancellationreason

Operations

transactionStatus

Operations

invoice

Planned

Operations

customer

Operations

category

Operations

salesorder

Operations

Query Sales Orders

Request

Query all sales orders

Query
salesOrderNumberstring

Search for a specific sales order number.

externalOrderNumberstring

Search for a specific external order number.

billingNumberstring

Search for a specific billing number.

itemIdinteger(int32)

Search for a specific item Id.

customerIdinteger(int32)

Search for a specific customer Id.

paymentStatusinteger(int32)

Search for a specific payment status.0=UnPayed | 1=PartialPayed | 2=Payed

Enum012
paymentMethodIdinteger(int32)

Search for a specific payment method Id.

deliveryCompleteStatusinteger(int32)

Search for a specific payment status.0=DeliveryNotComplete | 1=DeliveryComplete | 2=DeliveryCompleteWithoutNote

Enum012
createdUserIdinteger(int32)

Search for a specific user created Id.

companyIdinteger(int32)

Search for sales orders created by a specific company.

salesChannelIdstring

Search for a specific sales channel Id.

createdSincestring(date-time)

Search for sales orders created after this date.

createdUntilstring(date-time)

Search for sales orders created before this date.

colorIdinteger(int32)

Search for sales orders with a specific color.

ebayUsernamestring

Search for sales orders with a specific eBay username.

shippingMethodIdinteger(int32)

Search for sales orders with a specific shipping method.

deliveredDatestring(date-time)

Search for sales orders delivered on this date.

isCancelledboolean

Determines if the sales order is cancelled.

onHoldReasonIdinteger(int32)

Search for sales orders with a specific on hold reason.

isExternalInvoiceboolean

Determines if the sales order is an external invoice.

pageNumberinteger(int32)

Number of the page of items to fetch.

pageSizeinteger(int32)

Size of the page that is specified by pageNumber.

Headers
api-versionstring

The requested API version

x-appidstringrequired

This is the name of your application, in this case "MyApp/1.0.0". It is used to identify your application.

x-appversionstringrequired

This is where the version number of your application is entered, in this case "1.0.0".

x-runasstring

The User-Id as int or uuid to run the Request, a JTL-Wawi user can be specified to perform an API call on their behalf (more details in the documentation, Optional). To use the Header, you must have the needed Scope 'Application.RunAs'

tenant-idstring(uuid)required

Specify the TenantId in GUID Format

x-api-keystring(uuid)required

Specify the ApiKey from RegistrationProcess in Uuid Format

curl -i -X GET \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.0-cloud/openapi/salesOrders?billingNumber=string&colorId=0&companyId=0&createdSince=2019-08-24T14%3A15%3A22Z&createdUntil=2019-08-24T14%3A15%3A22Z&createdUserId=0&customerId=0&deliveredDate=2019-08-24T14%3A15%3A22Z&deliveryCompleteStatus=0&ebayUsername=string&externalOrderNumber=string&isCancelled=true&isExternalInvoice=true&itemId=0&onHoldReasonId=0&pageNumber=0&pageSize=0&paymentMethodId=0&paymentStatus=0&salesChannelId=string&salesOrderNumber=string&shippingMethodId=0' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'api-version: string' \
  -H 'tenant-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -H 'x-appid: string' \
  -H 'x-appversion: string' \
  -H 'x-runas: string'

Responses

Returns all non-pending sales orders.

Bodyapplication/json
TotalItemsinteger(int32)required

Gets or sets the total number of items available in the data source.

PageNumberinteger(int32)required

Gets or sets the current page number in the paginated list.

PageSizeinteger(int32)required

Gets or sets the number of items per page in the paginated list.

ItemsArray of objects(SalesOrder)required

Gets or sets the collection of items contained in the paged list.

Items[].​Idinteger(int32)required

Unique ID to identify a sales order file.

Example: 123
Items[].​Numberstringrequired

The number of the sales order.

Example: "A1004465"
Items[].​ExternalNumberstringrequired

The external number of the sales order.

Example: "D456-64894-132"
Items[].​BillingNumberstringrequired

The number of the invoice.

Example: "RE-202404-10000"
Items[].​CompanyIdinteger(int32)required

The company of the sales order.

Example: 1
Items[].​DepartureCountryobject(DepartureCountry)required
Items[].​DepartureCountry.​CountryISOstringrequired

ISO code of the departure country.

Example: "DE"
Items[].​DepartureCountry.​Statestringrequired

Name of the state in the departure country.

Example: "Berlin"
Items[].​DepartureCountry.​CurrencyIsostringrequired

ISO code of the currency of the departure country.

Example: "EUR"
Items[].​DepartureCountry.​CurrencyFactornumber(decimal)required

The currency factor of the departure country.

Example: 1
Items[].​CustomerIdinteger(int32)required

The customer ID.

Example: 1005
Items[].​CustomerVatIDstringrequired

The VAT ID of the customer.

Example: "DE12345"
Items[].​MerchantVatIDstringrequired

The VAT ID of the merchant.

Example: "DE12345"
Items[].​BillingAddressobject(Address)required
Items[].​BillingAddress.​Idinteger(int32)required

Unique ID to identify an address

Example: 100
Items[].​BillingAddress.​Companystringrequired

Description of the Company.

Example: "Sportbedarf Sommer"
Items[].​BillingAddress.​Company2stringrequired

Additional company information

Example: "Innovation Division"
Items[].​BillingAddress.​FormOfAddressstringrequired

Customer form of address

Example: "Mr."
Items[].​BillingAddress.​Titlestringrequired

Official title

Example: "Dr."
Items[].​BillingAddress.​FirstNamestringrequired

Customer first name

Example: "John"
Items[].​BillingAddress.​LastNamestringrequired

Customer last name

Example: "Doe"
Items[].​BillingAddress.​Streetstringrequired

Street name in the customer's address

Example: "Main St. 123"
Items[].​BillingAddress.​Address2stringrequired

Additional address information

Example: "Floor 5, Apt 302"
Items[].​BillingAddress.​PostalCodestringrequired

Postal code of the customer's address

Example: "12345"
Items[].​BillingAddress.​Citystringrequired

Name of city in the customer's address

Example: "Example City"
Items[].​BillingAddress.​Statestringrequired

Name of state in the customer's address

Example: "Example State"
Items[].​BillingAddress.​CountryIsostringrequired

Country ISO code

Example: "DE"
Items[].​BillingAddress.​VatIDstringrequired

Supplier VAT ID number

Example: "DE123456789"
Items[].​BillingAddress.​PhoneNumberstringrequired

Landline phone number

Example: "+49 1234 445556661"
Items[].​BillingAddress.​MobilePhoneNumberstringrequired

Mobile phone number

Example: "+49 160 123 4567"
Items[].​BillingAddress.​EmailAddressstringrequired

Email address

Example: "example@email.com"
Items[].​BillingAddress.​Faxstringrequired

Fax number

Example: "+49 1234 4455566615"
Items[].​Shipmentaddressobject(Address)required
Items[].​Shipmentaddress.​Idinteger(int32)required

Unique ID to identify an address

Example: 100
Items[].​Shipmentaddress.​Companystringrequired

Description of the Company.

Example: "Sportbedarf Sommer"
Items[].​Shipmentaddress.​Company2stringrequired

Additional company information

Example: "Innovation Division"
Items[].​Shipmentaddress.​FormOfAddressstringrequired

Customer form of address

Example: "Mr."
Items[].​Shipmentaddress.​Titlestringrequired

Official title

Example: "Dr."
Items[].​Shipmentaddress.​FirstNamestringrequired

Customer first name

Example: "John"
Items[].​Shipmentaddress.​LastNamestringrequired

Customer last name

Example: "Doe"
Items[].​Shipmentaddress.​Streetstringrequired

Street name in the customer's address

Example: "Main St. 123"
Items[].​Shipmentaddress.​Address2stringrequired

Additional address information

Example: "Floor 5, Apt 302"
Items[].​Shipmentaddress.​PostalCodestringrequired

Postal code of the customer's address

Example: "12345"
Items[].​Shipmentaddress.​Citystringrequired

Name of city in the customer's address

Example: "Example City"
Items[].​Shipmentaddress.​Statestringrequired

Name of state in the customer's address

Example: "Example State"
Items[].​Shipmentaddress.​CountryIsostringrequired

Country ISO code

Example: "DE"
Items[].​Shipmentaddress.​VatIDstringrequired

Supplier VAT ID number

Example: "DE123456789"
Items[].​Shipmentaddress.​PhoneNumberstringrequired

Landline phone number

Example: "+49 1234 445556661"
Items[].​Shipmentaddress.​MobilePhoneNumberstringrequired

Mobile phone number

Example: "+49 160 123 4567"
Items[].​Shipmentaddress.​EmailAddressstringrequired

Email address

Example: "example@email.com"
Items[].​Shipmentaddress.​Faxstringrequired

Fax number

Example: "+49 1234 4455566615"
Items[].​SalesOrderDatestring(date-time)required

The date when the order was created.

Example: "2023-02-01T12:45:00.0000000+00:00"
Items[].​SalesOrderPaymentDetailsobject(SalesOrderPaymentDetail)required
Items[].​SalesOrderPaymentDetails.​PaymentMethodIdinteger(int32)required

The payment method of the sales order.

Example: 12
Items[].​SalesOrderPaymentDetails.​PaymentStatusinteger(int32)required

The payment status of the sales order0=UnPayed | 1=PartialPayed | 2=Payed

Enum012
Example: ""
Items[].​SalesOrderPaymentDetails.​TotalGrossAmountnumber(decimal)required

The total gross amount of the sales order.

Example: 19.99
Items[].​SalesOrderPaymentDetails.​CurrencyIsostringrequired

ISO code of the currency of the sales order.

Example: "EUR"
Items[].​SalesOrderPaymentDetails.​CurrencyFactornumber(decimal)required

The currency factor in the order at the time the order is created.

Example: 1
Items[].​SalesOrderPaymentDetails.​DateOfPaymentstring(date-time)required

Date of payment that paid off the sales order.

Example: "2023-01-15T13:00:00.0000000+00:00"
Items[].​SalesOrderPaymentDetails.​StillToPaynumber(decimal)required

The amount that is left to pay for this sales order.

Example: 0
Items[].​SalesOrderPaymentDetails.​PaymentTargetinteger(int32)required

The payment target of the sales order in days.

Example: 0
Items[].​SalesOrderPaymentDetails.​CashDiscountnumber(decimal)required

The cash discount of the sales order.

Example: 5
Items[].​SalesOrderPaymentDetails.​CashDiscountDaysinteger(int32)required

The days that the cash discount is valid.

Example: 2
Items[].​SalesOrderShippingDetailobject(SalesOrderShippingDetail)required
Items[].​SalesOrderShippingDetail.​ShippingMethodIdinteger(int32)required

The shipping method of the sales order.

Example: 3
Items[].​SalesOrderShippingDetail.​DeliveryCompleteStatusinteger(int32)required

The delivery status of the sales order.0=DeliveryNotComplete | 1=DeliveryComplete | 2=DeliveryCompleteWithoutNote

Enum012
Example: ""
Items[].​SalesOrderShippingDetail.​ShippingPriorityinteger(int32)required

The shipping priority of the sales order.

Example: 5
Items[].​SalesOrderShippingDetail.​ShippingDatestring(date-time)required

The notified shipping date of the sales order.

Example: "2023-01-15T13:00:00.0000000+00:00"
Items[].​SalesOrderShippingDetail.​EstimatedDeliveryDatestring(date-time)required

The estimated delivery date of the sales order.

Example: "2023-01-16T13:00:00.0000000+00:00"
Items[].​SalesOrderShippingDetail.​DeliveredDatestring(date-time)required

The date when the sales order was delivered.

Example: "2023-01-15T13:00:00.0000000+00:00"
Items[].​SalesOrderShippingDetail.​OnHoldReasonIdinteger(int32)required

The ID of the on hold reason of the sales order.

Example: 1
Items[].​SalesOrderShippingDetail.​ExtraWeightnumber(decimal)required

The extra weight added to the sales order.

Example: 0.1
Items[].​ColorcodeIdinteger(int32)required

The colour code of the sales order.

Example: 2
Items[].​IsExternalInvoicebooleanrequired

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

Example: false
Items[].​Commentstringrequired

A comment on the sales order.

Example: "an additional order comment"
Items[].​CustomerCommentstringrequired

A customer comment on the sales order.

Example: "an additional customer comment"
Items[].​IsCancelledbooleanrequired

Indicates if the order has been cancelled. There is a special endpoint for cancelling sales orders.

Example: false
Items[].​LanguageIsostringrequired

The language of the order.

Example: "DE"
Items[].​CancellationDetailsobject(SalesOrderCancellationDetails)required
Items[].​CancellationDetails.​CancellationReasonIdinteger(int32)required

The id of the reason for cancelling the sales order.

Example: -4
Items[].​CancellationDetails.​CancellationCommentstringrequired

A comment that adds further information to the cancellation.

Example: "Change of mind (once again); we should consider terminating the customer relationship"
Items[].​CancellationDetails.​Datestring(date-time)required

The DateTime of Cancellation.

Example: "2023-02-01T12:45:00.0000000+00:00"
Items[].​SalesChannelIdstringrequired

The sales channel of the sales order.

Example: "1-1-1"
Items[].​UserCreatedIdinteger(int32)required

The user who created the sales order.

Example: 1
Items[].​UserIdinteger(int32)required

The user who is responsible for the sales order.

Example: 1
TotalPagesinteger(int32)read-only

Gets the total number of pages based on the total number of items and the page size.

HasPreviousPagebooleanread-only

Gets a value indicating whether there is a previous page available in the paginated list.

HasNextPagebooleanread-only

Gets a value indicating whether there is a next page available.

NextPageNumberinteger(int32)read-only

Gets the number of the next page if there is one; otherwise, returns the total number of pages.

PreviousPageNumberinteger(int32)read-only

Gets the number of the previous page. If there is no previous page, it returns 1.

Response
application/json
{ "TotalItems": 0, "PageNumber": 0, "PageSize": 0, "Items": [ {} ], "TotalPages": 0, "HasPreviousPage": true, "HasNextPage": true, "NextPageNumber": 0, "PreviousPageNumber": 0 }

Create Sales Order

Request

Create a new sales order

Query
renameSalesOrderNumberWhenAlreadyExistsboolean

If true, the sales order number will be renamed if it already exists.

disableAutomaticWorkflowsboolean

If true, the workflows do not trigger automatic.

Headers
api-versionstring

The requested API version

x-appidstringrequired

This is the name of your application, in this case "MyApp/1.0.0". It is used to identify your application.

x-appversionstringrequired

This is where the version number of your application is entered, in this case "1.0.0".

x-runasstring

The User-Id as int or uuid to run the Request, a JTL-Wawi user can be specified to perform an API call on their behalf (more details in the documentation, Optional). To use the Header, you must have the needed Scope 'Application.RunAs'

tenant-idstring(uuid)required

Specify the TenantId in GUID Format

x-api-keystring(uuid)required

Specify the ApiKey from RegistrationProcess in Uuid Format

Bodyapplication/jsonrequired

The sales order to create.

Numberstring

The number of the sales order.

Example: "A1004465"
ExternalNumberstring

The external number of the sales order.

Example: "D456-64894-132"
BillingNumberstring

The number of the invoice.

Example: "RE-202404-10000"
CompanyIdinteger(int32)required

The company of the sales order.

Example: 1
DepartureCountryobject(CreateDepartureCountry)
CustomerIdinteger(int32)required

The customer ID.

Example: 1005
CustomerVatIDstring

The VAT ID of the customer.

Example: "DE12345"
BillingAddressobject(CreateAddress)
Shipmentaddressobject(CreateAddress)
SalesOrderDatestring(date-time)

The date when the order was created.

Example: "2023-02-01T12:45:00.0000000+00:00"
SalesOrderPaymentDetailsobject(CreateSalesOrderPaymentDetail)
SalesOrderShippingDetailobject(CreateSalesOrderShippingDetail)
ColorcodeIdinteger(int32)

The colour code of the sales order.

Example: 2
Commentstring

A comment on the sales order.

Example: "an additional order comment"
CustomerCommentstring

A customer comment on the sales order.

Example: "an additional customer comment"
LanguageIsostring

The language of the order.

Example: "DE"
curl -i -X POST \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.0-cloud/openapi/salesOrders?disableAutomaticWorkflows=true&renameSalesOrderNumberWhenAlreadyExists=true' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'api-version: string' \
  -H 'tenant-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -H 'x-appid: string' \
  -H 'x-appversion: string' \
  -H 'x-runas: string' \
  -d '{
    "Number": "A1004465",
    "ExternalNumber": "D456-64894-132",
    "BillingNumber": "RE-202404-10000",
    "CompanyId": 1,
    "DepartureCountry": {
      "CountryISO": "DE",
      "State": "Berlin",
      "CurrencyIso": "EUR",
      "CurrencyFactor": 1
    },
    "CustomerId": 1005,
    "CustomerVatID": "DE12345",
    "BillingAddress": {
      "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": {
      "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"
    },
    "SalesOrderDate": "2023-02-01T12:45:00.0000000+00:00",
    "SalesOrderPaymentDetails": {
      "PaymentMethodId": 12,
      "CurrencyIso": "EUR",
      "CurrencyFactor": 1,
      "PaymentTarget": 0,
      "CashDiscount": 5,
      "CashDiscountDays": 2
    },
    "SalesOrderShippingDetail": {
      "ShippingMethodId": 3,
      "ShippingPriority": 5,
      "ShippingDate": "2023-01-15T13:00:00.0000000+00:00",
      "EstimatedDeliveryDate": "2023-01-16T13:00:00.0000000+00:00",
      "OnHoldReasonId": 1,
      "ExtraWeight": 0.1
    },
    "ColorcodeId": 2,
    "Comment": "an additional order comment",
    "CustomerComment": "an additional customer comment",
    "LanguageIso": "DE"
  }'

Responses

The created sales order.

Bodyapplication/json
Idinteger(int32)required

Unique ID to identify a sales order file.

Example: 123
Numberstringrequired

The number of the sales order.

Example: "A1004465"
ExternalNumberstringrequired

The external number of the sales order.

Example: "D456-64894-132"
BillingNumberstringrequired

The number of the invoice.

Example: "RE-202404-10000"
CompanyIdinteger(int32)required

The company of the sales order.

Example: 1
DepartureCountryobject(DepartureCountry)required
DepartureCountry.​CountryISOstringrequired

ISO code of the departure country.

Example: "DE"
DepartureCountry.​Statestringrequired

Name of the state in the departure country.

Example: "Berlin"
DepartureCountry.​CurrencyIsostringrequired

ISO code of the currency of the departure country.

Example: "EUR"
DepartureCountry.​CurrencyFactornumber(decimal)required

The currency factor of the departure country.

Example: 1
CustomerIdinteger(int32)required

The customer ID.

Example: 1005
CustomerVatIDstringrequired

The VAT ID of the customer.

Example: "DE12345"
MerchantVatIDstringrequired

The VAT ID of the merchant.

Example: "DE12345"
BillingAddressobject(Address)required
BillingAddress.​Idinteger(int32)required

Unique ID to identify an address

Example: 100
BillingAddress.​Companystringrequired

Description of the Company.

Example: "Sportbedarf Sommer"
BillingAddress.​Company2stringrequired

Additional company information

Example: "Innovation Division"
BillingAddress.​FormOfAddressstringrequired

Customer form of address

Example: "Mr."
BillingAddress.​Titlestringrequired

Official title

Example: "Dr."
BillingAddress.​FirstNamestringrequired

Customer first name

Example: "John"
BillingAddress.​LastNamestringrequired

Customer last name

Example: "Doe"
BillingAddress.​Streetstringrequired

Street name in the customer's address

Example: "Main St. 123"
BillingAddress.​Address2stringrequired

Additional address information

Example: "Floor 5, Apt 302"
BillingAddress.​PostalCodestringrequired

Postal code of the customer's address

Example: "12345"
BillingAddress.​Citystringrequired

Name of city in the customer's address

Example: "Example City"
BillingAddress.​Statestringrequired

Name of state in the customer's address

Example: "Example State"
BillingAddress.​CountryIsostringrequired

Country ISO code

Example: "DE"
BillingAddress.​VatIDstringrequired

Supplier VAT ID number

Example: "DE123456789"
BillingAddress.​PhoneNumberstringrequired

Landline phone number

Example: "+49 1234 445556661"
BillingAddress.​MobilePhoneNumberstringrequired

Mobile phone number

Example: "+49 160 123 4567"
BillingAddress.​EmailAddressstringrequired

Email address

Example: "example@email.com"
BillingAddress.​Faxstringrequired

Fax number

Example: "+49 1234 4455566615"
Shipmentaddressobject(Address)required
Shipmentaddress.​Idinteger(int32)required

Unique ID to identify an address

Example: 100
Shipmentaddress.​Companystringrequired

Description of the Company.

Example: "Sportbedarf Sommer"
Shipmentaddress.​Company2stringrequired

Additional company information

Example: "Innovation Division"
Shipmentaddress.​FormOfAddressstringrequired

Customer form of address

Example: "Mr."
Shipmentaddress.​Titlestringrequired

Official title

Example: "Dr."
Shipmentaddress.​FirstNamestringrequired

Customer first name

Example: "John"
Shipmentaddress.​LastNamestringrequired

Customer last name

Example: "Doe"
Shipmentaddress.​Streetstringrequired

Street name in the customer's address

Example: "Main St. 123"
Shipmentaddress.​Address2stringrequired

Additional address information

Example: "Floor 5, Apt 302"
Shipmentaddress.​PostalCodestringrequired

Postal code of the customer's address

Example: "12345"
Shipmentaddress.​Citystringrequired

Name of city in the customer's address

Example: "Example City"
Shipmentaddress.​Statestringrequired

Name of state in the customer's address

Example: "Example State"
Shipmentaddress.​CountryIsostringrequired

Country ISO code

Example: "DE"
Shipmentaddress.​VatIDstringrequired

Supplier VAT ID number

Example: "DE123456789"
Shipmentaddress.​PhoneNumberstringrequired

Landline phone number

Example: "+49 1234 445556661"
Shipmentaddress.​MobilePhoneNumberstringrequired

Mobile phone number

Example: "+49 160 123 4567"
Shipmentaddress.​EmailAddressstringrequired

Email address

Example: "example@email.com"
Shipmentaddress.​Faxstringrequired

Fax number

Example: "+49 1234 4455566615"
SalesOrderDatestring(date-time)required

The date when the order was created.

Example: "2023-02-01T12:45:00.0000000+00:00"
SalesOrderPaymentDetailsobject(SalesOrderPaymentDetail)required
SalesOrderPaymentDetails.​PaymentMethodIdinteger(int32)required

The payment method of the sales order.

Example: 12
SalesOrderPaymentDetails.​PaymentStatusinteger(int32)required

The payment status of the sales order0=UnPayed | 1=PartialPayed | 2=Payed

Enum012
Example: ""
SalesOrderPaymentDetails.​TotalGrossAmountnumber(decimal)required

The total gross amount of the sales order.

Example: 19.99
SalesOrderPaymentDetails.​CurrencyIsostringrequired

ISO code of the currency of the sales order.

Example: "EUR"
SalesOrderPaymentDetails.​CurrencyFactornumber(decimal)required

The currency factor in the order at the time the order is created.

Example: 1
SalesOrderPaymentDetails.​DateOfPaymentstring(date-time)required

Date of payment that paid off the sales order.

Example: "2023-01-15T13:00:00.0000000+00:00"
SalesOrderPaymentDetails.​StillToPaynumber(decimal)required

The amount that is left to pay for this sales order.

Example: 0
SalesOrderPaymentDetails.​PaymentTargetinteger(int32)required

The payment target of the sales order in days.

Example: 0
SalesOrderPaymentDetails.​CashDiscountnumber(decimal)required

The cash discount of the sales order.

Example: 5
SalesOrderPaymentDetails.​CashDiscountDaysinteger(int32)required

The days that the cash discount is valid.

Example: 2
SalesOrderShippingDetailobject(SalesOrderShippingDetail)required
SalesOrderShippingDetail.​ShippingMethodIdinteger(int32)required

The shipping method of the sales order.

Example: 3
SalesOrderShippingDetail.​DeliveryCompleteStatusinteger(int32)required

The delivery status of the sales order.0=DeliveryNotComplete | 1=DeliveryComplete | 2=DeliveryCompleteWithoutNote

Enum012
Example: ""
SalesOrderShippingDetail.​ShippingPriorityinteger(int32)required

The shipping priority of the sales order.

Example: 5
SalesOrderShippingDetail.​ShippingDatestring(date-time)required

The notified shipping date of the sales order.

Example: "2023-01-15T13:00:00.0000000+00:00"
SalesOrderShippingDetail.​EstimatedDeliveryDatestring(date-time)required

The estimated delivery date of the sales order.

Example: "2023-01-16T13:00:00.0000000+00:00"
SalesOrderShippingDetail.​DeliveredDatestring(date-time)required

The date when the sales order was delivered.

Example: "2023-01-15T13:00:00.0000000+00:00"
SalesOrderShippingDetail.​OnHoldReasonIdinteger(int32)required

The ID of the on hold reason of the sales order.

Example: 1
SalesOrderShippingDetail.​ExtraWeightnumber(decimal)required

The extra weight added to the sales order.

Example: 0.1
ColorcodeIdinteger(int32)required

The colour code of the sales order.

Example: 2
IsExternalInvoicebooleanrequired

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

Example: false
Commentstringrequired

A comment on the sales order.

Example: "an additional order comment"
CustomerCommentstringrequired

A customer comment on the sales order.

Example: "an additional customer comment"
IsCancelledbooleanrequired

Indicates if the order has been cancelled. There is a special endpoint for cancelling sales orders.

Example: false
LanguageIsostringrequired

The language of the order.

Example: "DE"
CancellationDetailsobject(SalesOrderCancellationDetails)required
CancellationDetails.​CancellationReasonIdinteger(int32)required

The id of the reason for cancelling the sales order.

Example: -4
CancellationDetails.​CancellationCommentstringrequired

A comment that adds further information to the cancellation.

Example: "Change of mind (once again); we should consider terminating the customer relationship"
CancellationDetails.​Datestring(date-time)required

The DateTime of Cancellation.

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

The sales channel of the sales order.

Example: "1-1-1"
UserCreatedIdinteger(int32)required

The user who created the sales order.

Example: 1
UserIdinteger(int32)required

The user who is responsible for the sales order.

Example: 1
Response
application/json
{ "Id": 123, "Number": "A1004465", "ExternalNumber": "D456-64894-132", "BillingNumber": "RE-202404-10000", "CompanyId": 1, "DepartureCountry": { "CountryISO": "DE", "State": "Berlin", "CurrencyIso": "EUR", "CurrencyFactor": 1 }, "CustomerId": 1005, "CustomerVatID": "DE12345", "MerchantVatID": "DE12345", "BillingAddress": { "Id": 100, "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": 100, "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" }, "SalesOrderDate": "2023-02-01T12:45:00.0000000+00:00", "SalesOrderPaymentDetails": { "PaymentMethodId": 12, "PaymentStatus": "", "TotalGrossAmount": 19.99, "CurrencyIso": "EUR", "CurrencyFactor": 1, "DateOfPayment": "2023-01-15T13:00:00.0000000+00:00", "StillToPay": 0, "PaymentTarget": 0, "CashDiscount": 5, "CashDiscountDays": 2 }, "SalesOrderShippingDetail": { "ShippingMethodId": 3, "DeliveryCompleteStatus": "", "ShippingPriority": 5, "ShippingDate": "2023-01-15T13:00:00.0000000+00:00", "EstimatedDeliveryDate": "2023-01-16T13:00:00.0000000+00:00", "DeliveredDate": "2023-01-15T13:00:00.0000000+00:00", "OnHoldReasonId": 1, "ExtraWeight": 0.1 }, "ColorcodeId": 2, "IsExternalInvoice": false, "Comment": "an additional order comment", "CustomerComment": "an additional customer comment", "IsCancelled": false, "LanguageIso": "DE", "CancellationDetails": { "CancellationReasonId": -4, "CancellationComment": "Change of mind (once again); we should consider terminating the customer relationship", "Date": "2023-02-01T12:45:00.0000000+00:00" }, "SalesChannelId": "1-1-1", "UserCreatedId": 1, "UserId": 1 }

Get Sales Order

Request

Get a specific sales order

Path
salesOrderIdinteger(int32)required

The id of the order to return. Only non-pending orders are returned.

Headers
api-versionstring

The requested API version

x-appidstringrequired

This is the name of your application, in this case "MyApp/1.0.0". It is used to identify your application.

x-appversionstringrequired

This is where the version number of your application is entered, in this case "1.0.0".

x-runasstring

The User-Id as int or uuid to run the Request, a JTL-Wawi user can be specified to perform an API call on their behalf (more details in the documentation, Optional). To use the Header, you must have the needed Scope 'Application.RunAs'

tenant-idstring(uuid)required

Specify the TenantId in GUID Format

x-api-keystring(uuid)required

Specify the ApiKey from RegistrationProcess in Uuid Format

curl -i -X GET \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.0-cloud/openapi/salesOrders/{salesOrderId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'api-version: string' \
  -H 'tenant-id: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -H 'x-appid: string' \
  -H 'x-appversion: string' \
  -H 'x-runas: string'

Responses

Returns the sales order for the given id.

Bodyapplication/json
Idinteger(int32)required

Unique ID to identify a sales order file.

Example: 123
Numberstringrequired

The number of the sales order.

Example: "A1004465"
ExternalNumberstringrequired

The external number of the sales order.

Example: "D456-64894-132"
BillingNumberstringrequired

The number of the invoice.

Example: "RE-202404-10000"
CompanyIdinteger(int32)required

The company of the sales order.

Example: 1
DepartureCountryobject(DepartureCountry)required
DepartureCountry.​CountryISOstringrequired

ISO code of the departure country.

Example: "DE"
DepartureCountry.​Statestringrequired

Name of the state in the departure country.

Example: "Berlin"
DepartureCountry.​CurrencyIsostringrequired

ISO code of the currency of the departure country.

Example: "EUR"
DepartureCountry.​CurrencyFactornumber(decimal)required

The currency factor of the departure country.

Example: 1
CustomerIdinteger(int32)required

The customer ID.

Example: 1005
CustomerVatIDstringrequired

The VAT ID of the customer.

Example: "DE12345"
MerchantVatIDstringrequired

The VAT ID of the merchant.

Example: "DE12345"
BillingAddressobject(Address)required
BillingAddress.​Idinteger(int32)required

Unique ID to identify an address

Example: 100
BillingAddress.​Companystringrequired

Description of the Company.

Example: "Sportbedarf Sommer"
BillingAddress.​Company2stringrequired

Additional company information

Example: "Innovation Division"
BillingAddress.​FormOfAddressstringrequired

Customer form of address

Example: "Mr."
BillingAddress.​Titlestringrequired

Official title

Example: "Dr."
BillingAddress.​FirstNamestringrequired

Customer first name

Example: "John"
BillingAddress.​LastNamestringrequired

Customer last name

Example: "Doe"
BillingAddress.​Streetstringrequired

Street name in the customer's address

Example: "Main St. 123"
BillingAddress.​Address2stringrequired

Additional address information

Example: "Floor 5, Apt 302"
BillingAddress.​PostalCodestringrequired

Postal code of the customer's address

Example: "12345"
BillingAddress.​Citystringrequired

Name of city in the customer's address

Example: "Example City"
BillingAddress.​Statestringrequired

Name of state in the customer's address

Example: "Example State"
BillingAddress.​CountryIsostringrequired

Country ISO code

Example: "DE"
BillingAddress.​VatIDstringrequired

Supplier VAT ID number

Example: "DE123456789"
BillingAddress.​PhoneNumberstringrequired

Landline phone number

Example: "+49 1234 445556661"
BillingAddress.​MobilePhoneNumberstringrequired

Mobile phone number

Example: "+49 160 123 4567"
BillingAddress.​EmailAddressstringrequired

Email address

Example: "example@email.com"
BillingAddress.​Faxstringrequired

Fax number

Example: "+49 1234 4455566615"
Shipmentaddressobject(Address)required
Shipmentaddress.​Idinteger(int32)required

Unique ID to identify an address

Example: 100
Shipmentaddress.​Companystringrequired

Description of the Company.

Example: "Sportbedarf Sommer"
Shipmentaddress.​Company2stringrequired

Additional company information

Example: "Innovation Division"
Shipmentaddress.​FormOfAddressstringrequired

Customer form of address

Example: "Mr."
Shipmentaddress.​Titlestringrequired

Official title

Example: "Dr."
Shipmentaddress.​FirstNamestringrequired

Customer first name

Example: "John"
Shipmentaddress.​LastNamestringrequired

Customer last name

Example: "Doe"
Shipmentaddress.​Streetstringrequired

Street name in the customer's address

Example: "Main St. 123"
Shipmentaddress.​Address2stringrequired

Additional address information

Example: "Floor 5, Apt 302"
Shipmentaddress.​PostalCodestringrequired

Postal code of the customer's address

Example: "12345"
Shipmentaddress.​Citystringrequired

Name of city in the customer's address

Example: "Example City"
Shipmentaddress.​Statestringrequired

Name of state in the customer's address

Example: "Example State"
Shipmentaddress.​CountryIsostringrequired

Country ISO code

Example: "DE"
Shipmentaddress.​VatIDstringrequired

Supplier VAT ID number

Example: "DE123456789"
Shipmentaddress.​PhoneNumberstringrequired

Landline phone number

Example: "+49 1234 445556661"
Shipmentaddress.​MobilePhoneNumberstringrequired

Mobile phone number

Example: "+49 160 123 4567"
Shipmentaddress.​EmailAddressstringrequired

Email address

Example: "example@email.com"
Shipmentaddress.​Faxstringrequired

Fax number

Example: "+49 1234 4455566615"
SalesOrderDatestring(date-time)required

The date when the order was created.

Example: "2023-02-01T12:45:00.0000000+00:00"
SalesOrderPaymentDetailsobject(SalesOrderPaymentDetail)required
SalesOrderPaymentDetails.​PaymentMethodIdinteger(int32)required

The payment method of the sales order.

Example: 12
SalesOrderPaymentDetails.​PaymentStatusinteger(int32)required

The payment status of the sales order0=UnPayed | 1=PartialPayed | 2=Payed

Enum012
Example: ""
SalesOrderPaymentDetails.​TotalGrossAmountnumber(decimal)required

The total gross amount of the sales order.

Example: 19.99
SalesOrderPaymentDetails.​CurrencyIsostringrequired

ISO code of the currency of the sales order.

Example: "EUR"
SalesOrderPaymentDetails.​CurrencyFactornumber(decimal)required

The currency factor in the order at the time the order is created.

Example: 1
SalesOrderPaymentDetails.​DateOfPaymentstring(date-time)required

Date of payment that paid off the sales order.

Example: "2023-01-15T13:00:00.0000000+00:00"
SalesOrderPaymentDetails.​StillToPaynumber(decimal)required

The amount that is left to pay for this sales order.

Example: 0
SalesOrderPaymentDetails.​PaymentTargetinteger(int32)required

The payment target of the sales order in days.

Example: 0
SalesOrderPaymentDetails.​CashDiscountnumber(decimal)required

The cash discount of the sales order.

Example: 5
SalesOrderPaymentDetails.​CashDiscountDaysinteger(int32)required

The days that the cash discount is valid.

Example: 2
SalesOrderShippingDetailobject(SalesOrderShippingDetail)required
SalesOrderShippingDetail.​ShippingMethodIdinteger(int32)required

The shipping method of the sales order.

Example: 3
SalesOrderShippingDetail.​DeliveryCompleteStatusinteger(int32)required

The delivery status of the sales order.0=DeliveryNotComplete | 1=DeliveryComplete | 2=DeliveryCompleteWithoutNote

Enum012
Example: ""
SalesOrderShippingDetail.​ShippingPriorityinteger(int32)required

The shipping priority of the sales order.

Example: 5
SalesOrderShippingDetail.​ShippingDatestring(date-time)required

The notified shipping date of the sales order.

Example: "2023-01-15T13:00:00.0000000+00:00"
SalesOrderShippingDetail.​EstimatedDeliveryDatestring(date-time)required

The estimated delivery date of the sales order.

Example: "2023-01-16T13:00:00.0000000+00:00"
SalesOrderShippingDetail.​DeliveredDatestring(date-time)required

The date when the sales order was delivered.

Example: "2023-01-15T13:00:00.0000000+00:00"
SalesOrderShippingDetail.​OnHoldReasonIdinteger(int32)required

The ID of the on hold reason of the sales order.

Example: 1
SalesOrderShippingDetail.​ExtraWeightnumber(decimal)required

The extra weight added to the sales order.

Example: 0.1
ColorcodeIdinteger(int32)required

The colour code of the sales order.

Example: 2
IsExternalInvoicebooleanrequired

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

Example: false
Commentstringrequired

A comment on the sales order.

Example: "an additional order comment"
CustomerCommentstringrequired

A customer comment on the sales order.

Example: "an additional customer comment"
IsCancelledbooleanrequired

Indicates if the order has been cancelled. There is a special endpoint for cancelling sales orders.

Example: false
LanguageIsostringrequired

The language of the order.

Example: "DE"
CancellationDetailsobject(SalesOrderCancellationDetails)required
CancellationDetails.​CancellationReasonIdinteger(int32)required

The id of the reason for cancelling the sales order.

Example: -4
CancellationDetails.​CancellationCommentstringrequired

A comment that adds further information to the cancellation.

Example: "Change of mind (once again); we should consider terminating the customer relationship"
CancellationDetails.​Datestring(date-time)required

The DateTime of Cancellation.

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

The sales channel of the sales order.

Example: "1-1-1"
UserCreatedIdinteger(int32)required

The user who created the sales order.

Example: 1
UserIdinteger(int32)required

The user who is responsible for the sales order.

Example: 1
Response
application/json
{ "Id": 123, "Number": "A1004465", "ExternalNumber": "D456-64894-132", "BillingNumber": "RE-202404-10000", "CompanyId": 1, "DepartureCountry": { "CountryISO": "DE", "State": "Berlin", "CurrencyIso": "EUR", "CurrencyFactor": 1 }, "CustomerId": 1005, "CustomerVatID": "DE12345", "MerchantVatID": "DE12345", "BillingAddress": { "Id": 100, "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": 100, "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" }, "SalesOrderDate": "2023-02-01T12:45:00.0000000+00:00", "SalesOrderPaymentDetails": { "PaymentMethodId": 12, "PaymentStatus": "", "TotalGrossAmount": 19.99, "CurrencyIso": "EUR", "CurrencyFactor": 1, "DateOfPayment": "2023-01-15T13:00:00.0000000+00:00", "StillToPay": 0, "PaymentTarget": 0, "CashDiscount": 5, "CashDiscountDays": 2 }, "SalesOrderShippingDetail": { "ShippingMethodId": 3, "DeliveryCompleteStatus": "", "ShippingPriority": 5, "ShippingDate": "2023-01-15T13:00:00.0000000+00:00", "EstimatedDeliveryDate": "2023-01-16T13:00:00.0000000+00:00", "DeliveredDate": "2023-01-15T13:00:00.0000000+00:00", "OnHoldReasonId": 1, "ExtraWeight": 0.1 }, "ColorcodeId": 2, "IsExternalInvoice": false, "Comment": "an additional order comment", "CustomerComment": "an additional customer comment", "IsCancelled": false, "LanguageIso": "DE", "CancellationDetails": { "CancellationReasonId": -4, "CancellationComment": "Change of mind (once again); we should consider terminating the customer relationship", "Date": "2023-02-01T12:45:00.0000000+00:00" }, "SalesChannelId": "1-1-1", "UserCreatedId": 1, "UserId": 1 }

deliverynote

Planned

Operations

appRegistration

Operations

wms

Operations

stock

Operations

accountingData

Planned

Operations

tax

Operations

offer

Operations

creditnote

Operations