API Reference
Base URL: https://joy.avada.io/app/api/v1
List Webhooks
Get a list of all registered webhooks for your shop.
Your Joy app key from settings
Your Joy secret key from settings
200Success
trueShow properties
Unique webhook identifier
"webhook_abc123"Webhook topic
"points/earned"Webhook endpoint URL
"https://your-server.com/webhook/points"Whether the webhook is enabled
trueWebhook creation timestamp
"2024-01-15T10:30:00.000Z""2024-01-15T10:30:00.000Z"401Unauthorized
false"Resource not found""2024-01-15T10:30:00.000Z"GET /app/api/v1/webhooks HTTP/1.1Host: joy.avada.ioAccept: */*
{"success": true,"webhooks": [{"id": "webhook_abc123","topic": "points/earned","url": "https://your-server.com/webhook/points","isEnabled": true,"createdAt": "2024-01-15T10:30:00.000Z"}],"timestamp": "2024-01-15T10:30:00.000Z"}
Create Webhook
Register a new webhook endpoint for a specific topic.
Your Joy app key from settings
Your Joy secret key from settings
One of the supported webhook topics
"points/earned"HTTPS URL endpoint to receive webhook notifications
"https://your-server.com/webhook/points"200Webhook created successfully
trueShow properties
Unique webhook identifier
"webhook_abc123"Webhook topic
"points/earned"Webhook endpoint URL
"https://your-server.com/webhook/points"Whether the webhook is enabled
trueWebhook creation timestamp
"2024-01-15T10:30:00.000Z"400Bad Request
false"Resource not found""2024-01-15T10:30:00.000Z"POST /app/api/v1/webhooks HTTP/1.1Host: joy.avada.ioContent-Type: application/jsonAccept: */*Content-Length: 81{"topic": "points/earned","url": "https://your-server.com/webhook/points"}
{"success": true,"webhook": {"id": "webhook_abc123","topic": "points/earned","url": "https://your-server.com/webhook/points","isEnabled": true,"createdAt": "2024-01-15T10:30:00.000Z"},"timestamp": "2024-01-15T10:30:00.000Z"}
Get Webhook by ID
Retrieve details of a specific webhook.
Webhook ID
Your Joy app key from settings
Your Joy secret key from settings
200Success
trueShow properties
Unique webhook identifier
"webhook_abc123"Webhook topic
"points/earned"Webhook endpoint URL
"https://your-server.com/webhook/points"Whether the webhook is enabled
trueWebhook creation timestamp
"2024-01-15T10:30:00.000Z"404Webhook not found
false"Resource not found""2024-01-15T10:30:00.000Z"GET /app/api/v1/webhooks/{id} HTTP/1.1Host: joy.avada.ioAccept: */*
{"success": true,"webhook": {"id": "webhook_abc123","topic": "points/earned","url": "https://your-server.com/webhook/points","isEnabled": true,"createdAt": "2024-01-15T10:30:00.000Z"},"timestamp": "2024-01-15T10:30:00.000Z"}
Update Webhook
Update an existing webhook (enable/disable or change URL).
Webhook ID
Your Joy app key from settings
Your Joy secret key from settings
New webhook URL
"https://new-server.com/webhook/points"Enable or disable the webhook
false200Webhook updated successfully
trueShow properties
Unique webhook identifier
"webhook_abc123"Webhook topic
"points/earned"Webhook endpoint URL
"https://your-server.com/webhook/points"Whether the webhook is enabled
trueWebhook creation timestamp
"2024-01-15T10:30:00.000Z"404Webhook not found
false"Resource not found""2024-01-15T10:30:00.000Z"PUT /app/api/v1/webhooks/{id} HTTP/1.1Host: joy.avada.ioContent-Type: application/jsonAccept: */*Content-Length: 74{"url": "https://new-server.com/webhook/points","isEnabled": false}
{"success": true,"webhook": {"id": "webhook_abc123","topic": "points/earned","url": "https://your-server.com/webhook/points","isEnabled": true,"createdAt": "2024-01-15T10:30:00.000Z"},"timestamp": "2024-01-15T10:30:00.000Z"}
Delete Webhook
Remove a webhook registration.
Webhook ID
Your Joy app key from settings
Your Joy secret key from settings
200Webhook deleted successfully
true404Webhook not found
false"Resource not found""2024-01-15T10:30:00.000Z"DELETE /app/api/v1/webhooks/{id} HTTP/1.1Host: joy.avada.ioAccept: */*
{"success": true,"timestamp": "2024-01-15T10:30:00.000Z"}