JTL-WAWI API (Cloud) (1.1)

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.1-cloud/openapi/

https://api.jtl-cloud.com/erp/

info

Operations

worker

Planned

Operations

Get Worker Syncs

Request

Returns the Available Syncs of the Worker

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'

X-SessionIdstring(uuid)

The id of a Session, in wich we call would be executed

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.1-cloud/openapi/worker \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-SessionId: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -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 TaxRate for the given Item.

Bodyapplication/jsonArray [
Identifierinteger(int32)required

The Unique Identifier of a Sync

Example: "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85"
SyncNamestringrequired

the Name of the Sync

Example: "Ebay"
SalesChannelNamestringrequired

The Name of the Sales Channel

Example: "Shop"
SalesChannelIdstringrequired

The SalesChannel for the Sync

Example: "1-1-1"
Intervalstring

The Sync Interval

Example: "00:05:00"
ReportProgressbooleanrequired

The Sync can Report Progress in Percent

Example: false
ConfigurationsArray of objects(JTL.Wawi.Rest.Contracts.Models.Common.Config)required

The Configurations

Configurations[].​Identifierinteger(int32)required

The Unique Identifier of a Config

Example: "9514B1E5-2541-4942-A0D1-D4EACC8FCB27"
Configurations[].​DisplayNamestringrequired

The Display Name of a Setting

Example: "Create orders"
Configurations[].​DisplayDescriptionstringrequired

The Display Description of a Setting

Example: "Create orders for every Sales"
Configurations[].​Typestringrequired

The Type of the Setting

Example: "bool"
Configurations[].​CurrentValuestringrequired

The Current Value of the Setting

Example: "false"
Configurations[].​IsRequiredbooleanrequired

If the Setting is Required

Example: false
]
Response
application/json
[ { "Identifier": "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85", "SyncName": "Ebay", "SalesChannelName": "Shop", "SalesChannelId": "1-1-1", "Interval": "00:05:00", "ReportProgress": false, "Configurations": [] } ]

Sync Control

Request

Control the Sync Processes

Path
syncIdstring(uuid)required

The id of the job to Restart

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'

X-SessionIdstring(uuid)

The id of a Session, in wich we call would be executed

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 Information to Control the Sync

Actioninteger(int32)

The Action to Execute0=Start | 1=Stop | 2=Restart

Enum012
curl -i -X PUT \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.1-cloud/openapi/worker/{syncId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-SessionId: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -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 '{
    "Action": 0
  }'

Responses

The Action is Invoked

Bodyapplication/json
Response
application/json
null

Configure Sync

Request

Restart the Worker

Path
syncIdstring(uuid)required

The id of the job to Configure

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'

X-SessionIdstring(uuid)

The id of a Session, in wich we call would be executed

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 relevant Information of the Sync Item

Intervalstring

The Sync Interval

Example: "00:05:00"
ConfigsArray of objects(JTL.Wawi.Rest.Contracts.Models.Common.CreateConfigItem)

The Config Items to Set

curl -i -X POST \
  'https://developer.jtl-software.com/_mock/products/erpapi/1.1-cloud/openapi/worker/{syncId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-SessionId: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -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 '{
    "Interval": "00:05:00",
    "Configs": [
      {
        "Identifier": "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85",
        "Value": "true"
      }
    ]
  }'

Responses

The changed Worker Configuration

Bodyapplication/json
Identifierinteger(int32)required

The Unique Identifier of a Sync

Example: "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85"
SyncNamestringrequired

the Name of the Sync

Example: "Ebay"
SalesChannelNamestringrequired

The Name of the Sales Channel

Example: "Shop"
SalesChannelIdstringrequired

The SalesChannel for the Sync

Example: "1-1-1"
Intervalstring

The Sync Interval

Example: "00:05:00"
ReportProgressbooleanrequired

The Sync can Report Progress in Percent

Example: false
ConfigurationsArray of objects(JTL.Wawi.Rest.Contracts.Models.Common.Config)required

The Configurations

Configurations[].​Identifierinteger(int32)required

The Unique Identifier of a Config

Example: "9514B1E5-2541-4942-A0D1-D4EACC8FCB27"
Configurations[].​DisplayNamestringrequired

The Display Name of a Setting

Example: "Create orders"
Configurations[].​DisplayDescriptionstringrequired

The Display Description of a Setting

Example: "Create orders for every Sales"
Configurations[].​Typestringrequired

The Type of the Setting

Example: "bool"
Configurations[].​CurrentValuestringrequired

The Current Value of the Setting

Example: "false"
Configurations[].​IsRequiredbooleanrequired

If the Setting is Required

Example: false
Response
application/json
{ "Identifier": "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85", "SyncName": "Ebay", "SalesChannelName": "Shop", "SalesChannelId": "1-1-1", "Interval": "00:05:00", "ReportProgress": false, "Configurations": [ {} ] }

Get Worker Status

Request

Returns the Status of the Worker

Query
syncIdstring(uuid)

The Id of a special Sync to get the Status

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'

X-SessionIdstring(uuid)

The id of a Session, in wich we call would be executed

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.1-cloud/openapi/worker/status?syncId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-SessionId: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -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 Status Elements of the Worker

Bodyapplication/jsonArray [
Identifierinteger(int32)required

The Unique Identifier of a Sync

Example: "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85"
Stateinteger(int32)required

The current State of Sync0=Suspended | 1=Starting | 2=Running | 3=SuccessfullFinished | 4=SleepingError | 5=Stopping | 6=SleepingErrorGesperrt | 7=Deactivated

Enum01234567
Example: "Running"
ProgressTextstringrequired

The text of Progress

Example: ""
Progressnumber(double)

The Percent of Progress

Example: 0
LastSyncstring(date-time)

The Time of Last Sync

Example: "2023-02-01T12:45:00.0000000+00:00"
NextSyncstring(date-time)

The Time of Next Sync

Example: "2023-02-01T12:45:00.0000000+00:00"
]
Response
application/json
[ { "Identifier": "3f54a9ef-f644-4bbb-a6cd-1f57fcae2c85", "State": "Running", "ProgressText": "", "Progress": 0, "LastSync": "2023-02-01T12:45:00.0000000+00:00", "NextSync": "2023-02-01T12:45:00.0000000+00:00" } ]

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

Configuration

Planned

Operations

deliverynote

Planned

Operations

appRegistration

Operations

login

Operations

logout

Operations

wms

Operations

stock

Operations

accountingData

Planned

Operations

tax

Operations

shipping

Development

offer

Operations

creditnote

Operations