Connect with brand user data

POST /auth/brand

will create or find a brand user and return the token, if the endpoint his called with a guest user token , guest user will be bound to the brand user

Headers

application/json

Body

Responses

POST /auth/brand
curl \
 -X POST https://domain.tld/api/v2/auth/brand \
 -H "Content-Type: application/json" \
 -H "X-Popsell-Domain: example.com" \
 -H "Authorization: Bearer token" \
 -d '{"email_tmp":"string","customer_id":"string","lang":"string","gender":"string","firstname":"string","lastname":"string","dob":"string","city":"string","country":"string","postcode":"string","image":"string","user_api_key":"string"}'
Request examples
# Headers
X-Popsell-Domain: example.com
Authorization: Bearer token

# Payload
{
  "email_tmp": "string",
  "customer_id": "string",
  "lang": "string",
  "gender": "string",
  "firstname": "string",
  "lastname": "string",
  "dob": "string",
  "city": "string",
  "country": "string",
  "postcode": "string",
  "image": "string",
  "user_api_key": "string"
}
Response examples (200)
{
  "token": "string"
}
Response examples (401)
{
  "message": "Unauthorized."
}
{
  "message": "Invalid email or password"
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}