EntityNotification Policy

Get

GET
https://api.mercoa.com/entity/:entityId/notification-policy/:notificationType

Retrieve notification policy associated with this entity

Path parameters

entityId
string
notificationType
enum

Response

This endpoint return an object.
disabled
boolean

True if the selected notification type is disabled for this entity

additionalRoles
list of strings

List of user roles that should receive notifications in addition to the default users for this notification type

type
enum
GET
/entity/:entityId/notification-policy/:notificationType
curl https://api.mercoa.com/entity/:entityId/notification-policy/INVOICE_APPROVAL_NEEDED \
-H "Authorization: Bearer <token>"
Response
{
"disabled": true,
"additionalRoles": [
"string"
],
"type": "INVOICE_APPROVAL_NEEDED"
}