Skip to main content

GTS Shop API (0.0.1)

Introduction

The documentation is intended for the integration of external customers with the GTS Shop purchase and logistics service.

Authorization

For authorization, the following headers must be passed in each request:

X-Workspace-Id: <your-workspace-id>
Authorization: PrivateToken <your-private-token>

products

List of methods to work with the product items.

Get product list

The product list. Filters go in the request body, so long lists of categories or brands are not truncated the way a query string would truncate them.

Authorizations:
(private_tokenworkspace_id)
Request Body schema: application/json
after_date
string

Return only products changed after this moment — use it to sync incrementally instead of re-reading the whole catalogue.

object

Price bounds and image analysis.

object

Category tags from GET /api/categories. Each tag is expanded to its whole subtree, so excluding a parent excludes its entire branch.

A tag that does not exist is silently dropped: if none of the given tags resolve, the filter is not applied at all and the full catalogue comes back — no error, no empty result. Check meta.pagination.total_items against an unfiltered request to confirm the filter took effect.

object

Brand tags from GET /api/brands, matched as given — no subtree expansion, so an unknown tag simply yields no products.

locale
string
Default: "en"
Enum: "en" "de" "he" "uk" "uz" "ru"

Language of the product name and description. Falls back to en when the requested locale is missing.

locales
Array of strings
Items Enum: "en" "de" "he" "uk" "uz" "ru"

The locales to work with when use_content is set: a product is kept if it has content in any of them, and the matching content_<locale> objects are added to the response.

Without use_content this parameter has no effect on the product list.

use_content
boolean
Default: false

Keep only products that have generated content, and return that content.

Which locale is checked depends on locales: when it is given, a product qualifies if it has content in any of the listed locales; otherwise the single locale is used.

The content_<locale> objects are returned only when use_content is combined with locales — locale alone filters but adds nothing to the response.

price_zero_if_out_of_stock
boolean

Report a zero price for variants that are out of stock

object

Responses

Response Schema: application/json
status
required
string
required
Array of objects (ProductListItem)
required
object (Meta)

Request samples

Content type
application/json
{
  • "categories": {
    },
  • "filter": {
    },
  • "locale": "en",
  • "pagination": {
    }
}

Response samples

Content type
application/json
{
  • "status": "string",
  • "data": [
    ],
  • "meta": {
    }
}

Detailed product information

Authorizations:
(private_tokenworkspace_id)
path Parameters
productId
required
string

Product Identifier

Responses

Response Schema: application/json
status
required
string
required
object (Product)
required
object (ProductDetailsMeta)

Response samples

Content type
application/json
{
  • "status": "string",
  • "data": {
    },
  • "meta": {
    }
}

categories

List of methods to work with the category items.

Get category list

Authorizations:
(private_tokenworkspace_id)
query Parameters
locale
string
Default: "en"
Enum: "en" "de" "he" "uk" "uz" "ru"

Language of the category name and title. Falls back to en when the requested locale is missing for a category.

locales
Array of strings
Items Enum: "en" "de" "he" "uk" "uz" "ru"

Additionally return name_<locale> and title_<locale> for each of the listed locales.

object

This parameter allows you to divide a large data set into smaller, more manageable pieces (pages).

Responses

Response Schema: application/json
status
required
string
required
Array of objects (Category)
required
object (Meta)

Response samples

Content type
application/json
{
  • "status": "string",
  • "data": [
    ],
  • "meta": {
    }
}

brands

List of methods to work with the brand items.

Get brand list

Authorizations:
(private_tokenworkspace_id)
query Parameters
object

This parameter allows you to divide a large data set into smaller, more manageable pieces (pages).

Responses

Response Schema: application/json
status
required
string
required
Array of objects (Brand)
required
object (Meta)

Response samples

Content type
application/json
{
  • "status": "string",
  • "data": [
    ],
  • "meta": {
    }
}

orders

The order is created in two steps:

  • A new order is created
  • The items for purchase are added to the order

From there the order advances on its own: the items are enriched from the merchant page, validated, and passed to the purchase specialists. Poll GET /api/orders/{orderId} to follow it.

Order list

