Send JSON to fill a PDF
POST
{{url}}/api/v1/fill/{{templateEid}}.pdf
You can replace XnuTZKVZg1Mljsu999od
in the URL with your PDF_TEMPLATE_EID
, which can be found on the 'API Info'
tab on the PDF template details page on the Anvil dashboard.
On Qodex, save the PDF from the response by clicking the 'Save Response'
button on the top right corner of the response tab and selecting 'Save to a file'
.
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
RESPONSES
status
curl -X POST 'https://app.useanvil.com/api/v1/fill/XnuTZKVZg1Mljsu999od.pdf' -d '{"title":"IRS-W4","fontSize":14,"textColor":"#cf000a","data":{"name":{"firstName":"Claire","lastName":"Robin"},"address":{"street1":"123 Main St","city":"San Francisco","state":"CA","zip":"94124","country":"US"},"ssn":"753284832","filingStatus":"Joint","under17Cost":2000,"otherDependentsCost":0,"totalDependentsCost":2000,"otherIncome":1500,"otherDeducations":500,"extraWithholding":500,"employerName":"Aaron Jones","firstDateEmployment":"2018/03/02","employerEin":"5871369","headOfHousehold":true,"twoJobs":false,"employerAddress":{"street1":"4832 Market Street","city":"San Francisco","state":"CA","zip":"94103","country":"US"}}}'