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

Delete Item Supplier

Request

Delete the connection between a specific supplier and item

Path
itemIdinteger(int32)required

The unique id of the item.

supplierIdinteger(int32)required

The unique id of the supplier.

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 DELETE \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.0-cloud/openapi/items/{itemId}/suppliers/{supplierId}' \
  -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

Bodyapplication/json
Response
application/json
null

Update Item Supplier

Request

Update the information for a specific supplier for a given item

Path
itemIdinteger(int32)required

The unique id of the item.

supplierIdinteger(int32)required

The unique id of the supplier.

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 itemSupplier to update.

Skustring

Item SKU from the supplier.

Example: "ART2394871"
ItemNamestring

Item name from the supplier.

Example: "Interdimensional Goggles"
IsStandardboolean

Defines the main supplier for the given item.

Example: false
PurchasePriceNetnumber(decimal)

Net purchase price from the supplier.

Example: 97.23
TaxRatenumber(decimal)

Percent of VAT tax rate.

Example: 19
MinimumPurchaseQuantitynumber(decimal)

The minimum purchase quantity from the supplier.

Example: 1
PermissibleOrderQuantitynumber(decimal)

The permissible order quantity for the item from the supplier. The increments in which the item can be sold.

Example: 2
DeliveryTimeinteger(int32)

Delivery time in days.

Example: 2
UseSupplierDeliveryTimeboolean

If set to true, Wawi will use the delivery time provided by the supplier and not by the item information. DeliveryTime will then be ignored.

Example: false
Stocklevelnumber(decimal)

Stock level of the item at the supplier.

Example: 34
IsDropshippingboolean

Activates drop shipping for a given item and supplier.

Example: false
MergeStockLevelboolean

Forces Wawi to add the supplier's stock to your own stock.

Example: false
Commentstring

Comment for the supplier.

Example: "A custom comment"
PackagingUnitstring

Name of the packaging unit.

Example: "box"
AmountPackagingUnitnumber(decimal)

Quantity in a packaging unit.

Example: 1
ScalePricesArray of objects(UpdateSupplierItemScalePrice)

Scale prices from this supplier for the item.

Example: ""
curl -i -X PATCH \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.0-cloud/openapi/items/{itemId}/suppliers/{supplierId}' \
  -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 '{
    "Sku": "ART2394871",
    "ItemName": "Interdimensional Goggles",
    "IsStandard": false,
    "PurchasePriceNet": 97.23,
    "TaxRate": 19,
    "MinimumPurchaseQuantity": 1,
    "PermissibleOrderQuantity": 2,
    "DeliveryTime": 2,
    "UseSupplierDeliveryTime": false,
    "Stocklevel": 34,
    "IsDropshipping": false,
    "MergeStockLevel": false,
    "Comment": "A custom comment",
    "PackagingUnit": "box",
    "AmountPackagingUnit": 1,
    "ScalePrices": ""
  }'

Responses

Bodyapplication/json
Response
application/json
null

Query Item Variations

Request

Query all variations for a specific item

Path
itemIdinteger(int32)required

The id of the item that the variations belong to.

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/items/{itemId}/variations' \
  -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

The requested item variations.

Bodyapplication/jsonArray [
Idinteger(int32)required

Unique ID to identify a variation.

Example: 101
ItemIdinteger(int32)required

Unique ID to identify an item.

Example: 1
Namestringrequired

Name of a variation in the default language.

Example: "Interdimensional Goggles - Supermagnifier"
Typeinteger(int32)required

The type of variation.0=Dropdown | 1=Radiobutton | 2=Swatches | 3=Textbox | 4=FreeText | 5=MandatoryFreeText

Enum012345
Example: ""
TranslationsArray of objects(Translation)required

Different terms for a variation in the non-default languages.

Example: ""
Translations[].​LanguageIsostringrequired

The language ISO code

Example: "DE"
Translations[].​Namestringrequired

The word in the corresponding language

Example: "German"
]
Response
application/json
[ { "Id": 101, "ItemId": 1, "Name": "Interdimensional Goggles - Supermagnifier", "Type": "", "Translations": "" } ]

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

deliverynote

Planned

Operations

appRegistration

Operations

wms

Operations

stock

Operations

accountingData

Planned

Operations

tax

Operations

offer

Operations

creditnote

Operations