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
The body is of type object
.
OK
The response is of type object
.
Was this page helpful?