TS Commerce Developers

Customers Group API

Current version: v1.1

Customer Group List

GET
/customergroup/list.json
Customer Group List Request

$storeden = new Storeden\Storeden($config);
$customergroups_list = $storeden->get('/customergroup/list.json');
					
Customer Group List Response

[
    {
        "id": "59fb00b016f46afa7d0031da",
        "name": "VIP Users",
        "label_color": "#22ff00",
        "description": "Gruppo di utenti Projectmoon",
        "metadata": {
            "listing_id": "5a001cb916f46ae8602feac2"
        }
    },
    {
        "id": "59fadeb416f46a170b00312d",
        "name": "High buyer",
        "label_color": "#171313",
        "description": "ehne",
        "metadata": []
    },
    ...
]
					

Get customer group

GET
/customergroup/group.json?id={customer-group-id}
id required (StoredenId) Unique id of customer group.
Get customer group Request

$storeden = new Storeden\Storeden($config);
$customergroup = $storeden->get('/customergroup/group.json?id=59f.....31da');
					
Get customer group Response

[
    {
        "id": "59fb00b016f46afa7d0031da",
        "name": "VIP Users",
        "label_color": "#22ff00",
        "description": "Gruppo di utenti Projectmoon",
        "metadata": {
            "listing_id": "5a001cb916f46ae8602feac2"
        }
    }
]
					

Add customer group

POST
/customergroup/group.json
PARAMETERS LIST
name required * (string) Required
description (string)
color (string)
Add customer group Request

$storeden = new Storeden\Storeden($config);

$group_data = array();
$group_data['name'] = 'Group Name';
$group_data['description'] = 'Group Description';
// etc..

$customergroup = $storeden->get('/customergroup/group.json', group_data);
					
Get customer group Response

    {
    	"id": "6613f0bed4029d5e7e3d8432"
	}