POST
/
customers
/
login
Müşteri girişi
curl --request POST \
  --url https://api.hemenmagaza.com/v1/customers/login \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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
email
string<email>
required
password
string<password>
required

Response

Müşteri oturumu açıldı.

token
string
required
Example:

"cust_sess_5d2d"

customer
object
required