Subscription Simulation
URL:
https://api.coresignal.com/cdapi/v2/subscriptions/simulate
Test out our subscription functionality using simulate
endpoint by creating a fake subscription to receive a webhook example to your callback URL.
Functionality
The subscription simulation endpoint will allow you to send a test request using your webhook.
As we typically send webhooks once a week, you might have to wait a week to see how our subscription feature works and what kind of payload you receive.
Using the simulation endpoint, you can see how webhooks work and what kind of payload you get the same day.
The endpoint will allow to send one request per second.
Usage
Paste in your webhook URL instead of
{your_webhook_url}
and your API Key in the request template:
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/subscriptions/simulate' \
-H 'accept: application/json' \
-H 'apikey: {API Key}' \
-H 'Content-Type: application/json' \
-d '{
"webhook_url": "{your_webhook_url}"
}'
Send your request using an application that supports cURL requests (e.g., Postman).
You will see the following response:
{
"message": "Subscriptions webhook simulation initiated"
}
You should get an example webhook to your URL after a few minutes, e.g.,
{
"member_id": 18330245,
"change_type": "changed"
}
The text in the webhook payload is randomized. You will see a random member_id
and change_type
.
One of the statuses for change types will be sent. Supported statuses are listed in the main Webhooks topic.
Last updated
Was this helpful?