Create notification about added or deducted loyalty points

POST {{baseUrl}}/v1/loyalty_programs/:loyaltyProgramId/notifications/added_deducted_points

Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload.

For more information, see Managing loyalty notifications.

Request Body

{"enabled"=>true, "webhook"=>{"url"=>"www.my-company.com/my-endpoint-name", "headers"=>["content-type: application/json"], "enabled"=>true}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring