Subscription Created

Notifying when a new subscription (app, main…) is created

The event is triggered when a new subscription (app, main…) is created

Webhook authorization: using an app, a business or a directory token.

Subscribing to the Subscription Created webhook:

curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "purchasable_subscription/create",
"target_url": "URL"
}'

Subscription Created Payload Example:

{
  "entity_name": "purchasable_subscription",
  "event_type": "created",
  "data": {
    "business_id": "3in0a3b32nut67l6",
    "purchasable_id": "s8k2s72-59fe-4710-2d22-dsbbd5c7e222",
    "subscription_id": "83661fb9-59fe-4710-aa53-f6bbd5c7e258"
}