Seller.createSellers
Upon seller registration on SC side, all the data is pushed to the consumer.
Required fields
During registration of the seller, required fields can vary, depending on SC configuration, accessible at SC > Administration > Seller Profile Configuration.
Request
Pushes seller data after registration is complete. Which fields are pushed depends on SC configuration (see comment above).
JSON example:
[
{
"api": 1,
"method": "Seller.createSellers",
"params": {
"sellerData": [
{
"company_name": "Sells 4 Life",
"shop_name": "Company Which Sells 4 Life",
"email": "[email protected]",
"name": "Owner name",
"phone": "+420777777777",
"address1": "Johannisstr. 20",
"city": "Berlin",
"postcode": "10117",
"country": "DE"
},
{
"company_name": "Failing Company",
"shop_name": "Failing Company Without Email",
"name": "Owner name",
"phone": "+420777777777",
"address1": "Johannisstr. 20",
"city": "Berlin",
"postcode": "10117",
"country": "DE"
}
]
},
"id": 1
}
]
Request fields:
Field name |
Type |
Value |
Description |
---|---|---|---|
method |
string |
"Seller.createSellers" |
Action name |
sellerData |
array |
["company_name" => "Company Which Sells 4 Life", …] |
Array of key/value data:
|
Response
Returns an array with the ids as value if the seller could be created or false if the seller creation failed. The key / indicator is the company name, if this was not passed for the seller than a numeric index is created.
JSON example:
[
{
"api":1,
"result":{
"Company Co., Ltd":"2256"
},
"id":1
}
]
Response fields:
Field name |
Type |
Value |
Description |
---|---|---|---|
result |
array |
[ "Sells 4 Life" => 2256, "Failing Company" => 1001, ] |
Array of seller company names and Ids |
In case of error, instead of newly created seller id, a false is returned.