Customer
This model represents customer of a shop.
| Property | Type | Description | Information |
|---|---|---|---|
id | int | Identifier | Unique for single customer. |
email | string | Email for login | Should be valid email address. |
first_name | string | First name of a customer | Maximal length is 50 characters. |
last_name | string | Last name of a customer | Maximal length is 50 characters. |
phone | string or null | Phone number of a customer | Maximal length is 50 characters. |
last_logged_at | DateTime or null | Customer last login date and time | Read-only. |
created_at | DateTime | Customer creation date and time | Read-only. |
Example:
{
"id": 1,
"first_name": "wrfwrf",
"last_name": "ergerg",
"email": "a@a.sk",
"phone": null,
"is_active": true,
"created_at": "2022-04-28T13:25:12+0200",
"_links": [
{
"href": "/api/v0/customers/1",
"rel": "self",
"type": "GET"
}
]
}