POST Api/BillPayments/PayMultipleBills

Request Information

URI Parameters

None.

Body Parameters

PayMultipleBillsRequest
NameDescriptionTypeAdditional information
BillPaymentID

globally unique identifier

None.

PayBillPaymentAccounts

Collection of PayBillAccounts

None.

PaymentTypeID

PaymentTypes

None.

CardContributionAmount

decimal number

None.

InstantEFTContributionAmount

decimal number

None.

WalletContributionAmount

decimal number

None.

PaymentReference

string

None.

Username

string

None.

Password

string

None.

DeviceManufacturer

string

None.

DeviceModel

string

None.

DeviceSDKInt

string

None.

DeviceSDKVersion

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BillPaymentID": "7539c2fe-8c01-4998-80ae-13533cb5661f",
  "PayBillPaymentAccounts": [
    {
      "AccountNumber": "sample string 1",
      "Reference": "sample string 2",
      "UtilityDescription": "sample string 3",
      "PaymentPercentageFees": [
        {
          "PaymentTypeID": 1,
          "Percentage": 1.1
        },
        {
          "PaymentTypeID": 1,
          "Percentage": 1.1
        }
      ],
      "PayBillAmountEachBill": 4.0,
      "strPayBillAmountEachBill": "sample string 5",
      "ReferralCode": "sample string 6",
      "BillPaymentID": "c54a1ddc-eed7-497d-a27f-4cc6e6f13b83",
      "BillPaymentItemID": "97b53fec-7352-4956-b45f-280a4df63c1b"
    },
    {
      "AccountNumber": "sample string 1",
      "Reference": "sample string 2",
      "UtilityDescription": "sample string 3",
      "PaymentPercentageFees": [
        {
          "PaymentTypeID": 1,
          "Percentage": 1.1
        },
        {
          "PaymentTypeID": 1,
          "Percentage": 1.1
        }
      ],
      "PayBillAmountEachBill": 4.0,
      "strPayBillAmountEachBill": "sample string 5",
      "ReferralCode": "sample string 6",
      "BillPaymentID": "c54a1ddc-eed7-497d-a27f-4cc6e6f13b83",
      "BillPaymentItemID": "97b53fec-7352-4956-b45f-280a4df63c1b"
    }
  ],
  "PaymentTypeID": 1,
  "CardContributionAmount": 2.0,
  "InstantEFTContributionAmount": 3.0,
  "WalletContributionAmount": 4.0,
  "PaymentReference": "sample string 5",
  "Username": "sample string 6",
  "Password": "sample string 7",
  "DeviceManufacturer": "sample string 8",
  "DeviceModel": "sample string 9",
  "DeviceSDKInt": "sample string 10",
  "DeviceSDKVersion": "sample string 11"
}

application/xml, text/xml

Sample:
<PayMultipleBillsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Models">
  <DeviceManufacturer>sample string 8</DeviceManufacturer>
  <DeviceModel>sample string 9</DeviceModel>
  <DeviceSDKInt>sample string 10</DeviceSDKInt>
  <DeviceSDKVersion>sample string 11</DeviceSDKVersion>
  <Password>sample string 7</Password>
  <Username>sample string 6</Username>
  <BillPaymentID>7539c2fe-8c01-4998-80ae-13533cb5661f</BillPaymentID>
  <CardContributionAmount>2</CardContributionAmount>
  <InstantEFTContributionAmount>3</InstantEFTContributionAmount>
  <PayBillPaymentAccounts xmlns:d2p1="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Helpers">
    <d2p1:BillPaymentsHelper.PayBillAccounts>
      <d2p1:AccountNumber>sample string 1</d2p1:AccountNumber>
      <d2p1:BillPaymentID>c54a1ddc-eed7-497d-a27f-4cc6e6f13b83</d2p1:BillPaymentID>
      <d2p1:BillPaymentItemID>97b53fec-7352-4956-b45f-280a4df63c1b</d2p1:BillPaymentItemID>
      <d2p1:PayBillAmountEachBill>4</d2p1:PayBillAmountEachBill>
      <d2p1:PaymentPercentageFees>
        <PaymentPercentageFees>
          <PaymentTypeID>CreditCard</PaymentTypeID>
          <Percentage>1.1</Percentage>
        </PaymentPercentageFees>
        <PaymentPercentageFees>
          <PaymentTypeID>CreditCard</PaymentTypeID>
          <Percentage>1.1</Percentage>
        </PaymentPercentageFees>
      </d2p1:PaymentPercentageFees>
      <d2p1:Reference>sample string 2</d2p1:Reference>
      <d2p1:ReferralCode>sample string 6</d2p1:ReferralCode>
      <d2p1:UtilityDescription>sample string 3</d2p1:UtilityDescription>
      <d2p1:strPayBillAmountEachBill>sample string 5</d2p1:strPayBillAmountEachBill>
    </d2p1:BillPaymentsHelper.PayBillAccounts>
    <d2p1:BillPaymentsHelper.PayBillAccounts>
      <d2p1:AccountNumber>sample string 1</d2p1:AccountNumber>
      <d2p1:BillPaymentID>c54a1ddc-eed7-497d-a27f-4cc6e6f13b83</d2p1:BillPaymentID>
      <d2p1:BillPaymentItemID>97b53fec-7352-4956-b45f-280a4df63c1b</d2p1:BillPaymentItemID>
      <d2p1:PayBillAmountEachBill>4</d2p1:PayBillAmountEachBill>
      <d2p1:PaymentPercentageFees>
        <PaymentPercentageFees>
          <PaymentTypeID>CreditCard</PaymentTypeID>
          <Percentage>1.1</Percentage>
        </PaymentPercentageFees>
        <PaymentPercentageFees>
          <PaymentTypeID>CreditCard</PaymentTypeID>
          <Percentage>1.1</Percentage>
        </PaymentPercentageFees>
      </d2p1:PaymentPercentageFees>
      <d2p1:Reference>sample string 2</d2p1:Reference>
      <d2p1:ReferralCode>sample string 6</d2p1:ReferralCode>
      <d2p1:UtilityDescription>sample string 3</d2p1:UtilityDescription>
      <d2p1:strPayBillAmountEachBill>sample string 5</d2p1:strPayBillAmountEachBill>
    </d2p1:BillPaymentsHelper.PayBillAccounts>
  </PayBillPaymentAccounts>
  <PaymentReference>sample string 5</PaymentReference>
  <PaymentTypeID>CreditCard</PaymentTypeID>
  <WalletContributionAmount>4</WalletContributionAmount>
