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:
A sample request in PHP:
Output data
The method returns the data in JSON format.
| status | varchar(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 |
| sources | array | An array of order sources grouped by type. |
| | - personal | array | Personal order sources (custom sources created by user). Key is source ID, value is source name. |
| | - shop | array | Connected shops. Key is shop ID, value is shop name. |
| | - blconnect | array | BaseLinker Connect tokens. Key is token ID, value is token name. |
| | - allegro | array | Allegro accounts. Key is account ID, value is account name. |
| | - ebay | array | eBay accounts. Key is account ID, value is account name. |
| | - amazon | array | Amazon accounts. Key is account ID, value is account name. |
| | - amazon_vendor | array | Amazon Vendor accounts. Key is account ID, value is account name. |
| | - order_return | array | Orders created from returns. Key 0 is replaced by specific return ID. |
| | - [marketplace_code] | array | Other 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: