ποΈ Commerce
- Catalog
- Carts
- Coupons & Promotions
- Orders
- Shipping
- Payments
- Subscriptions
π Customers
- Auth
- Customers
- KYC
ποΈ Engagement & Retention
- Campaigns
- Analytics
π§° Utilities
- Common
Customers
Create customer
Create customer
POST
/
customers
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"business": {
"business_type": "<string>",
"name": "<string>",
"pan_number": "<string>",
"gstin": "<string>"
},
"address": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "123456789",
"business_name": "<string>"
}
}'
{
"message": "<string>",
"success": true,
"content": {
"customer_detail": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"is_phone_verified": true,
"is_email_verified": true,
"business": {
"business_type": "<string>",
"name": "<string>",
"pan_number": "<string>",
"gstin": "<string>"
}
}
}
}
Authorizations
Access token
Body
application/json
The body is of type object
.
Response
200
application/json
OK
The response is of type object
.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"business": {
"business_type": "<string>",
"name": "<string>",
"pan_number": "<string>",
"gstin": "<string>"
},
"address": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "123456789",
"business_name": "<string>"
}
}'
{
"message": "<string>",
"success": true,
"content": {
"customer_detail": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"is_phone_verified": true,
"is_email_verified": true,
"business": {
"business_type": "<string>",
"name": "<string>",
"pan_number": "<string>",
"gstin": "<string>"
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.