# Address API Reference
Endpoint:
https://[client].hiweb.io/api/addresses
Address resource object:
{
"type": "addresses",
"id": "(string)",
"attributes": {
"first_name": "string",
"last_name": "string",
"email": "string",
"phone": "string",
"address1": "string",
"address2": "string",
"province": "string",
"city": "string",
"postal_code": "string",
"country_code": "string",
"created_at": "string|datetime",
"updated_at": "string|datetime"
}
}
Related resources: Address, Cart Item, Discount
# Writable fields
| Field name | Creating | Updating |
|---|---|---|
| first_name | string|max:50 | string|max:50 |
| last_name | required | string|max:50 |
| string|email|max:100 | string|email|max:100 | |
| phone | string|max:50 | string|max:50 |
| address1 | required | string|max:255 |
| address2 | string|max:255 | string|max:255 |
| province | string|max:80 | string|max:80 |
| city | string|max:100 | string|max:100 |
| postal_code | string|max:20 | string|max:20 |
| country_code | string | string |