</PayMultipleBillsRequest>

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

Response Information

Resource Description

PayMultipleBillsResponse
NameDescriptionTypeAdditional information
PayBillComplete

Collection of PayBillComplete

None.

BillPaymentComplete

boolean

None.

BillMessage

string

None.

BillItemComplete

PayBillComplete

None.

Success

boolean

None.

ErrorMessage

string

None.

ServerDateTime

string

None.

ErrorType

Errors

None.

Response Formats

application/json, text/json

Sample:
{
  "PayBillComplete": [
    {
      "BillPaymentID": "0df6db89-921f-43f8-855f-23944032e50e",
      "BillPaymentItemID": "22ed83d4-837f-421e-af60-aba5a2123cac",
      "AccountNumber": "sample string 3",
      "Reference": "sample string 4",
      "PayBillAmountEachBillFormatted": "sample string 5",
      "BillItemPending": true,
      "BillItemProcessed": true,
      "TransactionDateTime": "sample string 8"
    },
    {
      "BillPaymentID": "0df6db89-921f-43f8-855f-23944032e50e",
      "BillPaymentItemID": "22ed83d4-837f-421e-af60-aba5a2123cac",
      "AccountNumber": "sample string 3",
      "Reference": "sample string 4",
      "PayBillAmountEachBillFormatted": "sample string 5",
      "BillItemPending": true,
      "BillItemProcessed": true,
      "TransactionDateTime": "sample string 8"
    }
  ],
  "BillPaymentComplete": true,
  "BillMessage": "sample string 2",
  "BillItemComplete": {
    "BillPaymentID": "0df6db89-921f-43f8-855f-23944032e50e",
    "BillPaymentItemID": "22ed83d4-837f-421e-af60-aba5a2123cac",
    "AccountNumber": "sample string 3",
    "Reference": "sample string 4",
    "PayBillAmountEachBillFormatted": "sample string 5",
    "BillItemPending": true,
    "BillItemProcessed": true,
    "TransactionDateTime": "sample string 8"
  },
  "Success": true,
  "ErrorMessage": "sample string 4",
  "ServerDateTime": "sample string 5",
  "ErrorType": 0
}

application/xml, text/xml

Sample:
<PayMultipleBillsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Models">
  <ErrorMessage>sample string 4</ErrorMessage>
  <ErrorType>SystemError</ErrorType>
  <ServerDateTime>sample string 5</ServerDateTime>
  <Success>true</Success>
  <BillItemComplete>
    <AccountNumber>sample string 3</AccountNumber>
    <BillItemPending>true</BillItemPending>
    <BillItemProcessed>true</BillItemProcessed>
    <BillPaymentID>0df6db89-921f-43f8-855f-23944032e50e</BillPaymentID>
    <BillPaymentItemID>22ed83d4-837f-421e-af60-aba5a2123cac</BillPaymentItemID>
    <PayBillAmountEachBillFormatted>sample string 5</PayBillAmountEachBillFormatted>
    <Reference>sample string 4</Reference>
    <TransactionDateTime>sample string 8</TransactionDateTime>
  </BillItemComplete>
  <BillMessage>sample string 2</BillMessage>
  <BillPaymentComplete>true</BillPaymentComplete>
  <PayBillComplete>
    <PayBillComplete>
      <AccountNumber>sample string 3</AccountNumber>
      <BillItemPending>true</BillItemPending>
      <BillItemProcessed>true</BillItemProcessed>
      <BillPaymentID>0df6db89-921f-43f8-855f-23944032e50e</BillPaymentID>
      <BillPaymentItemID>22ed83d4-837f-421e-af60-aba5a2123cac</BillPaymentItemID>
      <PayBillAmountEachBillFormatted>sample string 5</PayBillAmountEachBillFormatted>
      <Reference>sample string 4</Reference>
      <TransactionDateTime>sample string 8</TransactionDateTime>
    </PayBillComplete>
    <PayBillComplete>
      <AccountNumber>sample string 3</AccountNumber>
      <BillItemPending>true</BillItemPending>
      <BillItemProcessed>true</BillItemProcessed>
      <BillPaymentID>0df6db89-921f-43f8-855f-23944032e50e</BillPaymentID>
      <BillPaymentItemID>22ed83d4-837f-421e-af60-aba5a2123cac</BillPaymentItemID>
      <PayBillAmountEachBillFormatted>sample string 5</PayBillAmountEachBillFormatted>
      <Reference>sample string 4</Reference>
      <TransactionDateTime>sample string 8</TransactionDateTime>
    </PayBillComplete>
  </PayBillComplete>
</PayMultipleBillsResponse>