Webhook API

Current version: v1.1

List webhooks

Returns a list of your webook endpoints.

GET
/webhook/list.json
						
[
    {
        "type": 1,
        "url": "http://my.application.tld/notify.php",
        "name": "OnOrderPaid",
        "id": "57d8240316f46aa43a0d18fe"
    },
	...
]
						
					

Get webhook

GET
/webhook/webhook.json?id={id}
PARAMETERS LIST
id required (StoredenId) Unique id of your webhook
						
{
    "type": 1,
    "url": "http:\/\/my.application.tld\/notify.php",
    "name": "OnOrderPaid",
    "id": "57d8240316f46aa43a0d18fe"
}
						
					

Get Webhook By Name

GET
/webhook/search.json?name={name}
PARAMETERS LIST
name required (string) Your webhook name
						
{
    "type": 1,
    "url": "http:\/\/my.application.tld\/notify.php",
    "name": "OnOrderPaid",
    "id": "57d8240316f46aa43a0d18fe"
}
						
					

Add single webhook

POST
/webhook/webhook.json
PARAMETERS LIST
url required (string) A valid endpoint url
type required (int) Webhook Type
  • 0 => Triggered on order created
  • 1 => Triggered on order set as paid
  • 2 => Triggered on order set as shipped
  • 3 => Triggered on order set as in preparation
  • 7 => Triggered on order set as cancelled
name required (string) Your webhook name
						
{
  "ok": 1,
  "err": null,
}
						
					

Remove Webhook

DELETE
/webhook/webhook.json
PARAMETERS LIST
id required (StoredenId) Unique id of your webhook
						
{
  "ok": 1,
  "err": null,
}