Update policy.
|
API token
|
|
|
output
|
|
|
Customer OID
|
|
|
Policy OID
|
|
Effective Date | |
|
Customer name
|
|
E-mail address | |
|
Phone
|
|
Birth date | |
|
Name of additional policy holder
|
|
|
Post Code
|
|
|
Address ID (AddressCloud)
|
|
|
Full Address
|
|
|
UDPRN
|
|
|
UMRRN
|
|
|
Policy Excess
|
|
|
Buildings Policy Excess
|
|
|
Contents Policy Excess
|
|
|
Single Article Limit
|
|
|
Single Article Limit Personal Possessions
|
|
|
Products
|
|
| Parameter | Type | Reqd | Description | Options |
|---|
| Parameter | Type | Description |
|---|---|---|
| status | integer | Status |
| response | string | Response object |
Json request example
{
"ajax_url": "/api/policy/update",
"policy_oid": {{policy_oid}},
"customer_oid": {{customer_oid}},
"post_code": "BD18 1DZ",
"address_id": "8e1942cc0c8e76f:MAcxRl",
"full_address": "248 Leeds Road, Shipley BD18 1DZ",
"mta_type": 2,
"effective_date": "",
"name": "Rafael Random",
"email": "rafa.random@gmail.com",
"phone": "07763080139",
"birthdate": "10/12/1988",
"policy_name_additional": "Maria Jose",
"home_policy_excess": 300,
"home_buildings_policy_excess": 400,
"home_contents_policy_excess": 500,
"home_single_article_limit": 5000,
"products": {
"combined": [
"personal_possessions",
"core"
]
}
}
Json response example
{
"status": "1",
"response": {
"declined": false,
"ipt_percent": "12.0000",
"is_annual": true,
"is_mta_diff_negative": false,
"mta_offer_oid": "10985880",
"core_payable": 0.2,
"mta_payable": 107.12,
"administration_fee": 0,
"policy_no": "OCC073009A",
"start_date": "2023-01-13",
"end_date": "2024-01-12",
"excess": "200",
"claims_no": "0",
"charge": {
"refund": false,
"source": {
"name": null,
"last4": "4242",
"exp_month": 1,
"exp_year": 2024
}
},
"close_brothers": {
"total_amount_payable": null,
"number_of_instalments_left": null,
"first_instalment_amount": null,
"subsequent_instalment_amount": null,
"credit_charge": null,
"original_first_instalment_amount": 0,
"original_subsequent_instalment_amount": 0
},
"products": {
"combined": [
"core",
"personal_possessions"
]
},
"covers": {
"10985815": {
"combined": {
"Combined (Buildings and Contents)": {
"name": "Combined (Buildings and Contents)",
"premium_raw": 300.93,
"sub_product_tag": "core"
}
}
},
"10985880": {
"combined": {
"Combined (Buildings and Contents)": {
"name": "Combined (Buildings and Contents)",
"premium_raw": 270.51,
"sub_product_tag": "core"
},
"Personal Possessions": {
"name": "Personal Possessions",
"premium_raw": 106.92,
"sub_product_tag": "personal_possessions"
}
}
}
},
"payment_intent": {
"id": "pi_3MPUPxGISb0W1KPi1yBCsBXa",
"object": "payment_intent",
"allowed_source_types": [
"card"
],
"amount": 10712,
"amount_capturable": 0,
"amount_details": {
"tip": []
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3MPUPxGISb0W1KPi1yBCsBXa"
},
"client_secret": "pi_3MPUPxGISb0W1KPi1yBCsBXa_secret_9zHFMDQgFvyE5QuARIAR2kkak",
"confirmation_method": "automatic",
"created": 1673543901,
"currency": "gbp",
"customer": null,
"description": "Payment intent for quote: OCC073009A /1",
"invoice": null,
"last_payment_error": null,
"livemode": false,
"metadata": [],
"next_action": null,
"next_source_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_source",
"transfer_data": null,
"transfer_group": null
}
},
"apirequest_oid": "10985878"
}