POST api/FleetOnlineNewBusiness/PayByDDAndActivate

Request Information

URI Parameters

None.

Body Parameters

DirectDebitPromotionDto
NameDescriptionTypeAdditional information
QuoteId

integer

None.

PromotionCode

string

None.

BankAccountNumber

string

None.

BankSortCode

string

None.

AccountName

string

None.

DirectDebitDiscountApplied

boolean

None.

DiscountedPrice

decimal number

None.

PaymentMethodId

integer

None.

CoverStartDate

date

None.

IsContinuousCreditCard

boolean

None.

ExpiryDate

date

None.

CardToken

string

None.

Last4Digits

string

None.

IsMTAAddOn

boolean

None.

PolicyId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "QuoteId": 1,
  "PromotionCode": "sample string 2",
  "BankAccountNumber": "sample string 3",
  "BankSortCode": "sample string 4",
  "AccountName": "sample string 5",
  "DirectDebitDiscountApplied": true,
  "DiscountedPrice": 1.0,
  "PaymentMethodId": 7,
  "CoverStartDate": "2025-01-09T15:56:32.4304939+00:00",
  "IsContinuousCreditCard": true,
  "ExpiryDate": "2025-01-09T15:56:32.4304939+00:00",
  "CardToken": "sample string 11",
  "Last4Digits": "sample string 12",
  "IsMTAAddOn": true,
  "PolicyId": 14
}

application/xml, text/xml

Sample:
<DirectDebitPromotionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheAA.Bcas.Dto.Renewal">
  <AccountName>sample string 5</AccountName>
  <BankAccountNumber>sample string 3</BankAccountNumber>
  <BankSortCode>sample string 4</BankSortCode>
  <CardToken>sample string 11</CardToken>
  <CoverStartDate>2025-01-09T15:56:32.4304939+00:00</CoverStartDate>
  <DirectDebitDiscountApplied>true</DirectDebitDiscountApplied>
  <DiscountedPrice>1</DiscountedPrice>
  <ExpiryDate>2025-01-09T15:56:32.4304939+00:00</ExpiryDate>
  <IsContinuousCreditCard>true</IsContinuousCreditCard>
  <IsMTAAddOn>true</IsMTAAddOn>
  <Last4Digits>sample string 12</Last4Digits>
  <PaymentMethodId>7</PaymentMethodId>
  <PolicyId>14</PolicyId>
  <PromotionCode>sample string 2</PromotionCode>
  <QuoteId>1</QuoteId>
</DirectDebitPromotionDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.