Get Carbone Template
Expects an apiKey und templateId
Input
{
"apiKey": "yourApiKey",
"templateId": "590c9afdfaafceca2133937b4939aaa554d828c4de0e6fc1e00427813238dbcf",
"data": {
"companyName": "JohnInsurance & Co",
"period": 2,
"sD": 1659041229,
"id": 2891,
"insured": {
"name": "Jean Michel",
"street": "23, Sycamore Street",
"city": "New York",
"phone": "+33 2 38 99 18 23"
},
"showPropertyDamage": false,
"propertyDamage": [
{
"type": "Fire"
},
{
"type": "Wind"
},
{
"type": "Hail"
},
{
"type": "Water"
}
],
"options": [
{
"type": "Furniture",
"note": "/",
"cost": 1200
},
{
"type": "Appliances",
"note": "/",
"cost": 400
},
{
"type": "Clothing",
"note": "/",
"cost": 300
},
{
"type": "Dishes",
"note": "in some cases",
"cost": 300
}
],
"optionsTotalHT": 2200,
"optionsTaxes": 10,
"optionsTotal": 2420
}
}Output · HTTP 200
{
"statusCode": 200,
"headers": {
"content-type": "application/pdf"
}
}Show curl command
curl -X POST 'https://api.1001fx.com/carbone/rendercarbonecloudtemplate' \
-H 'X-API-KEY: YOURSECRETAPIKEY' \
-H 'Content-Type: application/json' \
-d '{"apiKey":"yourApiKey","templateId":"590c9afdfaafceca2133937b4939aaa554d828c4de0e6fc1e00427813238dbcf","data":{"companyName":"JohnInsurance & Co","period":2,"sD":1659041229,"id":2891,"insured":{"name":"Jean Michel","street":"23, Sycamore Street","city":"New York","phone":"+33 2 38 99 18 23"},"showPropertyDamage":false,"propertyDamage":[{"type":"Fire"},{"type":"Wind"},{"type":"Hail"},{"type":"Water"}],"options":[{"type":"Furniture","note":"/","cost":1200},{"type":"Appliances","note":"/","cost":400},{"type":"Clothing","note":"/","cost":300},{"type":"Dishes","note":"in some cases","cost":300}],"optionsTotalHT":2200,"optionsTaxes":10,"optionsTotal":2420}}'