{ "opencollection": "1.0.0", "info": { "name": "Commerce Layer Core Addresses Webhooks API", "version": "4.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Webhooks", "type": "folder" }, "items": [ { "info": { "name": "List all webhooks", "type": "http" }, "http": { "method": "GET", "url": "https://{organization}.commercelayer.io/api/webhooks" }, "docs": "List all webhooks" }, { "info": { "name": "Create a webhook", "type": "http" }, "http": { "method": "POST", "url": "https://{organization}.commercelayer.io/api/webhooks", "body": { "type": "json", "data": "{}" } }, "docs": "Subscribe to an event topic. Each time the subscribed event occurs, Commerce Layer triggers a POST request to the callback_url; the topic is sent in the X-CommerceLayer-Topic header." }, { "info": { "name": "Retrieve a webhook", "type": "http" }, "http": { "method": "GET", "url": "https://{organization}.commercelayer.io/api/webhooks/:webhookId", "params": [ { "name": "id", "value": "", "type": "path", "description": "The resource unique identifier." } ] }, "docs": "Retrieve a webhook" }, { "info": { "name": "Update a webhook", "type": "http" }, "http": { "method": "PATCH", "url": "https://{organization}.commercelayer.io/api/webhooks/:webhookId", "params": [ { "name": "id", "value": "", "type": "path", "description": "The resource unique identifier." } ] }, "docs": "Update a webhook" }, { "info": { "name": "Delete a webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://{organization}.commercelayer.io/api/webhooks/:webhookId", "params": [ { "name": "id", "value": "", "type": "path", "description": "The resource unique identifier." } ] }, "docs": "Delete a webhook" } ] } ], "bundled": true }