Step 7: Cancel Services

In the event that you want to cancel all services or one service for a Location, you can make the below call:

POST https://api.yextapis.com/v2/accounts/me/cancelservices?api_key=API_KEY&v=YYYYMMDD

Request Body:

{
	"locationId": "BCC-6364487045",
	"skus": [
		"SKU-00000275"
	]
}

*Response Body:

{
  "meta": {
    "uuid": "b7eaa8f9-db74-48a1-84f8-665b31e4f418",
    "errors": []
  },
  "response": [
    {
      "id": 132483,
      "sku": "SKU-00000275",
      "serviceDescription": "Knowledge Engine Starter",
      "agreementId": 878,
      "locationId": "BCC-6364487045",
      "status": "STOPPED",
      "started": "2017-01-12",
      "stopped": "2017-01-13",
      "stopOnDate": ""
    }
  ]
}

For more information, see the documentation for the Services: Cancel endpoint.