Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request PUT \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business": {
"business_type": "<string>",
"name": "<string>",
"pan_number": "<string>",
"gstin": "<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>"
}
}
}
}Update customer detail
curl --request PUT \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business": {
"business_type": "<string>",
"name": "<string>",
"pan_number": "<string>",
"gstin": "<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>"
}
}
}
}Access token
Customer id
OK
Show child attributes
Show child attributes
Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
10 digit phone number without country code.
Was this page helpful?