Services

Barrings operations services


Parameters

Name In Type Required Description
orgId path string true A masmovil tenant
subscriptionId path integer(int64) true Subscription identifier
serviceId path integer(int64) true Service identifier

Request example

1
2
3
4

curl -X GET https://barrings.masstack.com/v2/orgs/masmovil/subscriptions/22222/services/11111 \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK OK ServiceStatusDto
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
404 Not Found Not found ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Parameters

Name In Type Required Description
orgId path string true A masmovil tenant
subscriptionId path integer(int64) true Subscription identifier
serviceId path integer(int64) true Service identifier
body body ServiceOperationRequest true Contains services set and the reason to operate over a subscription

Request body - instance of ServiceOperationRequest

1
2
3
4
{
  "reason": "CUST",
  "active": true
}
Name Type Required Description
reason string true Reason
active boolean true none
Property Values
reason one of [CUST, PROD]

Request example

1
2
3
4
5
6
7
8
9

curl -X PATCH https://barrings.masstack.com/v2/orgs/masmovil/subscriptions/22222/services/11111 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'reason': 'CUST',
  'active': true
}" 

Responses

Code Meaning Description Schema
202 Accepted Successfully accepted the operation request, returned the externalId and subscriptionId ServiceOperationResponse
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Parameters

Name In Type Required Description
orgId path string true A masmovil tenant
subscriptionId path integer(int64) true Subscription identifier

Request example

1
2
3
4

curl -X GET https://barrings.masstack.com/v2/orgs/masmovil/subscriptions/22222/services \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK OK [ServiceStatusDto]
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Parameters

Name In Type Required Description
orgId path string true A masmovil tenant
subscriptionId path integer(int64) true Subscription identifier
body body MultiServicesOperationRequest true Contains services set and the reason to operate over a subscription

Request body - instance of MultiServicesOperationRequest

1
2
3
4
5
6
7
8
9
{
  "reason": "CUST",
  "services": [
    {
      "serviceId": 10,
      "active": true
    }
  ]
}
Name Type Required Description
reason string true Reason
services [ServiceDto] true [Service with status]
Property Values
reason one of [CUST, PROD]

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14

curl -X PATCH https://barrings.masstack.com/v2/orgs/masmovil/subscriptions/22222/services \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'reason': 'CUST',
  'services': [
    {
      'serviceId': 10,
      'active': true
    }
  ]
}" 

Responses

Code Meaning Description Schema
202 Accepted Successfully accepted the operation request, returned the externalId and subscriptionId ServiceOperationResponse
400 Bad Request Bad Request ErrorResponse
401 Unauthorized Unauthorized request ErrorResponse
403 Forbidden Forbidden resource ErrorResponse
500 Internal Server Error Internal Server Error ErrorResponse

Endpoints

Masks

    Services