Skip to content

Create a customer

Endpoint: https://my-store.youcan.shop/api/customers

Method: POST

Parameters

Param NameParam TypeDescriptionRequired
emailstringCustomer emailyes
passwordstringCustomer passwordyes
password_confirmationstringCustomer password configurationyes
first_namestringCustomer first nameoptional
last_namestringCustomer last nameoptional
countrystringCustomer countryoptional
regionstringCustomer regionoptional
citystringCustomer cityoptional
notesstringNotesoptional

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"
  }
}