{"id":12003,"date":"2019-10-22T17:03:21","date_gmt":"2019-10-22T08:03:21","guid":{"rendered":"https:\/\/www.eformsign.com\/kr\/support\/?post_type=manual_documentation&#038;p=12003"},"modified":"2019-11-27T16:38:15","modified_gmt":"2019-11-27T07:38:15","slug":"send-pdf-event","status":"publish","type":"manual_documentation","link":"https:\/\/www.eformsign.com\/en\/support\/documentation\/event\/pdf-creating-event\/send-pdf-event\/","title":{"rendered":"3.2.2.2 Event Sending"},"content":{"rendered":"\n<p>In eformsign, when a PDF file of a document is created, an event is sent to the URL specified in webhook settings.<\/p>\n\n\n\n<h2>Method<\/h2>\n\n\n\n<p>&#8211; POST<\/p>\n\n\n\n<h3>Request Header<\/h3>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>Name<\/td><td>Type<\/td><td>Description<\/td><td>Note<\/td><\/tr><tr><td>Content-Type<\/td><td>String<\/td><td>Content-Type<\/td><td>application\/json<\/td><\/tr><tr><td>eformsign_signature<\/td><td>String (hex string)<\/td><td>Signature value for verification (signed payload value) (refer to <a href=\"https:\/\/www.eformsign.com\/en\/support\/documentation\/signature-generation-verification\/verify-signature\/\">2.2.2 Verify eformsign_signature<\/a>)<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h3>Request Body<\/h3>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>Name<\/td><td>Type<\/td><td>Description<\/td><td>Note<\/td><\/tr><tr><td>webhook_id<\/td><td>String<\/td><td>webhook_id that generated an event<\/td><td>&nbsp;<\/td><\/tr><tr><td>webhook_name<\/td><td>String<\/td><td>Webhook name<\/td><td>&nbsp;<\/td><\/tr><tr><td>company_id<\/td><td>String<\/td><td>Company ID<\/td><td>&nbsp;<\/td><\/tr><tr><td>event_type<\/td><td>String<\/td><td>Event type<\/td><td>ready_document_pdf<\/td><\/tr><tr><td>document<\/td><td>Object<\/td><td>Information of the document that generated an event <\/td><td>&nbsp;<\/td><\/tr><tr><td>document.id<\/td><td>String<\/td><td>Document ID<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.template_id<\/td><td>String<\/td><td>Template ID<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.template_name<\/td><td>String<\/td><td>Template name<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.template_version<\/td><td>String<\/td><td>Template version<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.workflow_seq<\/td><td>int<\/td><td>Workflow sequence<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.workflow_name<\/td><td>String<\/td><td>Workflow name<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.history_id<\/td><td>String<\/td><td>History ID<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.status<\/td><td>String<\/td><td>Document status<\/td><td>&nbsp;<\/td><\/tr><tr><td>ready_document_pdf.export_ready_list<\/td><td>Array<\/td><td>Downloadable PDF type<\/td><td>document: document PDF<br>audit_trail: Audit trail of a document<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h4>Example<\/h4>\n\n\n\n<p><strong>Request<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>POST HTTP\/1.1\n\nContent-Type : application\/json; charset=utf-8\n\neformsign_signature : 3036021900d5aba08cee0ca07f251ff3b2523e90c54f8696ef7a63033b021900de3db862bc1c0c81cd0316779d15e5c77af62c0f454cc8d1\n\nHOST : web hook URL\n\n{\n\"webhook_id\": \"3fb7c81f9e7f42cea7e65258527ba7fb\",\n\"webhook_name\": \"test\",\n\"company_id\": \"db58ff3e116942de951b543f60d66073\",\n\"event_type\": \"ready_document_pdf\",\n\"ready_document_pdf\": {\n\"document_id\": \"c07a9830f61b4cfb924d525040c62062\",\n\"workflow_seq\": 3,\n\"workflow_name\": \"Internal User 1\",\n\"template_id\": \"39d74bee4c7b4a6ca43c23f2728e60cb\",\n\"template_name\": \"Product purchase request form\",\n\"template_version\": \"2\",\n\"document_status\": \"doc_request_reception\",\n\"document_history_id\": \"ee2565594d8749b7a9590bace8e3908c\",\n\"export_ready_list\": [\n\"document\"\n]\n}\n}<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":11998,"menu_order":0,"template":"","manualdocumentationcategory":[45],"_links":{"self":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/12003"}],"collection":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/12003\/revisions"}],"predecessor-version":[{"id":12791,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/12003\/revisions\/12791"}],"up":[{"embeddable":true,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/11998"}],"wp:attachment":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/media?parent=12003"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=12003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}