GraphQL Admin API reference

Autentifikace

Všechny GraphQL API requesty vyžadují autentifikaci pomocí validního access tokenu. Do hlavičky requestu je tedy potřeba vložit header X-Access-Token, jehož hodnotu si můžete vygenerovat v administraci e-shopu u administrátora.

Endpoint

GraphQL endpoint najdete na adrese: https://<domain>/admin/graphql/

Formát datumu

API používá datum ve formátu ISO 8601 (2022-02-01 08:00:00) a je tedy potřeba pracovat s tímto formátem.

Knihovna pro komunikaci s API

Formát dat editoru obsahu pro ContentEditorInput

WPJShop editor ukládá obsah v JSON formátu. Je to stromová struktura která vždy obsahuje seznam elementů (tzv. bloků) a případně vnořené bloky. Každý blok je definován svým typem (type), má globálně unikátní uuid identifikátor (id) a objekt který definuje nastavení daného bloku (settings).

Blok také může volitelně obsahovat seznam vnořených bloků (children). Tímto způsobem se bloky mohou do sebe zanořovat.

Ukázka základní struktury bloků:

[
  {
    "type": "image_map",
    "id": "394f4b86-8562-4fe4-8c6d-a08f474afd41",
    "settings": {
      "photo": {
        "id": 10935,
      }
    },
    "children": [
      {
        "type": "image_map_point",
        "id": "ec5f0c31-4df7-43e0-aedd-bd65b57afd16",
        "settings": {
          "position_x": 40.34,
          "position_y": 9.6,
        },
        "children": [
          {
            "type": "text",
            "id": "ac38bc31-6483-4a33-be4e-f4aebcd0984d",
            "settings": {
              "html": "<p>Bod!<\/p>"
            }
          }
        ]
      }
    ]
  }
]

Jednotlivé typy bloků a jejich nastavení se neustále rozšiřují, není možné spoléhat na konkrétní formát nastavení bloku. Většinou se pouze nové bloky/nastavení přidávají, jen málokdy dochází ke změnám ve struktuře nastavení bloku a nebo k jeho odebrání.

Některá data v nastavení bloku jsou překladatelná. Následuje seznam bloků a jejich překladatelných položek nastavení:

Typ bloku Význam Překladatelné nastavení
text Textový obsah html
heading Nadpis text
button Tlačítko text
image_button Obrázkové tlačítko title, text, button
image Obrázek caption, alt
video Video url

Queries

adminUser

Response

Returns an AdminUser

Example

Query
query adminUser {
  adminUser {
    id
    name
    login
    email
    privilege
    data
  }
}
Response
{
  "data": {
    "adminUser": {
      "id": 123,
      "name": "abc123",
      "login": "xyz789",
      "email": "abc123",
      "privilege": "abc123",
      "data": "xyz789"
    }
  }
}

adminUsers

Description

Vrací seznam administrátorů.

Response

Returns an AdminUserCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100

Example

