Get Address

The “set active card” API allows users to set one of their saved payment cards as the active card to use for transactions. This API requires the user to provide their user ID and the ID of the card they wish to set as active. The response will indicate whether the operation was successful or not.

Endpoint #

The Voomerr Get Address endpoint is POST https://admin.voomerr.com/api/get_address.php

Parameters #

Parameter Type Description
user_id string The unique identifier for the user whose address is to be retrieved.

Response #

The API will return a JSON response with the following fields:

Field Type Description
success boolean A flag indicating whether the API request was successful.
message string A message containing information about the API request.
address_line string The first line of the user’s address.
city string The city where the user is located.
state string The state or province where the user is located.
country string The country where the user is located.
zip_code string The zip or postal code for the user’s address.

Sample Response #

json
{
"success": true,
"message": "Address retrieved successfully",
"address_line": "123 Main St",
"city": "New York",
"state": "NY",
"country": "USA",
"zip_code": "10001"
}

Error Responses #

If the request fails, the API will return a JSON response with the following fields:

Field Type Description
success boolean A flag indicating whether the API request was successful.
message string A message containing information about the reason for the API error.

Sample Error Response #

json
{
"success": false,
"message": "Invalid user_id"
}

Powered by BetterDocs