Authorizations:
(private_tokenworkspace_id)
query Parameters
statuses[]
Array of strings
Items Enum: "draft" "created" "payment" "purchase" "acceptence" "package" "delivery" "handle" "cancelled" "claim"
Example: statuses[]=draft

This parameter allows you to select and display orders based on their current status. See the Status model for what each step means.

stages[]
Array of strings
Items Enum: "idle" "started" "finished" "rejected"
Example: stages[]=finished

This parameter allows you to select and display orders based on the current stage within the status. See the Status model for what each stage means.

mode
string
Default: "flexible"
Example: mode=strict

This parameter allows you to set the filtering mode by order status. It could takes one of two values:

flexible - outputs all orders that were in one of the statuses passed in the 'statuses' parameter

strict - outputs orders, which active status corresponds to one of the statuses passed in the 'statuses' parameter

after_date
string
Example: after_date=1

This parameter allows you to filter orders by date. For example: show orders that were purchased after August 27, 2024

recipient
string
Example: recipient=1

This parameter allows you to filter orders that specify or do not specify a final recipient for order items. If at least for one of the order items OrderItem the condition is met, the order will be shown.

FALSE - false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"

TRUE - any value

delivery_address
string
Example: delivery_address=1

This parameter allows you to filter orders that have or do not have a shipping address for order items. If at least for one of the order items OrderItem the condition is met, the order will be shown.

FALSE - false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"

TRUE - any value

object

This parameter allows you to divide a large data set into smaller, more manageable pieces (pages).

Responses

Response Schema: application/json
status
required
string
required
Array of objects (Order)
required
object (OrdersMeta)

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": [
    ],
  • "meta": {
    }
}

Create new order

Authorizations:
(private_tokenworkspace_id)
Request Body schema: application/json
object
number
string

Order identifier in the customer's system. If not filled in, it will be generated automatically

Array of objects

List of goods in the order

Responses

Response Schema: application/json
status
required
string
required
object (Order)
required
object (OrderMeta)

Meta of a single-order response. Unlike the order list, it carries no pagination.

Request samples

Content type
application/json
{
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    },
  • "meta": {
    }
}

Order information

Authorizations:
(private_tokenworkspace_id)
path Parameters
orderId
required
string

Internal or external order identifier

Responses

Response Schema: application/json
status
required
string
required
object (Order)
required
object (OrderMeta)

Meta of a single-order response. Unlike the order list, it carries no pagination.

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    },
  • "meta": {
    }
}

Add item to order

Add new item to existing order

Authorizations:
(private_tokenworkspace_id)
path Parameters
orderId
required
string

Internal or external order identifier

Request Body schema: application/json
required
object
required
object
quantity
required
integer [ 1 .. 99 ]

Quantity of order items

object

The cost of the item at the time the order is created. If not passed on, the information will be loaded using the link to the merchant website

price_deviation
number

Tolerance as a percentage of the value as of the date of ordering as a percentage

comment
string <= 356 characters

Free-form comment. Used to accurately describe the size or color of the item

Responses

Response Schema: application/json
status
required
string
required
object (Order)
required
object (OrderMeta)

Meta of a single-order response. Unlike the order list, it carries no pagination.

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    },
  • "meta": {
    }
}

Update information about order item

This method is used to add information about the order recipient and delivery address.

Authorizations:
(private_tokenworkspace_id)
path Parameters
orderId
required
string

Internal or external order identifier

orderItemId
required
string

Internal or external order item identifier

Request Body schema: application/json
object
object (Recipient)

Final recipient info

object (DeliveryAddress)

Shipping address

Responses

Response Schema: application/json
status
required
string
required
object (Order)
required
object (OrderMeta)

Meta of a single-order response. Unlike the order list, it carries no pagination.

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    },
  • "meta": {
    }
}

Cancel order item

Cancellation is only possible in the purchase stage, in the idle or rejected state. Otherwise a 422 error is returned. In draft and created the item is still being processed: retry later.

Authorizations:
(private_tokenworkspace_id)
path Parameters
orderId
required
string

Internal or external order identifier

orderItemId
required
string

Internal or external order item identifier

Request Body schema: application/json
optional
object
object

Cancellation reason

type
required
string

Reason code

title
required
string

Reason title

text
string

Comment

