Endpoint mws.accounts
returns the seller accounts, associated with the account.
AMALYZE Falcon API
mws.accounts (POST)
Endpoint
Endpoint
POST mws.accounts
Example call
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
curl https://falcon.amalyze.com/<VERSION>/mws.accounts \ -H "X-Falcon-Token: <YOUR-TOKEN-HERE>" \ -X POST \ -d ' { "pagination": { "size": 10, "page": 1 }, "sorting": [ { "direction": "desc", "column": "name" } ], "filters": { "id": "A2N5XXXXXXXXXX" } }' |
JSON Payload
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "pagination": { "size": 10, "page": 1 }, "sorting": [ { "direction": "desc", "column": "name" } ], "filters": { "id": "A2N5XXXXXXXXXX" } } |
Property | Type | Description | Further information |
pagination | object | Object containing the pagination information | pagination object definition |
filters | object | Object containing the filter information | |
filters.name | string | The sellers name | optional |
filters.id | string | The sellers id | optional |
filters.query | string | Fulltext search over all available fields | optional |
sorting | array | Array containing the sorting information | |
sorting.column | string | The column to sort |
|
sorting.direction | string | The direction to sort | valid direction values |
JSON Response
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
{ "items": [ { "score": 100, "name": "A2N5XXXXXXXXXX", "id": "A2N5XXXXXXXXXX", "marketplaces": { "A2EUQ1WTGCTBG2": { "active": false }, "ATVPDKIKX0DER": { "active": false }, "A1AM78C64UM0Y8": { "active": false }, "A1RKKUPIHCS9HS": { "active": true }, "A1F83G8C2ARO7P": { "active": true }, "A13V1IB3VIYZZH": { "active": true }, "A1PA6795UKMFR9": { "active": true }, "APJ6JRA9NG5V4": { "active": true } } } ], "filtered": 1, "request": { "id": "e6658fe8-43f6-44b9-bcb8-1a13d5b88c0e", "took": 0.0732, "costs": 0, "remaining": 100000, "method": "mws.accounts", "success": true, "error": { "code": null, "message": null, "hint": null } } } |
Property | Type | Description |
items | array | Array containing the accounts |
items.score | float | The (internal) score for the query |
items.name | string | The merchant / vendor name associated with the profile |
items.id | string | The merchant / vendor id associated with the profile |
items.type | string | The profile’s type (vendor / seller) |
items.marketplaces | object | Object containing information about the marketplaces |
items.marketplaces.marketplace | object | Object containing information about the specific marketplace valid properties:
|
items.marketplaces.marketplace.active | boolean | Indicates, if the profile has access to the specific marketplace |