cash-registerAddress

This page contains the documentation for the address endpoints.

The address endpoints allow you to add, modify, select and delete an address. You can view the list of addresses that you have.

Get Addresses

get
/address/list

This endpoint allows you to get the list of addresses.

Authorizations
AuthorizationstringRequired

Provide your API key.

Responses
chevron-right
200

Successful response. Returns the user's address information.

application/json
get
/address/list

Get Google Places Key

get
/address/api_key

This endpoint allows you to get the API key for Google Places API. Learn more here.

Authorizations
AuthorizationstringRequired

Provide your API key.

Responses
chevron-right
200

Successful response. The order has been created successfully.

text/plain
Responsestring

The API key for Google Places.

Example: AIzaSyC6ASDCKAAS3G1E2EjRKlzk8TvHziasds"
get
/address/api_key

Add an Address

post
/address/add

This endpoint allows you to add an address for the user.

Authorizations
AuthorizationstringRequired

Provide your API key.

Body
addressstringRequired

The address of the user to add. Newly added address will be selected as the main address.

Responses
chevron-right
200

Successful response. The order has been created successfully.

text/plain
ResponsestringExample: success
post
/address/add

Delete an Address

delete
/address/delete

This endpoint allows you to delete an address.

Authorizations
AuthorizationstringRequired

Provide your API key.

Body
addressIdstringRequired

The address ID of the user to be deleted. Use the GET get addresses endpoint to look at the list of addresses, and it's ID.

Responses
chevron-right
200

Successful response. Returns the user's address information.

application/json
delete
/address/delete

Last updated