Accept offer and issues policy.
|
API token
|
|
|
output
|
|
|
Quote oid
|
|
|
Installments
|
|
|
Products
|
|
Email of policy holder | |
|
Name of policy holder
|
|
Date of birth of policy holder | |
|
Name of additional policy holder
|
|
|
Preferred Telephone number of policy holder
|
|
|
Stripe token for the payment
|
|
|
Payment type
|
|
|
Bank name
|
|
|
Account name
|
|
|
Account number
|
|
|
Sort code
|
|
Fulfill policy | |
|
External Policy Number
|
|
| Parameter | Type | Reqd | Description | Options |
|---|---|---|---|---|
| offer_oid | string | • | Quote oid | |
| accept_home_pmt | classifier | • | Installments | 1 -- Annual 12 -- Monthly |
| products | text | Products | ||
| string | Email of policy holder | |||
| policy_name | string | • | Name of policy holder | |
| policy_holder_birthdate | date | • | Date of birth of policy holder | |
| policy_name_additional | string | Name of additional policy holder | ||
| phone | string | Preferred Telephone number of policy holder | ||
| payment_stripe_token | string | Stripe token for the payment | ||
| payment_type | classifier | • | Payment type | 0 -- Full (Stripe) 1 -- Monthly (Close Brothers) |
| bank_name | string | Bank name | ||
| account_name | string | Account name | ||
| account_number | string | Account number | ||
| sort_code | string | Sort code | ||
| fulfill_policy | classifier | Fulfill policy | 0 -- No 1 -- Yes | |
| policy_no_external | string | External Policy Number |
| Parameter | Type | Description |
|---|---|---|
| status | integer | Status |
| response | array | Policy properties |
| response.policy_oid | string | Policy OID |
| response.policy_no | string | Policy number |
| response.status | integer | Status |
Json request example
{
"ajax_url": "/api/offer/acceptoffer",
"username": "###",
"password": "###",
"offer_oid": "1000001",
"accept_home_pmt": "1",
"products": ["core", "ad", "ad_plus"],
"policy_name": "John Smith",
"policy_holder_birthdate": "31/07/1980",
"phone": "+447872140596",
"email": "testcompany@test.com",
"main_product": "buildings",
"products": ["core", "ad", "home_emergency"],
"accept_home_pmt": 1,
"payment_type": 1,
"bank_name": "HSBC",
"account_name": "John Smith",
"sort_code": "200000",
"account_number": "44508944",
"payment_stripe_token": "d797abe9-0398-4f2a-aa6e-1d85c4fc2903"
}
Json response example
{
"status": "1",
"response": {
"policy_oid": 10983675,
"customer_oid": 10983672,
"policy_no": "OCC072753A",
"status": "1"
},
"apirequest_oid": "10983671"
}