API documentation
Method list
Test your request
Changelog


getOrderSources
The method returns types of order sources along with their IDs. Order sources are grouped by their type that corresponds to a field order_source from the getOrders method. Available source types are "personal", "shop", "order_return" or "marketplace_code" e.g. "ebay", "amazon", "ceneo", "emag", "allegro", etc.


Input parameters



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
sourcesarrayAn array of order sources grouped by type.
| - personalarrayPersonal order sources (custom sources created by user). Key is source ID, value is source name.
| - shoparrayConnected shops. Key is shop ID, value is shop name.
| - blconnectarrayBaseLinker Connect tokens. Key is token ID, value is token name.
| - allegroarrayAllegro accounts. Key is account ID, value is account name.
| - ebayarrayeBay accounts. Key is account ID, value is account name.
| - amazonarrayAmazon accounts. Key is account ID, value is account name.
| - amazon_vendorarrayAmazon Vendor accounts. Key is account ID, value is account name.
| - order_returnarrayOrders created from returns. Key 0 is replaced by specific return ID.
| - [marketplace_code]arrayOther marketplace accounts (e.g. "ceneo", "emag", etc.). Key is account ID, value is account name.



Sample
Input data:
Output data:
A sample request in PHP: