Seller.getSellersList
Retrieves the sellers.
Request
JSON example:
[
{
"api":1,
"method":"auth",
"params":{
"username":"...",
"password":"..."
},
"id":1
},
{
"api": 1,
"method": "Seller.getSellersList",
"params": {
"sellerIds": [12, 33],
"offset": 0,
"limit": 10
},
"id": 1
}
]
Request fields:
Field name |
Type |
Mandatory |
Description |
---|---|---|---|
sellerIds |
array of integers |
no |
undefined |
offset |
unsigned integer |
yes |
Offset to get products |
limit |
unsigned integer |
yes |
Limit for the number of products |
Pagination Support
In order to properly adapt this call, pagination capabilities should be implemented. Sort results by creation date ascendent, so if there are new rows created during runtime, they will not be skipped.
Response
Returns an array with the id as key and the seller data as value array when seller could be found or false if no entry could be found under the passed id.
JSON example:
[
{
"api":1,
"result":[
{
"sellerId": 12,
"email":"[email protected]",
"shopName":"Shop Name",
"companyName":"Company Name",
"updatedAt": "2015-08-21 17:29:50"
},
{
"sellerId": 33,
"email":"[email protected]",
"shopName":"Shop Name",
"companyName":"Company Name",
"updatedAt": "2015-08-21 17:29:50"
}
],
"id":1
}
]
Parameters
Field name |
Type |
Mandatory |
Value |
Description |
---|---|---|---|---|
sellerId |
integer |
yes |
Seller ID |
|
string |
yes |
undefined | undefined | |
shopName |
string |
yes |
undefined | undefined |
companyName |
string |
yes |
undefined | undefined |
updatedAt |
string |
yes |
2015-08-21 17:29:50 |
undefined |