List who can approve
GET/approvals/eligible-approvers
Tells whether a manager approval is needed at the outlet in X-Outlet-ID for the asked types, which rule applies (policy) and who can give it. The acting user does not need an open shift for this read; the PIN and one-time code calls do.
Request
- Send
typesas a comma list, for exampletypes=refund,return.
Behaviour
policyis the strictest one across the asked types:pin,otp_preferredorotp_only.- When
is_enabledis false no approval is needed andapproversis empty. - An approver's phone number is never returned:
can_receive_otpsays whether a one-time code can reach the approver, andotp_unavailable_reasonsays why not.
Errors
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_FAILED | types is missing or has an unknown value. |
| 400 | USER_ID_REQUIRED | X-User-ID is missing. |
| 403 | PERMISSION_DENIED | The acting user may not do this. |
| 403 | OUTLET_FORBIDDEN | The outlet is not allowed. |
| 422 | INVALID_USER | The acting user is not valid. |
Request
Responses
- 200
- 400
- 401
- 403
- 422
The approval line
Error envelope
Error envelope
Error envelope
Error envelope