2. Permissions
The data a service user can see is restricted by four separate permissions; the permissions are configured for you when your account is set up. If a permission is not defined, no restriction is applied in that area.
| Permission | What it restricts | Affected methods | What happens without it |
|---|---|---|---|
| Role (method) permission | Which methods you can call | All methods; Integration.Invoices.GetInv for slip export | 403 — Your role is not authorized. |
| Distributor permission | Which distributors' data you can see | getinv, getinvxml, getall, getOutletListFull, payment query methods | Unauthorized codes are removed from the result (see below) |
| Slip type permission | Which slip types you can read | getall | 403 — Your slip type operation is not authorized for: <tip>. |
| Balance permission | Customer balance fields | getOutletListFull | Balance fields are omitted from the response entirely |
How the distributor permission is applied:
- If you do not send
dist_codes, only slips of the distributors you are authorized for are returned. - Any unauthorized or inactive codes among those you send are removed from the query and a warning is appended to the response message:
Warning Inactive and unauthorized distributor codes = 001,002. - If none of the codes you send are authorized, the response is
204 No Content.
Balance permission: Without this permission, the getOutletListFull response does not contain the OutletBalance, OutletOpenBalance, OutletEPoint, OutletCheckBalance and OutletBondBalance fields. Other customer fields are unchanged.
If you need changes to your permission definitions, contact your service provider; changes take effect within 1 hour at the latest.