How does it work
You can get a list of all the products that are in your account. This will be useful for use with other methods.
The request is sent by the POST method in the URLencode format to the address: https://username.justclick.io/api/getgoods, where username is the user’s login in the system and his third-level domain in the JustClick service.
In response to the request, your system will receive the function execution result in JSON format. For example, like this:
{ "error_code": 0, "error_text": "OK", "result": [ { "id": 75696, "good_name": "digital", "good_title": "Digital product" }, { "id": 75791, "good_name": "testdrive", "good_title": "testdrive" } ], "hash": "019a22abe9024aae827d223ff3be2442" }
In case of an error, the standard “Service API Responses” will be returned.
Parameters passed in the request
The only parameter for this method is rpsKey, which is the API key; the key for your account is in the “Integration and API” section, the link to the section is in the footer of your personal account or here /shops/setts/apisettings/
Parameters received in response
You will get a result array with objects. Each object is one group. The following will be listed:
- id – product id – what we see in the address bar of the personal account when editing a product;
- good_name – what we see in the address bar on the invoice page (order page);
- good_title – the name of the product that the buyer sees (commercial name).