Unsubscription from an event

Function hooks/unSubscribe (http://<DOMAIN>/api/hooks/unSubscribe/)

Parameters:

  • token - authorization key received via the auth function

  • id - subscription identifier received in the hooks/subscribe function 
  • target_url - link to which subscription data was sent

Response:

  • status - Returns OK if the hook subscriber was unsubscribed successfully

Also, on successful unsubscription from the web-hook, the server will return the HTTP/1.1 410 Gone header which means that the web-hook link will no longer send the data.


Example query at http://<DOMAIN>/api/hooks/unSubscribe/

JSON
{
	"token": "<YOUR TOKEN>",
	"id": 1,
	"target_url": "http://your_crm.com/order/created"
}


Example of a response to a query:

JSON
{
    "status": "OK"
}