Barrings API
Service barring management API for voice, data, and roaming restrictions.
- production
- staging
- Contact
- administrator · mas-barrings@masmovil.com
Resources 2
- Masks 6 endpoints
Barrings operations masks
- POST Post apply or remove masks
/orgs /{orgId} /subscriptions /{subscriptionId} /barrings-masks /operations - GET Get barring masks catalogue
/orgs /{orgId} /masks - GET Get mask by id
/orgs /{orgId} /masks /{maskId} - GET Get masks applied to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks - PATCH Patch for apply or remove masks
/orgs /{orgId} /subscriptions /{subscriptionId} /masks
- POST Post apply or remove masks
- Services 4 endpoints
Barrings operations services
- GET Get one service
/orgs /{orgId} /subscriptions /{subscriptionId} /services /{serviceId} - PATCH Patch update one service
/orgs /{orgId} /subscriptions /{subscriptionId} /services /{serviceId} - GET Get all subscription service
/orgs /{orgId} /subscriptions /{subscriptionId} /services - PATCH Patch update services
/orgs /{orgId} /subscriptions /{subscriptionId} /services
- GET Get one service
Barrings API
Service barring management API for voice, data, and roaming restrictions.
- production
- staging
- Contact
- administrator · mas-barrings@masmovil.com
Resources 2
- Masks 6 endpoints
Barrings operations masks
- POST Post apply or remove masks
/orgs /{orgId} /subscriptions /{subscriptionId} /barrings-masks /operations - GET Get barring masks catalogue
/orgs /{orgId} /masks - GET Get mask by id
/orgs /{orgId} /masks /{maskId} - GET Get masks applied to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks - PATCH Patch for apply or remove masks
/orgs /{orgId} /subscriptions /{subscriptionId} /masks
- POST Post apply or remove masks
- Services 4 endpoints
Barrings operations services
- GET Get one service
/orgs /{orgId} /subscriptions /{subscriptionId} /services /{serviceId} - PATCH Patch update one service
/orgs /{orgId} /subscriptions /{subscriptionId} /services /{serviceId} - GET Get all subscription service
/orgs /{orgId} /subscriptions /{subscriptionId} /services - PATCH Patch update services
/orgs /{orgId} /subscriptions /{subscriptionId} /services
- GET Get one service
Release notes
0.2.6
- Create GET /orgs/{orgId}/subscriptions/{subscriptionId}/masks/history
- Get subscription masks history
0.1.1
- Changes GET /orgs/{orgId}/subscriptions/{subscriptionId}/services/
- Add current orders data to services endpoints
0.1.0
- Added new endpoint
- New Patch in url /orgs/{orgId}/subscriptions/{subscriptionId}/masks
0.0.17
- Changes POST /orgs/{orgId}/subscriptions/{subscriptionId}/barrings-masks/operations
- added customers masks
Masks
Post apply or remove masks
/orgs /{orgId} /subscriptions /{subscriptionId} /barrings-masks /operations Request a barring masks set operation over a subscription.
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
Request body application/json Required
Contains the operation and the masks code set, that contains the barrings masks to operate over a subscription
-
actionstring RequiredAction of the operation, the operation that applies the set of masks provided
-
barringsMasksCodesstring[] Required -
reasonstringReason of barring operation
Responses
Successfully accepted the operation request, returned the evaluation of mask, network services new status application pending
-
externalIdstring RequiredExternal identifier of the business process operation triggered and associated to the request
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
SubscriptionId not found
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Conflict to apply or remove barrings with subscription with invalid status
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Masks
Get barring masks catalogue
/orgs /{orgId} /masks Gets the barring masks catalogue
Path parameters
orgIdstringRequiredA masmovil tenant
Query parameters
operationTypeCodestringThe operation type code of the mask
codestringThe name code of the mask
subscriptionTypestringThe subscription type code of the mask
Responses
Successfully returned the barring mask catalogue
-
idinteger (int64) RequiredMask Id
-
codestring RequiredBarrings mask code, external identifier
-
descriptionstringBarrings mask description
-
namestringBarrings mask business name
-
operationTypeCodestringOperation type group code
-
subscriptionTypeCodestringSubscription type code
-
servicesobject[]-
idinteger (int64) RequiredService Id
-
codestring RequiredService code
-
descriptionstringService description
-
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Masks
Get mask by id
/orgs /{orgId} /masks /{maskId} Return a mask if exists
Path parameters
orgIdstringRequiredA masmovil tenant
maskIdinteger (int64)RequiredMask Id
Responses
The mask
-
idinteger (int64) RequiredMask Id
-
codestring RequiredBarrings mask code, external identifier
-
descriptionstringBarrings mask description
-
namestringBarrings mask business name
-
operationTypeCodestringOperation type group code
-
subscriptionTypeCodestringSubscription type code
-
servicesobject[]-
idinteger (int64) RequiredService Id
-
codestring RequiredService code
-
descriptionstringService description
-
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Not Found
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unexpected error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Masks
Get masks applied to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks Get masks applied to a subscription
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
Responses
Successfully returned the masks associated to a subscription.
-
subscriptionIdinteger (int64) RequiredSubscription Id
-
masksstring[] RequiredMask code list
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Masks
Patch for apply or remove masks
/orgs /{orgId} /subscriptions /{subscriptionId} /masks Request a barring masks set operation over a subscription.
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
Request body application/json Required
Contains the operation and the masks code set, that contains the barrings masks to operate over a subscription
-
actionstring RequiredAction of the operation, the operation that applies the set of masks provided
-
barringsMasksCodesstring[] Required -
reasonstringReason of barring operation
Responses
Successfully accepted the operation request, returned the evaluation of mask, network services new status application pending
-
externalIdstring RequiredExternal identifier of the business process operation triggered and associated to the request
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
SubscriptionId not found
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Conflict to apply or remove barrings with subscription with invalid status
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Masks
Get masks applied history to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks /history Return a history list of of barred masks
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
Responses
History list of masks
-
idinteger (int64) Requiredhistory id
-
maskobject Required-
idinteger (int64) RequiredThe mask id
-
codestring RequiredThen mask code
-
namestring Required -
descriptionstring RequiredThen mask description
-
-
operationstring Required -
subscription_idinteger (int64) Requiredsubscription id
-
userstring Required -
datestring (date-time) Required
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unexpected error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Services
Get one service
/orgs /{orgId} /subscriptions /{subscriptionId} /services /{serviceId} Request a service
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
serviceIdinteger (int64)RequiredService identifier
Responses
OK
-
serviceIdinteger (int64) RequiredService Id
-
serviceNamestring RequiredService Name
-
activeboolean RequiredService status
-
statusReasonstring[] Required -
orderobject Required-
runningboolean RequiredOrder running status
-
ordersstring[] RequiredExternal id list
-
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Not found
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Services
Patch update one service
/orgs /{orgId} /subscriptions /{subscriptionId} /services /{serviceId} Request a service barring over a subscription.
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
serviceIdinteger (int64)RequiredService identifier
Request body application/json Required
Contains services set and the reason to operate over a subscription
-
reasonstring RequiredReason
-
activeboolean Required
Responses
Successfully accepted the operation request, returned the externalId and subscriptionId
-
externalIdstring RequiredExternal identifier of the business process operation triggered and associated to the request
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Services
Get all subscription service
/orgs /{orgId} /subscriptions /{subscriptionId} /services Request all subscription service
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
Responses
OK
-
serviceIdinteger (int64) RequiredService Id
-
serviceNamestring RequiredService Name
-
activeboolean RequiredService status
-
statusReasonstring[] Required -
orderobject Required-
runningboolean RequiredOrder running status
-
ordersstring[] RequiredExternal id list
-
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Services
Patch update services
/orgs /{orgId} /subscriptions /{subscriptionId} /services Request services barring over a subscription.
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdinteger (int64)RequiredSubscription identifier
Request body application/json Required
Contains services set and the reason to operate over a subscription
-
reasonstring RequiredReason
-
servicesobject[] Required-
serviceIdinteger (int64) RequiredService Id
-
activeboolean RequiredDesired service status
-
Responses
Successfully accepted the operation request, returned the externalId and subscriptionId
-
externalIdstring RequiredExternal identifier of the business process operation triggered and associated to the request
Bad Request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Unauthorized request
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Forbidden resource
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error
Internal Server Error
-
tracingIdstring RequiredTrace id of the related request to track the exception
-
codestring RequiredError code string for fast identification
-
messagestringMessage description or detail of error