POST Integration/BuyPhoneVoucher

Request Information

URI Parameters

None.

Body Parameters

PhoneVoucherInput
NameDescriptionTypeAdditional information
MerchantID

string

None.

MerchantPassword

string

None.

ProductID

string

None.

PhoneNumber

string

None.

Reference

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MerchantID": "sample string 1",
  "MerchantPassword": "sample string 2",
  "ProductID": "sample string 3",
  "PhoneNumber": "sample string 4",
  "Reference": "sample string 5"
}

application/xml, text/xml

Sample:
<PhoneVoucherInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MaxiCashWebApi.Models">
  <MerchantID>sample string 1</MerchantID>
  <MerchantPassword>sample string 2</MerchantPassword>
  <PhoneNumber>sample string 4</PhoneNumber>
  <ProductID>sample string 3</ProductID>
  <Reference>sample string 5</Reference>
</PhoneVoucherInput>

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 'PhoneVoucherInput'.

Response Information

Resource Description

BuyPhoneVoucherResponse
NameDescriptionTypeAdditional information
TransactionID

string

None.

ResponseStatus

string

None.

ResponseError

string

None.

ResponseDesc

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TransactionID": "sample string 1",
  "ResponseStatus": "sample string 2",
  "ResponseError": "sample string 3",
  "ResponseDesc": "sample string 4"
}

application/xml, text/xml

Sample:
<BuyPhoneVoucherResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MaxiCashWebApi.Models">
  <ResponseDesc>sample string 4</ResponseDesc>
  <ResponseError>sample string 3</ResponseError>
  <ResponseStatus>sample string 2</ResponseStatus>
  <TransactionID>sample string 1</TransactionID>
</BuyPhoneVoucherResponse>