Admin

API for managing msisdn inventory CRUD operations


Parameters

Name In Type Required Description
msisdn path string true a msisdn of Grupo Mamovil
org path string true tenant name
body body InboundInventory false ‘none’

Request body - instance of InboundInventory

1
2
3
{
  "imsi": "2140420422222227"
}
Name Type Required Description
imsi string true none

Request example

1
2
3
4
5
6
7
8
9

curl -X PUT https://orgs.masstack.com/v2/orgs/masmovil/msisdns/666777888 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'imsi': '2140420422222227'
}" 

Responses

Code Meaning Description Schema
204 No Content OK None
400 Bad Request Error response ErrorDto
401 Unauthorized Error response ErrorDto
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
409 Conflict Error response ErrorDto
500 Internal Server Error Error response ErrorDto

400 - instance of ErrorDto

Custom schema example

1
2
3
4
5
6
7
{
  "componentMsg": "Error:Field validation for 'Imsi' failed on the 'required' tag",
  "id": "MM0000001",
  "msg": "Invalid inbound entity",
  "sentryCode": "string",
  "status": "$statusCode"
}
Name Type Required Description
componentMsg string false none
id string false none
msg string false none
sentryCode string false none
status integer(int64) false none

Parameters

Name In Type Required Description
msisdn path string true a msisdn of Grupo Mamovil
org path string true tenant name
body body InboundPartialInventory false ‘none’

Request body - instance of InboundPartialInventory

1
2
3
4
{
  "belongs_to": "mas-stack",
  "status": "OK"
}
Name Type Required Description
belongs_to string false none
status string false none
Property Values
belongs_to one of [unknown, mas-stack, heos, ektnet, salesforce, qvantel, outside, plintron, qvantel-prepaid, tcnet, r]
status one of [OK, Deleted, Migrating, Migrated]

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

curl -X PATCH https://orgs.masstack.com/v2/orgs/masmovil/msisdns/666777888 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'belongs_to': 'mas-stack',
  'status': 'OK'
}" 

Responses

Code Meaning Description Schema
204 No Content OK None
400 Bad Request Error response ErrorDto
401 Unauthorized Error response ErrorDto
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
409 Conflict Error response ErrorDto
500 Internal Server Error Error response ErrorDto

400 - instance of ErrorDto

Custom schema example

1
2
3
4
5
6
7
{
  "componentMsg": "Error:Field validation for 'Imsi' failed on the 'required' tag",
  "id": "MM0000001",
  "msg": "Invalid inbound entity",
  "sentryCode": "string",
  "status": "$statusCode"
}
Name Type Required Description
componentMsg string false none
id string false none
msg string false none
sentryCode string false none
status integer(int64) false none

Parameters

Name In Type Required Description
msisdn path string true a msisdn of Grupo Mamovil
org path string true tenant name
body body InboundInventory false ‘none’

Request body - instance of InboundInventory

1
2
3
{
  "imsi": "2140420422222227"
}
Name Type Required Description
imsi string true none

Request example

1
2
3
4
5
6
7
8
9

curl -X POST https://orgs.masstack.com/v2/orgs/masmovil/msisdns/666777888 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'imsi': '2140420422222227'
}" 

Responses

Code Meaning Description Schema
201 Created OK None
400 Bad Request Error response ErrorDto
401 Unauthorized Error response ErrorDto
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
409 Conflict Error response ErrorDto
500 Internal Server Error Error response ErrorDto

400 - instance of ErrorDto

Custom schema example

1
2
3
4
5
6
7
{
  "componentMsg": "Error:Field validation for 'Imsi' failed on the 'required' tag",
  "id": "MM0000001",
  "msg": "Invalid inbound entity",
  "sentryCode": "string",
  "status": "$statusCode"
}
Name Type Required Description
componentMsg string false none
id string false none
msg string false none
sentryCode string false none
status integer(int64) false none

Parameters

Name In Type Required Description
msisdn path string true a msisdn of Grupo Mamovil
org path string true tenant name

Request example

1
2
3
4
5

curl -X DELETE https://orgs.masstack.com/v2/orgs/masmovil/msisdns/666777888 \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
204 No Content OK None
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
500 Internal Server Error Error response ErrorDto

403 - instance of ErrorDto

Custom schema example

1
2
3
4
5
6
7
{
  "componentMsg": "Error:Field validation for 'Imsi' failed on the 'required' tag",
  "id": "MM0000001",
  "msg": "Invalid inbound entity",
  "sentryCode": "string",
  "status": "$statusCode"
}
Name Type Required Description
componentMsg string false none
id string false none
msg string false none
sentryCode string false none
status integer(int64) false none

Endpoints

Admin

    Inventory