POST api/FleetOnlineNewBusiness/PayByCreditCardAndActivate
Request Information
URI Parameters
None.
Body Parameters
CreditCardPaymentDtoName | Description | Type | Additional information |
---|---|---|---|
Amount | decimal number |
None. |
|
QuoteId | integer |
None. |
|
CardHolder | string |
None. |
|
CardNumber | string |
None. |
|
IssueNumber | byte |
None. |
|
CardTypeId | integer |
None. |
|
ExpiryDateMM | byte |
None. |
|
ExpiryDateYYYY | integer |
None. |
|
SecurityCode | string |
None. |
|
PrimaryEmail | string |
None. |
|
CoverStartDate | date |
None. |
|
PaymentResponseData | CardPaymentResponseDto |
None. |
|
CardToken | string |
None. |
|
CardExpiry | date |
None. |
|
IsContinuousCreditCard | boolean |
None. |
|
IsMTAAddOn | boolean |
None. |
|
PolicyId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "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:04:10.9400593+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:04:10.9400593+00:00", "IsContinuousCreditCard": true, "IsMTAAddOn": true, "PolicyId": 16 }
application/xml, text/xml
Sample:
<CreditCardPaymentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheAA.Bcas.Dto"> <Amount>1</Amount> <CardExpiry>2025-01-09T16:04:10.9400593+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:04:10.9400593+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> </CreditCardPaymentDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreditCardPaymentResultDtoName | Description | Type | Additional information |
---|---|---|---|
QuoteId | integer |
None. |
|
IsSuccess | boolean |
None. |
|
ErrorMessage | string |
None. |
|
PaymentAmount | decimal number |
None. |
|
AuthCode | string |
None. |
|
ErrorCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "QuoteId": 1, "IsSuccess": true, "ErrorMessage": "sample string 3", "PaymentAmount": 4.0, "AuthCode": "sample string 5", "ErrorCode": 6 }
application/xml, text/xml
Sample:
<CreditCardPaymentResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheAA.Bcas.Dto"> <AuthCode>sample string 5</AuthCode> <ErrorCode>6</ErrorCode> <ErrorMessage>sample string 3</ErrorMessage> <IsSuccess>true</IsSuccess> <PaymentAmount>4</PaymentAmount> <QuoteId>1</QuoteId> </CreditCardPaymentResultDto>