API method
getComplaintTypeOptions
Method returns list of available complaint reasons FOR specific product in sale.
Usage URL
https://b2b.onesto-energy.pl/api/getComplaintTypeOptions.json?key=YOURAPIKEY
Query params
Put these in your URL, e.g. ?id=123.
-
saleid integerrequired
Internal identifier of sale.
-
productid integer
Internal identifier of product. If 0 or empty—that means that complaint is about whole order.
-
lang string
Language of result. ISO 2 Letter Language Codes
Example
en, pl, cs
Response fields
Fields returned by this method.
-
label string
Human-readable name of complaint type with reason for being disabled if applicable
-
value integer
ID of complaint type
-
disabled boolean 1 = true, 0 = false
Whether complaint type can be selected for given parameters