Tag update callbacks allow you to send a request to your internal system when a tag is added to or removed from a customer or supplier in the Ravelin dashboard. This allows you to keep your internal system in sync with Ravelin.
Callbacks are sent only for tag changes made manually in the Ravelin dashboard or by a rule. Sending customer or supplier tags through Ravelin API endpoints, as well as running bulk-tagging operations, does not trigger a callback.
To configure tag update callbacks, please contact us and provide us with your callback URL and an optional authorisation token.
To retrieve the current tags on a customer or supplier, or fetch the history of tag changes, see the Tag endpoint.
Customer tag update callbacks are sent in the following format:
POST https://your-tag-update-callback-url.com HTTP/1.1
Authorization: token YOUR_AUTH_TOKEN_OPTIONAL
Content-Type: application/json; charset=utf-8
{
"tags": [
{
"customerId" : "abc-123-ZYZ",
"tagId": "t3",
"tagName": "highroller",
"action" : "TAG_ADDED",
"timestamp" : "2006-04-30T12:00:00Z"
},
{
"customerId" : "abc-123-ZYZ",
"tagId": "t2",
"tagName": "vip",
"action" : "TAG_ADDED",
"timestamp" : "2006-04-30T12:00:00Z"
},
{
"customerId" : "abc-123-ZYZ",
"tagId": "t1",
"tagName": "staff",
"action" : "TAG_REMOVED",
"timestamp" : "2006-04-30T12:00:00Z"
}
]
}
tags
array The list of customer tag updates. |
Supplier tag update callbacks are sent in the following format:
POST https://your-tag-update-callback-url.com HTTP/1.1
Authorization: token YOUR_AUTH_TOKEN_OPTIONAL
Content-Type: application/json; charset=utf-8
{
"tags": [
{
"supplierId" : "abc-123-ZYZ",
"tagId": "t3",
"tagName": "highroller",
"action" : "TAG_ADDED",
"timestamp" : "2006-04-30T12:00:00Z"
},
{
"supplierId" : "abc-123-ZYZ",
"tagId": "t2",
"tagName": "vip",
"action" : "TAG_ADDED",
"timestamp" : "2006-04-30T12:00:00Z"
},
{
"supplierId" : "abc-123-ZYZ",
"tagId": "t1",
"tagName": "staff",
"action" : "TAG_REMOVED",
"timestamp" : "2006-04-30T12:00:00Z"
}
]
}
tags
array The list of supplier tag updates. |
Was this page helpful?