How to: Country
For more information about prerequisites, see the Integrate with Location service.
To create the location, call the API for creating country. Country name and city are mandatory, other parameters are optional. endpoint and specify the required attributes in the request body.
The request body is specified in JSON format. The following example of a request body shows how to create a Country.
For information about creating orders, see How to: Create Country.
To update the Country by Country name, call the Update country by country name endpoint and specify the required attributes in the request body.
Using this API only aliases can be updated.
It doesn't do the bulk update. For example, if you enter country and city then it will not update alias for all the zip codes of that city. But it will update alias for the record which has country and city same as mentioned in input but doesn't have district, state and zip code. If you want to update in bulk then please use "Upload Country Info in Bulk" API.
The request body is specified in JSON format. The following example of a request body shows how to Update the Country.
To retrieve the Country details by passing the necessary parameters, call the Get Country Data By Parameters endpoint.
This endpoint is used for uploading country info in bulk using a file. The API can be used to upload a file (up to 2MB) with country information.
Callback can also be provided along with the file to notify the status of file processing.
To upload the Country info in Bulk, call the Upload Country Info in Bulk endpoint.
Here is a sample .CSV file that can help you to understand the standard format to be used.