Help Center
Login Sign up
  1. Start
  2. API-Referenz
  3. API-Dokumentation (XML/ JSON)
  4. Auftragstypen

Price Classes List

API-Referenz (XML/JSON) · Aktualisiert 2023-09-07

Funktion

Der Auftragstyp PriceClassesList ermittelt Preisklassen.

Weitere Informationen zum Thema Listenabfragen findest du hier.

Beschreibung

Query-Parameter

Die Daten folgender Keywords werden standardmäßig zurückgegeben:                                    

  • 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

Die Daten folgender Keywords können mit dem Query-Parameter ?keys[]= abgefragt werden:

  • price.comment
  • price.promotion
  • price.priceList
  • price.priceChange

Route: POST /priceClass/article/_search

{
    "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+"
    }
  } ]
}