Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Function: setCustomerPrice
update or add prices for customers (requires plugin xt_customer_prices)

Verfügbar ab xt_api Version 6.0.14
Request
userxsd:string
passxsd:string
products_modelxsd:string
external_idxsd:string
customers_idxsd:string
pricestns:customerpriceList



Response
resultxsd:boolean
messagexsd:string
{
    "result":"",
    "message":"",
}

Beispiel

Es muss entweder products_model oder external id übergeben werden - gleiches bei der Ermittlung für den Kunden.
Die interne customers_id oder eine externe customers_external_id

Preise sind Netto

{
    "function": "setCustomerPrice",
    "paras": {
        "user": "{{api_user}}",
        "pass": "{{api_password}}",
        "products_model":"EAN112233445",
        "external_id":"",
        "customers_id":"",
        "customers_external_id":"1",
        "prices":[
            {"quantity":"2","price":"9,50","date_available":"2022-06-29 00:00:00","date_expired":"2022-06-30 00:00:00"},
            {"quantity":"10","price":"8,50","date_available":"2022-06-29 00:00:00","date_expired":"2022-06-30 00:00:00"}
            ]
    }
}
  • No labels