Skip to main content

Customer

This model represents customer of a shop.

PropertyTypeDescriptionInformation
idintIdentifierUnique for single customer.
emailstringEmail for loginShould be valid email address.
first_namestringFirst name of a customerMaximal length is 50 characters.
last_namestringLast name of a customerMaximal length is 50 characters.
phonestring or nullPhone number of a customerMaximal length is 50 characters.
last_logged_atDateTime or nullCustomer last login date and timeRead-only.
created_atDateTimeCustomer creation date and timeRead-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"
}
]
}