POST api/PurchasePackage
Request Information
URI Parameters
None.
Body Parameters
RequestPurchasePakcageName | Description | Type | Additional information |
---|---|---|---|
PackageID | integer |
None. |
|
PackageName | string |
None. |
|
Msisdn | string |
None. |
|
Channel | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PackageID": 1, "PackageName": "sample string 2", "Msisdn": "sample string 3", "Channel": "sample string 4" }
application/xml, text/xml
Sample:
<RequestPurchasePakcage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMS.Controllers.IndividualSMS"> <Channel>sample string 4</Channel> <Msisdn>sample string 3</Msisdn> <PackageID>1</PackageID> <PackageName>sample string 2</PackageName> </RequestPurchasePakcage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultPurchasePackageName | Description | Type | Additional information |
---|---|---|---|
ResultCode | string |
None. |
|
ResultDesc | string |
None. |
|
RefCode | string |
None. |
|
Msisdn | string |
None. |
|
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResultCode": "sample string 1", "ResultDesc": "sample string 2", "RefCode": "sample string 3", "Msisdn": "sample string 4", "Email": "sample string 5" }
application/xml, text/xml
Sample:
<ResultPurchasePackage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMS.Controllers.IndividualSMS"> <Email>sample string 5</Email> <Msisdn>sample string 4</Msisdn> <RefCode>sample string 3</RefCode> <ResultCode>sample string 1</ResultCode> <ResultDesc>sample string 2</ResultDesc> </ResultPurchasePackage>