Update Address

This API updates the address information of the user with the specified address ID.

Endpoint #

The Voomerr Update Address endpoint is POST https://admin.voomerr.com/api/update_address.php

Request Parameters #

Parameter Required Description
address_id Yes The ID of the address that needs to be updated.
label No A label for the address, e.g., “Home,” “Work,” or “Office.”
address1 Yes The first line of the user’s street address.
address2 No The second line of the user’s street address, if applicable.
city Yes The city where the user is located.
state Yes The state or province where the user is located.
country Yes The country where the user is located.
postcode Yes The user’s postal code.
latitude Yes The latitude of the address.
longitude Yes The longitude of the address.

Response Parameters #

Parameter Description
status The status of the API request (“success” or “error”).
message A message indicating the result of the API request.
address_id The ID of the address that was updated.
user_id The ID of the user associated with the updated address.
label The label assigned to the updated address.
address1 The first line of the updated address.
address2 The second line of the updated address, if applicable.
city The city of the updated address.
state The state or province of the updated address.
country The country of the updated address.
postcode The postal code of the updated address.
latitude The latitude of the updated address.
longitude The longitude of the updated address.

Example Request #

json
POST https://admin.voomerr.com/api/update_address.php
{
"address_id": "1234",
"label": "Home",
"address1": "123 Main St",
"address2": "",
"city": "New York",
"state": "NY",
"country": "US",
"postcode": "10001",
"latitude": "40.742051",
"longitude": "-74.004821"
}

Example Response #

json
{
"status": "success",
"message": "Address updated successfully.",
"address_id": "1234",
"user_id": "5678",
"label": "Home",
"address1": "123 Main St",
"address2": "",
"city": "New York",
"state": "NY",
"country": "US",
"postcode": "10001",
"latitude": "40.742051",
"longitude": "-74.004821"
}

Powered by BetterDocs