Approvals
To generate a customer access token, go to the Logging in a customer endpoint.
Your Emporix tenant name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$The number of documents being retrieved on one page.
60The page number to be retrieved, where the size of the pages is specified by the pageSize parameter. The number of the first page is 1.
1Fields to sort the response data by following the order of the parameters from left to right. Can contain multiple fields in the following format: field name:sort direction, separated by a comma. The colon preceding the sort direction parameter is optional, and the descending order is taken only if it is equal to desc or DESC. The ascending order is assumed in any other case.
sort=name,metadata.createdAt:descA standard query parameter is used to search for the specific values.
- Searching for an item by a string property:
q=status:PENDING, wherestatusis the name of the string field andPENDINGis its required value. - Searching for items by a number-based property:
- Searching for items with specific values:
q=mixins.approvalCustomAttributes.orderQuantity:20 - Searching for items with values greater than:
q=mixins.approvalCustomAttributes.orderQuantity:>20 - Searching for items with values lower than:
q=mixins.approvalCustomAttributes.orderQuantity:<20 - Searching for items with values greater than or equal to:
q=mixins.approvalCustomAttributes.orderQuantity:>=20 - Searching for items with values lower than or equal to:
q=mixins.approvalCustomAttributes.orderQuantity:<=20 - Searching for items within a range of values:
q=mixins.approvalCustomAttributes.orderQuantity:(>=10 AND <=20), wheremixins.approvalCustomAttributes.orderQuantityis the name of a number-based field, and20is its querying value.
- Searching for items with specific values:
- Searching for items by a date property. All number-based property queries are also valid for dates. In that case, the date should be placed within double quotes:
q=metadataCreatedAt:(>="2021-05-18T07:27:27.455Z" AND <"2021-05-20T07:27:27.455Z") - Searching for items by a boolean value:
q=received:true, wherereceivedis the name of a boolean field, and 'true' is its required value. - Searching for items with a non-existing or empty property:
q=reason.description:null, wherereason.descriptionis the name of the field that has thenullvalue. - Searching for items with an existing property:
q=mixins.mixinName:exists, where the specific mixin namedmixinNameexists in the database. - Searching for items by multiple specific values:
q=id:(5c3325baa9812100098ff48f,5c3325d1a9812100098ff494), whereidis the name of the field, and strings within a bracket are its required values. - Searching for items by multiple fields:
q=id:5c3325baa9812100098ff48f code:A705121667, whereidand 'code' are the names of fields. All documents that contain the specified values in these fields are approved. Multiple fields separated by spaces can be specified. Multiple values for each field can also be provided in the format presented above. - Searching for items with string fields conforming to a regex:
q=orders._id:~EON107orq=code:(~EON107 EON106)- in the case of searching for strings with a space, whereorder._idis the name of the field andEON107orEON107 EON106are its querying regular expressions.
q=status:APPROVEDTo get information how many entities meet the filtering requirements, the X-Total-Count header has been introduced. The header is optional and its default value is false. If the header is provided and it is set to true, then the total count is approved in the X-Total-Count response header. In both cases (X-Total-Count true, false or not provided), the response body has the same format (array of entities). This means that the information about the total count is approved only on demand, provided that the X-Total-Count header is present in a request.
Example response.
Unauthorized.
Access forbidden. The caller is not allowed to access this resource.
To generate a customer access token, go to the Logging in a customer endpoint.
Your Emporix tenant name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$The resource has been successfully created.
Bad request due to validation, incorrect parameters, etc.
Unauthorized.
Access forbidden. The caller is not allowed to access this resource.
Resource with given code already exists.
To generate a customer access token, go to the Logging in a customer endpoint.
Your Emporix tenant name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$Unique identifier of an approval.
Unauthorized.
Access forbidden. The caller is not allowed to access this resource.
Resource cannot be found.
To generate a customer access token, go to the Logging in a customer endpoint.
Your Emporix tenant name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$Unique identifier of an approval.
No Content
Bad request - an approval cannot be deleted because it has an inappropriate status.
Unauthorized.
Access forbidden. The caller is not allowed to access this resource.
Resource cannot be found.
No content
To generate a customer access token, go to the Logging in a customer endpoint.
Your Emporix tenant name. Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$Unique identifier of an approval.
Approval partial update operation list.
Base schema for the approval status.
Value of the string type.
Any part of the details object.
Any part of the delivery window object.
No Content.
Bad request due to validation, incorrect parameters, etc.
Unauthorized.
Access forbidden. The caller is not allowed to access this resource.
Resource cannot be found.
No content
Last updated
Was this helpful?

