Developers

Get a user's address

Retrieve the address currently on file for the authenticated user.

GET/address/

Retrieve the address currently on file for the authenticated user.

The user is identified via the X-Doctronic-User-ID header; no path parameter is used. Returns a 404 if no address is on file for the user.

Authorization

HTTPBearer XDoctronicUserID
AuthorizationBearer <token>

In: header

X-Doctronic-User-ID<token>

Doctronic user ID returned as data.id by POST /users/. This value identifies the user in your organization scope; it is not an API token.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/address/"
{  "code": "success",  "message": "Request successful",  "data": {    "line1": "string",    "line2": "string",    "city": "string",    "state": "string",    "postalCode": "string"  }}