Saves offer.
|
API token
|
|
|
output
|
|
|
Quote oid
|
|
|
Name of Policyholder
|
|
Date of Birth | |
|
Mobile Number
|
|
Email Address | |
|
Additional Policyholder (if required)
|
|
|
Products
|
|
| Parameter | Type | Reqd | Description | Options |
|---|---|---|---|---|
| offer_oid | string | • | Quote oid | |
| policy_name | string | • | Name of Policyholder | |
| policy_holder_birthdate | date | • | Date of Birth | |
| phone | string | Mobile Number | ||
| string | Email Address | |||
| policy_name_additional | string | Additional Policyholder (if required) | ||
| products | text | Products |
| Parameter | Type | Description |
|---|---|---|
| status | integer | Status |
| response | array | Response |
| response.msg | string | Response message |
Json request example
{
"ajax_url": "/api/offer/save",
"output": "json",
"offer_oid": "{{offer_oid}}",
"products": {"combined": ["core", "legal_protection", "personal_possessions", "home_emergency", "ad"]},
"policy_name": "Mario Carvalho",
"policy_holder_birthdate": "10/12/1989",
"email": "mario.carvalho@gmail.com"
}
Json response example
{
"status": "1",
"response": {
"msg": "Your offer was saved."
},
"apirequest_oid": "10312863"
}