(Quick Reference) Service: Show

Description: This web service return an existing assigned customer_group details of the specified id in JSON format

Method: GET

URL:

https://BASE_URL/api/VERSION/customerCategories/{id}

Parameters:

NameDescriptionTypeRequiredExample values
idid of the desired assigned customer groupLongYes777

URL with external_id:

https://BASE_URL/api/VERSION/customerGroupAssign/reference/{customerId}/{groupId}

Parameters:

NameDescriptionTypeRequiredExamples values
customerIdreference of the customerStringYesC-002
groupIdreference of the customer groupStringYesCG-001

Success Output

Success case: response.status=200
{
    "id": 101,
    "customerReference": "C-002",
    "customerGroupReference": "CG-001",
    "customer": {
        "id": 1335,
        "reference": "C-002",
        "name": "cus2",
        "href": "/api/v1.0/customers/1335"
    },
    "customerGroup": {
        "id": 5,
        "reference": "CG-001",
        "name": "CusG1",
        "href": "/api/v1.0/customerGroups/5"
    },
    "organization": "Lyon",
    "dateCreated": "2016-08-22T11:13:12Z",
    "lastUpdated": "2016-08-22T11:13:12Z"
}

Failure Output

Failure case:response.status = 404
{
    "error": "not_found",
    "error_description": "The customer group assign with the id 999 doesn't exist."
}

Failure case:response.status = 400
{
    "error": "invalid_param_type",
    "error_description": "The type of parameter id you provided is not valid for this request."
}