POST Api/BillPayments/LoadBillPayment

Request Information

URI Parameters

None.

Body Parameters

LoadBillPaymentRequest
NameDescriptionTypeAdditional information
Data

PayBillModel

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:
{
  "Data": {
    "TableData": [
      {
        "AccountID": "5a75c86c-48f7-47a1-9e8d-809982062106",
        "Amount": 2.0
      },
      {
        "AccountID": "5a75c86c-48f7-47a1-9e8d-809982062106",
        "Amount": 2.0
      }
    ]
  },
  "Username": "sample string 1",
  "Password": "sample string 2",
  "DeviceManufacturer": "sample string 3",
  "DeviceModel": "sample string 4",
  "DeviceSDKInt": "sample string 5",
  "DeviceSDKVersion": "sample string 6"
}

application/xml, text/xml

Sample:
<LoadBillPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Models">
  <DeviceManufacturer>sample string 3</DeviceManufacturer>
  <DeviceModel>sample string 4</DeviceModel>
  <DeviceSDKInt>sample string 5</DeviceSDKInt>
  <DeviceSDKVersion>sample string 6</DeviceSDKVersion>
  <Password>sample string 2</Password>
  <Username>sample string 1</Username>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Helpers">
    <d2p1:TableData>
      <d2p1:BillPaymentsHelper.PayBillListModel>
        <d2p1:AccountID>5a75c86c-48f7-47a1-9e8d-809982062106</d2p1:AccountID>
        <d2p1:Amount>2</d2p1:Amount>
      </d2p1:BillPaymentsHelper.PayBillListModel>
      <d2p1:BillPaymentsHelper.PayBillListModel>
        <d2p1:AccountID>5a75c86c-48f7-47a1-9e8d-809982062106</d2p1:AccountID>
        <d2p1:Amount>2</d2p1:Amount>
      </d2p1:BillPaymentsHelper.PayBillListModel>
    </d2p1:TableData>
  </Data>
</LoadBillPaymentRequest>

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

Response Information

Resource Description

LoadBillPaymentResponse
NameDescriptionTypeAdditional information
PayBill

PayBillMainViewModel

None.

Success

boolean

None.

ErrorMessage

string

None.

ServerDateTime

string

None.

ErrorType

Errors

None.

Response Formats

application/json, text/json

Sample:
{
  "PayBill": {
    "WalletBalance": 1.0,
    "WalletBalanceBackup": 2.0,
    "InvoiceDate": "sample string 3",
    "BillReferenceNumber": "sample string 4",
    "PayBillAmount": 5.0,
    "strPayBillAmount": "sample string 6",
    "PaymentTypeID": 7,
    "PaymentTypes": [
      {
        "Text": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Text": "sample string 1",
        "Value": "sample string 2"
      }
    ],
    "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": "393e56b4-4646-44b7-8de5-26b5a0bb2134",
        "BillPaymentItemID": "e2776512-a91d-45c7-88e2-5b987f52e5b7"
      },
      {
        "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": "393e56b4-4646-44b7-8de5-26b5a0bb2134",
        "BillPaymentItemID": "e2776512-a91d-45c7-88e2-5b987f52e5b7"
      }
    ],
    "BalanceAmount": 8.0,
    "BillAmountDue": 9.0,
    "strTotal": "sample string 10",
    "Total": 11.0,
    "PendingPayment": true,
    "CheckOutstandingPendingPayment": true,
    "CheckDuplicateBillPayment": true,
    "BillPaymentID": "1b57eaf9-8546-4ccc-b87c-8cded854b753"
  },
  "Success": true,
  "ErrorMessage": "sample string 2",
  "ServerDateTime": "sample string 3",
  "ErrorType": 0
}

application/xml, text/xml

Sample:
<LoadBillPaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorType>SystemError</ErrorType>
  <ServerDateTime>sample string 3</ServerDateTime>
  <Success>true</Success>
  <PayBill xmlns:d2p1="http://schemas.datacontract.org/2004/07/PPWAssistMobileAPI.Helpers">
    <d2p1:BalanceAmount>8</d2p1:BalanceAmount>
    <d2p1:BillAmountDue>9</d2p1:BillAmountDue>
    <d2p1:BillPaymentID>1b57eaf9-8546-4ccc-b87c-8cded854b753</d2p1:BillPaymentID>
    <d2p1:BillReferenceNumber>sample string 4</d2p1:BillReferenceNumber>
    <d2p1:CheckDuplicateBillPayment>true</d2p1:CheckDuplicateBillPayment>
    <d2p1:CheckOutstandingPendingPayment>true</d2p1:CheckOutstandingPendingPayment>
    <d2p1:InvoiceDate>sample string 3</d2p1:InvoiceDate>
    <d2p1:PayBillAmount>5</d2p1:PayBillAmount>
    <d2p1:PayBillPaymentAccounts>
      <d2p1:BillPaymentsHelper.PayBillAccounts>
        <d2p1:AccountNumber>sample string 1</d2p1:AccountNumber>
        <d2p1:BillPaymentID>393e56b4-4646-44b7-8de5-26b5a0bb2134</d2p1:BillPaymentID>
        <d2p1:BillPaymentItemID>e2776512-a91d-45c7-88e2-5b987f52e5b7</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>393e56b4-4646-44b7-8de5-26b5a0bb2134</d2p1:BillPaymentID>
        <d2p1:BillPaymentItemID>e2776512-a91d-45c7-88e2-5b987f52e5b7</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:PayBillPaymentAccounts>
    <d2p1:PaymentTypeID>7</d2p1:PaymentTypeID>
    <d2p1:PaymentTypes>
      <d2p1:BillPaymentsHelper.SelectListItem>
        <d2p1:Text>sample string 1</d2p1:Text>
        <d2p1:Value>sample string 2</d2p1:Value>
      </d2p1:BillPaymentsHelper.SelectListItem>
      <d2p1:BillPaymentsHelper.SelectListItem>
        <d2p1:Text>sample string 1</d2p1:Text>
        <d2p1:Value>sample string 2</d2p1:Value>
      </d2p1:BillPaymentsHelper.SelectListItem>
    </d2p1:PaymentTypes>
    <d2p1:PendingPayment>true</d2p1:PendingPayment>
    <d2p1:Total>11</d2p1:Total>
    <d2p1:WalletBalance>1</d2p1:WalletBalance>
    <d2p1:WalletBalanceBackup>2</d2p1:WalletBalanceBackup>
    <d2p1:strPayBillAmount>sample string 6</d2p1:strPayBillAmount>
    <d2p1:strTotal>sample string 10</d2p1:strTotal>
  </PayBill>
</LoadBillPaymentResponse>