Document Generation

Merge Word based templates with input JSON data to create Word and PDF documents

Merges the input JSON data with Word based templates to create dynamic documents. To learn more about document generation and document templates, please see the <a href="https://developer.adobe.com/document-services/docs/overview/document-generation-api/">documentation</a>.

post/operation/documentgeneration

Request

  • Base URL: https://pdf-services-ue1.adobe.io
  • URL: https://pdf-services-ue1.adobe.io/operation/documentgeneration
  • Auth: none declared. Required headers: Authorization, x-api-key

Headers

Authorizationstring required

Bearer + Token (<a href="https://developer.adobe.com/document-services/docs/overview/pdf-services-api/gettingstarted/#step-1--getting-the-access-token">Learn more</a> about getting the access token)

x-api-keystring required

The clientId from the generated credentials

Request body

OR

Example request

{
  "assetID": "urn:aaid:AS:UE1:23c30ee0-2c4d-46d6-87f2-087832fca718",
  "outputFormat": "pdf",
  "jsonDataForMerge": {
    "customerName": "Kane Miller",
    "customerVisits": 100,
    "itemsBought": [
      {
        "name": "Sprays",
        "quantity": 50,
        "amount": 100
      },
      {
        "name": "Chemicals",
        "quantity": 100,
        "amount": 200
      }
    ],
    "totalAmount": 300,
    "previousBalance": 50,
    "lastThreeBillings": [
      100,
      200,
      300
    ],
    "photograph": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88h8AAu0B9XNPCQQAAAAASUVORK5CYII="
  },
  "notifiers": [
    {
      "type": "CALLBACK",
      "data": {
        "url": "https://dummy.callback.org/",
        "headers": {
          "x-api-key": "dummykey",
          "access-token": "dummytoken"
        }
      }
    }
  ]
}

Response

Request creation for the operation and status uri generated, which can be found in the 'location' header.

Changes

No recorded changes to this operation across all 8 revisions of this API.