Skip to main content
POST
Create Shop

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Idempotency-Key
string

Optional, client-generated key for deduplicating repeated write requests. A repeated request with the same key returns the originally recorded result instead of executing the effect again.

Required string length: 1 - 255
x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Query Parameters

simulate
boolean

When true, only validation and the connection test run and no shop is created. Optional; defaults to false.

Body

application/json

Request model for CreateShop command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

name
string
required

Name of the shop. Mandatory, at most 255 characters.

url
string
required

Absolute http:// or https:// URL of the shop. Mandatory, at most 255 characters. Must not point to the same host and path as another JTL-Wawi-managed online shop, whether active or not.

username
string
required

Login name of the sync user for this shop. Mandatory, at most 32 characters.

password
string
required

Password of the sync user for this shop. Mandatory. Maximum 111 bytes in UTF-8; multi-byte characters count as several bytes. Write-only; never returned by any endpoint.

apiKey
string
required

API key of this shop. Mandatory, at most 64 characters. Write-only; never returned by any endpoint.

companyId
string<uuid>
required

ID of the company the shop belongs to. Mandatory; must reference an active company.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

rootCategoryId
string<uuid>

ID of the shop's root category. Optional; when omitted, no root category is set. When given, it must reference an existing category.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

isActive
boolean

Shop is active. Optional; defaults to true.

orderAsOffer
boolean

Orders imported from this shop are created as offers rather than as sales orders. Optional; defaults to false.

useShopOrderNumber
boolean

The shop's own order number is used instead of a JTL-Wawi-generated one. Optional; defaults to false.

Response

The shop account was created; "salesChannelId" identifies it and can be used with "GET /v2/sales-channels/{salesChannelId}/shop/accounts" or "GetShopAccountById". When "simulate" is true, validation and the connection test succeeded and no shop was created; "salesChannelId" is omitted in the REST response and null in GraphQL. The status is 201 in both cases.

Result of creating a JTL-Wawi-managed online shop account.

salesChannelId
string

Sales channel id of the created shop. Opaque, tenant-local composite identifier (not a UUID); use this value to address the shop in follow-up calls. Omitted in the REST response (null in GraphQL) when "simulate" is true, because no shop was created.