Delete Person

When you call Person Service with DELETE method, you can remove a person on next4biz CRM.

Your request body must be contain 4 properties.

  • tenant_slug This is your subdomain on selphiu URL. For example: if your selphiu domain is “acme.selpihu.com” then your tenant_slug is “acme”
  • access_token next4biz CRM provide an access_token via access_token service. Every access_token expires after 15 minutes. Best Practice, you request a new access_token for each service request.
  • channel This is bussines channel id. If you don’t know your bussiness_channels and there’s id numbers. You can learn via bussiness_channel service.
  • person This is an array includes objects as person property is an object contain you want to remove person id. You must set id. This attribute can be id, _id or person_id.  You can sent 500 person each request.
Name Value
REST-API METHOD Delete Person
HTTP METHOD DELETE
RESPONSE TYPE JSON
URL https://api.crm.next4biz.com/person/
REQUEST HEAD Accept: application/json; Content-Type: application/json
ENDPOINT DEFINITION
DEL
SAMPLE REQUEST BODY
{
	"tenant_slug": "acme",
	"channel": "55",
	"access_token": "[YOUR ACCESSTOKEN]",
	"person": [
		{
			"id": "283134"
		}
	]
}
SAMPLE RESPONSE BODY
{
	"code": 200,
	"status": "Success",
	"result": [
		{
			"id": "283134",
			"status": null
		}
	]
}