PUT api/ManufacturerRenewals/CreateCustomerAndQuote

Request Information

URI Parameters

None.

Body Parameters

ActivateWithCreditCardDto
NameDescriptionTypeAdditional information
PromotionCode

string

None.

Customer

CustomerDetailsDto

None.

TemplateId

integer

None.

CoverStartDate

date

None.

CoverTerm

integer

None.

CardDetails

CreditCardPaymentDto

None.

Vehicle

VehicleDto

None.

ConfirmationEmailTemplateName

string

None.

PaymentResponseData

CardPaymentResponseDto

None.

CustomerId

integer

None.

QuoteId

integer

None.

IsContinuousCreditCard

boolean

None.

ExpiryDate

date

None.

CustomerRefNum

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PromotionCode": "sample string 1",
  "Customer": {
    "SourceCode": "sample string 1",
    "ContactTitleId": 1,
    "ContactFirstName": "sample string 2",
    "ContactSurname": "sample string 3",
    "ContactEmail": "sample string 4",
    "ContactPhone": "sample string 5",
    "ContactMobile": "sample string 6",
    "CompanyName": "sample string 7",
    "AddressLine1": "sample string 8",
    "AddressLine2": "sample string 9",
    "AddressLine3": "sample string 10",
    "AddressLine4": "sample string 11",
    "AddressTown": "sample string 12",
    "AddressCounty": "sample string 13",
    "AddressCountryId": 14,
    "Postcode": "sample string 15",
    "CompanyQasToken": "sample string 16",
    "EffectiveDateProposed": "2025-01-09T16:08:16.0118164+00:00"
  },
  "TemplateId": 2,
  "CoverStartDate": "2025-01-09T16:08:16.0118164+00:00",
  "CoverTerm": 4,
  "CardDetails": {
    "Amount": 1.0,
    "QuoteId": 2,
    "CardHolder": "sample string 3",
    "CardNumber": "sample string 4",
    "IssueNumber": 64,
    "CardTypeId": 6,
    "ExpiryDateMM": 64,
    "ExpiryDateYYYY": 8,
    "SecurityCode": "sample string 9",
    "PrimaryEmail": "sample string 10",
    "CoverStartDate": "2025-01-09T16:08:16.0118164+00:00",
    "PaymentResponseData": {
      "AuthCode": "sample string 1",
      "Success": true,
      "PaymentAmount": 3.0,
      "Message": "sample string 4",
      "BankStatementReference": "sample string 5",
      "UniquePaymentTranno": "sample string 6",
      "Timestamp": "sample string 7"
    },
    "CardToken": "sample string 12",
    "CardExpiry": "2025-01-09T16:08:16.0118164+00:00",
    "IsContinuousCreditCard": true,
    "IsMTAAddOn": true,
    "PolicyId": 16
  },
  "Vehicle": {
    "Registration": "sample string 1",
    "Make": "sample string 2",
    "Model": "sample string 3",
    "Vin": "sample string 4"
  },
  "ConfirmationEmailTemplateName": "sample string 5",
  "PaymentResponseData": {
    "AuthCode": "sample string 1",
    "Success": true,
    "PaymentAmount": 3.0,
    "Message": "sample string 4",
    "BankStatementReference": "sample string 5",
    "UniquePaymentTranno": "sample string 6",
    "Timestamp": "sample string 7"
  },
  "CustomerId": 6,
  "QuoteId": 7,
  "IsContinuousCreditCard": true,
  "ExpiryDate": "2025-01-09T16:08:16.0118164+00:00",
  "CustomerRefNum": "sample string 10"
}

application/xml, text/xml

Sample:
<ActivateWithCreditCardDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheAA.Bcas.Dto">
  <CardDetails>
    <Amount>1</Amount>
    <CardExpiry>2025-01-09T16:08:16.0118164+00:00</CardExpiry>
    <CardHolder>sample string 3</CardHolder>
    <CardNumber>sample string 4</CardNumber>
    <CardToken>sample string 12</CardToken>
    <CardTypeId>6</CardTypeId>
    <CoverStartDate>2025-01-09T16:08:16.0118164+00:00</CoverStartDate>
    <ExpiryDateMM>64</ExpiryDateMM>
    <ExpiryDateYYYY>8</ExpiryDateYYYY>
    <IsContinuousCreditCard>true</IsContinuousCreditCard>
    <IsMTAAddOn>true</IsMTAAddOn>
    <IssueNumber>64</IssueNumber>
    <PaymentResponseData>
      <AuthCode>sample string 1</AuthCode>
      <BankStatementReference>sample string 5</BankStatementReference>
      <Message>sample string 4</Message>
      <PaymentAmount>3</PaymentAmount>
      <Success>true</Success>
      <Timestamp>sample string 7</Timestamp>
      <UniquePaymentTranno>sample string 6</UniquePaymentTranno>
    </PaymentResponseData>
    <PolicyId>16</PolicyId>
    <PrimaryEmail>sample string 10</PrimaryEmail>
    <QuoteId>2</QuoteId>
    <SecurityCode>sample string 9</SecurityCode>
  </CardDetails>
  <ConfirmationEmailTemplateName>sample string 5</ConfirmationEmailTemplateName>
  <CoverStartDate>2025-01-09T16:08:16.0118164+00:00</CoverStartDate>
  <CoverTerm>4</CoverTerm>
  <Customer>
    <AddressCountryId>14</AddressCountryId>
    <AddressCounty>sample string 13</AddressCounty>
    <AddressLine1>sample string 8</AddressLine1>
    <AddressLine2>sample string 9</AddressLine2>
    <AddressLine3>sample string 10</AddressLine3>
    <AddressLine4>sample string 11</AddressLine4>
    <AddressTown>sample string 12</AddressTown>
    <CompanyName>sample string 7</CompanyName>
    <CompanyQasToken>sample string 16</CompanyQasToken>
    <ContactEmail>sample string 4</ContactEmail>
    <ContactFirstName>sample string 2</ContactFirstName>
    <ContactMobile>sample string 6</ContactMobile>
    <ContactPhone>sample string 5</ContactPhone>
    <ContactSurname>sample string 3</ContactSurname>
    <ContactTitleId>1</ContactTitleId>
    <EffectiveDateProposed>2025-01-09T16:08:16.0118164+00:00</EffectiveDateProposed>
    <Postcode>sample string 15</Postcode>
    <SourceCode>sample string 1</SourceCode>
  </Customer>
  <CustomerId>6</CustomerId>
  <CustomerRefNum>sample string 10</CustomerRefNum>
  <ExpiryDate>2025-01-09T16:08:16.0118164+00:00</ExpiryDate>
  <IsContinuousCreditCard>true</IsContinuousCreditCard>
  <PaymentResponseData>
    <AuthCode>sample string 1</AuthCode>
    <BankStatementReference>sample string 5</BankStatementReference>
    <Message>sample string 4</Message>
    <PaymentAmount>3</PaymentAmount>
    <Success>true</Success>
    <Timestamp>sample string 7</Timestamp>
    <UniquePaymentTranno>sample string 6</UniquePaymentTranno>
  </PaymentResponseData>
  <PromotionCode>sample string 1</PromotionCode>
  <QuoteId>7</QuoteId>
  <TemplateId>2</TemplateId>
  <Vehicle>
    <Make>sample string 2</Make>
    <Model>sample string 3</Model>
    <Registration>sample string 1</Registration>
    <Vin>sample string 4</Vin>
  </Vehicle>
</ActivateWithCreditCardDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of integer

Response Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>