From 2debcfdd81b07a37a63c80e6193184ff2d66e408 Mon Sep 17 00:00:00 2001 From: rahul roy Date: Wed, 9 Apr 2025 08:56:25 +0530 Subject: [PATCH 1/2] fix heading, fix the response of the get api --- content/data/esign/pdf-templating.mdx | 51 +++++++++++++++------------ 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/content/data/esign/pdf-templating.mdx b/content/data/esign/pdf-templating.mdx index 5705e05b..e403abd1 100644 --- a/content/data/esign/pdf-templating.mdx +++ b/content/data/esign/pdf-templating.mdx @@ -5,7 +5,7 @@ order: 5 visible_in_sidebar: true --- -## Upload the PDF template +## The PDF templating API's The PDF templating API's can be used to upload a PDF with fillable form template. Fill data into it the form and create unique PDFs for signing. @@ -477,7 +477,7 @@ Call this API to get a pdf template.
Request

Pass the template id and version No as - a URL parameter. + a URL parameter. If the version no is not passed, the latest version will be returned.

{`GET /api/templates/:id/:version_no `} @@ -486,26 +486,33 @@ Call this API to get a pdf template.
Response
{`{ - "documentId": "89edaa02-076b-44e9-a993-8e5d4b5880e2", - "id": "cdbf2f80-62bc-443b-b20f-102f92c9b9a2", - "reason": "test", - "redirectUrl": "http://setu.co", - "signers": [ - { - "birthYear": "None", - "displayName": "Rahul Roy", - "errCode": null, - "id": "ab54f775-8f91-43b0-b3ec-b5e10b322deb", - "identifier": "7042484933", - "location": "patiala punjab", - "signatureDetails": null, - "status": "pending", - "url": "https://dg.setu.co/signature/preview?requestId=cdbf2f80-62bc-443b-b20f-102f92c9b9a2&signerId=ab54f775-8f91-43b0-b3ec-b5e10b322deb" - } - ], - "status": "sign_initiated", - "traceId": "1-67e51e0a-1c005d0110441795624a557e" - } + "template_id": "8bba0bea-0c63-4eb2-9da9-11b5114b579b", + "name": "aof groww", + "form_fields": { + "text": { + "dob": "", + "city": "", + "bo_id": "", + "dl_no": "", + "dp_id": "", + "place": "", + "state": "" + }, + "check_boxes": { + "#c.raa.r1": "", + "#c.raa.r2": "", + "#c.gender.F": "", + "#c.gender.M": "", + "#c.gender.U": "" + }, + "images": { + "#i.bank_proof": "" + } + }, + "version_no": 1, + "template_doc_url": "http://localhost:4566/dg-uat-persistent/b186f03d-3db2-4bf1-b75e-4b6fde0e27d8", + "traceId": "1bd6877f-df76-4930-8014-94595e358485" + } `} From eb1de6d3b3ae2242ab91deb2f8df23a9fbb61785 Mon Sep 17 00:00:00 2001 From: Aditya Gannavarapu Date: Wed, 9 Apr 2025 09:02:10 +0530 Subject: [PATCH 2/2] Update heading --- content/data/esign/pdf-templating.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/data/esign/pdf-templating.mdx b/content/data/esign/pdf-templating.mdx index e403abd1..fb99cb24 100644 --- a/content/data/esign/pdf-templating.mdx +++ b/content/data/esign/pdf-templating.mdx @@ -5,9 +5,9 @@ order: 5 visible_in_sidebar: true --- -## The PDF templating API's +## PDF templating API's -The PDF templating API's can be used to upload a PDF with fillable form template. +PDF templating API's can be used to upload a PDF with fillable form template. Fill data into it the form and create unique PDFs for signing. Here’s a quick run through of the APIs—