Get customer category history values
For a given customer id, returns the history for category updates
GET
/orgs/{org_id}/customers/{customer_id}/categories/historical
Parameters
Name |
In |
Type |
Required |
Description |
org_id |
path |
string |
true |
organization name |
customer_id |
path |
string(uuid) |
true |
Customer identifier |
Request example
1
2
3
4
5
|
curl -X GET https://customers.sta.masstack.com/v4/orgs/telco/customers/123e4567-e89b-12d3-a456-556642440000/categories/historical \
-H "Accept: application/json" \
-H "x-auth-roles: API_KEY"
|
Post new customer category
Associates a new category id for a specified customer id
POST
/orgs/{org_id}/customers/{customer_id}/categories
Parameters
Name |
In |
Type |
Required |
Description |
org_id |
path |
string |
true |
organization name |
customer_id |
path |
string(uuid) |
true |
Customer identifier |
body |
body |
PostCustomerCategory |
true |
‘none’ |
1
2
3
4
5
6
|
{
"id": 214748364,
"value": "influencer",
"description": "Bill discount",
"reason": "Masmovil sponsors their videos"
}
|
Name |
Type |
Required |
Description |
id |
integer(int32) |
true |
Category id |
value |
string¦null |
true |
Category value. |
description |
string |
false |
Description of the category value. |
reason |
string |
false |
Reason for the set of value. |
Request example
1
2
3
4
5
6
7
8
9
10
11
12
|
curl -X POST https://customers.sta.masstack.com/v4/orgs/telco/customers/123e4567-e89b-12d3-a456-556642440000/categories \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "x-auth-roles: API_KEY" \
--data-raw "{
'id': 214748364,
'value': 'influencer',
'description': 'Bill discount',
'reason': 'Masmovil sponsors their videos'
}"
|
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.999.998",
"title": "Bad request",
"ref": "http://",
"message": "Bad request"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.999.996",
"title": "Unauthorized",
"ref": "http://",
"message": "Unauthorized"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.999.995",
"title": "Forbidden",
"ref": "http://",
"message": "Forbidden"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.999.997",
"title": "Resource not found",
"ref": "http://",
"message": "Resource not found"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.999.994",
"title": "Conflict",
"ref": "http://",
"message": "The resource already exists"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.999.999",
"title": "Unexpected error",
"ref": "http://",
"message": "Unexpected error"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.001.005",
"title": "Database error",
"ref": "http://",
"message": "Connection los"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
|
{
"errors": [
{
"error": {
"code": "MCUS.001.009",
"title": "Database error",
"ref": "http://",
"message": "Statement timeout"
}
}
]
}
|
Name |
Type |
Required |
Description |
errors |
[object] |
false |
none |
Ā» code |
string |
false |
Customer error code |
Ā» title |
string |
false |
Customer error title |
Ā» ref |
string |
false |
none |
Ā» details |
string |
false |
Detailed description of the error |