Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks

Price classes list

API reference (XML/JSON) · Updated 2023-09-18

Function

The PriceClassesList task inquires the existing price classes.

You can find more information about list queries here. 

Description

Route: POST /priceClass/article/_search

Query Parameters

The following keywords are returned by default:                       

  • priceClass.name
  • priceClass.type
  • businessCasePrice.businessCaselabel
  • price.vatRate
  • price.vatAmount
  • price.rate
  • price.amount
  • price.type
  • price.currency
  • price.priority
  • price.period
  • price.discountable
  • price.refund
  • price.until
  • price.from
  • price.valid

The data of the following keywords can be queried with the query parameter ?keys[]=:

  • price.comment
  • price.promotion
  • price.priceList
  • price.priceChange
{
    "customer": {
        "group": "12345",
        "client": "customer"
    },

    "filters": [
        {
            "key": "price_class.name",
            "value": "DO*",
            "operator": "LIKE"
		}
	],
    "view": {
        "currency": "USD",
        "children": 1,
        "limit": 10
    },
    "orders": [
        {
            "key": "price_class.name",
            "type": "ASC"
	}
]
}
{
  "status" : {
    "code" : "S099925",
    "text" : "S099925",
    "type" : "SUCCESS"
  },
  "object" : {
    "type" : "",
    "summary" : 1
  },
  "data" : [ {
    "businessCasePrices" : [ {
      "businessCase" : "create",
      "prices" : [ {
        "amount" : 400.0,
        "type" : "NET",
        "currency" : "EUR",
        "priority" : "DEFAULT",
        "period" : {
          "unit" : "MONTH",
          "period" : 12
        },
        "discountable" : true,
        "refund" : 100,
        "vatRate" : "19.0",
        "vatAmount" : 0.0,
        "rate" : 1.0
      } ]
    } ],
    "priceClass" : {
      "type" : "NET",
      "name" : "DONUTS-AAA+"
    }
  } ]
}