{ "url": "https://webhook.site/some-uuid", "events": [ "payto_agreement.activated" ] }
curl --location --request PUT 'https://api-sandbox.squarepay.com.au/v2/webhook-subscriptions/7e9f4299-6049-4c11-abed-dcdb27102e33' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data-raw '{ "url": "https://webhook.site/some-uuid", "events": [ "payto_agreement.activated" ] }'
{ "data": { "webhook_subscription_id": "7e9f4299-6049-4c11-abed-dcdb27102e33", "url": "https://webhook.site/some-uuid", "signature_secret": "YpG4przYWpXqn7Q6pw16G2D47762UhF0LcLlBjn59oMDOh7SfujaV6EcgOd6merv", "events": [ "payto_agreement.activated" ], "status": "ACTIVE" } }