Purpose:
Defining sales channels for JW -> SS -> MP
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 = [ "" ] sellerId = "" geoId = "" print("channel seller") print(sellerId) print(geoId) for i in pvA: url = "http://sellerproduct.prod.jumbotail.com:7044/sellerproduct/sales-channel/create?salesChannelId="+sellerId+"&pvId="+ i +"&geoId="+geoId header = {"content-type": "application/json", "userid": "your_email_id", "orgId": "ORGPROF-1304473228"} response = requests.post(url, headers=header) print(response.text) 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)
Reference :
ORGPROF-1304473228 -> JW ORGPROF-1304473231 -> Sourcing BEE ORGPROF-1304473266 -> Bodega ORGPROF-1304473270 -> Tailhub ORGPROF-1304473271 -> Amolkachand ORGPROF-1304473233 -> Boltlite vendor