POST
/
customers
/
register
Müşteri kaydı oluştur
curl --request POST \
  --url https://api.hemenmagaza.com/v1/customers/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "password": "<string>"
}
'
{
  "token": "<string>",
  "customer": {
    "name": "<string>",
    "email": "jsmith@example.com",
    "id": 123,
    "phone": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_TOKEN

Body

application/json
name
string
required
Example:

"Ayşe Yılmaz"

email
string<email>
required
Example:

"ayse@example.com"

password
string<password>
required
Minimum string length: 8

Response

Müşteri oluşturuldu.

token
string
required
Example:

"cust_sess_5d2d"

customer
object
required