Business Channel Create

When you call Business Channel Service with POST 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 you want to create business_channel values. You must set channel_name and business_type. You can sent 500 business_channel each request.
channel_name: must be string, business_type: you can send 1 or 2 value. B2B for 1 or B2C for 2
Name Value
REST-API METHOD Business Channel Create
HTTP METHOD POST
RESPONSE TYPE JSON
URL https://api.crm.next4biz.com/business-channel/
REQUEST HEAD Accept: application/json; Content-Type: application/json
ENDPOINT DEFINITION
POST
SAMPLE REQUEST BODY
{
	"tenant_slug": "acme",
	"access_token": "[YOUR ACCESSTOKEN]",
	"business_channel": [
		{
			"channel_name": "Acme Global",
			"business_type": 1
		}
	]
}
SAMPLE RESPONSE BODY
{
    "code": 200,
    "status": "Success",
    "result": [
        {
            "channel_id": 100,
            "channel_name": "Acme Global",
            "channel_slug": "acme-global",
            "is_active": true,
            "created_at": "2017-09-06 12:16:31",
            "lang": "tr",
            "is_builtin": false,
            "business_type": "1"
        }
    ]
}