Discovery API

API for managing msisdn inventory CRUD operations


Parameters

NameDescription

msisdn*required

string

(path)

a msisdn of Grupo Mamovil

org*required

string

(path)

tenant name

body

InboundInventory

(body)

‘none’

Request body - instance of InboundInventory

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

Request example

content_copy
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 Description Schema
204 OK None
400 Error response ErrorDto
401 Error response ErrorDto
403 Error response ErrorDto
404 Error response ErrorDto
409 Error response ErrorDto
500 Error response ErrorDto

400 - instance of ErrorDto

Custom schema example

content_copy
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

NameDescription

msisdn*required

string

(path)

a msisdn of Grupo Mamovil

org*required

string

(path)

tenant name

body

InboundPartialInventory

(body)

‘none’

Request body - instance of InboundPartialInventory

content_copy
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]
status one of [OK, Deleted, Migrating, Migrated]

Request example

content_copy
 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 Description Schema
204 OK None
400 Error response ErrorDto
401 Error response ErrorDto
403 Error response ErrorDto
404 Error response ErrorDto
409 Error response ErrorDto
500 Error response ErrorDto

400 - instance of ErrorDto

Custom schema example

content_copy
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

NameDescription

msisdn*required

string

(path)

a msisdn of Grupo Mamovil

org*required

string

(path)

tenant name

body

InboundInventory

(body)

‘none’

Request body - instance of InboundInventory

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

Request example

content_copy
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 Description Schema
201 OK None
400 Error response ErrorDto
401 Error response ErrorDto
403 Error response ErrorDto
404 Error response ErrorDto
409 Error response ErrorDto
500 Error response ErrorDto

400 - instance of ErrorDto

Custom schema example

content_copy
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

NameDescription

msisdn*required

string

(path)

a msisdn of Grupo Mamovil

org*required

string

(path)

tenant name

Request example

content_copy
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 Description Schema
204 OK None
403 Error response ErrorDto
404 Error response ErrorDto
500 Error response ErrorDto

403 - instance of ErrorDto

Custom schema example

content_copy
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