Create a Sales Channel

The sales channel represents where a user sell their products. Subscribing to a Sales Channel will enable user to fulfill orders placed on it.

Create a Sales Channel

POST https://{{workspace}}.myeshopbox.com/api/v1/channel

This endpoint allows to create a sales channel

Headers

NameTypeDescription

Authentication

string

The Bearer token is required to access the API

Request Body

NameTypeDescription

portalId

integer

Id of portal for which sales channel is created

integrationModelId

integer

Integration model id for which a sales channel is created

channelAccountId

integer

channel account id for which sales channel is created

fulfillmentChannels

array

list of warehouses for which sales channel is created

{
   
    "id": "1",
    "integrationModelId": "1",
    "channelAccountId": "1",
    "portalId": "1",
    "externalChannelId": "TATA CLIQ VELOCY KAPAS KRAFT",
    "accountSlug": "CH1234",
    "portalName": "TATA CLIQ",
    "integrationModelName": "Amazon Prime",
    "channelAccountName": "Eshopbox channel account",
    "fulfillmentChannels": [
        {
            "fulfillmentChannelId": "1",
            "channelSubscriptionId": "1",
            "warehouseId": "9",
            "externalWmsChannelName": "Amazon_prime_Eshopbox",
            "status": "0",
            "enrollmentStatus": "INACTIVE",
            "warehouseName": "Kapas Kraft Apparels Limited 1006",
            "opsVerificationStatus": "0"
        },
        {
            "fulfillmentChannelId": "2",
            "channelSubscriptionId": "1",
            "warehouseId": "16",
            "externalWmsChannelName": "Amazon_prime_Eshopbox",
            "status": "0",
            "enrollmentStatus": "INACTIVE",
            "warehouseName": "Kapas Kraft Apparels Limited 1006",
            "opsVerificationStatus": "0"
        }
    ],
    "additionalDetails": {
        "fieldName1": "CH0001",
        "fieldName2": "CH0001"
    },
    "status": "0",
    "brandRegistrationStatus": "0",
    "enrollmentStatus": "IN PROCESS",
    "createdAt": "2019-04-08T12:41:05.000+05:30",
    "updatedAt": "2019-04-08T12:41:05.000+05:30"

}
curl -X POST https://{{workspace}}.myeshopbox.com/api/v1/channel \
     -H "Authorization: Bearer XXXX" \
     -H "Content-Type: application/json" \
     -d $'{
      "data": {
        "portalId": 1,
        "integrationModelId":1
        "channelAccountId": 1,
        "fulfillmentChannels": [
        {
            "warehouseId": 1
        },
        {
            "warehouseId": 2
        }
        ] 
      }
    }'

Last updated