When you call Sales Channel Service with PUT method, you can update a sales_channel 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.sales_channel This is an array includes objects as sales_channel property is an object contain you want to update sales_channel values. You must set id property. But others are arbitrary. You can sent 500 sales_channel each request| Name | Value |
|---|---|
| REST-API METHOD | Sales Channel Update |
| HTTP METHOD | PUT |
| RESPONSE TYPE | JSON |
| URL | https://api.crm.next4biz.com/sales-channel/ |
| REQUEST HEAD | Accept: application/json; Content-Type: application/json |
{
"tenant_slug": "acme",
"channel": "79",
"access_token": "[YOUR ACCESSTOKEN]",
"sales_channel": [
{
"id": "181",
"short_name": "best crm",
"long_name": "best crm selphiu"
}
]
}
{
"code": 200,
"status": "Success",
"result": [
{
"sales_channel_id": 181,
"long_name": "best crm selphiu",
"short_name": "best crm",
"channel": {
"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
}
}
]
}