EntityUserNotification Policy

Get

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

Retrieve notification policy associated with this entity user

Path parameters

entityId
string
userId
string
notificationType
enum

Response

This endpoint return an object.
disabled
boolean

True if the selected notification type is disabled for this user

digest
boolean

True if the selected notification type is sent as a digest.

immediate
boolean

True if the selected notification type is sent immediately.

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