Function: setCustomerPrice | |
update or add prices for customers (requires plugin xt_customer_prices) Verfügbar ab xt_api Version 6.0.14 | |
Request | |
user | xsd:string |
pass | xsd:string |
products_model | xsd:string |
external_id | xsd:string |
customers_id | xsd:string |
prices | tns:customerpriceList |
Response | |
result | xsd:boolean |
message | xsd: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"} ] } }