Query

(OBJECT)

Querying retrieves data (read access). Batching of multiple queries is not supported with this API. To modify data or perform operations @see Mutation defintion.

As of GraphQL nature, for each query you need to specify fields returned. To make this simpler you may use predefined fragments of data (default datasets) which honor the _<ObjectName> convention. @see fragments.graphql

You may need to distinguish between cursors i.e. pageable lists of items (SomeobjectList objects) returned and simple sets of items (array of objects). General rule is that lists are used for 'content generated by public' and are retrieved by getObjectList queries, simple sets are used for 'items created/managed by administrator' and retrieved by listObjects calls.

Please note for cursors you may not request more than 30 items at once (i.e. page size is limited to max 30 items).

link GraphQL Schema definition

  • type Query {
  • # Simple greeting method to test request validity, syntax or response
  • # processing.
    Says Hello to whomever you like.
  • #
  • # Arguments
  • # name: whom to greet
  • hello(name: String): String
  • # Lists orders. Please note the returned type is pageable list.
  • #
  • # Arguments
  • # lang_code: language
  • # params: pagination and filtering parameters
  • # filter: mass order filter available only with partner token
  • getOrderList(
  • lang_code: String,
  • params: OrderParams,
  • filter: OrderFilter
  • ): OrderList
  • # Retrieve detailed information about specific order. Use '_Order' fragment to
  • # retrieve default set of information.
  • #
  • # Arguments
  • # order_num: order's evidence number
  • getOrder(order_num: String!): Order
  • # Preinvoice list
  • #
  • # Arguments
  • # company_id:
  • # params:
  • # filter: mass preinvoice filter available only with partner
  • # tokenfilter
  • getPreinvoiceList(
  • company_id: ID,
  • params: OrderParams,
  • filter: PreinvoiceFilter
  • ): PreinvoiceList
  • # Invoice list
  • #
  • # Arguments
  • # company_id:
  • # params:
  • # filter: mass invoice filter available only with partner
  • # tokenfilter
  • getInvoiceList(
  • company_id: ID,
  • params: OrderParams,
  • filter: InvoiceFilter
  • ): InvoiceList
  • # Invoice detail
  • #
  • # Arguments
  • # invoice_num:
  • getInvoice(invoice_num: String!): Invoice
  • # Product list
  • #
  • # Arguments
  • # lang_code: Products for language version
  • # params: Params
  • # filter: mass product filter available only with partner
  • # tokenfilter
  • getProductList(
  • lang_code: String!,
  • params: ProductParams,
  • filter: ProductFilter
  • ): ProductList
  • # Product detail
  • #
  • # Arguments
  • # product_id: internal product id
  • # lang_code: language code
  • # import_code: import code from supplier or data source
  • # ean: EAN
  • getProduct(product_id: ID, lang_code: String, import_code: String, ean: Ean): Product
  • # Category detail
  • #
  • # Arguments
  • # category_id: internal product id
  • # productListParams: params filter and pagination for products in
  • # this category
  • getCategory(category_id: ID, productListParams: ProductParams): Category
  • # Invoicing company
  • #
  • # Arguments
  • # id:
  • # name:
  • # company_id:
  • listMyCompanies(id: ID, name: String, company_id: String): [InvoicingCompany]
  • # Order statuses list
  • #
  • # Arguments
  • # only_active: if true ignore statuses for inactive paygates
  • # lang_code:
  • listOrderStatuses(only_active: Boolean, lang_code: String): [OrderStatus]
  • # Warehouse status list
  • #
  • # Arguments
  • # allow_order:
  • # pickup:
  • # lang_code:
  • listWarehouseStatuses(
  • allow_order: Boolean,
  • pickup: Boolean,
  • lang_code: String
  • ): [WarehouseStatus]
  • }

link Require by

This element is not required by anyone