getOrdersByPhone
The method allows you to search for orders related to the given phone number. This function is intended for use in caller recognition programs.
Input parameters
Output data:
A sample request in PHP:
phone | varchar(50) | The phone number we search for in orders. |
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 |
orders | array | An array of information about the orders found. Each order is described by the fields listed below. |
order_id | int | Order Identifier from BaseLinker order manager |
order_status_id | int | Order status (the list available to retrieve with getOrderStatusList) |
delivery_fullname | varchar(100) | Delivery address - name and surname |
delivery_company | varchar(100) | Delivery address - company |
date_in_status | int | Date from which the order is in current status (unix time format) |
date_add | int | Date of order creation (in unix time format) |
Sample
Input data:Output data:
A sample request in PHP: