Purpose: 

Defining sales channels for sellers to the marketplace.


Scope: 

These entries will create in Channel Configuration Table in DDB


Process:  

Run this python script by setting up three details pv_ids, orgId, and geoId.


import requests
import json
pvA = [
    "all_pv"
]
sellerId = ""
geoId = ""

print("channel seller")
print(sellerId)
print(geoId)
print("channel 229")
for i in pvA:
    url = "http://sellerproduct.prod.jumbotail.com:7044/sellerproduct/sales-channel/create?salesChannelId=ORGPROF-1304473229&pvId="+ i +"&geoId="+geoId
    header = {"content-type": "application/json", "userid": "your_email_id", "orgId": sellerId}
    response = requests.post(url, headers=header)
    print(response.text)