cURL
curl --request POST \ --url https://checkout.suave.money/api/v1/webhook_subscription \ --header 'Content-Type: application/json' \ --data '{ "webhook_url": "<string>", "env_mode": "live" }'
{ "message": "Successfully registered webhook endpoint in test|live mode for {vendor_name}.", "data": { "webhook_id": "ep_2k4DQEpnKDxp1TcvsNIRiKDBQtj", "webhook_url": "webhook endpoint url", "env_mode": "test", "created_at": "2024-08-01T17:38:56.892Z", "updated_at": "2024-08-01T17:38:56.892Z" } }
Create a new webhook subscription for the current vendor.
Subscription created successfully
The response is of type object.
object