When you call Business Channel Service with GET method, you can create a Business Channel on next4biz CRM.
Your request body must be contain 3 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.business_channel This is an array includes objects as business_channel property is an object contain your business_channel search values. Every business_channel object property join as AND operator and every business_channel object JOIN as OR operator.You can sent two optional parameters:
limit Number of objects to return. Default is 50 maximum value is 200offset The number from which to start for read. Default is 0| Name | Value |
|---|---|
| REST-API METHOD | Business Channel Read |
| HTTP METHOD | GET |
| RESPONSE TYPE | JSON |
| URL | https://api.crm.next4biz.com/business-channel/ |
| REQUEST HEAD | Accept: application/json; Content-Type: application/json |
{
"tenant_slug": "acme",
"access_token": "[YOUR ACCESSTOKEN]",
"business_channel": [
{
"business_type": 1
}
]
}
{
"code": "200",
"status": "Success",
"result": [
{
"channel_id": "79",
"channel_name": "Jhony",
"channel_slug": "Jhony",
"created_at": "2017-09-05 11:53:41",
"lang": "tr",
"is_builtin": true,
"business_type": 1
},
{
"channel_id": "100",
"channel_name": "Acme Global",
"channel_slug": "acme-global",
"created_at": "2017-09-06 12:16:31",
"lang": "tr",
"is_builtin": false,
"business_type": 1
}
]
}