POST api/Quote/SetupDirectDebit
Request Information
URI Parameters
None.
Body Parameters
DirectDebitPaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| BasketId | globally unique identifier |
None. |
|
| PolicyId | globally unique identifier |
None. |
|
| AccountHolderName | string |
None. |
|
| SortCode | string |
None. |
|
| AccountNumber | string |
None. |
|
| PolicyCollectionDays | Collection of PolicyCollectionDay |
None. |
|
| PayMonthly | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"BasketId": "a27f2b9e-27e9-4032-a4f3-5a8afa037d1e",
"PolicyId": "a7cb6184-bd33-42e5-91da-315bfd47ab78",
"AccountHolderName": "sample string 1",
"SortCode": "sample string 2",
"AccountNumber": "sample string 3",
"PolicyCollectionDays": [
{
"PolicyId": "6567f7a9-e30f-4af4-bb54-a2153cce839b",
"CollectionDay": 2
},
{
"PolicyId": "6567f7a9-e30f-4af4-bb54-a2153cce839b",
"CollectionDay": 2
}
],
"PayMonthly": true
}
application/xml, text/xml
Sample:
<DirectDebitPaymentRequest 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 3</AccountNumber>
<BasketId>a27f2b9e-27e9-4032-a4f3-5a8afa037d1e</BasketId>
<PayMonthly>true</PayMonthly>
<PolicyCollectionDays>
<PolicyCollectionDay>
<CollectionDay>2</CollectionDay>
<PolicyId>6567f7a9-e30f-4af4-bb54-a2153cce839b</PolicyId>
</PolicyCollectionDay>
<PolicyCollectionDay>
<CollectionDay>2</CollectionDay>
<PolicyId>6567f7a9-e30f-4af4-bb54-a2153cce839b</PolicyId>
</PolicyCollectionDay>
</PolicyCollectionDays>
<PolicyId>a7cb6184-bd33-42e5-91da-315bfd47ab78</PolicyId>
<SortCode>sample string 2</SortCode>
</DirectDebitPaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of PolicyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| AnnualRate | decimal number |
None. |
|
| Customer | Customer |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| FixedExcess | Excess |
None. |
|
| Pet | Pet |
None. |
|
| PolicyEndDate | date |
None. |
|
| PolicyId | globally unique identifier |
None. |
|
| PolicyNumber | string |
None. |
|
| PolicyStartDate | date |
None. |
|
| VariableExcess | Excess |
None. |
|
| HasErrored | boolean |
None. |
|
| Messages | Collection of Message |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.