Harmony IntegrationHarmony Integration

Create Contract

Met dit bericht is het mogelijk om direct een contract aan te maken zonder eerst een lead aan te maken.

POST
/api/insurance/CreateContract

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

customer?
insurance?
device?

Response Body

curl -X POST "http://jubilee-ws.test.harmony.nl/api/insurance/CreateContract" \  -H "Content-Type: application/json" \  -d '{    "customer": {      "gender": "unknown",      "initials": "",      "firstname": "",      "middleName": "",      "lastName": "",      "dateOfBirth": "",      "addressLine1": "",      "addressLine2": "",      "addressLine3": "",      "zipCode": "",      "city": "",      "countryCode": "",      "phoneNumber": "",      "mobilePhoneNumber": "",      "emailAddress": "",      "ibanCode": "NL70ABNA00000000"    },    "insurance": {      "startDate": "2017-01-01",      "templateCode": "PHONE-Apple",      "discountCode": null,      "acceptAutomaticPaymentCollection": true,      "acceptPolicyTerms": true,      "acceptPrivacyPolicy": true    },    "device": {      "itemNo": null,      "itemCategoryCode": null,      "objectConditionCode": null,      "manufacturer": "Apple",      "model": "iPhone X",      "serialNo": "1000000000061",      "imei": null,      "ean": "",      "productType": "Mobile",      "retailPrice": 123.45,      "includeTermsOfConditions": false    }  }'