When sending API requests to Sailplay, a unique department ID has to be specified. A department can represent a store, warehouse, region, a subdomain of the website, or any other point of sale.
Each integration endpoint (website, mobile application, POS) must be authorized before making requests. A standard two-level authorization algorithm is used.
To obtain authorization data (token), the server needs to make a GET request to the /api/v2/login/ method, in which the following parameters are passed:
| Parameter | Description |
|---|---|
| store_department_id | Unique department key |
| store_department_key | Unique department ID |
| pin_code | Pin code |
You can get authorization data in your account or by contacting us directly
Authorization must be implemented through a regular job executed every 24 hours. If necessary, the lifetime of the token can be increased, decreased or completely disabled.