Responses

Response Schema: application/json
status
required
string
required
object (Order)
required
object (OrderMeta)

Meta of a single-order response. Unlike the order list, it carries no pagination.

Request samples

Content type
application/json
{
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    },
  • "meta": {
    }
}

Order position tracking history information

Authorizations:
(private_tokenworkspace_id)
path Parameters
orderId
required
string

Internal or external order identifier

orderItemId
required
string

Internal or external order item identifier

Responses

Response Schema: application/json
status
required
string
required
object (OrderItemsTrckingHistory)
required
object (OrdersItemsMeta)

Response samples

Content type
application/json
{
  • "status": "success",
  • "data": {
    },
  • "meta": {
    }
}

Financial operations of an order item

Complete financial history of one order item, without pagination. Sorted by occurred_at, created_at and id ascending. Empty history returns data: []. Operations appear asynchronously.

Authorizations:
(private_tokenworkspace_id)
path Parameters
orderId
required
string

Internal order ID or order number

orderItemId
required
string

Internal item ID, provider_id or product.provider_id within this order

Responses

Response Schema: application/json
status
required
string
Value: "success"
required
object
required
Array of objects (FinancialOperation)

Response samples

Content type
application/json
Example
{
  • "status": "success",
  • "meta": { },
  • "data": [
    ]
}

classifiers

List of methods to work with the product property classifier.

Product property list

The product property taxonomy. Properties are hierarchical: parent_tag points at the parent property, and a property whose value_root_tag is set takes its values from the subtree under that tag.

Authorizations:
(private_tokenworkspace_id)
query Parameters
locale
string
Default: "en"
Enum: "en" "de" "he" "uk" "uz" "ru"

Language of name and description. Falls back to en when the requested locale is missing for a property.

locales
Array of strings
Items Enum: "en" "de" "he" "uk" "uz" "ru"

Additionally return name_<locale> and description_<locale> for each of the listed locales.

object

This parameter allows you to divide a large data set into smaller, more manageable pieces (pages).

Responses

Response Schema: application/json
status
required
string
required
Array of objects (Property)
required
object (Meta)

Response samples

Content type
application/json
{
  • "status": "string",
  • "data": [
    ],
  • "meta": {
    }
}

Product

id
required
string

Unique identifier

slug
required
string

URL-friendly identifier of the product

url
required
string

Link to the product on the merchant site

name
required
string

Product name

description
string or null

Product description

gender
required
string or null

Gender

note_tags
Array of strings

Fragrance notes, for products that have them

segment_tag
string or null

Price segment of the product

seasons
Array of strings

Seasons the product belongs to

required
object

Brand

required
Array of objects

Category tree of the product, from its own category upwards. The full path with titles and depth is in meta.breadcrumbs.

object

How the price of the product has moved

required
Array of objects

Product images

required
Array of objects (ProductVariant)

Available variants of this product

object

Generated content in English. Returned only when the request combines use_content: true with locales containing en.

object

Generated content in German. Returned only when the request combines use_content: true with locales containing de.

object

Generated content in Hebrew. Returned only when the request combines use_content: true with locales containing he.

object

Generated content in Ukrainian. Returned only when the request combines use_content: true with locales containing uk.

object

Generated content in Uzbek. Returned only when the request combines use_content: true with locales containing uz.

object

Generated content in Russian. Returned only when the request combines use_content: true with locales containing ru.

{
  • "id": "string",
  • "slug": "string",
  • "url": "string",
  • "name": "string",
  • "description": "string",
  • "gender": "string",
  • "note_tags": [
    ],
  • "segment_tag": "string",
  • "seasons": [
    ],
  • "brand": {
    },
  • "categories": [
    ],
  • "price_history": {
    },
  • "images": [
    ],
  • "variants": [
    ],
  • "content_en": {
    },
  • "content_de": {
    },
  • "content_he": {
    },
  • "content_uk": {
    },
  • "content_uz": {
    },
  • "content_ru": {
    }
}

Category

tag
required
string

Unique identifier

parent_tag
required
string or null

Parent tag identifier

name
required
string

Category name

title
required
string

Category title

{
  • "tag": "string",
  • "parent_tag": "string",
  • "name": "string",
  • "title": "string"
}

