Create a customer
Endpoint: https://my-store.youcan.shop/api/customers
Method: POST
Parameters
Param Name | Param Type | Description | Required |
---|---|---|---|
email | string | Customer email | yes |
password | string | Customer password | yes |
password_confirmation | string | Customer password configuration | yes |
first_name | string | Customer first name | optional |
last_name | string | Customer last name | optional |
country | string | Customer country | optional |
region | string | Customer region | optional |
city | string | Customer city | optional |
notes | string | Notes | optional |
Response
To authenticate you get the customer token for the Login endpoint
[401] Unauthorized
json
{
"status": 401,
"detail": "Unauthenticated.",
"meta": []
}
[201] Created
json
{
"id": "10303f69-eef7-43a2-b71e-b52c9ad9487b",
"first_name": "Joe",
"last_name": "Lam",
"full_name": "Joe Lam",
"email": "[email protected]",
"avatar": "https://www.gravatar.com/avatar/1aedb8d9dc4751e229a335e371db8058?s=100&d=http://nordine.youcan.shop/store-admin/images/generic_avatar.png",
"phone": null,
"country": "",
"region": "",
"city": "",
"notes": "",
"location": ", ",
"created_at": "2021-04-24T13:22:04+00:00",
"updated_at": "2021-04-24T13:22:04+00:00",
"deleted_at": null,
"links": {
"edit": "http://seller-area.youcan.shop/admin/customers/10303f69-eef7-43a2-b71e-b52c9ad9487b/edit"
}
}