Bulk Create
HTTP request
POST https://api.geophrase.com/business/geophrases-bulk-create/
Example request
curl --location 'https://api.geophrase.com/business/geophrases-bulk-create/' \
--header 'X-API-Key: {API key}' \
--header 'Content-Type: application/json' \
--data '[
{
"latitude": 25.0000000000001,
"longitude": 45.78473662999998,
"address_line_one": "House no 49",
"address_line_two": "Gulab Nagar Ln",
"landmark": "Near Mukul Ram Store",
"city": "New Delhi",
"address_type": "HOME",
"postal_code": 110001
}
]'Request headers
| Header Name | Value |
|---|---|
X-API-Key Required | {API key} |
Content-Type Required | application/json |
Request body
The request body contains JSON array in following format.
[
{
"latitude": 25.0000000000001,
"longitude": 45.78473662999998,
"address_line_one": "House no 49",
"address_line_two": "Gulab Nagar Ln",
"landmark": "Near Mukul Ram Store",
"city": "New Delhi",
"address_type": "HOME",
"postal_code": 110001
},
...
]| Field Name | Value |
|---|---|
latitude Required | Number |
longitude Required | Number |
address_line_one Required | String |
address_line_two Required | String |
landmark Optional | String |
city Required | String |
address_type Required | String Allowed values are: HOME and WORK |
postal_code Required | Number Must be a valid and real postal code |
Response
Returns status code 201 and a JSON array of Geophrase instances.
Error response
Returns 4xx HTTP status code and an error response.
| Status Code | Description |
|---|---|
400 | Consider these reasons:
|
403 | Consider these reasons:
|
Next step
Wallet Balance API