Create Customer API
This API endpoint allows you to create a new customer account along with one or more brands. You must provide user details and at least one brand. On success, you receive a redirect URL and the new customer ID.
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/create-customer
- Returns: Redirect URL and customer ID on success
Create Customer
POST https://app.brand2social.com/api/api-services/v1/brand-service/create-customer
Field | Type | Required | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
user_details | object | Yes | User info | ||||||||||||||||||||
| |||||||||||||||||||||||
brand_details | array of objects | Yes | At least one brand | ||||||||||||||||||||
|
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/create-customer' \
--header 'Authorization: Bearer B2S_dummyToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_details": {
"email_address": "demo@example.com",
"password": "demo@example.com",
"timezone": "Asia/Kolkata",
"first_name": "Demo"
},
"brand_details": [
{
"brand_name": "DemoBrand",
"timezone": "Asia/Kolkata",
"brand_limitation": {
"social_account_limit": 1,
"users_limit": 1,
"ai_content_tokens": 1,
"ai_image_token": 1
}
}
]
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Successfully created new customer",
"data": {
"redirect_url": "https://app.brand2social.com/login?login_key=demo-login-key",
"customer_id": "cust_123"
}
}