Parameter | Required? | Default | Description | Type |
---|---|---|---|---|
url | yes | none | Adres where notifications are sent, must be unique | url |
event_schema_version | no | 1 | event schema version 1 2 | integer |
is_sent_on_import | no | true | send notification on member creation | boolean |
is_sent_on_update | no | true | send notification on member update | boolean |
is_sent_on_delete | no | true | send notification on member deletion | boolean |
is_person_id_sent | no | false | add person id to notificaiton payload | boolean |
excluded_sources | no | List of products/sources for given action for which webhook should not be sent | Object with arrays of strings |
Status | Description |
---|---|
404 | Data not found |
422 | Invalid parameters - see Invalid parameters errors model |
{
"id": 1,
"url": "http://placewise.com/subscription",
"secret_token": "secret_token",
"event_schema_version": 1,
"is_sent_on_import": true,
"is_sent_on_update": true,
"is_sent_on_delete": true,
"is_person_id_sent": true,
"excluded_sources": { "update": ["excluded-source"] }
}
curl --location --request PUT 'https://api.mpc.dev.placewise.com/v3/infinity-mall/members_changes_subscriptions/1' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: '
{}