POST api/SimAdministrator/AddInventory

Request Information

URI Parameters

None.

Body Parameters

Inventory
NameDescriptionTypeAdditional information
BoxNumber

string

None.

SimType

string

None.

NumberOfSim

integer

None.

StartICCIDNumber

integer

None.

EndICCIDNumber

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BoxNumber": "sample string 1",
  "SimType": "sample string 2",
  "NumberOfSim": 3,
  "StartICCIDNumber": 4,
  "EndICCIDNumber": 5
}

text/html

Sample:
{"BoxNumber":"sample string 1","SimType":"sample string 2","NumberOfSim":3,"StartICCIDNumber":4,"EndICCIDNumber":5}

application/xml, text/xml

Sample:
<Inventory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities">
  <BoxNumber>sample string 1</BoxNumber>
  <EndICCIDNumber>5</EndICCIDNumber>
  <NumberOfSim>3</NumberOfSim>
  <SimType>sample string 2</SimType>
  <StartICCIDNumber>4</StartICCIDNumber>
</Inventory>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Inventory'.

Response Information

Resource Description

GenericResponse
NameDescriptionTypeAdditional information
Data

Object

None.

Info

string

None.

Error

string

None.

Status

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "Info": "sample string 2",
  "Error": "sample string 3",
  "Status": true
}

text/html

Sample:
{"Data":{},"Info":"sample string 2","Error":"sample string 3","Status":true}

application/xml, text/xml

Sample:
<GenericResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities">
  <Data />
  <Error>sample string 3</Error>
  <Info>sample string 2</Info>
  <Status>true</Status>
</GenericResponse>