Suave Aggregator
- Overview
- SDK Guide
- API Reference
Suave Checkout
- Introduction
- Use Cases
- API Documentation
- Authentication
- Data types
- Quote API
- Payment API
- Payment webhooks
- SDK Documentation
Payment webhooks
Create Webhook
Create a new webhook subscription for the current vendor.
POST
/
api
/
v1
/
webhook_subscription
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"
}
}
Body
application/json
Response
200 - application/json
Subscription created successfully
The response is of type object
.
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"
}
}
Assistant
Responses are generated using AI and may contain mistakes.