Jika block untuk get data sudah siap, maka tambahkan block action call webhook untuk proses generete pdf
Method : POST
https://gateway.jojonomic.com/notification-service/document/generate-one-page
Header {
'Authorization': _user.token, 'Content-Type':"application/json"
}
Payload
{
"document_template_uniqueid": "ms42mzawndg3mjmxnkurmti=c515d9e6ba350f0188a19eb694dbad94",
"content": {
"created_date": "2 August 2021",
"nama_calon_karyawan": "Abdul Qifli Sangadji",
"email_calon_karyawan": "alysangadji@jojonomic.com",
"position_offered": "Backend Engineer",
"salary_offered": "IDR 21,000,000,00",
"allowance_offered": "IDR 2,000,000",
"reports_to": "allpons@jojonomic.com",
"start_work_date" : "27 August 2021",
"return_sign_date": "27 August 2021",
"hr_name_manager": "Ninda Faizah",
"sign_nama_calon_karyawan": "Abdul Qifli Sangadji"
}
}
Response
{
"error": false,
"message": "Successfully create document",
"data": {
"id": 5,
"uniqueid": "ms42mzawnji3mjmynkurmti=020cdc48820a84ddfeb810f963b36d18",
"url": "https://dev02-api-gateway.jojonomic.io/file/6128c88d9ce80-document-pdf-companyID-518-userCompanyID-2536-ms42mzawnji3mjmynkurmti=020cdc48820a84ddfeb810f963b36d18-1.63006272367E+12.pdf",
"data": "{\"created_date\":\"2 August 2021\",\"nama_calon_karyawan\":\"Abdul Qifli Sangadji\",\"email_calon_karyawan\":\"alysangadji@jojonomic.com\",\"position_offered\":\"Backend Engineer\",\"salary_offered\":\"IDR 21,000,000,00\",\"allowance_offered\":\"IDR 2,000,000\",\"reports_to\":\"allpons@jojonomic.com\",\"start_work_date\":\"27 August 2021\",\"return_sign_date\":\"27 August 2021\",\"hr_name_manager\":\"Ninda Faizah\",\"sign_nama_calon_karyawan\":\"Abdul Qifli Sangadji\"}",
"metadata": "",
"created_timemillis": 1630062733610,
"updated_timemillis": 1630062733610,
"created_date": {
"date": "2021-08-27 18:12:13.621003",
"timezone_type": 3,
"timezone": "Asia/Jakarta"
},
"updated_date": {
"date": "2021-08-27 18:12:13.621242",
"timezone_type": 3,
"timezone": "Asia/Jakarta"
},
"created_by": 2536,
"updated_by": null
}
}
Note :
"document_template_uniqueid" → diisi dengan uniqueid yang didapatkan pada langkah di no.2
"content"→ diisi dengan data yang akan ditampilkan pada pdf, variable yang digunakan harus sesuai dengan variable yang sudah di setup pada template html