Query
query adminUsers(
  $offset: Int,
  $limit: Int
) {
  adminUsers(
    offset: $offset,
    limit: $limit
  ) {
    items {
      ...AdminUserFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100}
Response
{
  "data": {
    "adminUsers": {
      "items": [AdminUser],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

article

Description

Načte článek podle ID.

Response

Returns an Article

Arguments
Name Description
id - Int!

Example

Query
query article($id: Int!) {
  article(id: $id) {
    id
    date
    title
    visible
    url
    seenCount
    photo {
      ...PhotoInterfaceFragment
    }
    annotation
    content {
      ...EditableContentFragment
    }
    tags {
      ...ArticleTagFragment
    }
    sections {
      ...ArticleSectionFragment
    }
    seo {
      ...SeoFragment
    }
  }
}
Variables
{"id": 987}
Response
{
  "data": {
    "article": {
      "id": 987,
      "date": "\"2022-02-01 08:00:00\"",
      "title": "abc123",
      "visible": false,
      "url": "xyz789",
      "seenCount": 123,
      "photo": PhotoInterface,
      "annotation": "abc123",
      "content": EditableContent,
      "tags": [ArticleTag],
      "sections": [ArticleSection],
      "seo": Seo
    }
  }
}

articles

Description

Seznam článků.

Response

Returns an ArticleCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - ArticleSortInput Default = null
filter - ArticleFilterInput Default = null

Example

Query
query articles(
  $offset: Int,
  $limit: Int,
  $sort: ArticleSortInput,
  $filter: ArticleFilterInput
) {
  articles(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...ArticleFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "articles": {
      "items": [Article],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

changes

Description

Seznam změněných objektů. Pro správné zpracování změn je nutné po každém zpracování dávky změn volat changesConfirm. Dokud changesConfirm není zavolán, uživatel opakovaně dostává stejné změny – nové se nezpřístupní.

Response

Returns [ChangeInterface!]!

Arguments
Name Description
limit - Int Default = 100

Example

Query
query changes($limit: Int) {
  changes(limit: $limit) {
    metadata {
      ...ChangeMetadataFragment
    }
  }
}
Variables
{"limit": 100}
Response
{"data": {"changes": [{"metadata": ChangeMetadata}]}}

checkCouponExists

Use discountCodeExists OR coupon method
Response

Returns a Coupon

Arguments
Name Description
coupon - String!

Example

Query
query checkCouponExists($coupon: String!) {
  checkCouponExists(coupon: $coupon) {
    id
    title
    code
  }
}
Variables
{"coupon": "abc123"}
Response
{
  "data": {
    "checkCouponExists": {
      "id": "abc123",
      "title": "xyz789",
      "code": "abc123"
    }
  }
}

configuration

Description

Konfigurace e-shopu.

Response

Returns a Configuration!

Example

Query
query configuration {
  configuration {
    orderStatuses {
      ...OrderStatusFragment
    }
    orderSources {
      ...OrderSourceFragment
    }
    deliveryTypes {
      ...DeliveryMethodFragment
    }
    paymentTypes {
      ...PaymentMethodFragment
    }
    deliveryTimes {
      ...DeliveryTimeFragment
    }
    dropshipmentTypes
  }
}
Response
{
  "data": {
    "configuration": {
      "orderStatuses": [OrderStatus],
      "orderSources": [OrderSource],
      "deliveryTypes": [DeliveryMethod],
      "paymentTypes": [PaymentMethod],
      "deliveryTimes": [DeliveryTime],
      "dropshipmentTypes": ["abc123"]
    }
  }
}

coupon

Description

Informace o dárkovém poukazu (generovaný kód).

Response

Returns a DiscountCoupon

Arguments
Name Description
code - String!

Example

Query
query coupon($code: String!) {
  coupon(code: $code) {
    id
    name
    code
    dateActivated
    dateFrom
    dateTo
    isUsed
    isUsable
  }
}
Variables
{"code": "xyz789"}
Response
{
  "data": {
    "coupon": {
      "id": 987,
      "name": "xyz789",
      "code": "xyz789",
      "dateActivated": "\"2022-02-01 08:00:00\"",
      "dateFrom": "\"2022-02-01 08:00:00\"",
      "dateTo": "\"2022-02-01 08:00:00\"",
      "isUsed": false,
      "isUsable": false
    }
  }
}

deliveries

Description

Seznam doprav.

Response

Returns a DeliveryCollection!

Example

Query
query deliveries {
  deliveries {
    items {
      ...DeliveryFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "deliveries": {
      "items": [Delivery],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

deliveryTypes

Description

Seznam způsobů doručení.

Response

Returns a DeliveryTypeCollection!

Arguments
Name Description
filter - DeliveryTypeFilterInput Default = null

Example

Query
query deliveryTypes($filter: DeliveryTypeFilterInput) {
  deliveryTypes(filter: $filter) {
    items {
      ...DeliveryTypeFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"filter": null}
Response
{
  "data": {
    "deliveryTypes": {
      "items": [DeliveryType],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

discountCodeExists

Description

Ověří, zda zadaný slevový kupón nebo dárkový poukaz existuje.

Response

Returns a Boolean!

Arguments
Name Description
code - String!

Example

Query
query discountCodeExists($code: String!) {
  discountCodeExists(code: $code)
}
Variables
{"code": "abc123"}
Response
{"data": {"discountCodeExists": true}}

dropshipment

Description

Načte dropshipment podle ID.

Response

Returns a Dropshipment

Arguments
Name Description
id - Int!

Example

Query
query dropshipment($id: Int!) {
  dropshipment(id: $id) {
    id
    type
    name
    active
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "dropshipment": {
      "id": 987,
      "type": "abc123",
      "name": "abc123",
      "active": false
    }
  }
}

dropshipments

Description

Seznam dropshipmentů.

Response

Returns a DropshipmentCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
filter - DropshipmentFilterInput Default = null

Example

Query
query dropshipments(
  $offset: Int,
  $limit: Int,
  $filter: DropshipmentFilterInput
) {
  dropshipments(
    offset: $offset,
    limit: $limit,
    filter: $filter
  ) {
    items {
      ...DropshipmentFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "filter": null}
Response
{
  "data": {
    "dropshipments": {
      "items": [Dropshipment],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

fragments

Description

Vrací seznam fragmentů.

Response

Returns a PageCollection!

Example

Query
query fragments {
  fragments {
    items {
      ...PageFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "fragments": {
      "items": [Page],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

labels

Description

Seznam štítků.

Response

Returns a LabelCollection!

Example

Query
query labels {
  labels {
    items {
      ...LabelFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "labels": {
      "items": [Label],
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}

order

Description

Načte objednávku podle zadaného ID.

Response

Returns an Order

Arguments
Name Description
id - Int!

Example

Query
query order($id: Int!) {
  order(id: $id) {
    id
    source {
      ...OrderSourceInfoFragment
    }
    dateCreated
    dateAccept
    dateHandle
    dateUpdated
    dateDue
    dateDelivered
    currency {
      ...CurrencyFragment
    }
    language {
      ...LanguageFragment
    }
    currencyRate
    code
    userId
    user {
      ...UserFragment
    }
    flags
    status {
      ...OrderStatusFragment
    }
    email
    cancelled
    isCancellable
    totalPrice {
      ...TotalPriceFragment
    }
    deliveryType {
      ...DeliveryTypeFragment
    }
    deliveryInfo {
      ...OrderDeliveryInfoFragment
    }
    priceLevel {
      ...PriceLevelFragment
    }
    invoiceAddress {
      ...AddressFragment
    }
    deliveryAddress {
      ...AddressFragment
    }
    packageId
    noteUser
    noteInvoice
    items {
      ...OrderItemFragment
    }
    isPaid
    paidPrice {
      ...TotalPriceFragment
    }
    remainingPayment {
      ...SimplePriceFragment
    }
    url
    paymentUrl
    bankAccount
    deliveryEmail
    invoice {
      ...OrderInvoiceFragment
    }
    history {
      ...OrderHistoryEntryFragment
    }
    balikobotData {
      ...OrderBalikobotDataFragment
    }
  }
}
Variables
{"id": 987}
Response
{
  "data": {
    "order": {
      "id": 953,
      "source": OrderSourceInfo,
      "dateCreated": "\"2022-02-01 08:00:00\"",
      "dateAccept": "\"2022-02-01 08:00:00\"",
      "dateHandle": "\"2022-02-01 08:00:00\"",
      "dateUpdated": "\"2022-02-01 08:00:00\"",
      "dateDue": "\"2022-02-01 08:00:00\"",
      "dateDelivered": "\"2022-02-01 08:00:00\"",
      "currency": Currency,
      "language": Language,
      "currencyRate": 1,
      "code": "2200953",
      "userId": 987,
      "user": User,
      "flags": [],
      "status": 1,
      "email": "wpj@wpj.cz",
      "cancelled": true,
      "isCancellable": false,
      "totalPrice": TotalPrice,
      "deliveryType": DeliveryType,
      "deliveryInfo": OrderDeliveryInfo,
      "priceLevel": PriceLevel,
      "invoiceAddress": Address,
      "deliveryAddress": Address,
      "packageId": "DR1104116859M",
      "noteUser": "abc123",
      "noteInvoice": "abc123",
      "items": [OrderItem],
      "isPaid": false,
      "paidPrice": TotalPrice,
      "remainingPayment": SimplePrice,
      "url": "xyz789",
      "paymentUrl": "abc123",
      "bankAccount": "xyz789",
      "deliveryEmail": "abc123",
      "invoice": OrderInvoice,
      "history": [OrderHistoryEntry],
      "balikobotData": OrderBalikobotData
    }
  }
}

orderPayment

Description

Vrací detaily platby objednávky podle ID.

Response

Returns an OrderPayment

Arguments
Name Description
paymentId - Int!

Example

Query
query orderPayment($paymentId: Int!) {
  orderPayment(paymentId: $paymentId) {
    id
    orderId
    price {
      ...PriceFragment
    }
    date
    status
    method
    type
    paymentMethod
  }
}
Variables
{"paymentId": 123}
Response
{
  "data": {
    "orderPayment": {
      "id": 987,
      "orderId": 987,
      "price": Price,
      "date": "\"2022-02-01 08:00:00\"",
      "status": "xyz789",
      "method": 987,
      "type": "xyz789",
      "paymentMethod": "xyz789"
    }
  }
}

orderPayments

Description

Vrací všechny platby podle ID nebo kódu objednávky.

Response

Returns an OrderPaymentCollection

Arguments
Name Description
filter - OrderPaymentFilterInput!

Example

Query
query orderPayments($filter: OrderPaymentFilterInput!) {
  orderPayments(filter: $filter) {
    items {
      ...OrderPaymentFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"filter": OrderPaymentFilterInput}
Response
{
  "data": {
    "orderPayments": {
      "items": [OrderPayment],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

orders

Description

Seznam objednávek.

Response

Returns an OrderCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - OrderSortInput Default = null
filter - OrderFilterInput Default = null

Example

Query
query orders(
  $offset: Int,
  $limit: Int,
  $sort: OrderSortInput,
  $filter: OrderFilterInput
) {
  orders(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...OrderFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "orders": {
      "items": [Order],
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}

page

Description

Vrací stránku podle ID.

Response

Returns a Page

Arguments
Name Description
id - Int!

Example

Query
query page($id: Int!) {
  page(id: $id) {
    id
    parentId
    type
    code
    name
    url
    content {
      ...EditableContentFragment
    }
  }
}
Variables
{"id": 987}
Response
{
  "data": {
    "page": {
      "id": 987,
      "parentId": 123,
      "type": "xyz789",
      "code": "abc123",
      "name": "xyz789",
      "url": "xyz789",
      "content": EditableContent
    }
  }
}

pages

Description

Vrací seznam stránek.

Response

Returns a PageCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - PageSortInput Default = null
filter - PageFilterInput Default = null

Example

Query
query pages(
  $offset: Int,
  $limit: Int,
  $sort: PageSortInput,
  $filter: PageFilterInput
) {
  pages(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...PageFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "pages": {
      "items": [Page],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

parameter

Description

Načte parametr podle ID.

Response

Returns a Parameter

Arguments
Name Description
id - Int!

Example

Query
query parameter($id: Int!) {
  parameter(id: $id) {
    id
    name
    visible
    type
    unit
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "parameter": {
      "id": 123,
      "name": "xyz789",
      "visible": true,
      "type": "LIST",
      "unit": "abc123"
    }
  }
}

parameterValues

Description

Hodnoty parametrů - od parametrů typu LIST. Tyto hodnoty mají ID a jsou překladatelné.

Response

Returns a ParameterValuesCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
filter - ParameterListFilterInput Default = null

Example

Query
query parameterValues(
  $offset: Int,
  $limit: Int,
  $filter: ParameterListFilterInput
) {
  parameterValues(
    offset: $offset,
    limit: $limit,
    filter: $filter
  ) {
    items {
      ...ParameterValueFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "filter": null}
Response
{
  "data": {
    "parameterValues": {
      "items": [ParameterValue],
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}

parameters

Description

Seznam parametrů.

Response

Returns a ParameterCollection!

Example

Query
query parameters {
  parameters {
    items {
      ...ParameterFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "parameters": {
      "items": [Parameter],
      "hasNextPage": true,
      "hasPreviousPage": true
    }
  }
}

payments

Description

Seznam plateb.

Response

Returns a PaymentCollection!

Example

Query
query payments {
  payments {
    items {
      ...PaymentFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "payments": {
      "items": [Payment],
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}

priceList

Description

Načte ceník podle ID.

Response

Returns a PriceList

Arguments
Name Description
id - Int!

Example

Query
query priceList($id: Int!) {
  priceList(id: $id) {
    id
    currency {
      ...CurrencyFragment
    }
    name
  }
}
Variables
{"id": 987}
Response
{
  "data": {
    "priceList": {
      "id": 123,
      "currency": Currency,
      "name": "abc123"
    }
  }
}

priceLists

Description

Seznam ceníků.

Response

Returns a PriceListCollection!

Example

Query
query priceLists {
  priceLists {
    items {
      ...PriceListFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "priceLists": {
      "items": [PriceList],
      "hasNextPage": true,
      "hasPreviousPage": true
    }
  }
}

producer

Description

Výrobce podle ID.

Response

Returns a Producer

Arguments
Name Description
id - Int!

Example

Query
query producer($id: Int!) {
  producer(id: $id) {
    id
    name
    web
    active
    photo {
      ...PhotoInterfaceFragment
    }
    description {
      ...EditableContentFragment
    }
    companyGPSR {
      ...GPSRCompanyFragment
    }
    importCompanyGPSR {
      ...GPSRCompanyFragment
    }
  }
}
Variables
{"id": 987}
Response
{
  "data": {
    "producer": {
      "id": 123,
      "name": "abc123",
      "web": "abc123",
      "active": true,
      "photo": PhotoInterface,
      "description": EditableContent,
      "companyGPSR": GPSRCompany,
      "importCompanyGPSR": GPSRCompany
    }
  }
}

producers

Description

Seznam výrobců.

Response

Returns a ProducerCollection!

Example

Query
query producers {
  producers {
    items {
      ...ProducerFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "producers": {
      "items": [Producer],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

product

Description

Načte produkt podle zadaného ID.

Response

Returns a Product

Arguments
Name Description
id - Int!

Example

Query
query product($id: Int!) {
  product(id: $id) {
    id
    variationId
    url
    code
    ean
    eanRaw
    inStore
    inStoreSuppliers
    stores {
      ...StoreItemFragment
    }
    title
    variationTitle
    description
    longDescription
    additionalDescription
    descriptionPlus {
      ...EditableContentFragment
    }
    discount
    producer {
      ...ProducerFragment
    }
    price {
      ...PriceFragment
    }
    priceWithoutDiscount {
      ...PriceFragment
    }
    priceBuy {
      ...PriceFragment
    }
    visible
    visibility
    weight
    width
    height
    depth
    seo {
      ...SeoFragment
    }
    unit {
      ...ProductUnitFragment
    }
    deliveryTime {
      ...DeliveryTimeFragment
    }
    links {
      ...ProductLinkFragment
    }
    relatedProducts {
      ...ProductFragment
    }
    collectionProducts {
      ...ProductFragment
    }
    parameters {
      ...ProductParameterFragment
    }
    variations {
      ...VariationFragment
    }
    priceLists {
      ...ProductPriceListFragment
    }
    labels {
      ...LabelFragment
    }
    sections {
      ...SectionFragment
    }
    photos {
      ...ProductPhotoFragment
    }
    bonusPoints
    productBatches {
      ...ProductBatchFragment
    }
    measureUnit {
      ...ProductUnitFragment
    }
    convertors {
      ...ProductConvertorFragment
    }
    productTemplates {
      ...ProductTemplateFragment
    }
    photo {
      ...ProductPhotoFragment
    }
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "product": {
      "id": 100,
      "variationId": 987,
      "url": "xyz789",
      "code": "X100",
      "ean": "0000123456789",
      "eanRaw": "abc123",
      "inStore": 50,
      "inStoreSuppliers": 987.65,
      "stores": [StoreItem],
      "title": "Tepláky WPJ",
      "variationTitle": "xyz789",
      "description": "Tepláky WPJ",
      "longDescription": "<p>Tepláky WPJ</p>",
      "additionalDescription": "xyz789",
      "descriptionPlus": EditableContent,
      "discount": 10,
      "producer": Producer,
      "price": Price,
      "priceWithoutDiscount": Price,
      "priceBuy": Price,
      "visible": true,
      "visibility": "VISIBLE",
      "weight": 0.2,
      "width": 123.45,
      "height": 123.45,
      "depth": 123.45,
      "seo": Seo,
      "unit": ProductUnit,
      "deliveryTime": DeliveryTime,
      "links": [ProductLink],
      "relatedProducts": [Product],
      "collectionProducts": [Product],
      "parameters": [ProductParameter],
      "variations": [Variation],
      "priceLists": [ProductPriceList],
      "labels": [Label],
      "sections": [Section],
      "photos": [ProductPhoto],
      "bonusPoints": 123.45,
      "productBatches": [ProductBatch],
      "measureUnit": [ProductUnit],
      "convertors": [ProductConvertor],
      "productTemplates": [ProductTemplate],
      "photo": ProductPhoto
    }
  }
}

productUnit

Description

Měrná jednotka.

Response

Returns a ProductUnit

Arguments
Name Description
id - Int!

Example

Query
query productUnit($id: Int!) {
  productUnit(id: $id) {
    id
    name
    adminName
    longName
    recalculateTo
    measureQuantity
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "productUnit": {
      "id": 123,
      "name": "xyz789",
      "adminName": "abc123",
      "longName": "xyz789",
      "recalculateTo": 987.65,
      "measureQuantity": 987.65
    }
  }
}

productUnits

Description

Seznam měrných jednotek.

Response

Returns a ProductUnitCollection!

Example

Query
query productUnits {
  productUnits {
    items {
      ...ProductUnitFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "productUnits": {
      "items": [ProductUnit],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

products

Description

Seznam produktů.

Response

Returns a ProductCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - ProductSortInput Default = null
filter - ProductFilterInput Default = null

Example

Query
query products(
  $offset: Int,
  $limit: Int,
  $sort: ProductSortInput,
  $filter: ProductFilterInput
) {
  products(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...ProductFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "products": {
      "items": [Product],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

purchaseCalculate

Description

Vrátí informace o nákupu - ceny položek, slevy, výslednou cenu. ..

Response

Returns a PurchaseState

Arguments
Name Description
input - PurchaseCalculateInput!

Example

Query
query purchaseCalculate($input: PurchaseCalculateInput!) {
  purchaseCalculate(input: $input) {
    products {
      ...ProductPurchaseItemFragment
    }
    discounts {
      ... on DiscountPurchaseItem {
        ...DiscountPurchaseItemFragment
      }
      ... on ProductPurchaseItem {
        ...ProductPurchaseItemFragment
      }
    }
    activeDiscountCodes {
      ...DiscountCodeFragment
    }
    totalPrice {
      ...TotalPriceFragment
    }
    totalPriceDiscounts {
      ...TotalPriceFragment
    }
  }
}
Variables
{"input": PurchaseCalculateInput}
Response
{
  "data": {
    "purchaseCalculate": {
      "products": [ProductPurchaseItem],
      "discounts": [DiscountPurchaseItem],
      "activeDiscountCodes": [DiscountCode],
      "totalPrice": TotalPrice,
      "totalPriceDiscounts": TotalPrice
    }
  }
}

sale

Description

Vrací prodejku podle ID.

Response

Returns a Sale

Arguments
Name Description
id - Int!

Example

Query
query sale($id: Int!) {
  sale(id: $id) {
    id
    code
    currency {
      ...CurrencyFragment
    }
    language {
      ...LanguageFragment
    }
    dateCreated
    user {
      ...UserFragment
    }
    deliveryType {
      ...DeliveryTypeFragment
    }
    note
    totalPrice {
      ...TotalPriceFragment
    }
    data
    items {
      ...SaleItemFragment
    }
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "sale": {
      "id": 123,
      "code": "xyz789",
      "currency": Currency,
      "language": Language,
      "dateCreated": "\"2022-02-01 08:00:00\"",
      "user": User,
      "deliveryType": DeliveryType,
      "note": "xyz789",
      "totalPrice": TotalPrice,
      "data": "abc123",
      "items": [SaleItem]
    }
  }
}

sales

Description

Vrací seznam prodejek.

Response

Returns a SaleCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - SaleSortInput Default = null
filter - SaleFilterInput Default = null

Example

Query
query sales(
  $offset: Int,
  $limit: Int,
  $sort: SaleSortInput,
  $filter: SaleFilterInput
) {
  sales(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...SaleFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "sales": {
      "items": [Sale],
      "hasNextPage": true,
      "hasPreviousPage": true
    }
  }
}

section

Description

Načte sekci podle ID.

Response

Returns a Section

Arguments
Name Description
id - Int!

Example

Query
query section($id: Int!) {
  section(id: $id) {
    id
    name
    nameShort
    behaviour
    showInSearch
    visible
    visibility
    url
    photo {
      ...ProductPhotoFragment
    }
    hasChildren
    isVirtual
    parent {
      ...SectionFragment
    }
    parents {
      ...SectionFragment
    }
    children {
      ...SectionFragment
    }
    description {
      ...EditableContentFragment
    }
    seo {
      ...SeoFragment
    }
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "section": {
      "id": 123,
      "name": "abc123",
      "nameShort": "xyz789",
      "behaviour": "NOT_SHOW_PRODUCTS_FROM_SUBSECTIONS",
      "showInSearch": false,
      "visible": false,
      "visibility": "VISIBLE",
      "url": "abc123",
      "photo": ProductPhoto,
      "hasChildren": true,
      "isVirtual": true,
      "parent": Section,
      "parents": [Section],
      "children": [Section],
      "description": EditableContent,
      "seo": Seo
    }
  }
}

sections

Description

Načte sekce ve stromové struktuře.

Response

Returns [Section!]!

Arguments
Name Description
rootId - Int Default = null
filter - SectionFilterInput Default = null

Example

Query
query sections(
  $rootId: Int,
  $filter: SectionFilterInput
) {
  sections(
    rootId: $rootId,
    filter: $filter
  ) {
    id
    name
    nameShort
    behaviour
    showInSearch
    visible
    visibility
    url
    photo {
      ...ProductPhotoFragment
    }
    hasChildren
    isVirtual
    parent {
      ...SectionFragment
    }
    parents {
      ...SectionFragment
    }
    children {
      ...SectionFragment
    }
    description {
      ...EditableContentFragment
    }
    seo {
      ...SeoFragment
    }
  }
}
Variables
{"rootId": null, "filter": null}
Response
{
  "data": {
    "sections": [
      {
        "id": 987,
        "name": "xyz789",
        "nameShort": "abc123",
        "behaviour": "NOT_SHOW_PRODUCTS_FROM_SUBSECTIONS",
        "showInSearch": true,
        "visible": false,
        "visibility": "VISIBLE",
        "url": "abc123",
        "photo": ProductPhoto,
        "hasChildren": true,
        "isVirtual": false,
        "parent": Section,
        "parents": [Section],
        "children": [Section],
        "description": EditableContent,
        "seo": Seo
      }
    ]
  }
}

sectionsList

Description

Načte sekce v listové struktuře.

Response

Returns a SectionCollection!

Example

Query
query sectionsList {
  sectionsList {
    items {
      ...SectionFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "sectionsList": {
      "items": [Section],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

seller

Description

Načte prodejnu podle ID.

Response

Returns a Seller

Arguments
Name Description
id - Int!

Example

Query
query seller($id: Int!) {
  seller(id: $id) {
    id
    visible
    latitude
    longitude
    store {
      ...StoreFragment
    }
    name
    type
    typeName
    email
    street
    number
    zip
    city
    phone
    country {
      ...CountryFragment
    }
    description
    photos {
      ...PhotoInterfaceFragment
    }
    flags {
      ...SellerFlagFragment
    }
    isOrderingAllowed
    data
    content {
      ...EditableContentFragment
    }
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "seller": {
      "id": 987,
      "visible": false,
      "latitude": 123.45,
      "longitude": 987.65,
      "store": Store,
      "name": "abc123",
      "type": "xyz789",
      "typeName": "xyz789",
      "email": "abc123",
      "street": "xyz789",
      "number": "xyz789",
      "zip": "abc123",
      "city": "abc123",
      "phone": "xyz789",
      "country": Country,
      "description": "abc123",
      "photos": [PhotoInterface],
      "flags": [SellerFlag],
      "isOrderingAllowed": true,
      "data": "abc123",
      "content": EditableContent
    }
  }
}

sellers

Description

Seznam prodejen.

Response

Returns a SellerCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 1000

Example

Query
query sellers(
  $offset: Int,
  $limit: Int
) {
  sellers(
    offset: $offset,
    limit: $limit
  ) {
    items {
      ...SellerFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 1000}
Response
{
  "data": {
    "sellers": {
      "items": [Seller],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

store

Description

Načte sklad podle ID.

Response

Returns a Store

Arguments
Name Description
id - Int!

Example

Query
query store($id: Int!) {
  store(id: $id) {
    id
    name
    type
    visible
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "store": {
      "id": 123,
      "name": "abc123",
      "type": "MAIN_STORE",
      "visible": false
    }
  }
}

stores

Description

Seznam skladů.

Response

Returns a StoreCollection!

Example

Query
query stores {
  stores {
    items {
      ...StoreFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "stores": {
      "items": [Store],
      "hasNextPage": true,
      "hasPreviousPage": true
    }
  }
}

systemPage

Description

Vrací systémovou stránku podle ID.

Response

Returns a SystemPage

Arguments
Name Description
id - Int!

Example

Query
query systemPage($id: Int!) {
  systemPage(id: $id) {
    id
    type
    code
    name
    urlL
    content {
      ...EditableContentFragment
    }
  }
}
Variables
{"id": 987}
Response
{
  "data": {
    "systemPage": {
      "id": 987,
      "type": "abc123",
      "code": "abc123",
      "name": "abc123",
      "urlL": "abc123",
      "content": EditableContent
    }
  }
}

systemPages

Description

Vrací seznam systémových stránek.

Response

Returns a SystemPageCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - SystemPageSortInput Default = null
filter - SystemPageFilterInput Default = null

Example

Query
query systemPages(
  $offset: Int,
  $limit: Int,
  $sort: SystemPageSortInput,
  $filter: SystemPageFilterInput
) {
  systemPages(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...PageFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "systemPages": {
      "items": [Page],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

template

Description

Vrací šablonu podle ID.

Response

Returns a Template

Arguments
Name Description
id - Int!

Example

Query
query template($id: Int!) {
  template(id: $id) {
    id
    categoryId
    position
    name
    visible
    data
    content {
      ...EditableContentFragment
    }
  }
}
Variables
{"id": 123}
Response
{
  "data": {
    "template": {
      "id": 123,
      "categoryId": 987,
      "position": 987,
      "name": "abc123",
      "visible": true,
      "data": "xyz789",
      "content": EditableContent
    }
  }
}

templates

Description

Vrací seznam šablon.

Response

Returns a TemplateCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
sort - TemplateSortInput Default = null
filter - TemplateFilterInput Default = null

Example

Query
query templates(
  $offset: Int,
  $limit: Int,
  $sort: TemplateSortInput,
  $filter: TemplateFilterInput
) {
  templates(
    offset: $offset,
    limit: $limit,
    sort: $sort,
    filter: $filter
  ) {
    items {
      ...TemplateFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "sort": null, "filter": null}
Response
{
  "data": {
    "templates": {
      "items": [Template],
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}

user

Response

Returns a User

Arguments
Name Description
id - Int Default = null
email - String Default = null

Example

Query
query user(
  $id: Int,
  $email: String
) {
  user(
    id: $id,
    email: $email
  ) {
    invoiceAddress {
      ...AddressFragment
    }
    deliveryAddress {
      ...AddressFragment
    }
    invoiceDetails {
      ...AddressFragment
    }
    deliveryDetails {
      ...AddressFragment
    }
    gender
    isActive
    newsletterInfo {
      ...UserNewsletterFragment
    }
    dateRegistered
    dateUpdated
    dateLogged
    note
    priceList {
      ...PriceListFragment
    }
    bonusPoints
    dateLastOrder
    priceLevel {
      ...PriceLevelFragment
    }
    birthdate
    userGroups {
      ...UserGroupFragment
    }
    coupons {
      ...DiscountCouponFragment
    }
    newsletter
    subscribeDate
    unsubscribeDate
    registrationDate
    updateDate
    loggedDate
    figure
    id
    email
    name
    surname
    userName
    isB2B
  }
}
Variables
{"id": null, "email": null}
Response
{
  "data": {
    "user": {
      "invoiceAddress": Address,
      "deliveryAddress": Address,
      "invoiceDetails": Address,
      "deliveryDetails": Address,
      "gender": "GENDER_MALE",
      "isActive": false,
      "newsletterInfo": UserNewsletter,
      "dateRegistered": "\"2022-02-01 08:00:00\"",
      "dateUpdated": "\"2022-02-01 08:00:00\"",
      "dateLogged": "\"2022-02-01 08:00:00\"",
      "note": "xyz789",
      "priceList": PriceList,
      "bonusPoints": 123,
      "dateLastOrder": "\"2022-02-01 08:00:00\"",
      "priceLevel": PriceLevel,
      "birthdate": "\"2022-02-01 08:00:00\"",
      "userGroups": [UserGroup],
      "coupons": [DiscountCoupon],
      "newsletter": "xyz789",
      "subscribeDate": "xyz789",
      "unsubscribeDate": "xyz789",
      "registrationDate": "abc123",
      "updateDate": "abc123",
      "loggedDate": "xyz789",
      "figure": "abc123",
      "id": 123,
      "email": "xyz789",
      "name": "abc123",
      "surname": "xyz789",
      "userName": "abc123",
      "isB2B": false
    }
  }
}

users

Description

Seznam uživatelů.

Response

Returns a UserCollection!

Arguments
Name Description
offset - Int Default = 0
limit - Int Default = 100
userSort - UserSortInput Default = null
userFilter - UserFilterInput Default = null

Example

Query
query users(
  $offset: Int,
  $limit: Int,
  $userSort: UserSortInput,
  $userFilter: UserFilterInput
) {
  users(
    offset: $offset,
    limit: $limit,
    userSort: $userSort,
    userFilter: $userFilter
  ) {
    items {
      ...UserFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 0, "limit": 100, "userSort": null, "userFilter": null}
Response
{
  "data": {
    "users": {
      "items": [User],
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}

variationLabelValues

Description

Vrací seznam hodnot variant.

Response

Returns a VariationValueCollection

Arguments
Name Description
offset - Int!
limit - Int!
filter - VariationValueFilterInput Default = null

Example

Query
query variationLabelValues(
  $offset: Int!,
  $limit: Int!,
  $filter: VariationValueFilterInput
) {
  variationLabelValues(
    offset: $offset,
    limit: $limit,
    filter: $filter
  ) {
    items {
      ...VariationValueFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Variables
{"offset": 987, "limit": 123, "filter": null}
Response
{
  "data": {
    "variationLabelValues": {
      "items": [VariationValue],
      "hasNextPage": true,
      "hasPreviousPage": false
    }
  }
}

variationLabels

Description

Vrací seznam jmenovek variant.

Response

Returns a VariationLabelCollection

Example

Query
query variationLabels {
  variationLabels {
    items {
      ...VariationLabelFragment
    }
    hasNextPage
    hasPreviousPage
  }
}
Response
{
  "data": {
    "variationLabels": {
      "items": [VariationLabel],
      "hasNextPage": false,
      "hasPreviousPage": true
    }
  }
}

Mutations

articleTranslate

Description

Aktualizuje překlad článku.

Response

Returns an ArticleTranslationMutateResponse!

Arguments
Name Description
input - ArticleTranslationInput!

Example

Query
mutation articleTranslate($input: ArticleTranslationInput!) {
  articleTranslate(input: $input) {
    result
  }
}
Variables
{"input": ArticleTranslationInput}
Response
{"data": {"articleTranslate": {"result": true}}}

articleTranslateBulkUpdate

Description

Hromadně aktualizuje hodnoty překladů u článků (doporučeno při aktualizaci více článků najednou).

Response

Returns a MutateResponseInterface!

Arguments
Name Description
input - [ArticleTranslationInput!]!

Example

Query
mutation articleTranslateBulkUpdate($input: [ArticleTranslationInput!]!) {
  articleTranslateBulkUpdate(input: $input) {
    result
  }
}
Variables
{"input": [ArticleTranslationInput]}
Response
{"data": {"articleTranslateBulkUpdate": {"result": true}}}

changesConfirm

Description

Potvrdí zpracování všech změn, které mají ID menší než specifikované ID. Volání changesConfirm stačí provádět vždy po zpracování dávky změn - např. načtu 100 změn, zpracuji je a na konci zavolám changesConfirm s nejvyšším ID zpracované změny.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
changeId - Int!

Example

Query
mutation changesConfirm($changeId: Int!) {
  changesConfirm(changeId: $changeId) {
    result
  }
}
Variables
{"changeId": 123}
Response
{"data": {"changesConfirm": {"result": true}}}

changesReset

Description

Nastaví změny zpět k danému datumu a času – např. při potřebě opětovné synchronizace.

Response

Returns a ChangesResetMutateResponse!

Arguments
Name Description
date - DateTime!

Example

Query
mutation changesReset($date: DateTime!) {
  changesReset(date: $date) {
    result
    message
  }
}
Variables
{"date": "\"2022-02-01 08:00:00\""}
Response
{
  "data": {
    "changesReset": {
      "result": false,
      "message": "xyz789"
    }
  }
}

couponReactivate

Description

Znovu aktivuje už použitý generovaný kód.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
code - String!

Example

Query
mutation couponReactivate($code: String!) {
  couponReactivate(code: $code) {
    result
  }
}
Variables
{"code": "xyz789"}
Response
{"data": {"couponReactivate": {"result": false}}}

couponUse

Description

Nastaví generovaný kód jako použitý.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
code - String!

Example

Query
mutation couponUse($code: String!) {
  couponUse(code: $code) {
    result
  }
}
Variables
{"code": "xyz789"}
Response
{"data": {"couponUse": {"result": true}}}

dropshipmentCreateOrUpdate

Description

Vytvoření/aktualizace dropshipmentu.

Response

Returns a DropshipmentMutateResponse!

Arguments
Name Description
input - DropshipmentInput!

Example

Query
mutation dropshipmentCreateOrUpdate($input: DropshipmentInput!) {
  dropshipmentCreateOrUpdate(input: $input) {
    result
    dropshipment {
      ...DropshipmentFragment
    }
  }
}
Variables
{"input": DropshipmentInput}
Response
{
  "data": {
    "dropshipmentCreateOrUpdate": {
      "result": true,
      "dropshipment": Dropshipment
    }
  }
}

editableContentTranslate

Description

Provede aktualizaci překladu editovatelného obsahu.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
input - EditableContentTranslationInput!

Example

Query
mutation editableContentTranslate($input: EditableContentTranslationInput!) {
  editableContentTranslate(input: $input) {
    result
  }
}
Variables
{"input": EditableContentTranslationInput}
Response
{"data": {"editableContentTranslate": {"result": false}}}

editableContentUpdate

Description

Provede aktualizaci editovatelného obsahu.

Response

Returns an EditableContentMutateResponse!

Arguments
Name Description
input - EditableContentInput!

Example

Query
mutation editableContentUpdate($input: EditableContentInput!) {
  editableContentUpdate(input: $input) {
    result
    editableContent {
      ...EditableContentFragment
    }
  }
}
Variables
{"input": EditableContentInput}
Response
{
  "data": {
    "editableContentUpdate": {
      "result": false,
      "editableContent": EditableContent
    }
  }
}

multisetCategoryCreateOrUpdate

Description

Vytvoření/úprava kategorie multisetu.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
input - MultisetCategoryInput!

Example

Query
mutation multisetCategoryCreateOrUpdate($input: MultisetCategoryInput!) {
  multisetCategoryCreateOrUpdate(input: $input) {
    result
  }
}
Variables
{"input": MultisetCategoryInput}
Response
{"data": {"multisetCategoryCreateOrUpdate": {"result": false}}}

multisetDelete

Description

Smazání multisetu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - MultisetInput!

Example

Query
mutation multisetDelete($input: MultisetInput!) {
  multisetDelete(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": MultisetInput}
Response
{
  "data": {
    "multisetDelete": {"result": true, "product": Product}
  }
}

orderCreate

Description

Vytvoří objednávku

Response

Returns an OrderMutateResponse!

Arguments
Name Description
orderCreateInput - OrderCreateInput!

Example

Query
mutation orderCreate($orderCreateInput: OrderCreateInput!) {
  orderCreate(orderCreateInput: $orderCreateInput) {
    result
    order {
      ...OrderFragment
    }
  }
}
Variables
{"orderCreateInput": OrderCreateInput}
Response
{
  "data": {
    "orderCreate": {"result": false, "order": Order}
  }
}

orderPaymentCreate

Description

Vloží platbu k objednávce.

Response

Returns an OrderPaymentMutateResponse!

Arguments
Name Description
orderPayment - OrderPaymentInput!

Example

Query
mutation orderPaymentCreate($orderPayment: OrderPaymentInput!) {
  orderPaymentCreate(orderPayment: $orderPayment) {
    result
    orderPayment {
      ...OrderPaymentFragment
    }
  }
}
Variables
{"orderPayment": OrderPaymentInput}
Response
{
  "data": {
    "orderPaymentCreate": {
      "result": false,
      "orderPayment": OrderPayment
    }
  }
}

orderStorno

Description

Stornuje objednávku.

Response

Returns an OrderMutateResponse!

Arguments
Name Description
input - OrderStornoInput!

Example

Query
mutation orderStorno($input: OrderStornoInput!) {
  orderStorno(input: $input) {
    result
    order {
      ...OrderFragment
    }
  }
}
Variables
{"input": OrderStornoInput}
Response
{
  "data": {
    "orderStorno": {"result": true, "order": Order}
  }
}

orderUpdate

Description

Aktualizuje objednávku.

Response

Returns an OrderMutateResponse!

Arguments
Name Description
input - OrderUpdateInput!

Example

Query
mutation orderUpdate($input: OrderUpdateInput!) {
  orderUpdate(input: $input) {
    result
    order {
      ...OrderFragment
    }
  }
}
Variables
{"input": OrderUpdateInput}
Response
{
  "data": {
    "orderUpdate": {"result": true, "order": Order}
  }
}

parameterCreate

Description

Vytvoří parametr.

Response

Returns a Parameter!

Arguments
Name Description
input - ParameterCreateInput!

Example

Query
mutation parameterCreate($input: ParameterCreateInput!) {
  parameterCreate(input: $input) {
    id
    name
    visible
    type
    unit
  }
}
Variables
{"input": ParameterCreateInput}
Response
{
  "data": {
    "parameterCreate": {
      "id": 123,
      "name": "xyz789",
      "visible": true,
      "type": "LIST",
      "unit": "abc123"
    }
  }
}

parameterTranslate

Description

Aktualizuje překlad parametru.

Arguments
Name Description
input - ParameterTranslationInput!

Example

Query
mutation parameterTranslate($input: ParameterTranslationInput!) {
  parameterTranslate(input: $input) {
    result
  }
}
Variables
{"input": ParameterTranslationInput}
Response
{"data": {"parameterTranslate": {"result": true}}}

parameterValuesTranslate

Description

Aktualizace překladu seznamové hodnoty parametru.

Arguments
Name Description
input - ParameterValuesTranslationInput!

Example

Query
mutation parameterValuesTranslate($input: ParameterValuesTranslationInput!) {
  parameterValuesTranslate(input: $input) {
    result
  }
}
Variables
{"input": ParameterValuesTranslationInput}
Response
{"data": {"parameterValuesTranslate": {"result": true}}}

priceListCreate

Description

Vytvoří ceník.

Response

Returns a PriceListMutateResponse!

Arguments
Name Description
input - PriceListInput!

Example

Query
mutation priceListCreate($input: PriceListInput!) {
  priceListCreate(input: $input) {
    result
    priceList {
      ...PriceListFragment
    }
  }
}
Variables
{"input": PriceListInput}
Response
{
  "data": {
    "priceListCreate": {
      "result": true,
      "priceList": PriceList
    }
  }
}

producerCreateOrUpdate

Description

Vytvoří / aktualizuje výrobce.

Response

Returns a ProducerMutateResponse!

Arguments
Name Description
input - ProducerInput!

Example

Query
mutation producerCreateOrUpdate($input: ProducerInput!) {
  producerCreateOrUpdate(input: $input) {
    result
    producer {
      ...ProducerFragment
    }
  }
}
Variables
{"input": ProducerInput}
Response
{
  "data": {
    "producerCreateOrUpdate": {
      "result": false,
      "producer": Producer
    }
  }
}

productCollectionUpdate

Description

Aktualizace kolekce u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - CollectionProductsInput!

Example

Query
mutation productCollectionUpdate($input: CollectionProductsInput!) {
  productCollectionUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": CollectionProductsInput}
Response
{
  "data": {
    "productCollectionUpdate": {
      "result": true,
      "product": Product
    }
  }
}

productCreateOrUpdate

Description

Vytvoří nebo aktualizuje produkt.

Response

Returns a ProductMutateResponseInterface

Arguments
Name Description
product - ProductModifyInput

Example

Query
mutation productCreateOrUpdate($product: ProductModifyInput) {
  productCreateOrUpdate(product: $product) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"product": ProductModifyInput}
Response
{
  "data": {
    "productCreateOrUpdate": {
      "result": true,
      "product": Product
    }
  }
}

productDelete

Description

Smazání produktu.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
productId - Int!

Example

Query
mutation productDelete($productId: Int!) {
  productDelete(productId: $productId) {
    result
  }
}
Variables
{"productId": 987}
Response
{"data": {"productDelete": {"result": true}}}

productLinkUpdate

Description

Aktualizace odkazů u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - ProductLinkInput!

Example

Query
mutation productLinkUpdate($input: ProductLinkInput!) {
  productLinkUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": ProductLinkInput}
Response
{
  "data": {
    "productLinkUpdate": {
      "result": false,
      "product": Product
    }
  }
}

productMultisetCreateOrUpdate

Description

Vytvoření/úprava multisetu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - MultisetInput!

Example

Query
mutation productMultisetCreateOrUpdate($input: MultisetInput!) {
  productMultisetCreateOrUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": MultisetInput}
Response
{
  "data": {
    "productMultisetCreateOrUpdate": {
      "result": true,
      "product": Product
    }
  }
}

productParameterBulkUpdate

Description

Hromadně aktualizuje hodnoty parametru u produktu (doporučeno při aktualizaci více parametrů najednou).

Response

Returns a MutateResponseInterface!

Arguments
Name Description
input - [ProductParameterInput!]!

Example

Query
mutation productParameterBulkUpdate($input: [ProductParameterInput!]!) {
  productParameterBulkUpdate(input: $input) {
    result
  }
}
Variables
{"input": [ProductParameterInput]}
Response
{"data": {"productParameterBulkUpdate": {"result": false}}}

productParameterUpdate

Description

Aktualizuje hodnoty parametru u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - ProductParameterInput!

Example

Query
mutation productParameterUpdate($input: ProductParameterInput!) {
  productParameterUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": ProductParameterInput}
Response
{
  "data": {
    "productParameterUpdate": {
      "result": true,
      "product": Product
    }
  }
}

productPriceListBulkUpdate

Description

Hromadně aktualizuje ceny produktu (doporučeno při aktualizaci více cen najednou).

Response

Returns a MutateResponseInterface!

Arguments
Name Description
input - [ProductPriceListInput!]!

Example

Query
mutation productPriceListBulkUpdate($input: [ProductPriceListInput!]!) {
  productPriceListBulkUpdate(input: $input) {
    result
  }
}
Variables
{"input": [ProductPriceListInput]}
Response
{"data": {"productPriceListBulkUpdate": {"result": true}}}

productPriceListUpdate

Description

Aktualizuje ceny v ceníku u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - ProductPriceListInput!

Example

Query
mutation productPriceListUpdate($input: ProductPriceListInput!) {
  productPriceListUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": ProductPriceListInput}
Response
{
  "data": {
    "productPriceListUpdate": {
      "result": false,
      "product": Product
    }
  }
}

productRelatedUpdate

Description

Aktualizace souvisejícího zboží u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - RelatedProductsInput!

Example

Query
mutation productRelatedUpdate($input: RelatedProductsInput!) {
  productRelatedUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": RelatedProductsInput}
Response
{
  "data": {
    "productRelatedUpdate": {
      "result": false,
      "product": Product
    }
  }
}

productSetUpdate

Description

Vytvoření/úprava setové položky u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - ProductSetInput!

Example

Query
mutation productSetUpdate($input: ProductSetInput!) {
  productSetUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": ProductSetInput}
Response
{
  "data": {
    "productSetUpdate": {
      "result": true,
      "product": Product
    }
  }
}

productStoreBulkUpdate

Description

Hromadně aktualizuje sklad produktů (doporučeno při aktualizaci více položek najednou).

Response

Returns a MutateResponseInterface!

Arguments
Name Description
input - [ProductStoreInput!]!

Example

Query
mutation productStoreBulkUpdate($input: [ProductStoreInput!]!) {
  productStoreBulkUpdate(input: $input) {
    result
  }
}
Variables
{"input": [ProductStoreInput]}
Response
{"data": {"productStoreBulkUpdate": {"result": false}}}

productStoreUpdate

Description

Aktualizuje stav skladu u produktu.

Response

Returns a ProductMutateResponseInterface!

Arguments
Name Description
input - ProductStoreInput!

Example

Query
mutation productStoreUpdate($input: ProductStoreInput!) {
  productStoreUpdate(input: $input) {
    result
    product {
      ...ProductFragment
    }
  }
}
Variables
{"input": ProductStoreInput}
Response
{
  "data": {
    "productStoreUpdate": {
      "result": false,
      "product": Product
    }
  }
}

productTranslate

Description

Aktualizuje překlady produktu.

Arguments
Name Description
input - ProductTranslationInput!

Example

Query
mutation productTranslate($input: ProductTranslationInput!) {
  productTranslate(input: $input) {
    result
  }
}
Variables
{"input": ProductTranslationInput}
Response
{"data": {"productTranslate": {"result": true}}}

productUnitCreateOrUpdate

Description

Vytvoří/aktualizuje měrnou jednotku.

Response

Returns a ProductUnitMutateResponse!

Arguments
Name Description
input - ProductUnitInput!

Example

Query
mutation productUnitCreateOrUpdate($input: ProductUnitInput!) {
  productUnitCreateOrUpdate(input: $input) {
    result
    productUnit {
      ...ProductUnitFragment
    }
  }
}
Variables
{"input": ProductUnitInput}
Response
{
  "data": {
    "productUnitCreateOrUpdate": {
      "result": true,
      "productUnit": ProductUnit
    }
  }
}

sectionCreateOrUpdate

Description

Vytvoří/aktualizuje sekci.

Response

Returns a SectionMutateResponse

Arguments
Name Description
input - SectionInput!

Example

Query
mutation sectionCreateOrUpdate($input: SectionInput!) {
  sectionCreateOrUpdate(input: $input) {
    result
    section {
      ...SectionFragment
    }
  }
}
Variables
{"input": SectionInput}
Response
{
  "data": {
    "sectionCreateOrUpdate": {
      "result": true,
      "section": Section
    }
  }
}

sectionTranslate

Description

Překládá sekci.

Arguments
Name Description
input - SectionTranslationInput!

Example

Query
mutation sectionTranslate($input: SectionTranslationInput!) {
  sectionTranslate(input: $input) {
    result
  }
}
Variables
{"input": SectionTranslationInput}
Response
{"data": {"sectionTranslate": {"result": false}}}

sellerCreateOrUpdate

Description

Vytvoření / aktualizace prodejny.

Response

Returns a SellerMutateResponse!

Arguments
Name Description
input - SellerInput!

Example

Query
mutation sellerCreateOrUpdate($input: SellerInput!) {
  sellerCreateOrUpdate(input: $input) {
    result
    seller {
      ...SellerFragment
    }
  }
}
Variables
{"input": SellerInput}
Response
{
  "data": {
    "sellerCreateOrUpdate": {
      "result": true,
      "seller": Seller
    }
  }
}

storeCreate

Description

Vytvoří sklad.

Response

Returns a Store!

Arguments
Name Description
input - StoreCreateInput!

Example

Query
mutation storeCreate($input: StoreCreateInput!) {
  storeCreate(input: $input) {
    id
    name
    type
    visible
  }
}
Variables
{"input": StoreCreateInput}
Response
{
  "data": {
    "storeCreate": {
      "id": 123,
      "name": "abc123",
      "type": "MAIN_STORE",
      "visible": true
    }
  }
}

userCreate

Use userCreateOrUpdate
Description

Vytvoří uživatele.

Response

Returns a UserMutateResponse!

Arguments
Name Description
input - UserInput!

Example

Query
mutation userCreate($input: UserInput!) {
  userCreate(input: $input) {
    result
    user {
      ...UserFragment
    }
  }
}
Variables
{"input": UserInput}
Response
{"data": {"userCreate": {"result": true, "user": User}}}

userCreateOrUpdate

Description

Vytvoří / aktualizuje uživatele.

Response

Returns a UserMutateResponse!

Arguments
Name Description
input - UserInput!

Example

Query
mutation userCreateOrUpdate($input: UserInput!) {
  userCreateOrUpdate(input: $input) {
    result
    user {
      ...UserFragment
    }
  }
}
Variables
{"input": UserInput}
Response
{
  "data": {
    "userCreateOrUpdate": {"result": true, "user": User}
  }
}

userUpdate

Use userCreateOrUpdate
Description

Aktualizuje uživatele.

Response

Returns a UserMutateResponse!

Arguments
Name Description
input - UserInput!

Example

Query
mutation userUpdate($input: UserInput!) {
  userUpdate(input: $input) {
    result
    user {
      ...UserFragment
    }
  }
}
Variables
{"input": UserInput}
Response
{"data": {"userUpdate": {"result": false, "user": User}}}

variationCreateOrUpdate

Description

Vytvoří nebo aktualizuje variantu produktu.

Response

Returns a VariationMutateResponse

Arguments
Name Description
variation - VariationModifyInput

Example

Query
mutation variationCreateOrUpdate($variation: VariationModifyInput) {
  variationCreateOrUpdate(variation: $variation) {
    result
    product {
      ...ProductFragment
    }
    variation {
      ...VariationFragment
    }
  }
}
Variables
{"variation": VariationModifyInput}
Response
{
  "data": {
    "variationCreateOrUpdate": {
      "result": false,
      "product": Product,
      "variation": Variation
    }
  }
}

variationDelete

Description

Smazání varianty produktu.

Response

Returns a MutateResponseInterface!

Arguments
Name Description
variationId - Int!

Example

Query
mutation variationDelete($variationId: Int!) {
  variationDelete(variationId: $variationId) {
    result
  }
}
Variables
{"variationId": 987}
Response
{"data": {"variationDelete": {"result": true}}}

Types

ActionTypeEnum

Values
Enum Value Description

CREATE

UPDATE

REMOVE

Example
"CREATE"

Address

Fields
Field Name Description
name - String! Jméno.
surname - String! Příjmení.
firm - String! Firma.
phone - String! Telefon.
ico - String IČO.
dic - String DIČ.
street - String! Ulice a číslo popisné.
city - String! Město.
zip - String! Poštovní směrovací číslo.
country - Country Země.
customAddress - String! Upřesnění adresy
state - String! Stát/region
Example
{
  "name": "Josef",
  "surname": "Novák",
  "firm": "wpj s.r.o.",
  "phone": "+420712345678",
  "ico": "123456789",
  "dic": "CZ123456789",
  "street": "Lánovská 1475",
  "city": "Vrchlabí",
  "zip": "54341",
  "country": Country,
  "customAddress": "xyz789",
  "state": "abc123"
}

AddressInput

Fields
Input Field Description
name - String Jméno.
surname - String Příjmení.
firm - String Firma.
phone - String Telefon.
street - String Ulice s číslem popisným.
city - String Město.
zip - String PSČ.
country - String Země. ISO kód země.
ico - String IČO
dic - String DIČ
email - String Email
customAddress - String Upřesnění adresy
state - String Stát/region
Example
{
  "name": "abc123",
  "surname": "xyz789",
  "firm": "xyz789",
  "phone": "abc123",
  "street": "abc123",
  "city": "xyz789",
  "zip": "xyz789",
  "country": "xyz789",
  "ico": "xyz789",
  "dic": "xyz789",
  "email": "xyz789",
  "customAddress": "abc123",
  "state": "abc123"
}

AdminUser

Fields
Field Name Description
id - Int!
name - String
login - String!
email - String!
privilege - String!
data - String
Example
{
  "id": 987,
  "name": "abc123",
  "login": "abc123",
  "email": "abc123",
  "privilege": "abc123",
  "data": "xyz789"
}

AdminUserCollection

Fields
Field Name Description
items - [AdminUser!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [AdminUser],
  "hasNextPage": true,
  "hasPreviousPage": false
}

Article

Fields
Field Name Description
id - Int! ID.
date - DateTime! Datum.
title - String! Název.
visible - Boolean! Viditelný.
url - String! URL.
seenCount - Int! Počet zobrazení článku.
photo - PhotoInterface Hlavní fotka.
annotation - String! Anotace.
content - EditableContent! Obsah.
tags - [ArticleTag!]! Štítky.
sections - [ArticleSection!]! Sekce.
seo - Seo! SEO.
Example
{
  "id": 987,
  "date": "\"2022-02-01 08:00:00\"",
  "title": "xyz789",
  "visible": false,
  "url": "xyz789",
  "seenCount": 987,
  "photo": PhotoInterface,
  "annotation": "abc123",
  "content": EditableContent,
  "tags": [ArticleTag],
  "sections": [ArticleSection],
  "seo": Seo
}

ArticleCollection

Fields
Field Name Description
items - [Article!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Article],
  "hasNextPage": true,
  "hasPreviousPage": true
}

ArticleFilterInput

Fields
Input Field Description
id - [Int!] Filtr podle ID článku. Default = null
visible - Boolean Filtr podle viditelnosti článku. Default = null
Example
{"id": [987], "visible": false}

ArticleSection

Fields
Field Name Description
id - Int! ID.
name - String! Název.
Example
{"id": 987, "name": "xyz789"}

ArticleSortInput

Fields
Input Field Description
id - SortEnum
date - SortEnum
Example
{"id": "ASC", "date": "ASC"}

ArticleTag

Fields
Field Name Description
id - Int! ID.
name - String! Název.
Example
{"id": 987, "name": "abc123"}

ArticleTranslationInput

Fields
Input Field Description
articleId - Int ID článku.
language - String Jazyk.
title - String Název.
leadIn - String Anotace.
url - String URL.
visibility - ArticleVisibilityEnum Viditelnost.
seo - SeoInput SEO.
Example
{
  "articleId": 123,
  "language": "xyz789",
  "title": "abc123",
  "leadIn": "xyz789",
  "url": "xyz789",
  "visibility": "VISIBLE",
  "seo": SeoInput
}

ArticleTranslationMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
Example
{"result": true}

ArticleVisibilityEnum

Values
Enum Value Description

VISIBLE

HIDDEN

Example
"VISIBLE"

Boolean

Description

The Boolean scalar type represents true or false.

ChangeActionType

Values
Enum Value Description

INSERT

UPDATE

DELETE

Example
"INSERT"

ChangeImpl

Fields
Field Name Description
metadata - ChangeMetadata! Obecné informace o změně.
Example
{"metadata": ChangeMetadata}

ChangeInterface

Fields
Field Name Description
metadata - ChangeMetadata! Obecné informace o změně.
Example
{"metadata": ChangeMetadata}

ChangeMetadata

Fields
Field Name Description
id - Int! Unikátní ID změny.
date - DateTime! Datum a čas změny.
action - ChangeActionType! Typ změny.
Example
{
  "id": 123,
  "date": "\"2022-02-01 08:00:00\"",
  "action": "INSERT"
}

ChangesResetMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
message - String Potvrzovací/chybová hláška.
Example
{"result": true, "message": "abc123"}

CollectionItemInput

Fields
Input Field Description
productId - Int! ID produktu.
Example
{"productId": 123}

CollectionProductsInput

Fields
Input Field Description
productId - Int! ID produktu.
products - [CollectionItemInput!]! Produkty, které mají být v kolekci.
append - Boolean
  • Pokud true, tak se u produktu zachovají aktuální produkty v kolekci a k nim se přidají produkty specifikované v products.
  • Pokud false, tak u produktu smažou aktuální produkty v kolekci a přidá produkty, které jsou specifikované v products. Default = false
Example
{
  "productId": 123,
  "products": [CollectionItemInput],
  "append": true
}

Configuration

Fields
Field Name Description
orderStatuses - [OrderStatus!]! Seznam stavů objednávek.
orderSources - [OrderSource!]! Seznam zdrojů objednávek.
deliveryTypes - [DeliveryMethod!]! Seznam typů doprav.
paymentTypes - [PaymentMethod!]! Seznam typů plateb.
deliveryTimes - [DeliveryTime!]! Dostupnosti zboží.
dropshipmentTypes - [String!]! Typy dropshipmentů.
Example
{
  "orderStatuses": [OrderStatus],
  "orderSources": [OrderSource],
  "deliveryTypes": [DeliveryMethod],
  "paymentTypes": [PaymentMethod],
  "deliveryTimes": [DeliveryTime],
  "dropshipmentTypes": ["xyz789"]
}

Country

Fields
Field Name Description
code - String Kód.
name - String Název.
Example
{"code": "CZ", "name": "Česká republika"}

Coupon

Fields
Field Name Description
id - String
title - String
code - String!
Example
{
  "id": "abc123",
  "title": "abc123",
  "code": "xyz789"
}

Currency

Fields
Field Name Description
code - String! Kód.
name - String! Název.
symbol - String! Symbol.
rate - Float! Kurz.
roundType - Int! Zaokrouhlování (0=nezaokrouhlovat, 1=haléře, 5=5 haléřů, 100=celá čísla, -5=5 korun, -10=10 korun).
roundDirection - String! Směr zaokrouhlování (up, down, math).
precision - Int! Počet desetinných míst pro zobrazení (0, 2, -1=dynamicky).
decimalMark - String! Oddělovač desetinných míst.
Example
{
  "code": "CZK",
  "name": "Česká koruna",
  "symbol": "Kč",
  "rate": "1.0000",
  "roundType": 987,
  "roundDirection": "abc123",
  "precision": 123,
  "decimalMark": "abc123"
}

CustomDataInput

Fields
Input Field Description
key - String Custom data - klíč. Default = null
value - String Custom data - hodnota. Default = null
Example
{
  "key": "xyz789",
  "value": "xyz789"
}

DateFilterInput

Fields
Input Field Description
eq - DateTime Rovno. Default = null
lt - DateTime Menší než. Default = null
le - DateTime Menší nebo rovno. Default = null
gt - DateTime Větší než. Default = null
ge - DateTime Větší nebo rovno. Default = null
Example
{
  "eq": "\"2022-02-01 08:00:00\"",
  "lt": "\"2022-02-01 08:00:00\"",
  "le": "\"2022-02-01 08:00:00\"",
  "gt": "\"2022-02-01 08:00:00\"",
  "ge": "\"2022-02-01 08:00:00\""
}

DateTime

Description

The DateTime scalar type represents time data, represented as an ISO-8601 encoded UTC date string.

Example
""2022-02-01 08:00:00""

Delivery

Fields
Field Name Description
id - Int! ID dopravy.
type - String! Typ dopravy.
name - String! Název dopravy.
isInPerson - Boolean! Zda je doprava osobní odběr.
priceBuy - Price! Náklady na dopravu
Example
{
  "id": 987,
  "type": "xyz789",
  "name": "abc123",
  "isInPerson": false,
  "priceBuy": Price
}

DeliveryCollection

Fields
Field Name Description
items - [Delivery!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Delivery],
  "hasNextPage": false,
  "hasPreviousPage": false
}

DeliveryMethod

Fields
Field Name Description
type - String! Typ.
name - String! Název.
Example
{
  "type": "xyz789",
  "name": "abc123"
}

DeliveryTime

Fields
Field Name Description
id - Int! ID.
name - String! Název.
Example
{"id": 987, "name": "abc123"}

DeliveryType

Fields
Field Name Description
id - Int! ID způsobu doručení.
visible - Boolean! Viditelný.
delivery - Delivery Informace o dopravě.
payment - Payment Informace o platbě.
price - Price! Cena.
Example
{
  "id": 987,
  "visible": true,
  "delivery": Delivery,
  "payment": Payment,
  "price": Price
}

DeliveryTypeCollection

Fields
Field Name Description
items - [DeliveryType!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [DeliveryType],
  "hasNextPage": false,
  "hasPreviousPage": true
}

DeliveryTypeFilterInput

Fields
Input Field Description
visible - Boolean Filtruje viditelné nebo skryté způsoby doručení. Pokud je nastaveno null, tak se načítají všechny. Default = null
Example
{"visible": true}

DiscountCode

Fields
Field Name Description
code - String! Slevový kód / dárkový poukaz
discountId - Int ID slevy, ke které se kód stahuje.
Example
{"code": "abc123", "discountId": 987}

DiscountCoupon

Fields
Field Name Description
id - Int! ID.
name - String! Název.
code - String! Kód.
dateActivated - DateTime Datum, kdy byl kupón aktivován. Pokud je null, tak není aktivní.
dateFrom - DateTime Datum, od kdy je kupón platný. Pokud je null, tak nemá počáteční platnost.
dateTo - DateTime Datum, do kdy je kupón platný. Pokud je null, tak nemá konečnou platnost.
isUsed - Boolean! Informace, zda je kupón použit.
isUsable - Boolean! Informace, zda je kupón možné použít.
Example
{
  "id": 987,
  "name": "abc123",
  "code": "xyz789",
  "dateActivated": "\"2022-02-01 08:00:00\"",
  "dateFrom": "\"2022-02-01 08:00:00\"",
  "dateTo": "\"2022-02-01 08:00:00\"",
  "isUsed": true,
  "isUsable": false
}

DiscountPurchaseItem

Fields
Field Name Description
id - Int ID slevy.
name - String! Název.
totalPrice - Price! Celková sleva.
Example
{
  "id": 987,
  "name": "xyz789",
  "totalPrice": Price
}

Dropshipment

Fields
Field Name Description
id - Int! ID.
type - String! Typ.
name - String! Název.
active - Boolean! Aktivní.
Example
{
  "id": 987,
  "type": "xyz789",
  "name": "xyz789",
  "active": false
}

DropshipmentCollection

Fields
Field Name Description
items - [Dropshipment!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Dropshipment],
  "hasNextPage": false,
  "hasPreviousPage": false
}

DropshipmentFilterInput

Fields
Input Field Description
type - [String!] Filtrovat podle typu. Default = null
Example
{"type": ["abc123"]}

DropshipmentInput

Fields
Input Field Description
id - Int ID. Pokud není specifikováno, tak se dropshipment vytvoří, jinak se provádí aktualizace.
type - String Typ.
name - String Název.
active - Boolean Aktivní.
Example
{
  "id": 123,
  "type": "xyz789",
  "name": "xyz789",
  "active": true
}

DropshipmentMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
dropshipment - Dropshipment! Aktualizovaný dropshipment.
Example
{"result": true, "dropshipment": Dropshipment}

EditableArea

Fields
Field Name Description
id - Int! ID.
position - Int! Pozice.
name - String Název.
content - String! Obsah ve formátu HTML. Vyrenderovaný z JSON dat z pole data.
data - String! JSON data obsahu.
dataPortable - String! Přenosná JSON data obsahu. Např. místo ID fotek se v datech nachází URL adresa vedoucí k fotce.
Example
{
  "id": 987,
  "position": 123,
  "name": "abc123",
  "content": "xyz789",
  "data": "xyz789",
  "dataPortable": "xyz789"
}

EditableAreaInput

Fields
Input Field Description
id - Int ID. Pokud bude vyplněno null, tak bude vytvořená nová editovatelná oblast
name - String Název.
data - String JSON data obsahu.
dataPortable - String JSON data obsahu v přenosném formátu. Pokud jsou vyplněny, tak se upřednostní před polem data.
Example
{
  "id": 987,
  "name": "xyz789",
  "data": "abc123",
  "dataPortable": "abc123"
}

EditableContent

Fields
Field Name Description
id - Int! ID editovatelné obsahu.
areas - [EditableArea!]! Oblasti obsahující popisek a jeho data.
Example
{"id": 123, "areas": [EditableArea]}

EditableContentInput

Fields
Input Field Description
id - Int! ID editovatelného obsahu.
areas - [EditableAreaInput!]! Oblasti obsahující popisek a jeho data.
overwrite - Boolean Pokud je nastaveno true, tak před aktualizací provede nejdřív smazání všech oblastí u aktualního objekta. Default = null
Example
{
  "id": 123,
  "areas": [EditableAreaInput],
  "overwrite": true
}

EditableContentMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
editableContent - EditableContent! Aktualizovaný editovatelný obsah.
Example
{"result": false, "editableContent": EditableContent}

EditableContentTranslationInput

Fields
Input Field Description
language - String! Jazyk.
id - Int! ID editovatelného obsahu.
areas - [EditableAreaInput!]! Oblasti obsahující popisek a jeho data.
overwrite - Boolean Pokud je nastaveno true, tak před aktualizací provede nejdřív smazání všech oblastí u aktualního objekta. Default = null
Example
{
  "language": "xyz789",
  "id": 987,
  "areas": [EditableAreaInput],
  "overwrite": false
}

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example
987.65

GPSRCompany

Fields
Field Name Description
name - String! Výrobce - název firmy
street - String! Výrobce - ulice
city - String! Výrobce - město
zip - String! Výrobce - PSČ
country - String! Výrobce - země
email - String! Výrobce - e-mail
web - String! Výrobce - web
Example
{
  "name": "abc123",
  "street": "abc123",
  "city": "xyz789",
  "zip": "xyz789",
  "country": "xyz789",
  "email": "abc123",
  "web": "xyz789"
}

GPSRCompanyInput

Fields
Input Field Description
name - String Název firmy
street - String Ulice
city - String Město
zip - String PSČ
country - String Země
email - String E-mail
web - String Web kontaktní
Example
{
  "name": "xyz789",
  "street": "abc123",
  "city": "xyz789",
  "zip": "xyz789",
  "country": "xyz789",
  "email": "xyz789",
  "web": "abc123"
}

GenderEnum

Values
Enum Value Description

GENDER_MALE

GENDER_FEMALE

GENDER_NONE

Example
"GENDER_MALE"

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
987

Label

Fields
Field Name Description
id - Int! ID.
name - String! Název.
nameShort - String Krátký název.
isActive - Boolean! Je aktivní.
dateFrom - DateTime Zobrazovat od
dateTo - DateTime Zobrazovat do
Example
{
  "id": 987,
  "name": "xyz789",
  "nameShort": "abc123",
  "isActive": false,
  "dateFrom": "\"2022-02-01 08:00:00\"",
  "dateTo": "\"2022-02-01 08:00:00\""
}

LabelCollection

Fields
Field Name Description
items - [Label!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Label],
  "hasNextPage": false,
  "hasPreviousPage": true
}

Language

Fields
Field Name Description
code - String! Kód (ISO 639-1).
name - String! Název.
isActive - Boolean!
Example
{"code": "cs", "name": "čeština", "isActive": true}

LinkItemInput

Fields
Input Field Description
name - String! Název.
link - String! Odkaz.
type - String Typ odkazu (link, youtube). Default = "link"
Example
{
  "name": "xyz789",
  "link": "xyz789",
  "type": "abc123"
}

MultisetCategoryInput

Fields
Input Field Description
id - Int ID kategorie multisetu.
name - String Název kategorie multisetu.
description - String Popis kategorie multisetu.
position - Int Pozice kategorie multisetu.
Example
{
  "id": 987,
  "name": "abc123",
  "description": "xyz789",
  "position": 987
}

MultisetInput

Fields
Input Field Description
productMasterId - Int ID hlavního produktu.
productId - Int ID setového produktu.
categoryId - Int ID kategorie multisetu
price - PriceModifyInput Cena produktu v multisetu.
variationId - Int ID varianty.
Example
{
  "productMasterId": 987,
  "productId": 987,
  "categoryId": 123,
  "price": PriceModifyInput,
  "variationId": 987
}

MutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
Example
{"result": true}

MutateResponseInterface

Order

Fields
Field Name Description
id - Int! Interní ID.
source - OrderSourceInfo! Zdroj objednávky.
dateCreated - DateTime! Datum vytvoření.
dateAccept - DateTime Datum přijetí.
dateHandle - DateTime Datum vyřízení.
dateUpdated - DateTime Datum poslední změny.
dateDue - DateTime Datum splatnosti.
dateDelivered - DateTime Datum doručení.
currency - Currency! Měna.
language - Language! Jazyk.
currencyRate - Float! Kurz měny.
code - String! Číslo objednávky.
userId - Int Interní ID uživatele.
user - User Uživatel.
flags - [String!]! Příznaky objednávky.
status - OrderStatus! Stav objednávky.
email - String! E-mail zákazníka.
cancelled - Boolean! Storno.
isCancellable - Boolean! Zda je možné provést storno.
totalPrice - TotalPrice! Celková cena.
deliveryType - DeliveryType Způsob doručení. Kombinace dopravy a platby, která obsahuje informace o dopravě a platbě.
deliveryInfo - OrderDeliveryInfo! Informace o dopravě vázané k objednávce. Například ID odběrného místa.
priceLevel - PriceLevel Cenová hladina použitá v objednávce.
invoiceAddress - Address! Fakturační adresa.
deliveryAddress - Address! Doručovací adresa.
packageId - String Číslo balíku. Use deliveryInfo.packageId
noteUser - String Poznámka od uživatele.
noteInvoice - String Poznámka na faktuře. Use invoice field instead to access invoice note
items - [OrderItem!]! Položky.
isPaid - Boolean! Stav zaplacení.
paidPrice - TotalPrice! Již zaplacená cena. Použijte remainingPayment
remainingPayment - SimplePrice! Zbývající částka k zaplacení.
url - String! Odkaz na objednávku.
paymentUrl - String! Odkaz s informacemi pro zaplacení objednávky.
bankAccount - String! Bankovní účet pro zaslání platby (v případě platby převodem).
deliveryEmail - String Doručovací e-mail pro zaslání informací o doručení.
invoice - OrderInvoice! Informace o faktuře
history - [OrderHistoryEntry!]! Historie změn stavů a ostatních událostí objednávky
balikobotData - OrderBalikobotData Informace o balíkobotu
Example
{
  "id": 953,
  "source": OrderSourceInfo,
  "dateCreated": "\"2022-02-01 08:00:00\"",
  "dateAccept": "\"2022-02-01 08:00:00\"",
  "dateHandle": "\"2022-02-01 08:00:00\"",
  "dateUpdated": "\"2022-02-01 08:00:00\"",
  "dateDue": "\"2022-02-01 08:00:00\"",
  "dateDelivered": "\"2022-02-01 08:00:00\"",
  "currency": Currency,
  "language": Language,
  "currencyRate": 1,
  "code": "2200953",
  "userId": 123,
  "user": User,
  "flags": [],
  "status": 1,
  "email": "wpj@wpj.cz",
  "cancelled": true,
  "isCancellable": true,
  "totalPrice": TotalPrice,
  "deliveryType": DeliveryType,
  "deliveryInfo": OrderDeliveryInfo,
  "priceLevel": PriceLevel,
  "invoiceAddress": Address,
  "deliveryAddress": Address,
  "packageId": "DR1104116859M",
  "noteUser": "xyz789",
  "noteInvoice": "abc123",
  "items": [OrderItem],
  "isPaid": false,
  "paidPrice": TotalPrice,
  "remainingPayment": SimplePrice,
  "url": "abc123",
  "paymentUrl": "abc123",
  "bankAccount": "abc123",
  "deliveryEmail": "xyz789",
  "invoice": OrderInvoice,
  "history": [OrderHistoryEntry],
  "balikobotData": OrderBalikobotData
}

OrderBalikobotData

Fields
Field Name Description
ticketPosition - Int Pozice štítku.
packagesCount - Int Počet balíků
note - String! Poznámka
packageSize - String! Velikost balíku
Example
{
  "ticketPosition": 987,
  "packagesCount": 123,
  "note": "abc123",
  "packageSize": "abc123"
}

OrderCollection

Fields
Field Name Description
items - [Order!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Order],
  "hasNextPage": true,
  "hasPreviousPage": false
}

OrderCreateInput

Fields
Input Field Description
dropshipment - OrderDropshipmentInput! Dropshipment.
invoice - OrderInvoiceInput Faktura. Default = null
language - String Jazyk objednávky. Default = null
currencyRate - Float Kurz měny v objednávce. Default = null
currency - String Měna objednávky. Default = null
userId - Int ID zákazníka. Default = null
dateCreated - DateTime Datum vytvoření objednávky. Default = null
dateAccept - DateTime Datum přijetí objednávky. Default = null
dateHandle - DateTime Datum vyřízení objednávky. Default = null
dateDelivered - DateTime Datum doručení objednávky. Default = null
dateDue - DateTime Datum splatnosti objednávky. Default = null
status - Int Stav objednávky. Default = null
deliveryType - OrderDeliveryTypeInput Způsob doručení. Default = null
items - [PurchaseItemInput!]! Položky objednávky
coupons - [String!] Slevové kupóny. Default = null
flags - [String!] Příznak objednávky. Default = null
invoiceAddress - AddressInput! Fakturační údaje
deliveryAddress - AddressInput Doručovací údaje. Default = null
noteUser - String Poznámka zákazníka. Default = null
data - [CustomDataInput!] Custom data. Default = null
Example
{
  "dropshipment": OrderDropshipmentInput,
  "invoice": OrderInvoiceInput,
  "language": "abc123",
  "currencyRate": 987.65,
  "currency": "xyz789",
  "userId": 987,
  "dateCreated": "\"2022-02-01 08:00:00\"",
  "dateAccept": "\"2022-02-01 08:00:00\"",
  "dateHandle": "\"2022-02-01 08:00:00\"",
  "dateDelivered": "\"2022-02-01 08:00:00\"",
  "dateDue": "\"2022-02-01 08:00:00\"",
  "status": 987,
  "deliveryType": OrderDeliveryTypeInput,
  "items": [PurchaseItemInput],
  "coupons": ["xyz789"],
  "flags": ["abc123"],
  "invoiceAddress": AddressInput,
  "deliveryAddress": AddressInput,
  "noteUser": "xyz789",
  "data": [CustomDataInput]
}

OrderDeliveryInfo

Fields
Field Name Description
pointId - String ID zvoleného odběrného místa.
packageId - String Číslo balíku.
trackingUrl - String URL pro trasovování balíku.
data - String! JSON data. Obsahuje dodatečná data o dopravě.
Example
{
  "pointId": "xyz789",
  "packageId": "abc123",
  "trackingUrl": "abc123",
  "data": "xyz789"
}

OrderDeliveryTypeInput

Fields
Input Field Description
id - Int ID způsobu dopravy. Default = null
deliveryPrice - Float Cena dopravy. Default = null
Example
{"id": 123, "deliveryPrice": 123.45}

OrderDocumentInput

Fields
Input Field Description
type - OrderDocumentType Typ dokumentu.
url - String Odkaz na dokument ve formátu PDF.
Example
{"type": "INVOICE", "url": "abc123"}

OrderDocumentType

Values
Enum Value Description

INVOICE

PROFORMA

Example
"INVOICE"

OrderDropshipmentInfo

Fields
Field Name Description
externalId - String Externí ID objednávky.
data - String! Data týkající se konkrétní objednávky v JSON formátu
Example
{
  "externalId": "abc123",
  "data": "abc123"
}

OrderDropshipmentInput

Fields
Input Field Description
id - Int! ID dropshipmentu, ke kterému objednávka patří.
externalId - String! Externí ID.
data - [CustomDataInput!] Custom data. Např. marketplace, marketplace_id... Default = null
Example
{
  "id": 123,
  "externalId": "abc123",
  "data": [CustomDataInput]
}

OrderFilterInput

Fields
Input Field Description
id - [Int!] Filtr podle pole ID objednávek. Default = null
code - [String!] Filtr podle pole kódů objednávek. Default = null
status - [Int!] Filtr podle pole stavů objednávek. Default = null
userId - [Int!] Filtr podle ID uživatele. Default = null
deliveryId - [Int!] Filtr podle ID dopravy. Default = null
paymentId - [Int!] Filtr podle ID platby. Default = null
sellerId - [Int!] Filtr podle ID prodejny, na které objednávka vznikla. Default = null
source - [String!] Filtr podle zdroje objednávky. Default = null
dropshipId - [Int!] Filtr podle ID dropshipmentu. Default = null
dateCreated - DateFilterInput Filtr podle data vytvoření. Default = null
dateUpdated - DateFilterInput Filtr podle data poslední změny. Default = null
dateFrom - DateTime
dateTo - DateTime
Example
{
  "id": [123],
  "code": ["abc123"],
  "status": [987],
  "userId": [123],
  "deliveryId": [123],
  "paymentId": [123],
  "sellerId": [123],
  "source": ["abc123"],
  "dropshipId": [987],
  "dateCreated": DateFilterInput,
  "dateUpdated": DateFilterInput,
  "dateFrom": "\"2022-02-01 08:00:00\"",
  "dateTo": "\"2022-02-01 08:00:00\""
}

OrderHistoryEntry

Fields
Field Name Description
id - Int! ID.
orderStatus - String! ID stavu objednávky.
adminId - Int ID administrátora.
date - DateTime! Čas pořízení logu.
comment - String Komentář.
notifyStatus - OrderHistoryNotifiedEnum! Notifikace odesláná uživateli.
data - String Data.
Example
{
  "id": 987,
  "orderStatus": "xyz789",
  "adminId": 123,
  "date": "\"2022-02-01 08:00:00\"",
  "comment": "xyz789",
  "notifyStatus": "NO",
  "data": "xyz789"
}

OrderHistoryNotifiedEnum

Values
Enum Value Description

NO

YES

SMS_SENT

SMS_RECEIVED

SENDING

FAILED

Example
"NO"

OrderInvoice

Fields
Field Name Description
code - String Kód faktury. Pokud je hodnota null, tak faktura ještě nebyla vygenerována.
note - String Poznámka na faktuře.
url - String! URL na PDF fakturu.
Example
{
  "code": "abc123",
  "note": "abc123",
  "url": "xyz789"
}

OrderInvoiceInput

Fields
Input Field Description
code - String Číslo faktury
note - String Poznámka na faktuře
Example
{
  "code": "xyz789",
  "note": "xyz789"
}

OrderItem

Fields
Field Name Description
id - Int! Interní ID položky objednávky.
productId - Int Interní ID produktu.
variationId - Int Interní ID varianty.
pieces - Float! Počet objednaných kusů.
piecePrice - Price! Cena za kus.
totalPrice - Price! Celková cena.
vat - Float! DPH v %.
code - String Kod položky.
product - Product Produkt.
type - String!

Typ položky. Možné typy:

  • product - řádek obsahuje produkt
  • discount - řádek se slevou
  • delivery - řádek s cenou způsobu doručení (doprava + platba).
  • gift - dárek
  • coupon - uplatněný kupón (neproduktová položka, která ponižuje objednávku o danou částku)
  • text - textová položka (neproduktová položka)
  • orders_charge - příplatek k objednávce.
chargeId - Int
name - String! Název položky.
data - String! JSON data položky, která mohou obsahovat různé dodatečné informace o položce.
priceBuy - Price Nákupní cena položky.
note - String Poznámka k položce.
Example
{
  "id": 987,
  "productId": 100,
  "variationId": 25,
  "pieces": 2,
  "piecePrice": Price,
  "totalPrice": Price,
  "vat": 21,
  "code": "X100-01",
  "product": Product,
  "type": "xyz789",
  "chargeId": 987,
  "name": "Tepláky WPJ (Velikost: M)",
  "data": "xyz789",
  "priceBuy": Price,
  "note": "xyz789"
}

OrderItemInput

Fields
Input Field Description
id - Int ID položky objednávky
quantity - Float Počet kusů položku. Nesmí být záporná hodnota.
delete - Boolean Smazat položky z objednávky.
Example
{"id": 987, "quantity": 123.45, "delete": false}

OrderMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
order - Order! Zaktualizovaný objekt objednávky.
Example
{"result": false, "order": Order}

OrderPayment

Fields
Field Name Description
id - Int! ID
orderId - Int! ID objednávky
price - Price! Částka
date - DateTime! Datum vytvoření
status - String! Status
method - Int! Metoda
type - String! Typ platby
paymentMethod - String! Forma úhrady
Example
{
  "id": 123,
  "orderId": 123,
  "price": Price,
  "date": "\"2022-02-01 08:00:00\"",
  "status": "xyz789",
  "method": 123,
  "type": "abc123",
  "paymentMethod": "xyz789"
}

OrderPaymentCollection

Fields
Field Name Description
items - [OrderPayment!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [OrderPayment],
  "hasNextPage": false,
  "hasPreviousPage": false
}

OrderPaymentFilterInput

Fields
Input Field Description
id - [Int!]! Filtr podle ID objednávek
Example
{"id": [987]}

OrderPaymentInput

Fields
Input Field Description
orderId - Int! ID objednávky.
price - Float! Částka.
date - DateTime Datum vytvoření. Default = null
method - OrderPaymentMethod Druh platby.
- CASH - hotově
- CARD - kartou (fyzicky)
- INVOICE - na fakturu
- TRANSFER - převodem
- COD - dobírka
- ONLINE - online platba
- UNKNOWN - neznámá platba. Default = null
note - String! Poznámka.
Example
{
  "orderId": 987,
  "price": 987.65,
  "date": "\"2022-02-01 08:00:00\"",
  "method": "CASH",
  "note": "abc123"
}

OrderPaymentMethod

Values
Enum Value Description

CASH

CARD

INVOICE

TRANSFER

COD

ONLINE

UNKNOWN

Example
"CASH"

OrderPaymentMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
orderPayment - OrderPayment! Vložený objekt platby
Example
{"result": true, "orderPayment": OrderPayment}

OrderSortInput

Fields
Input Field Description
id - SortEnum
code - SortEnum
dateCreated - SortEnum
dateHandle - SortEnum
dateUpdated - SortEnum
Example
{
  "id": "ASC",
  "code": "ASC",
  "dateCreated": "ASC",
  "dateHandle": "ASC",
  "dateUpdated": "ASC"
}

OrderSource

Fields
Field Name Description
source - String! Zdroj objednávky.
name - String! Název zdroje objednávky.
Example
{
  "source": "abc123",
  "name": "xyz789"
}

OrderSourceInfo

Fields
Field Name Description
source - String! Zdroj objednávky.
name - String! Název zdroje objednávky.
info - OrderDropshipmentInfo Dodatečné informace o objednávce, které se týkají konkrétního zdroje.
Example
{
  "source": "xyz789",
  "name": "abc123",
  "info": OrderDropshipmentInfo
}

OrderStatus

Fields
Field Name Description
id - Int! ID.
name - String! Název.
Example
{"id": 123, "name": "abc123"}

OrderStornoInput

Fields
Input Field Description
id - Int! ID objednávky.
message - String Důvod storna. Default = null
sendMail - Boolean Zda se má uživateli odeslat mail o stornovaní objednávky. Pokud nebude vyplněno, tak bude odesláno na základě nastavení e-shopu. Default = null
Example
{
  "id": 123,
  "message": "xyz789",
  "sendMail": false
}

OrderUpdateInput

Fields
Input Field Description
id - Int ID objednávky.
status - StatusModifyInput Stav objednávky.
packageId - String Číslo balíku. Více čísel balíků je potřeba oddělit čárkou.
invoiceUrl - String Odkaz na fakturu ve formátu PDF. Při nastavení bude použita místo standartní e-shopové faktury.
documents - [OrderDocumentInput!] Nastavení vlastních PDF dokladů.
items - [OrderItemInput!] Aktualizace položek objednávky.
Example
{
  "id": 123,
  "status": StatusModifyInput,
  "packageId": "abc123",
  "invoiceUrl": "abc123",
  "documents": [OrderDocumentInput],
  "items": [OrderItemInput]
}

Page

Fields
Field Name Description
id - Int! ID stránky.
parentId - Int! ID nadřazené stránky.
type - String Typ stránky.
code - String! Kód stránky
name - String Název stránky.
url - String URL stránky.
content - EditableContent! Editovatelný obsah.
Example
{
  "id": 123,
  "parentId": 987,
  "type": "abc123",
  "code": "abc123",
  "name": "xyz789",
  "url": "xyz789",
  "content": EditableContent
}

PageCollection

Fields
Field Name Description
items - [Page!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Page],
  "hasNextPage": true,
  "hasPreviousPage": true
}

PageFilterInput

Fields
Input Field Description
id - [Int!] Filtr podle ID stránek. Default = null
code - [String!] Filtr podle kódu stránek. Default = null
parent - [Int!] Filtr podle nadřazené stránky. Default = null
Example
{
  "id": [987],
  "code": ["xyz789"],
  "parent": [123]
}

PageSortInput

Fields
Input Field Description
id - SortEnum
code - SortEnum
type - SortEnum
Example
{"id": "ASC", "code": "ASC", "type": "ASC"}

Parameter

Fields
Field Name Description
id - Int! ID.
name - String! Název.
visible - Boolean! Viditelnost
type - ParameterTypeEnum! Typ.
unit - String Jednotka.
Example
{
  "id": 987,
  "name": "abc123",
  "visible": true,
  "type": "LIST",
  "unit": "abc123"
}

ParameterCollection

Fields
Field Name Description
items - [Parameter!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Parameter],
  "hasNextPage": false,
  "hasPreviousPage": true
}

ParameterCreateInput

Fields
Input Field Description
name - String! Název.
type - ParameterTypeEnum!

Typ.

  • LIST - seznam - používá se pokud se jedná o menší počet hodnot, které se furt opakují. Například pro parametr barva.
  • TEXT - text - textový parametr, delší text, který může být pro každý produkt úplně jiný.
  • NUMBER - číslo - číslený parametr.
unit - String Jednotka (například: g). Default = null
Example
{
  "name": "xyz789",
  "type": "LIST",
  "unit": "abc123"
}

ParameterListFilterInput

Fields
Input Field Description
parameterId - [Int!] Filtr podle ID parametru. Default = null
Example
{"parameterId": [987]}

ParameterTranslationInput

Fields
Input Field Description
parameterId - Int ID parametru.
language - String Jazyk.
name - String Název.
Example
{
  "parameterId": 987,
  "language": "abc123",
  "name": "xyz789"
}

ParameterTranslationMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
Example
{"result": true}

ParameterTypeEnum

Values
Enum Value Description

LIST

TEXT

NUMBER

Example
"LIST"

ParameterValue

Fields
Field Name Description
parameter - Parameter! Parametr, ke kterému hodnota patří.
id - Int ID hodnoty parametru. Vrací null v případě, že se nejedná o parametr typu LIST.
description - String Rozšiřující popis hodnoty parametru.
value - String Hodnota parametru.
text - String Textová hodnota. Pokud je parametr typu TEXT.
list - String Textová hodnota. Pokud je parametr typu LIST.
number - Float Číslená hodnota. Pokud je parametr typu NUMBER.
Example
{
  "parameter": Parameter,
  "id": 123,
  "description": "xyz789",
  "value": "xyz789",
  "text": "xyz789",
  "list": "xyz789",
  "number": 123.45
}

ParameterValueInput

Fields
Input Field Description
text - String Textová hodnota. Default = null
list - String Seznamová hodnota. Default = null
number - Float Číselná hodnota. Default = null
Example
{
  "text": "xyz789",
  "list": "xyz789",
  "number": 987.65
}

ParameterValuesCollection

Fields
Field Name Description
items - [ParameterValue!]! Hodnoty parametrů
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [ParameterValue],
  "hasNextPage": false,
  "hasPreviousPage": true
}

ParameterValuesTranslationInput

Fields
Input Field Description
valueId - Int ID hodnoty parametru.
language - String Jazyk.
value - String Hodnota.
Example
{
  "valueId": 987,
  "language": "abc123",
  "value": "abc123"
}

ParameterValuesTranslationMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
Example
{"result": true}

Payment

Fields
Field Name Description
id - Int! ID platby.
type - String! Typ platby.
name - String! Název platby.
Example
{
  "id": 987,
  "type": "xyz789",
  "name": "abc123"
}

PaymentCollection

Fields
Field Name Description
items - [Payment!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Payment],
  "hasNextPage": false,
  "hasPreviousPage": false
}

PaymentMethod

Fields
Field Name Description
type - String!
name - String!
Example
{
  "type": "xyz789",
  "name": "xyz789"
}

Photo

Fields
Field Name Description
id - Int! Interní ID.
source - String! URL cesta.
sourceOriginal - String! URL cesta k originálnímu souboru.
width - Int Šířka.
height - Int Výška.
Example
{
  "id": 123,
  "source": "https://<domain>/data/photo.png",
  "sourceOriginal": "xyz789",
  "width": 987,
  "height": 123
}

PhotoCenterPointInput

Description

Pozice středového bodu obrázku.

Fields
Input Field Description
x - Float! X - hodnota 0-100
y - Float! Y - hodnota 0-100
Example
{"x": 123.45, "y": 987.65}

PhotoInput

Description

Obrázek.

Fields
Input Field Description
url - String URL cesta k obrázku.
description - String Popis obrázku.
position - Int Pořadí obrázku.
centerPoint - PhotoCenterPointInput Středový bod obrázku v relativních hodnotách.
Example
{
  "url": "xyz789",
  "description": "abc123",
  "position": 123,
  "centerPoint": PhotoCenterPointInput
}

PhotoInterface

Fields
Field Name Description
id - Int! Interní ID.
source - String! URL cesta.
sourceOriginal - String! URL cesta k originálnímu souboru.
width - Int Šířka.
height - Int Výška.
Possible Types
PhotoInterface Types

ProductPhoto

Photo

Example
{
  "id": 123,
  "source": "abc123",
  "sourceOriginal": "xyz789",
  "width": 987,
  "height": 123
}

PhotoModifyInput

Fields
Input Field Description
action - ActionTypeEnum!
idPhoto - Int
showInLead - Boolean
active - Boolean
position - Int
Example
{
  "action": "CREATE",
  "idPhoto": 123,
  "showInLead": false,
  "active": true,
  "position": 987
}

PhotoSizeEnum

Values
Enum Value Description

PHOTO_DETAIL

PHOTO_CATALOG

PHOTO_CART

Example
"PHOTO_DETAIL"

PhotosInput

Fields
Input Field Description
photos - [PhotoInput!] Obrázky.
- Obrázek s pozicí 0 se použije jako hlavní obrázek. - Pokud produkt už má nějaký obrázek, tak budou nové obrázky přidány nakonec (pokud není specifikována konkrétní pozice).
delete - Boolean Pokud je nastaveno na true, tak u objektu dojde ke smazází obrázků a následně budou přiřazeny obrázky z photos.
Example
{"photos": [PhotoInput], "delete": false}

Price

Fields
Field Name Description
withVat - Float! Cena s DPH.
withoutVat - Float! Cena bez DPH.
vatValue - Float! Hodnota DPH.
vat - Float! DPH v %.
currency - Currency! Měna.
Example
{
  "withVat": 121,
  "withoutVat": 100,
  "vatValue": 21,
  "vat": 21,
  "currency": Currency
}

PriceLevel

Fields
Field Name Description
id - Int! ID.
name - String! Název.
discount - PriceLevelDiscount! Sleva pro veškeré zboží.
Example
{
  "id": 123,
  "name": "abc123",
  "discount": PriceLevelDiscount
}

PriceLevelDiscount

Fields
Field Name Description
value - Float! Hodnota slevy.
unit - String! Jednotka slevy. Může být: %, CZK, EUR...
Example
{"value": 123.45, "unit": "abc123"}

PriceList

Fields
Field Name Description
id - Int! ID.
currency - Currency! Měna, ve kteté jsou ceny v ceníku.
name - String! Název ceníku.
Example
{
  "id": 987,
  "currency": Currency,
  "name": "xyz789"
}

PriceListCollection

Fields
Field Name Description
items - [PriceList!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [PriceList],
  "hasNextPage": false,
  "hasPreviousPage": true
}

PriceListInput

Fields
Input Field Description
name - String! Název.
currency - String! Měna, ve které budou ceny v ceníku uložené.
Example
{
  "name": "abc123",
  "currency": "abc123"
}

PriceListMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
priceList - PriceList! Vytvořený ceník.
Example
{"result": false, "priceList": PriceList}

PriceModifyInput

Description

Cena.

Fields
Input Field Description
withVat - Float Cena bez DPH.
Je potřeba vyplnit buď cenu bez DPH, a nebo cenu s DPH. Není potřeba vyplnit obě. Pokud budou vyplněny obě, tak se upřednostní cena bez DPH. Default = null
withoutVat - Float Cena s DPH.
Je potřeba vyplnit buď cenu bez DPH, a nebo cenu s DPH. Není potřeba vyplnit obě. Pokud budou vyplněny obě, tak se upřednostní cena bez DPH. Default = null
priceWithoutVat - Float Použijte withoutVat. Default = null
priceWithVat - Float Použijte withVat. Default = null
Example
{
  "withVat": 987.65,
  "withoutVat": 987.65,
  "priceWithoutVat": 123.45,
  "priceWithVat": 987.65
}

Producer

Fields
Field Name Description
id - Int!
name - String!
web - String!
active - Boolean!
photo - PhotoInterface
description - EditableContent! Popis.
companyGPSR - GPSRCompany! GPSR - společnost.
importCompanyGPSR - GPSRCompany! GPSR - dovozce.
Example
{
  "id": 123,
  "name": "xyz789",
  "web": "xyz789",
  "active": true,
  "photo": PhotoInterface,
  "description": EditableContent,
  "companyGPSR": GPSRCompany,
  "importCompanyGPSR": GPSRCompany
}

ProducerCollection

Fields
Field Name Description
items - [Producer!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Producer],
  "hasNextPage": true,
  "hasPreviousPage": false
}

ProducerInput

Fields
Input Field Description
id - Int ID výrobce. Povinné při aktualizaci výrobce.
name - String Název.
web - String URL na web výrobce.
active - Boolean Aktivní / neaktivní.
gpsrCompany - GPSRCompanyInput GPSR - Výrobce
gpsrImportCompany - GPSRCompanyInput GPSR - Dovozce
Example
{
  "id": 123,
  "name": "abc123",
  "web": "xyz789",
  "active": true,
  "gpsrCompany": GPSRCompanyInput,
  "gpsrImportCompany": GPSRCompanyInput
}

ProducerMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
producer - Producer! Vytvořený / aktualizovaný výrobce.
Example
{"result": true, "producer": Producer}

Product

Fields
Field Name Description
id - Int! Interní ID.
variationId - Int ID varianty.
url - String! URL adresa.
code - String Kód.
ean - String EAN-13.
eanRaw - String EAN bez formátování
inStore - Float! Počet kusů skladem.
inStoreSuppliers - Float! Součet počtu kusů skladem u všech dodavatelů.
stores - [StoreItem!]! Skladovost na jednotlivých skladech.
title - String! Název produktu.
variationTitle - String Název varianty.
description - String! Krátký popis produktu.
longDescription - String! Dlouhý popis produktu (HTML).
additionalDescription - String! Rozšiřující popis.
descriptionPlus - EditableContent! Popis+ - editovatelný obsah.
discount - Float! Sleva.
producer - Producer Výrobce.
price - Price! Cena.
priceWithoutDiscount - Price! Cena před slevou.
priceBuy - Price Nákupní cena
visible - Boolean! Viditelný.
visibility - ProductVisibilityEnum! Viditelnost.
weight - Float Váha v kg.
width - Float Šířka v cm.
height - Float Výška v cm.
depth - Float Hloubka v cm.
seo - Seo! SEO.
unit - ProductUnit! Jednotka produktu.
deliveryTime - DeliveryTime! Dostupnost.
links - [ProductLink!]! Odkazy k produktu.
relatedProducts - [Product!]! Související produkty.
collectionProducts - [Product!]! Kolekce.
parameters - [ProductParameter!]! Parametry.
variations - [Variation!]! Varianty.
priceLists - [ProductPriceList!]! Ceníky.
labels - [Label!]! Štítky.
sections - [Section!]! Sekce, ve kterých je produkt zařazen.
Arguments
photos - [ProductPhoto!]! Obrázky.
Arguments
size - PhotoSizeEnum
bonusPoints - Float Bonusové body
productBatches - [ProductBatch!]! Produktové šarže
measureUnit - [ProductUnit!]! Měrná jednotka
convertors - [ProductConvertor!]! Převodní tabulky.
productTemplates - [ProductTemplate!]! Šablony.
photo - ProductPhoto Hlavní obrázek produktu.
Arguments
size - PhotoSizeEnum
Example
{
  "id": 100,
  "variationId": 987,
  "url": "xyz789",
  "code": "X100",
  "ean": "0000123456789",
  "eanRaw": "xyz789",
  "inStore": 50,
  "inStoreSuppliers": 987.65,
  "stores": [StoreItem],
  "title": "Tepláky WPJ",
  "variationTitle": "abc123",
  "description": "Tepláky WPJ",
  "longDescription": "<p>Tepláky WPJ</p>",
  "additionalDescription": "xyz789",
  "descriptionPlus": EditableContent,
  "discount": 10,
  "producer": Producer,
  "price": Price,
  "priceWithoutDiscount": Price,
  "priceBuy": Price,
  "visible": false,
  "visibility": "VISIBLE",
  "weight": 0.2,
  "width": 987.65,
  "height": 987.65,
  "depth": 123.45,
  "seo": Seo,
  "unit": ProductUnit,
  "deliveryTime": DeliveryTime,
  "links": [ProductLink],
  "relatedProducts": [Product],
  "collectionProducts": [Product],
  "parameters": [ProductParameter],
  "variations": [Variation],
  "priceLists": [ProductPriceList],
  "labels": [Label],
  "sections": [Section],
  "photos": [ProductPhoto],
  "bonusPoints": 987.65,
  "productBatches": [ProductBatch],
  "measureUnit": [ProductUnit],
  "convertors": [ProductConvertor],
  "productTemplates": [ProductTemplate],
  "photo": ProductPhoto
}

ProductBaseInterface

Fields
Field Name Description
id - Int! Interní ID.
variationId - Int ID varianty.
url - String! URL adresa.
code - String Kód.
ean - String EAN-13.
eanRaw - String EAN bez formátování
inStore - Float! Počet kusů skladem.
inStoreSuppliers - Float! Součet počtu kusů skladem u všech dodavatelů.
stores - [StoreItem!]! Skladovost na jednotlivých skladech.
title - String! Název produktu.
variationTitle - String Název varianty.
description - String! Krátký popis produktu.
longDescription - String! Dlouhý popis produktu (HTML).
additionalDescription - String! Rozšiřující popis.
descriptionPlus - EditableContent! Popis+ - editovatelný obsah.
discount - Float! Sleva.
producer - Producer Výrobce.
price - Price! Cena.
priceWithoutDiscount - Price! Cena před slevou.
priceBuy - Price Nákupní cena
visible - Boolean! Viditelný.
visibility - ProductVisibilityEnum! Viditelnost.
weight - Float Váha v kg.
width - Float Šířka v cm.
height - Float Výška v cm.
depth - Float Hloubka v cm.
seo - Seo! SEO.
unit - ProductUnit! Jednotka produktu.
deliveryTime - DeliveryTime! Dostupnost.
links - [ProductLink!]! Odkazy k produktu.
relatedProducts - [Product!]! Související produkty.
collectionProducts - [Product!]! Kolekce.
parameters - [ProductParameter!]! Parametry.
variations - [Variation!]! Varianty.
priceLists - [ProductPriceList!]! Ceníky.
labels - [Label!]! Štítky.
sections - [Section!]! Sekce, ve kterých je produkt zařazen.
Arguments
photos - [ProductPhoto!]! Obrázky.
Arguments
size - PhotoSizeEnum
bonusPoints - Float Bonusové body
productBatches - [ProductBatch!]! Produktové šarže
measureUnit - [ProductUnit!]! Měrná jednotka
convertors - [ProductConvertor!]! Převodní tabulky.
productTemplates - [ProductTemplate!]! Šablony.
Possible Types
ProductBaseInterface Types

Product

Example
{
  "id": 123,
  "variationId": 123,
  "url": "xyz789",
  "code": "abc123",
  "ean": "abc123",
  "eanRaw": "xyz789",
  "inStore": 123.45,
  "inStoreSuppliers": 123.45,
  "stores": [StoreItem],
  "title": "xyz789",
  "variationTitle": "abc123",
  "description": "xyz789",
  "longDescription": "xyz789",
  "additionalDescription": "xyz789",
  "descriptionPlus": EditableContent,
  "discount": 123.45,
  "producer": Producer,
  "price": Price,
  "priceWithoutDiscount": Price,
  "priceBuy": Price,
  "visible": false,
  "visibility": "VISIBLE",
  "weight": 987.65,
  "width": 123.45,
  "height": 123.45,
  "depth": 123.45,
  "seo": Seo,
  "unit": ProductUnit,
  "deliveryTime": DeliveryTime,
  "links": [ProductLink],
  "relatedProducts": [Product],
  "collectionProducts": [Product],
  "parameters": [ProductParameter],
  "variations": [Variation],
  "priceLists": [ProductPriceList],
  "labels": [Label],
  "sections": [Section],
  "photos": [ProductPhoto],
  "bonusPoints": 987.65,
  "productBatches": [ProductBatch],
  "measureUnit": [ProductUnit],
  "convertors": [ProductConvertor],
  "productTemplates": [ProductTemplate]
}

ProductBatch

Fields
Field Name Description
code - String! Kód šarže
dateExpiry - String! Datum spotřeby
batchQuantity - Float Množství na skladě s touto šarží
Example
{
  "code": "abc123",
  "dateExpiry": "abc123",
  "batchQuantity": 123.45
}

ProductChange

Fields
Field Name Description
productId - Int! ID produktu.
changedFields - [String!]! Seznam polí produktu, která byla v rámci této změny upravena.
metadata - ChangeMetadata! Obecné informace o změně.
Example
{
  "productId": 987,
  "changedFields": ["abc123"],
  "metadata": ChangeMetadata
}

ProductCollection

Fields
Field Name Description
items - [Product!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Product],
  "hasNextPage": true,
  "hasPreviousPage": true
}

ProductConvertor

Fields
Field Name Description
parameterId - Int! ID parametru-
parameterName - String! Název parametru.
parameterValue - String! Hodnota parametru.
productId - Int! ID produktu.
variationId - Int ID variatny.
convertorName - String! Název konvertoru.
Example
{
  "parameterId": 987,
  "parameterName": "xyz789",
  "parameterValue": "xyz789",
  "productId": 987,
  "variationId": 987,
  "convertorName": "xyz789"
}

ProductFilterInput

Fields
Input Field Description
id - [Int]
ean - [String]
code - [String]
variationEan - [String]
variationCode - [String]
producer - [Int]
section - [Int]
sectionRecursive - [Int]
dateCreated - DateFilterInput
dateUpdated - DateFilterInput
Example
{
  "id": [123],
  "ean": ["xyz789"],
  "code": ["abc123"],
  "variationEan": ["abc123"],
  "variationCode": ["abc123"],
  "producer": [123],
  "section": [123],
  "sectionRecursive": [123],
  "dateCreated": DateFilterInput,
  "dateUpdated": DateFilterInput
}

ProductLinkInput

Fields
Input Field Description
productId - Int! ID produktu.
links - [LinkItemInput!]! Odkazy.
append - Boolean
  • Pokud true, tak se u produktu zachovají aktuální odkazy a k nim se přidají odkazy specifikované v links.
  • Pokud false, tak u produktu smaže aktuální odkazy a přidá odkazy, které jsou specifikované ve links. Default = false
Example
{
  "productId": 987,
  "links": [LinkItemInput],
  "append": false
}

ProductModifyInput

Fields
Input Field Description
id - Int ID. Vyplňuje se pouze v případě aktualizace, pokud chceme založit nový produkt, tak ID nevyplňujeme.
code - String Kód.
ean - String EAN.
inStore - Float Počet kusů skladem.
title - String Název. Povinný pokud vytváříme nový produkt.
description - String Anotace.
longDescription - String Popis. Může obsahovat i HTML tagy.
additionalDescription - String Rozšiřující popis.
discount - Float Sleva v procentech.
price - PriceModifyInput Cena.
priceBuy - PriceModifyInput Nákupní cena
vat - Float Sazba DPH.
visibility - ProductVisibilityEnum Viditelnost.
visible - Boolean Viditelnost.
deliveryTimeId - Int Id výchozí dostupnosti zboží.
sections - [Int!] Sekce produktu. Je potřeba poslat ID sekcí.
producerId - Int ID výrobce.
photos - PhotosInput Obrázky produktu.
weight - Float Váha.
width - Float Šířka v cm.
height - Float Výška v cm.
depth - Float Hloubka v cm.
seo - SeoInput SEO.
productUnitId - Int Id měrné jednotky
labels - [Int!] Id štítků produktu.
measureUnitId - Int ID měrné jednotky
measureQuantity - Float Množství
Example
{
  "id": 987,
  "code": "xyz789",
  "ean": "abc123",
  "inStore": 123.45,
  "title": "abc123",
  "description": "abc123",
  "longDescription": "xyz789",
  "additionalDescription": "abc123",
  "discount": 987.65,
  "price": PriceModifyInput,
  "priceBuy": PriceModifyInput,
  "vat": 987.65,
  "visibility": "VISIBLE",
  "visible": true,
  "deliveryTimeId": 123,
  "sections": [123],
  "producerId": 987,
  "photos": PhotosInput,
  "weight": 123.45,
  "width": 123.45,
  "height": 123.45,
  "depth": 123.45,
  "seo": SeoInput,
  "productUnitId": 123,
  "labels": [123],
  "measureUnitId": 987,
  "measureQuantity": 123.45
}

ProductMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
product - Product! Zaktualizovaný objekt produktu.
Example
{"result": true, "product": Product}

ProductMutateResponseInterface

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
product - Product! Zaktualizovaný objekt produktu.
Possible Types
ProductMutateResponseInterface Types

ProductMutateResponse

VariationMutateResponse

Example
{"result": false, "product": Product}

ProductParameter

Fields
Field Name Description
values - [ParameterValue!]!
parameter - Parameter!
Example
{
  "values": [ParameterValue],
  "parameter": Parameter
}

ProductParameterInput

Fields
Input Field Description
productId - Int! ID produktu.
parameterId - Int! ID parametru.
values - [ParameterValueInput]! Hodnota parametru.
append - Boolean
  • Pokud true, tak se u produktu zachovají aktuální hodnoty a k nim se přidají hodnoty specifikované ve values.
  • Pokud false, tak u produktu smaže aktuální hodnoty a přidá pouze nové, které jsou specifikované ve values. Default = false
Example
{
  "productId": 987,
  "parameterId": 987,
  "values": [ParameterValueInput],
  "append": true
}

ProductPhoto

Fields
Field Name Description
id - Int! Interní ID.
source - String! URL cesta.
sourceOriginal - String! URL cesta k originálnímu souboru.
width - Int Šířka.
height - Int Výška.
showInLead - String

Typ

  • Y = hlavní obrázek
  • N = vedlejší obrázek.
Example
{
  "id": 123,
  "source": "xyz789",
  "sourceOriginal": "abc123",
  "width": 123,
  "height": 123,
  "showInLead": "xyz789"
}

ProductPriceChange

Fields
Field Name Description
productId - Int! ID produktu.
variationId - Int ID varianty.
priceListId - Int ID ceníku. Hodnota null může nastat v případě, že se jedná o cenu z výchozího ceníku.
price - Float Cena bez DPH.
pricePrevious - Float Cena bez DPH před změnou.
discount - Float Sleva v procentech.
discountPrevious - Float Sleva v procentech před změnou.
metadata - ChangeMetadata! Obecné informace o změně.
Example
{
  "productId": 123,
  "variationId": 123,
  "priceListId": 123,
  "price": 123.45,
  "pricePrevious": 987.65,
  "discount": 987.65,
  "discountPrevious": 987.65,
  "metadata": ChangeMetadata
}

ProductPriceList

Fields
Field Name Description
priceList - PriceList! Ceník.
price - Price! Cena.
Example
{
  "priceList": PriceList,
  "price": Price
}

ProductPriceListInput

Fields
Input Field Description
productId - Int ID produktu.
variationId - Int ID varianty.
priceListId - Int ID ceníku. Pokud nastavíte null, tak se bude provádět aktualizace výchozího skladu.
price - PriceModifyInput Cena. Pokud se vyplní null, tak se cena z ceníku smaže.
discount - Float Sleva v procentech.
Example
{
  "productId": 123,
  "variationId": 987,
  "priceListId": 987,
  "price": PriceModifyInput,
  "discount": 123.45
}

ProductPurchaseItem

Fields
Field Name Description
productId - Int! ID produktu.
variationId - Int ID varianty.
name - String! Název.
pieces - Float! Počet kusů.
piecePrice - Price! Jednotková cena.
totalPrice - Price! Celková cena.
discounts - [ProductPurchaseItemDiscount!]! Uplatněné slevy na produktu.
product - Product! Produkt.
productOriginalPrice - Price! Cena před slevami.
discount - Float! Sleva na produktu.
Example
{
  "productId": 987,
  "variationId": 123,
  "name": "xyz789",
  "pieces": 987.65,
  "piecePrice": Price,
  "totalPrice": Price,
  "discounts": [ProductPurchaseItemDiscount],
  "product": Product,
  "productOriginalPrice": Price,
  "discount": 123.45
}

ProductPurchaseItemDiscount

Fields
Field Name Description
id - Int ID slevy.
name - String! Název.
totalPrice - Price! Celková sleva.
Example
{
  "id": 123,
  "name": "xyz789",
  "totalPrice": Price
}

ProductQuantityChange

Fields
Field Name Description
productId - Int! ID produktu.
variationId - Int ID varianty.
storeId - Int ID skladu. Hodnota null může nastat v případě, že e-shop nemá modul skladů.
quantity - Int! Počet kusů skladem.
quantityPrevious - Int Počet kusů skladem před změnou.
metadata - ChangeMetadata! Obecné informace o změně.
Example
{
  "productId": 123,
  "variationId": 123,
  "storeId": 987,
  "quantity": 987,
  "quantityPrevious": 987,
  "metadata": ChangeMetadata
}

ProductSetInput

Fields
Input Field Description
productMasterId - Int! ID hlavního produktu.
sets - [ProductSetItemInput!]! Položky setu.
append - Boolean
  • Pokud true, tak se u produktu zachovají aktuální produkty v kolekci a k nim se přidají produkty specifikované v products.
  • Pokud false, tak u produktu smažou aktuální produkty v kolekci a přidá produkty, které jsou specifikované v products. Default = false
Example
{
  "productMasterId": 987,
  "sets": [ProductSetItemInput],
  "append": true
}

ProductSetItemInput

Fields
Input Field Description
productId - Int ID setové položky.
variationId - Int ID varianty setové položky.
pieces - Int Počet kusů.
Example
{"productId": 987, "variationId": 987, "pieces": 123}

ProductSortInput

Fields
Input Field Description
id - SortEnum
title - SortEnum
ean - SortEnum
Example
{"id": "ASC", "title": "ASC", "ean": "ASC"}

ProductStoreInput

Fields
Input Field Description
productId - Int! ID produktu.
variationId - Int ID varianty. Default = null
storeId - Int! ID skladu.
quantity - Float! Počet kusů skladem.
Example
{"productId": 987, "variationId": 987, "storeId": 123, "quantity": 987.65}

ProductTemplate

Fields
Field Name Description
id - Int! ID šablony.
title - String! Název šablony.
position - Int Pozice.
templates - [Template!]! Šablony.
Example
{
  "id": 987,
  "title": "abc123",
  "position": 987,
  "templates": [Template]
}

ProductTranslationInput

Fields
Input Field Description
productId - Int ID produktu.
language - String Jazyk.
title - String Název produktu.
description - String Anotace.
longDescription - String Popis. Může obsahovat i HTML tagy.
additionalDescription - String Rozšiřující popis.
visibility - ProductVisibilityEnum Viditelnost.
seo - SeoInput SEO.
Example
{
  "productId": 987,
  "language": "xyz789",
  "title": "xyz789",
  "description": "abc123",
  "longDescription": "abc123",
  "additionalDescription": "xyz789",
  "visibility": "VISIBLE",
  "seo": SeoInput
}

ProductTranslationMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
Example
{"result": true}

ProductUnit

Fields
Field Name Description
id - Int! ID jednotky
name - String! Název jednotky
adminName - String Název jednotky v administraci
longName - String Dlouhý název jednotky
recalculateTo - Float Přepočet na
measureQuantity - Float Množství
Example
{
  "id": 987,
  "name": "xyz789",
  "adminName": "abc123",
  "longName": "xyz789",
  "recalculateTo": 123.45,
  "measureQuantity": 123.45
}

ProductUnitCollection

Fields
Field Name Description
items - [ProductUnit!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [ProductUnit],
  "hasNextPage": true,
  "hasPreviousPage": true
}

ProductUnitInput

Fields
Input Field Description
id - Int ID měrné jednotky. Povinné při aktualizaci.
name - String Název jednotky
nameAdmin - String Název jednotky v administraci
longName - String Dlouhý název jednotky.
recalculateTo - Int Přepočet na
Example
{
  "id": 987,
  "name": "xyz789",
  "nameAdmin": "xyz789",
  "longName": "abc123",
  "recalculateTo": 123
}

ProductUnitMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
productUnit - ProductUnit! Vytvořená / aktualizovaná měrná jedntka.
Example
{"result": true, "productUnit": ProductUnit}

ProductVariationChange

Fields
Field Name Description
variationId - Int ID varianty.
productId - Int! ID produktu.
changedFields - [String!]! Seznam polí varianty, která byla v rámci této změny upravena.
metadata - ChangeMetadata! Obecné informace o změně.
Example
{
  "variationId": 987,
  "productId": 123,
  "changedFields": ["abc123"],
  "metadata": ChangeMetadata
}

ProductVisibilityEnum

Values
Enum Value Description

VISIBLE

CLOSED

HIDDEN

Example
"VISIBLE"

PurchaseCalculateInput

Fields
Input Field Description
items - [PurchaseItemInput!]! Položky nákupu.
coupons - [String!] Poukazy, které se mají při cenění nákupu použít. Default = null
userId - Int ID uživatele, který se má při cenění nákupu aktivovat. Default = null
Example
{
  "items": [PurchaseItemInput],
  "coupons": ["abc123"],
  "userId": 123
}

PurchaseItemInput

Fields
Input Field Description
productId - Int ID produktu. Default = null
variationId - Int ID varianty. Default = null
code - String Kód produktu/varianty. Může se vyplnit místo ID produktu a ID varianty. Default = null
pieces - Float! Počet kusů.
price - Float Cena. Celková cena za všechny kusy s DPH. Pokud nebude vyplněna, tak se převezme cena z e-shopu. Default = null
Example
{
  "productId": 987,
  "variationId": 123,
  "code": "abc123",
  "pieces": 123.45,
  "price": 987.65
}

PurchaseState

Fields
Field Name Description
products - [ProductPurchaseItem!]! Produkty.
discounts - [UnionDiscountPurchaseItemProductPurchaseItem!]! Aplikované slevy. Může obsahovat dva typy slev.
- DiscountPurchaseItem - standardní sleva (poukaz, globální sleva...) - ProductPurchaseItem - produkt získaný skrze slevu (dárek)
activeDiscountCodes - [DiscountCode!]! Uplatněné slevové kupóny nebo dárkové poukazy
totalPrice - TotalPrice! Celková cena nákupu.
totalPriceDiscounts - TotalPrice! Celková sleva uplatněná na nákup.
Example
{
  "products": [ProductPurchaseItem],
  "discounts": [DiscountPurchaseItem],
  "activeDiscountCodes": [DiscountCode],
  "totalPrice": TotalPrice,
  "totalPriceDiscounts": TotalPrice
}

RelatedItemInput

Fields
Input Field Description
productId - Int! ID produktu.
Example
{"productId": 987}

RelatedProductsInput

Fields
Input Field Description
productId - Int! ID produktu.
products - [RelatedItemInput!]! Produkty, které mají být v souvisejícím zboží.
append - Boolean
  • Pokud true, tak se u produktu zachovají aktuální související produkty a k nim se přidají související produktu specifikované v products.
  • Pokud false, tak u produktu smažou aktuální související produkty a přidá související produkty, které jsou specifikované v products. Default = false
type - Int ID z listu souvisejícího typu produktu. Default = null
Example
{
  "productId": 123,
  "products": [RelatedItemInput],
  "append": true,
  "type": 987
}

Sale

Fields
Field Name Description
id - Int! ID
code - String! Kód
currency - Currency! Měna
language - Language! Jazyk
dateCreated - DateTime! Datum vytvoření
user - User Uživatel
deliveryType - DeliveryType Způsob doručení
note - String Poznámka
totalPrice - TotalPrice! Celková cena
data - String! JSON data
items - [SaleItem!]! Položky
Example
{
  "id": 987,
  "code": "abc123",
  "currency": Currency,
  "language": Language,
  "dateCreated": "\"2022-02-01 08:00:00\"",
  "user": User,
  "deliveryType": DeliveryType,
  "note": "xyz789",
  "totalPrice": TotalPrice,
  "data": "xyz789",
  "items": [SaleItem]
}

SaleCollection

Fields
Field Name Description
items - [Sale!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Sale],
  "hasNextPage": false,
  "hasPreviousPage": false
}

SaleFilterInput

Fields
Input Field Description
id - [Int!] Filtr podle ID prodejek. Default = null
code - [String!] Filtr podle kódu prodejek. Default = null
dateCreated - DateFilterInput Filtr podle data vytvoření. Default = null
Example
{
  "id": [123],
  "code": ["abc123"],
  "dateCreated": DateFilterInput
}

SaleItem

Fields
Field Name Description
id - Int! ID
productId - Int Interní ID produktu.
variationId - Int Interní ID varianty.
pieces - Float! Počet objednaných kusů.
piecePrice - Price! Cena za kus.
totalPrice - Price! Celková cena.
name - String! Název položky.
product - Product Produkt.
Example
{
  "id": 987,
  "productId": 123,
  "variationId": 987,
  "pieces": 123.45,
  "piecePrice": Price,
  "totalPrice": Price,
  "name": "xyz789",
  "product": Product
}

SaleSortInput

Fields
Input Field Description
id - SortEnum
code - SortEnum
dateCreated - SortEnum
Example
{"id": "ASC", "code": "ASC", "dateCreated": "ASC"}

Section

Fields
Field Name Description
id - Int! ID.
name - String! Název.
nameShort - String! Krátký název.
behaviour - SectionBehaviourEnum! Zobrazovat produkty z podsekcí.
showInSearch - Boolean Zobrazovat ve vyhledávíní.
visible - Boolean! Viditelná.
visibility - SectionVisibilityEnum! Viditelnost.
url - String! URL adresa.
photo - ProductPhoto Obrázek.
hasChildren - Boolean! Sekce má nebo nemá podsekce.
isVirtual - Boolean! Sekce je virtuální.
parent - Section Nadřazená sekce.
parents - [Section!]! Nadřazené sekce.
children - [Section!]! Podsekce.
description - EditableContent! Popis.
seo - Seo! SEO.
Example
{
  "id": 123,
  "name": "xyz789",
  "nameShort": "xyz789",
  "behaviour": "NOT_SHOW_PRODUCTS_FROM_SUBSECTIONS",
  "showInSearch": false,
  "visible": true,
  "visibility": "VISIBLE",
  "url": "xyz789",
  "photo": ProductPhoto,
  "hasChildren": true,
  "isVirtual": true,
  "parent": Section,
  "parents": [Section],
  "children": [Section],
  "description": EditableContent,
  "seo": Seo
}

SectionBehaviourEnum

Values
Enum Value Description

NOT_SHOW_PRODUCTS_FROM_SUBSECTIONS

SHOW_PRODUCTS_FROM_SUBSECTIONS

Example
"NOT_SHOW_PRODUCTS_FROM_SUBSECTIONS"

SectionCollection

Fields
Field Name Description
items - [Section!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Section],
  "hasNextPage": false,
  "hasPreviousPage": true
}

SectionFilterInput

Fields
Input Field Description
visible - Boolean Filtruje jen viditelné nebo jen skryté sekce. Default = null
isVirtual - Boolean Filtruje pouze nevirtuálních/virtuálních sekcí. Default = null
Example
{"visible": false, "isVirtual": false}

SectionInput

Description

Vytvoření/úprava sekce

Fields
Input Field Description
id - Int ID. Vyplňuje se pouze v případě aktualizace, pokud chceme založit nový produkt, tak ID nevyplňujeme.
name - String Název. Povinný pokud vytváříme nový produkt.
nameShort - String Krátký název.
parentId - Int ID nadřazené sekce.
visibility - SectionVisibilityEnum Viditelnost.
behaviour - SectionBehaviourEnum Zobrazovat produkty z podsekcí.
showInSearch - Boolean Zobrazovat ve vyhledávání.
seo - SeoInput SEO.
url - String URL sekce.
redirectUrl - String URL pro přesměrování.
Example
{
  "id": 123,
  "name": "abc123",
  "nameShort": "abc123",
  "parentId": 123,
  "visibility": "VISIBLE",
  "behaviour": "NOT_SHOW_PRODUCTS_FROM_SUBSECTIONS",
  "showInSearch": false,
  "seo": SeoInput,
  "url": "abc123",
  "redirectUrl": "xyz789"
}

SectionMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
section - Section! Aktualizovaný objekt sekce.
Example
{"result": true, "section": Section}

SectionTranslationInput

Fields
Input Field Description
sectionId - Int ID sekce.
language - String Jazyk.
name - String Název.
nameShort - String Krátký název.
Example
{
  "sectionId": 123,
  "language": "abc123",
  "name": "abc123",
  "nameShort": "abc123"
}

SectionTranslationMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
Example
{"result": false}

SectionVisibilityEnum

Values
Enum Value Description

VISIBLE

HIDDEN_IN_MENU

HIDDEN

Example
"VISIBLE"

Seller

Fields
Field Name Description
id - Int! ID prodejny.
visible - Boolean! Viditelnost.
latitude - Float Zeměpisná šířka.
longitude - Float Zeměpisná délka.
store - Store Sklad prodejny.
name - String! Název prodejny.
type - String! Typ prodejny.
typeName - String! Název typu prodejny.
email - String! E-mail prodejny.
street - String! Ulice.
number - String Číslo popisné.
zip - String! PSČ.
city - String! Město.
phone - String! Telefon prodejny.
country - Country! Země.
description - String HTML popis.
photos - [PhotoInterface!]! Obrázky.
flags - [SellerFlag!]! Štítky.
isOrderingAllowed - Boolean! Informace, zda je možné na danou prodejnu vytvořit objednávku.
data - String JSON řetězec obsahující dodatečná data.
content - EditableContent! Editovatelný obsah.
Example
{
  "id": 123,
  "visible": false,
  "latitude": 123.45,
  "longitude": 987.65,
  "store": Store,
  "name": "abc123",
  "type": "xyz789",
  "typeName": "xyz789",
  "email": "xyz789",
  "street": "abc123",
  "number": "abc123",
  "zip": "abc123",
  "city": "xyz789",
  "phone": "abc123",
  "country": Country,
  "description": "abc123",
  "photos": [PhotoInterface],
  "flags": [SellerFlag],
  "isOrderingAllowed": false,
  "data": "xyz789",
  "content": EditableContent
}

SellerCollection

Fields
Field Name Description
items - [Seller!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Seller],
  "hasNextPage": false,
  "hasPreviousPage": true
}

SellerFlag

Fields
Field Name Description
id - String! ID.
name - String! Název.
Example
{
  "id": "abc123",
  "name": "xyz789"
}

SellerFlagsInput

Fields
Input Field Description
id - [String!] ID štítků.
delete - Boolean
Example
{"id": ["xyz789"], "delete": true}

SellerInput

Fields
Input Field Description
id - Int ID.
visible - Boolean ID prodejny.
storeId - Int ID skladu, který se má prodejně nastavit.
name - String Název.
latitude - Float Zeměpisná šířka.
longitude - Float Zeměpisná délka.
description - String HTML popis.
type - String Typ prodejny.
email - String E-mail.
street - String Ulice prodejny.
number - String Číslo popisné.
city - String Město.
zip - String PSČ.
phone - String Telefon.
country - String Země - ISO kód země.
photos - [PhotoInput!] Obrázky.
data - String JSON řetězec obsahující dodatečná data.
deletePhotos - Boolean Pokud true, tak smaže obrázky prodejny.
flags - SellerFlagsInput Štítky.
Example
{
  "id": 987,
  "visible": true,
  "storeId": 987,
  "name": "xyz789",
  "latitude": 987.65,
  "longitude": 987.65,
  "description": "abc123",
  "type": "xyz789",
  "email": "xyz789",
  "street": "abc123",
  "number": "xyz789",
  "city": "xyz789",
  "zip": "abc123",
  "phone": "abc123",
  "country": "xyz789",
  "photos": [PhotoInput],
  "data": "xyz789",
  "deletePhotos": false,
  "flags": SellerFlagsInput
}

SellerMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
seller - Seller! Vytvořená / aktualizovaná prodejna.
Example
{"result": true, "seller": Seller}

Seo

Fields
Field Name Description
title - String SEO název.
description - String SEO popis.
keywords - String SEO klíčová slova.
Example
{
  "title": "abc123",
  "description": "abc123",
  "keywords": "abc123"
}

SeoInput

Fields
Input Field Description
title - String SEO název.
description - String SEO popisek.
keywords - String SEO klíčová slova.
Example
{
  "title": "xyz789",
  "description": "abc123",
  "keywords": "abc123"
}

SimplePrice

Fields
Field Name Description
price - Float! Cena.
currency - Currency! Měna.
Example
{"price": 987.65, "currency": Currency}

SortEnum

Values
Enum Value Description

ASC

DESC

Example
"ASC"

StatusModifyInput

Fields
Input Field Description
id - Int! ID stavu.
comment - String Interní komentář změny stavu. Default = null
emailType - String Typ systémového e-mailu, který se při změně stavu má odeslat. Default = null
userMessage - String Název e-mailu ze zpráv uživatelům, který se při změně stavu má odeslat. Default = null
sendEmail - Boolean Nastavení, jestli se má poslat e-mail. Ve výchozím stavu, pokud není specifikováno, se řídí nastavením e-shopu/e-mailu. Default = null
Example
{
  "id": 123,
  "comment": "xyz789",
  "emailType": "xyz789",
  "userMessage": "abc123",
  "sendEmail": true
}

Store

Fields
Field Name Description
id - Int! ID.
name - String! Název.
type - StoreType!

Typ skladu.

  • MAIN_STORE - hlavní sklad
  • STORE - sklad
  • EXTERNAL_STORE - externí sklad.
visible - Boolean! Viditelný.
Example
{
  "id": 123,
  "name": "xyz789",
  "type": "MAIN_STORE",
  "visible": true
}

StoreCollection

Fields
Field Name Description
items - [Store!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Store],
  "hasNextPage": true,
  "hasPreviousPage": true
}

StoreCreateInput

Fields
Input Field Description
name - String! Název.
type - StoreType

Typ skladu.

  • STORE - sklad
  • EXTERNAL_STORE - externí sklad.

Pokud se nevyplní, tak se nastaví typ skladu na "STORE". Default = null

visible - Boolean Viditelný. Default = true
Example
{
  "name": "abc123",
  "type": "MAIN_STORE",
  "visible": false
}

StoreItem

Fields
Field Name Description
inStore - Float! Počet kusů na skladu.
store - Store! Sklad.
Example
{"inStore": 123.45, "store": Store}

StoreType

Values
Enum Value Description

MAIN_STORE

STORE

EXTERNAL_STORE

Example
"MAIN_STORE"

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example
"abc123"

SystemPage

Fields
Field Name Description
id - Int! ID stránky.
type - String Typ stránky.
code - String! Kód stránky
name - String Název stránky.
urlL - String URL stránky.
content - EditableContent! Editovatelný obsah.
Example
{
  "id": 123,
  "type": "xyz789",
  "code": "abc123",
  "name": "xyz789",
  "urlL": "abc123",
  "content": EditableContent
}

SystemPageCollection

Fields
Field Name Description
items - [Page!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Page],
  "hasNextPage": true,
  "hasPreviousPage": false
}

SystemPageFilterInput

Fields
Input Field Description
id - [Int!] Filtr podle ID stránek. Default = null
code - [String!] Filtr podle kódu stránek. Default = null
type - [String!] Filtr podle typu stránek. Default = null
Example
{
  "id": [123],
  "code": ["xyz789"],
  "type": ["abc123"]
}

SystemPageSortInput

Fields
Input Field Description
id - SortEnum
code - SortEnum
type - SortEnum
Example
{"id": "ASC", "code": "ASC", "type": "ASC"}

Template

Fields
Field Name Description
id - Int! ID šablony.
categoryId - Int ID typu šablony.
position - Int Pozice šablony.
name - String Název šablony.
visible - Boolean! Viditelnost
data - String JSON řetězec obsahující dodatečná data.
content - EditableContent! Editovatelný obsah.
Example
{
  "id": 123,
  "categoryId": 123,
  "position": 987,
  "name": "abc123",
  "visible": true,
  "data": "xyz789",
  "content": EditableContent
}

TemplateCollection

Fields
Field Name Description
items - [Template!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [Template],
  "hasNextPage": true,
  "hasPreviousPage": false
}

TemplateFilterInput

Fields
Input Field Description
id - [Int!] Filtr podle ID šablony. Default = null
categoryId - [Int!] Filtr podle ID typu šablony. Default = null
visible - Boolean Filtr podle viditelnosti šablony. Default = null
Example
{"id": [987], "categoryId": [123], "visible": true}

TemplateSortInput

Fields
Input Field Description
id - SortEnum
code - SortEnum
idCategory - SortEnum
Example
{"id": "ASC", "code": "ASC", "idCategory": "ASC"}

TotalPrice

Fields
Field Name Description
withVat - Float! Cena s DPH.
withoutVat - Float! Cena bez DPH.
currency - Currency! Měna.
Example
{
  "withVat": 987.65,
  "withoutVat": 987.65,
  "currency": Currency
}

UnionDiscountPurchaseItemProductPurchaseItem

Example
DiscountPurchaseItem

User

Fields
Field Name Description
invoiceAddress - Address! Fakturační adresa.
deliveryAddress - Address! Dodací adresa.
invoiceDetails - Address! Fakturační údaje. use invoiceAddress field
deliveryDetails - Address! Dodací údaje. use deliveryAddress field
gender - GenderEnum Pohlaví.
isActive - Boolean! Vrací, zda je uživatel aktivní.
newsletterInfo - UserNewsletter! Informace o odběru newsletteru.
dateRegistered - DateTime Datum registrace. Pokud je datum registrace null, tak to znamená, že uživatel není registrovaný, ale je např. přihlášený pouze k newsletteru.
dateUpdated - DateTime Datum poslední změny.
dateLogged - DateTime Datum posledního přihlášení.
note - String Poznámka nastavená administrátorem u uživatele.
priceList - PriceList Ceník nastavený u uživatele.
bonusPoints - Int Počet bodů v bonusovém programu.
dateLastOrder - DateTime Datum poslední objednávky.
priceLevel - PriceLevel Cenová hladina.
birthdate - DateTime Datum narození.
userGroups - [UserGroup!] Zařazení do skupin
coupons - [DiscountCoupon!]! Poukazy uživatele.
newsletter - String Odběr newslettru. Use newsletterInfo field
subscribeDate - String Datum přihlášení k newsletteru. Use newsletterInfo field
unsubscribeDate - String Datum odhlášení od newsletteru. Use newsletterInfo field
registrationDate - String Datum registrace. Use dateRegistered field
updateDate - String Datum aktualizace. Use dateUpdated field
loggedDate - String Datum posledního přihlášení. Use dateLogged field
figure - String Figure. Use isActive field
id - Int! ID uživatele.
email - String! E-mail.
name - String! Jméno.
surname - String! Příjmení.
userName - String! Celé jméno.
isB2B - Boolean! Vrací, zda je uživatel B2B.
Example
{
  "invoiceAddress": Address,
  "deliveryAddress": Address,
  "invoiceDetails": Address,
  "deliveryDetails": Address,
  "gender": "GENDER_MALE",
  "isActive": true,
  "newsletterInfo": UserNewsletter,
  "dateRegistered": "\"2022-02-01 08:00:00\"",
  "dateUpdated": "\"2022-02-01 08:00:00\"",
  "dateLogged": "\"2022-02-01 08:00:00\"",
  "note": "xyz789",
  "priceList": PriceList,
  "bonusPoints": 123,
  "dateLastOrder": "\"2022-02-01 08:00:00\"",
  "priceLevel": PriceLevel,
  "birthdate": "\"2022-02-01 08:00:00\"",
  "userGroups": [UserGroup],
  "coupons": [DiscountCoupon],
  "newsletter": "xyz789",
  "subscribeDate": "abc123",
  "unsubscribeDate": "abc123",
  "registrationDate": "abc123",
  "updateDate": "abc123",
  "loggedDate": "xyz789",
  "figure": "abc123",
  "id": 987,
  "email": "abc123",
  "name": "abc123",
  "surname": "abc123",
  "userName": "abc123",
  "isB2B": false
}

UserCollection

Fields
Field Name Description
items - [User!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [User],
  "hasNextPage": true,
  "hasPreviousPage": false
}

UserFilterInput

Fields
Input Field Description
id - [Int!]
emails - [String!]
phone - String
name - String
dateRegistered - DateFilterInput
dateUpdated - DateFilterInput
Example
{
  "id": [123],
  "emails": ["abc123"],
  "phone": "xyz789",
  "name": "abc123",
  "dateRegistered": DateFilterInput,
  "dateUpdated": DateFilterInput
}

UserGroup

Fields
Field Name Description
id - Int! ID
name - String! Název skupiny
description - String Popis
types - [String!] Typy skupiny
priceLevel - PriceLevel Cenová hladina
priceList - PriceList Ceník
Example
{
  "id": 123,
  "name": "xyz789",
  "description": "xyz789",
  "types": ["abc123"],
  "priceLevel": PriceLevel,
  "priceList": PriceList
}

UserInput

Description

Uživatel - založení/aktualizace

Fields
Input Field Description
id - Int ID uživatele. Povinné při aktualizaci uživatele.
email - String E-mail.
isActive - Boolean Aktivní.
priceListId - Int ID Ceníku.
ico - String IČO.
dic - String DIČ.
invoiceAddress - AddressInput Fakturační adresa.
deliveryAddress - AddressInput Dodací adresa.
newsletter - UserNewsletterInput Odběr novinek.
Example
{
  "id": 987,
  "email": "abc123",
  "isActive": false,
  "priceListId": 123,
  "ico": "xyz789",
  "dic": "xyz789",
  "invoiceAddress": AddressInput,
  "deliveryAddress": AddressInput,
  "newsletter": UserNewsletterInput
}

UserMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
user - User! Vytvořený / aktualizovaný uživatel.
Example
{"result": true, "user": User}

UserNewsletter

Fields
Field Name Description
isSubscribed - Boolean! Vrací, zda je uživatel přihlášen k newsletteru.
dateSubscribe - DateTime Datum přihlášení k newsletteru.
dateUnsubscribe - DateTime Datum odhlášení od newsletteru.
Example
{
  "isSubscribed": false,
  "dateSubscribe": "\"2022-02-01 08:00:00\"",
  "dateUnsubscribe": "\"2022-02-01 08:00:00\""
}

UserNewsletterInput

Description

Odběr novinek uživatele.

Fields
Input Field Description
isSubscribed - Boolean Přihlášen k odběru novinek.
Example
{"isSubscribed": false}

UserSortInput

Fields
Input Field Description
id - SortEnum
email - SortEnum
name - SortEnum
surname - SortEnum
Example
{"id": "ASC", "email": "ASC", "name": "ASC", "surname": "ASC"}

Variation

Fields
Field Name Description
id - Int! Interní ID.
code - String Kód.
ean - String EAN.
title - String! Název.
labels - [VariationValue!]! use values instead
values - [VariationValue!]! Jmenovky a jejich hodnoty přiřazené u varianty
inStore - Float! Počet kusů skladem.
inStoreSuppliers - Float! Součet počtu kusů skladem u všech dodavatelů.
visible - Boolean! Viditelný.
weight - Float Váha v kg.
price - Price! Cena.
priceBuy - Price Nákupní cena.
stores - [StoreItem!]! Skladovost na jednotlivých skladech.
priceLists - [ProductPriceList!]! Ceníky.
deliveryTime - DeliveryTime! Dostupnost.
batches - [ProductBatch!] Šarže
Example
{
  "id": 21,
  "code": "X100-01",
  "ean": "0000123456789",
  "title": "Velikost: M",
  "labels": [VariationValue],
  "values": [VariationValue],
  "inStore": 50,
  "inStoreSuppliers": 123.45,
  "visible": false,
  "weight": 0.2,
  "price": Price,
  "priceBuy": Price,
  "stores": [StoreItem],
  "priceLists": [ProductPriceList],
  "deliveryTime": DeliveryTime,
  "batches": [ProductBatch]
}

VariationLabel

Fields
Field Name Description
id - Int! ID jmenovky.
name - String! Název jmenovky.
Example
{"id": 123, "name": "xyz789"}

VariationLabelCollection

Fields
Field Name Description
items - [VariationLabel!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [VariationLabel],
  "hasNextPage": true,
  "hasPreviousPage": false
}

VariationLabelInput

Fields
Input Field Description
label - String! Jmenovka varianty (např. Velikost, Barva, Velikost bot...).
value - String! Hodnota jmenovky varianty. (např. M, L, XL, červená, modrá...).
Example
{
  "label": "xyz789",
  "value": "xyz789"
}

VariationModifyInput

Fields
Input Field Description
id - Int ID. Vyplňuje se pouze v případě aktualizace, pokud chceme založit nový produkt, tak ID nevyplňujeme. Default = null
productId - Int ID produktu. Default = null
code - String Kód. Default = null
ean - String EAN. Default = null
inStore - Float Počet kusů skladem. Default = null
labels - [VariationLabelInput!] Jmenovka a hodnota varianty, kterou je potřeba vyplnit při vytváření varianty. Default = null
title - String
price - PriceModifyInput Cena. Default = null
visible - Boolean Viditelnost. Default = null
deliveryTimeId - Int Id výchozí dostupnosti zboží. Default = null
weight - Float Váha. Default = null
photos - [PhotoModifyInput!] Obrázky varianty. Default = []
Example
{
  "id": 987,
  "productId": 123,
  "code": "abc123",
  "ean": "abc123",
  "inStore": 987.65,
  "labels": [VariationLabelInput],
  "title": "xyz789",
  "price": PriceModifyInput,
  "visible": true,
  "deliveryTimeId": 987,
  "weight": 987.65,
  "photos": [PhotoModifyInput]
}

VariationMutateResponse

Fields
Field Name Description
result - Boolean! Vrací true / false podle toho, zda byla aktualizace úspěšná nebo nebyla.
product - Product! Zaktualizovaný objekt produktu.
variation - Variation! Zaktualizovaná varianta.
Example
{
  "result": false,
  "product": Product,
  "variation": Variation
}

VariationValue

Fields
Field Name Description
label - VariationLabel! Jmenovka.
value - String! Hodnota jmenovky.
code - String! Kód jmenovky.
position - Int Pořadí.
filterUrl - String! URL ve filtru.
title - String! Titulek.
data - String! JSON data.
Example
{
  "label": VariationLabel,
  "value": "xyz789",
  "code": "xyz789",
  "position": 123,
  "filterUrl": "abc123",
  "title": "abc123",
  "data": "abc123"
}

VariationValueCollection

Fields
Field Name Description
items - [VariationValue!]!
hasNextPage - Boolean!
hasPreviousPage - Boolean!
Example
{
  "items": [VariationValue],
  "hasNextPage": true,
  "hasPreviousPage": true
}

VariationValueFilterInput

Fields
Input Field Description
valueId - [Int!] Filtr podle ID hodnoty varianty. Default = null
Example
{"valueId": [987]}