POST api/Airhub/PurhaseSim
Request Information
URI Parameters
None.
Body Parameters
PurhaseSimRequestName | Description | Type | Additional information |
---|---|---|---|
planCode | string |
None. |
|
travelDate | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "planCode": "sample string 1", "travelDate": "sample string 2" }
text/html
Sample:
{"planCode":"sample string 1","travelDate":"sample string 2"}
application/xml, text/xml
Sample:
<PurhaseSimRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube"> <planCode>sample string 1</planCode> <travelDate>sample string 2</travelDate> </PurhaseSimRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PurchaseSimResponseName | Description | Type | Additional information |
---|---|---|---|
isSuccess | boolean |
None. |
|
message | string |
None. |
|
activationCode | string |
None. |
|
apn | string |
None. |
|
simID | string |
None. |
|
simPin | string |
None. |
|
orderid | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "isSuccess": true, "message": "sample string 2", "activationCode": "sample string 3", "apn": "sample string 4", "simID": "sample string 5", "simPin": "sample string 6", "orderid": "sample string 7" }
text/html
Sample:
{"isSuccess":true,"message":"sample string 2","activationCode":"sample string 3","apn":"sample string 4","simID":"sample string 5","simPin":"sample string 6","orderid":"sample string 7"}
application/xml, text/xml
Sample:
<PurchaseSimResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube"> <activationCode>sample string 3</activationCode> <apn>sample string 4</apn> <isSuccess>true</isSuccess> <message>sample string 2</message> <orderid>sample string 7</orderid> <simID>sample string 5</simID> <simPin>sample string 6</simPin> </PurchaseSimResponse>