Brand

tag
required
string

Unique identifier

name
required
string

Category name

{
  • "tag": "string",
  • "name": "string"
}

Order

id
required
string
created_at
required
string
updated_at
required
string
number
required
string
status
required
object
required
Array of objects (OrderItem)
{
  • "id": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "number": "string",
  • "status": { },
  • "items": [
    ]
}

OrderItem

id
required
string
created_at
required
string
updated_at
required
string
store_expected_delivery_at
string or null <date>

Estimated delivery date to the intermediate warehouse, calculated from the median delivery time for the specific source

comment
string
object
quantity
required
integer
required
object (Status)

Order status

required
object (OrderItemProduct)
{
  • "id": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "store_expected_delivery_at": "2019-08-24",
  • "comment": "string",
  • "price_on_order_date": {
    },
  • "quantity": 0,
  • "status": {
    },
  • "product": {
    }
}

OrderItemProduct

provider_id
required
string
type
required
string
value
required
string
name
required
string
brand
required
string or null
sku
required
string or null
color
required
string or null
size
required
string or null
description
required
string or null
Array of objects

Product images

{
  • "provider_id": "string",
  • "type": "string",
  • "value": "string",
  • "name": "string",
  • "brand": "string",
  • "sku": "string",
  • "color": "string",
  • "size": "string",
  • "description": "string",
  • "images": [
    ]
}

Status

Possible values

Steps

An order item advances through the steps in this order:

draft -> created -> purchase -> acceptence -> package -> delivery -> handle

  • draft - Draft order
  • created - New order
  • payment - Awaiting payment
  • purchase - Purchase order
  • acceptence - Process of receiving goods at intermediate warehouse (note the spelling — this is the value the API accepts)
  • package - Outgoing order
  • delivery - Order delivery task to final recipient
  • handle - Order handed over to the recipient
  • cancelled - Order item cancelled
  • claim - Claim opened on the order item

Stages

  • idle - Waiting for action/info
  • started - Work in progress
  • finished - Step is finished successfully
  • rejected - Step if finished with an error
name
required
string

Status

stage
required
string

Stage

created_at
required
string

Datetime of transition to this stage or state

reason
string

Reason for error

{
  • "name": "string",
  • "stage": "string",
  • "created_at": "string",
  • "reason": "string"
}

Recipient

inn
string

Individual Tax Number (INN)

first_name
required
string

Name

last_name
required
string

Surname

middle_name
string

Patronymic Name

email
string

Contact email address

phone
required
string

Contact phone number. Formatting is stripped on save — separators, spaces and brackets are removed and the value is stored as bare digits, so +49 171 1234567 comes back as 491711234567. A leading 7/8 is normalised to +7.

What is left after stripping must be 10 to 12 digits. Longer numbers are rejected with 422 — a German mobile with an eight-digit subscriber part, such as +49 151 12345678, does not fit.

object

Identity passport info

{
  • "inn": "string",
  • "first_name": "string",
  • "last_name": "string",
  • "middle_name": "string",
  • "email": "string",
  • "phone": "+491711234567",
  • "passport": {
    }
}

DeliveryAddress

zip
required
string

Postal code

location
required
string

Full address

pickup_point_code
string

Code of the pickup point, when delivery is to one

{
  • "zip": "string",
  • "location": "string",
  • "pickup_point_code": "string"
}

Property

tag
required
string

Property identifier

parent_tag
string or null

Parent property tag, null for a root property

name
string

Name in the requested locale, falling back to English

description
string or null
object or null
value
any or null

Value of the property, set on the value nodes of the taxonomy

unit
string or null

Unit of measurement

value_root_tag
string or null

Tag of the subtree the allowed values of this property are taken from

cardinality
string or null

How many values may be assigned at once

target
string or null
category_tag
string or null

Category this property applies to

priority
number or null

Display order, ascending

{
  • "tag": "string",
  • "parent_tag": "string",
  • "name": "string",
  • "description": "string",
  • "image": {
    },
  • "value": null,
  • "unit": "string",
  • "value_root_tag": "string",
  • "cardinality": "string",
  • "target": "string",
  • "category_tag": "string",
  • "priority": 0
}