webhook
webhook.create
Create webhook on the store and subscribe to it.
post/webhook.create.json
Request
- Base URL: https://api.api2cart.com/v1.1
- URL: https://api.api2cart.com/v1.1/webhook.create.json
- Auth: API key in header x-api-key and API key in header x-store-key
Request body
Example request
{
"entity": "product",
"action": "add",
"callback": "https://example.com/callback",
"label": "Super webhook",
"fields": "id, name, description",
"response_fields": "{result}",
"active": true,
"store_id": "1",
"idempotency_key": "098f6bcd4621d373cade4e832627b4f6"
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.