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.

PermissionWhat it restrictsAffected methodsWhat happens without it
Role (method) permissionWhich methods you can callAll methods; Integration.Invoices.GetInv for slip export403 — Your role is not authorized.
Distributor permissionWhich distributors' data you can seegetinv, getinvxml, getall, getOutletListFull, payment query methodsUnauthorized codes are removed from the result (see below)
Slip type permissionWhich slip types you can readgetall403 — Your slip type operation is not authorized for: <tip>.
Balance permissionCustomer balance fieldsgetOutletListFullBalance 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.