Update Customer
The UpdateCustomer endpoint enables the partners to update customer personal information such as FirstName, LastName, Email, Address, etc.
Endpoint: /insurances/updateCustomer
/insurances/updateCustomer
Method: POST
curl -i -X POST \
-H "X_API_KEY: [my-api-key]" \
-H "Content-Type: application/json" \
-d '{"FirstName":"John", "LastName":"Doe", "Address1": "20 Some Address", "Address2": "Suite 15", "City": "Sydney", "Region": "NSW", "PostalCode": "2014", "Country":"AU", "Email": "[email protected]", "NewEmail": "[email protected]", "Phone": "+6141012345678", "CustomerAge": 28, "DateOfBirth": "1990-05-20", "AgentReference": "LIUI-HQS7-INS"}' \
https://api-staging.rentalcover.com/insurances/updateCustomer
{
"Country":{
"Code":"AU",
"Name":"Australia",
"PhoneCode":"+61"
},
"Customer":{
"CustomerId":"229233",
"FirstName":"John",
"LastName":"Doe",
"Email":"[email protected]",
"Phone":"+6141012345678",
"Address1":"20 Some Address",
"Address2":"Suite 15",
"City":"Sydney",
"Region":"NSW",
"PostalCode":"2014",
"CountryId":"14",
"DateOfBirth":"1990-01-01",
"Age":28,
"Coupons":{
"bonvoyage-PAPpC":{
"Title":"15% off your policy",
"Value":"15",
"ValueType":"Percentage",
"AmountRemaining":null,
"EffectiveFrom":"2018-06-28 00:00:00",
"EffectiveTo":"2018-07-12 00:00:00",
"Terms":"<ul><li>User is entitled to a 15% discount on eligible RentalCover.com policies. All policies are eligible except RentalCover.com's \"Collision Damage Coverage\" for US Residents/Citizens and \"Annual\" policies.</li><li>Payment must be conducted via RentalCover.com's website or mobile app. It is not applicable via our partner sites.</li><li>Coupon cannot be shared.</li><li>Coupon expires on: 2018-07-12. Coupon creation date: 2018-06-28.</li><li>Can only apply one coupon per paid policy.</li><li>Can only be used once per user</li></ul>"
}
}
}
}
Request Parameters
Last updated