GET api/Policy/GetCurrentPaymentDetails?policyId={policyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
policyId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

PaymentDetails
NameDescriptionTypeAdditional information
AccountHolderName

string

None.

AccountNumber

string

None.

AvailablePreferredDaysOfPayment

Collection of integer

None.

CreditCardExpiry

string

None.

CreditCardHolder

string

None.

CreditCardNumber

string

None.

IsMonthlyPremium

boolean

None.

PaymentMethod

integer

None.

PreferredDayOfPayment

integer

None.

SortCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountHolderName": "sample string 1",
  "AccountNumber": "sample string 2",
  "AvailablePreferredDaysOfPayment": [
    1,
    2
  ],
  "CreditCardExpiry": "sample string 3",
  "CreditCardHolder": "sample string 4",
  "CreditCardNumber": "sample string 5",
  "IsMonthlyPremium": true,
  "PaymentMethod": 7,
  "PreferredDayOfPayment": 8,
  "SortCode": "sample string 9"
}

application/xml, text/xml

Sample:
<PaymentDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tss.Eitr.Customer.Agria.WebApi.Models">
  <AccountHolderName>sample string 1</AccountHolderName>
  <AccountNumber>sample string 2</AccountNumber>
  <AvailablePreferredDaysOfPayment xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </AvailablePreferredDaysOfPayment>
  <CreditCardExpiry>sample string 3</CreditCardExpiry>
  <CreditCardHolder>sample string 4</CreditCardHolder>
  <CreditCardNumber>sample string 5</CreditCardNumber>
  <IsMonthlyPremium>true</IsMonthlyPremium>
  <PaymentMethod>7</PaymentMethod>
  <PreferredDayOfPayment>8</PreferredDayOfPayment>
  <SortCode>sample string 9</SortCode>
</PaymentDetails>