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

Query Warehouses

Request

Query all warehouses

Query
isActiveboolean

Search for active or inactive warehouses.

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/warehouses?isActive=true&pageNumber=0&pageSize=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 warehouses.

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(Warehouse)required

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

Items[].​Idinteger(int32)required

Unique ID of the warehouse.

Example: 1
Items[].​Namestringrequired

Name of the warehouse.

Example: "Default Warehouse"
Items[].​Addressobject(Address)required
Items[].​Address.​Idinteger(int32)required

Unique ID to identify an address

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

Description of the Company.

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

Additional company information

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

Customer form of address

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

Official title

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

Customer first name

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

Customer last name

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

Street name in the customer's address

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

Additional address information

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

Postal code of the customer's address

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

Name of city in the customer's address

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

Name of state in the customer's address

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

Country ISO code

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

Supplier VAT ID number

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

Landline phone number

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

Mobile phone number

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

Email address

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

Fax number

Example: "+49 1234 4455566615"
Items[].​Codestringrequired

Code of the warehouse.

Example: "STD_Warehouse"
Items[].​Typeobject(WarehouseType)required
Items[].​Type.​Idstringrequired

Unique Id of the warehouse type as UUID.

Example: "561FCDEA-261D-4593-A0E4-E9AE7892D046"
Items[].​Type.​Namestringrequired

Name of the warehouse type.

Example: "Fulfillment"
Items[].​Type.​Descriptionstringrequired

Description of the warehouse type.

Example: "Optional description"
Items[].​Type.​ScopeArray of stringsrequired

List of Scopes with permissions

Example: "Token1,Token2"
Items[].​Descriptionstringrequired

A description on the warehouse.

Example: "Custom additional info about the warehouse"
Items[].​Priorityinteger(int32)required

Priority level of the warehouse.

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

Company assigned to the warehouse.

Example: 1
Items[].​LockForShipmentbooleanrequired

Indicates if the warehouse is locked for shipment.

Example: false
Items[].​LockForAvailabilitybooleanrequired

Indicates if the warehouse is locked for stock availability.

Example: false
Items[].​IsActivebooleanrequired

Indicates if the warehouse is active.

Example: true
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 }

Query Storage Locations

Request

Query all storage locations for a given warehouse

Path
warehouseIdinteger(int32)required

The id of the warehouse that the storage locations belong to.

Query
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/warehouses/{warehouseId}/storagelocations?pageNumber=0&pageSize=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 storage locations of the warehouse.

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(StorageLocation)required

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

Items[].​Idinteger(int32)required

Unique ID of the storage location or bin.

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

ID of the warehouse where the storage location is located.

Example: 1
Items[].​Namestringrequired

Name of the storage bin. This identifies the exact location inside the warehouse.

Example: "Standard Warehouse"
Items[].​StorageLocationTypeobject(StorageLocationType)required
Items[].​StorageLocationType.​Idstringrequired

Unique Id of the storage location type as UUID.

Example: "561FCDEA-261D-4593-A0E4-E9AE7892D046"
Items[].​StorageLocationType.​Namestringrequired

Name of the storage location type.

Example: "goods receipt"
Items[].​StorageLocationType.​Descriptionstringrequired

Description of the storage location type.

Example: "Optional storage location description"
Items[].​StorageLocationType.​ScopeArray of stringsrequired

List of Scopes with permissions

Example: "Token1,Token2"
Items[].​SortNumberinteger(int32)required

Sort number for the storage location. Used for creating picking lists.

Example: 100
Items[].​Priorityinteger(int32)required

Priority of the storage location.

Example: 10
Items[].​LockForShipmentbooleanrequired

Declares if the warehouse is locked for shipment.

Example: false
Items[].​LockForAvailabilitybooleanrequired

Declares is the warehouse is locked for stock availabilites.

Example: false
Items[].​Commentstringrequired

Comment for the storage bin.

Example: "Some custom comment for the storage location"
Items[].​Dimensionsobject(Dimensions)required
Items[].​Dimensions.​Lengthnumber(decimal)required

Length

Example: 10.5
Items[].​Dimensions.​Widthnumber(decimal)required

Width

Example: 5.8
Items[].​Dimensions.​Heightnumber(decimal)required

Height

Example: 3
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 }

Query Storage Location Type

Request

Query all storage location types

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/warehouses/storagelocationtypes \
  -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 storage location types.

Bodyapplication/jsonArray [
Idstringrequired

Unique Id of the storage location type as UUID.

Example: "561FCDEA-261D-4593-A0E4-E9AE7892D046"
Namestringrequired

Name of the storage location type.

Example: "goods receipt"
Descriptionstringrequired

Description of the storage location type.

Example: "Optional storage location description"
ScopeArray of stringsrequired

List of Scopes with permissions

Example: "Token1,Token2"
]
Response
application/json
[ { "Id": "561FCDEA-261D-4593-A0E4-E9AE7892D046", "Name": "goods receipt", "Description": "Optional storage location description", "Scope": "Token1,Token2" } ]

Query Warehouse Types

Request

Query all warehouse types

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/warehouses/types \
  -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 warehouse types.

Bodyapplication/jsonArray [
Idstringrequired

Unique Id of the warehouse type as UUID.

Example: "561FCDEA-261D-4593-A0E4-E9AE7892D046"
Namestringrequired

Name of the warehouse type.

Example: "Fulfillment"
Descriptionstringrequired

Description of the warehouse type.

Example: "Optional description"
ScopeArray of stringsrequired

List of Scopes with permissions

Example: "Token1,Token2"
]
Response
application/json
[ { "Id": "561FCDEA-261D-4593-A0E4-E9AE7892D046", "Name": "Fulfillment", "Description": "Optional description", "Scope": "Token1,Token2" } ]

customerCategory

Operations

return

Operations

cancellationreason

Operations

transactionStatus

Operations

invoice

Planned

Operations

customer

Operations

category

Operations

salesorder

Operations

deliverynote

Planned

Operations

appRegistration

Operations

wms

Operations

stock

Operations

accountingData

Planned

Operations

tax

Operations

offer

Operations

creditnote

Operations