Search
Search for the users who can be assigned to the approvals.
In case of any validation problem, the below errorCodes
can be returned:
APPROVAL-400008: Requested user has no permissions to the resource
APPROVAL-400011: Requested user is not assigned to any company
APPROVAL-404002: Provided resource does not exist
APPROVAL-404003: Requested user is not assigned to any legal entity
Required scopes
approval.approval_read_own
Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Base schema for an approval resource type
An identifier of the resource for approval
Base schema for an approval action type
Approval permitted response
Bad request due to validation, incorrect parameters, etc.
Unauthorized
Access forbidden. The caller is not allowed to access this resource.
POST /approval/{tenant}/search/users HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"resourceId": "cartId",
"resourceType": "CART",
"action": "CHECKOUT"
}
[
{
"userId": "aaa2f2b6-7dc8-45ff-9f20-4e6163c14ceb",
"firstName": "John",
"lastName": "Doe"
}
]
Was this helpful?