Creates a Customer Group.
Request
Body Params application/json
{
"name": "string",
"metadata": {}
}
Request samples
curl --location --request POST 'https://api.medusa-commerce.com/admin/customer-groups' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"metadata": {}
}'
Responses
application/json {
"customer_group": {
"id": "cgrp_01G8ZH853Y6TFXWPG5EYE81X63",
"name": "VIP",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"customers": [
{}
],
"price_lists": [
{}
],
"metadata": {
"car": "white"
}
}
}
Modified at 2023-10-08 12:50:29