Barrings API
Service barring management API for voice, data, and roaming restrictions.
- production
- staging
- Contact
- administrator · mas-barrings@masmovil.com
Resources 3
- Masks 7 endpoints
Barrings operations masks
- 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 - GET Get deferred masks that will be applied to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks /deferred
- GET Get barring masks catalogue
- Services 5 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 service status history
/orgs /{orgId} /subscriptions /{subscriptionId} /services /history
- GET Get one service
- Operations 3 endpoints
Barrings regularization
Barrings API
Service barring management API for voice, data, and roaming restrictions.
- production
- staging
- Contact
- administrator · mas-barrings@masmovil.com
Resources 3
- Masks 7 endpoints
Barrings operations masks
- 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 - GET Get deferred masks that will be applied to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks /deferred
- GET Get barring masks catalogue
- Services 5 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 service status history
/orgs /{orgId} /subscriptions /{subscriptionId} /services /history
- GET Get one service
- Operations 3 endpoints
Barrings regularization
Release notes
1.5.0
- Create new endpoints for console operations
- Get all operations created from console GET /operations
- Post operations to upload csv file with subscriptions to regularization. POST /operations
- Get all operations items associated to one operation GET /operations/{regularizationId}/items
0.3.3
- Remove POST /orgs/{orgId}/subscriptions/{subscriptionId}/barrings-masks/operations
- Remove deprecated endpoint
0.3.2
- Create new endpoints for operate prepaid subscriptions masks and get deferred masks
- Operate prepaid subscription masks POST /orgs/{orgId}/subscriptions/{subscriptionId}/masks/prepaid
- Get deferred masks for subscription GET /orgs/{orgId}/subscriptions/{subscriptionId}/masks/deferred
0.3.1
- Create GET /orgs/{orgId}/subscriptions/{subscriptionId}/services/history
- Get service status history
0.3.0
- Update endpoints related to subscriptionId
- Change from int64 to string in subscription_id property in MaskHistoryResponse
- Change from int64 to string in subscriptionId path param (all endpoints)
- Change SubscriptionMasksResponse from object to string array (masks)
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
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
subscriptionIdstringRequiredSubscription identifier
Responses
Successfully returned the masks associated to a subscription.
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
subscriptionIdstringRequiredSubscription 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 deferred masks that will be applied to a subscription
/orgs /{orgId} /subscriptions /{subscriptionId} /masks /deferred Get deferred masks that will be applied to a subscription
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdstringRequiredSubscription identifier
Responses
Successfully returned the deferred masks that will be applied to the subscription.
-
maskstring Required -
deferredDatestring (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
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 for prepaid subscriptions
/orgs /{orgId} /subscriptions /{subscriptionId} /masks /prepaid Request a barring masks set operation over a prepaid subscription.
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdstringRequiredSubscription identifier
Request body application/json Required
Contains the operation and the masks code set, that contains the barrings masks to operate over a prepaid subscription
-
actionstring RequiredAction of the operation, the operation that applies the set of masks provided
-
barringsMasksCodesstring[] Required -
reasonstringReason of barring operation
-
deferredDatestring (date-time)Date when the barring will be applied
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
subscriptionIdstringRequiredSubscription 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_idstring 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
subscriptionIdstringRequiredSubscription 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
-
-
datestring (date-time) RequiredDate when the service status was last updated
-
usernamestringUser who performed the last service status update
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
subscriptionIdstringRequiredSubscription 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
subscriptionIdstringRequiredSubscription 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
-
-
datestring (date-time) RequiredDate when the service status was last updated
-
usernamestringUser who performed the last service status update
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
subscriptionIdstringRequiredSubscription 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
Services
Get service status history
/orgs /{orgId} /subscriptions /{subscriptionId} /services /history Request service status history
Path parameters
orgIdstringRequiredA masmovil tenant
subscriptionIdstringRequiredSubscription identifier
Query parameters
serviceIdinteger (int64)Service identifier
Responses
OK
-
idinteger (int64) RequiredThe history id
-
subscriptionIdstring RequiredThe subscription id
-
serviceIdinteger (int64) RequiredThe service id
-
serviceNamestring RequiredThe service name
-
serviceStatusboolean RequiredThe service status (true = active, false = inactive)
-
operationTypeIdinteger (int64) RequiredThe operation type id
-
operationTypestring RequiredThe operation type code
-
usernamestring RequiredThe username
-
updateDatestring (date-time) RequiredThe update date
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
Operations
Get all operations
/operations Request all operations
Responses
List with all operations
-
idstringThe regularization id
-
usernamestring RequiredUser who performs the regularization
-
userReasonstring RequiredReason to perform the regularization
-
requestDatestring (date-time) RequiredThe date of the regularization
-
fileNamestring RequiredName of the csv file related to the regularization
-
statusinteger (int64)The regularization status
-
requestedQuantityinteger (int64)The quantity of subscriptions (lines of the csv) to regularize
-
requestedCompletedinteger (int64)The quantity of subscriptions (lines of the csv) regularized ok
-
requestedErrorinteger (int64)The quantity of subscriptions (lines of the csv) regularized ko
-
requestedUnprocessedinteger (int64)The quantity of subscriptions (lines of the csv) unprocessed
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
Operations
Post to upload csv file with regularization
/operations Upload file with subscriptions to regularization.
Request body multipart/form-data Required
Contains the CSV file with regularization data and a string reason for the operation.
-
filestring (binary) RequiredThe CSV file containing the regularization data.
-
reasonstring RequiredA string explaining the reason for this regularization.
Responses
File uploaded successfully
-
fileNamestringThe name of the file that was uploaded.
-
messagestringA confirmation message indicating the status of the upload.
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
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
Operations
Get all operations items with regularization id
/operations /{regularizationId} /items Return all operations items associated to regularization id
Path parameters
regularizationIdstringRequiredRegularization identifier
Query parameters
offsetintegerRequiredNumber of items to skip (for pagination)
limitintegerMaximum number of items to return (for pagination)
Responses
List with all operations items by id
-
idstringThe regularization item id
-
tenantstring RequiredThe subscription tenant
-
subscriptionIdstring RequiredThe subscription id
-
statusinteger (int64) RequiredThe regularization item status
-
operationstring RequiredThe operation to perform
-
masksstring RequiredA comma separated list of mask to operate
-
subscriptionTypestringThe subscription type
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