DocMake
The PDF DocMake makes from the Order Confirmation template

The first page of the document DocMake makes from the sample values on this page.

Sales

Order Confirmation

The document that closes the loop after checkout: what was ordered, where it ships, when it arrives.

Trigger it from your shop or ERP through the API the moment an order lands.

Blanks to fill

order_number Order number
order_date Order date
customer_reference Your reference
customer_name Customer
customer_contact Customer contact
delivery_address Delivery address
delivery_estimate Expected delivery
delivery_method Delivery method
payment_method Payment method
payment_terms Payment terms
goods_total Goods total
delivery_cost Delivery cost
tax Tax
total Total
order_notes Notes on this order
support_contact Who to tell
company_name Company
items[] One per item, so a row is added for every item in the list

The data behind the preview

This is the exact JSON that produced the document above. Change the values, POST them to the API, and you get your version back as DOCX or PDF. Lists grow and shrink with your data; the layout adapts.

  1. 01 Sign up free and duplicate this template into your workspace.
  2. 02 Adjust the wording and branding in the visual editor.
  3. 03 Fill it in the app, share it as a form link, or call the API.
sample-data.json
{
  "company_name": "Fenwick Office Supply",
  "order_number": "ORD-2026-4471",
  "order_date": "September 9, 2026",
  "customer_reference": "PO-5512",
  "customer_name": "Redshaw Veterinary Clinic",
  "customer_contact": "Priya Raman, Practice Manager",
  "delivery_address": "Unit 4, Calder Way, Leeds LS11 9TG",
  "delivery_estimate": "September 15 to 17, 2026",
  "delivery_method": "One delivery on our own van, tail lift, kerbside",
  "payment_method": "On account, account RVC-0082",
  "payment_terms": "30 days from the invoice date",
  "items": [
    {
      "item": "Examination table, hydraulic",
      "item_code": "FOS-EX12",
      "quantity": "1",
      "unit_price": "$1,240.00",
      "amount": "$1,240.00"
    },
    {
      "item": "Stacking chair, grey",
      "item_code": "FOS-CH04",
      "quantity": "12",
      "unit_price": "$46.00",
      "amount": "$552.00"
    },
    {
      "item": "Storage cabinet, lockable",
      "item_code": "FOS-CB09",
      "quantity": "3",
      "unit_price": "$318.00",
      "amount": "$954.00"
    },
    {
      "item": "Desk lamp, clamp fitting",
      "item_code": "FOS-LP02",
      "quantity": "4",
      "unit_price": "$55.00",
      "amount": "$220.00"
    }
  ],
  "goods_total": "$2,966.00",
  "delivery_cost": "$85.00",
  "tax": "$610.20",
  "total": "$3,661.20",
  "order_notes": "The examination table is built to order and leaves the works on September 14, so it may arrive a day after the rest of the order.",
  "support_contact": "orders@fenwickoffice.example or 0113 555 0142, 08:30 to 17:00"
}

Generate this document via the API

One template plus changing data is the whole point. The list of blanks above is the contract, and every new set of values comes back in the same layout: fill it in the app, hand someone a form link, or POST the JSON and get the file straight back.

The request below carries this page's own values, so it runs as soon as the template exists in your workspace. Swap the values for yours and the response is your document.

make-order-confirmation.sh
curl -X POST https://app.docmake.io/api/v1/render \
  -H "Authorization: Bearer $DOCMAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  --output order-confirmation.pdf \
  --data-binary @- <<'JSON'
{
  "template_id": "tmpl_your_template_id",
  "format": "pdf",
  "data": {
    "company_name": "Fenwick Office Supply",
    "order_number": "ORD-2026-4471",
    "order_date": "September 9, 2026",
    "customer_reference": "PO-5512",
    "customer_name": "Redshaw Veterinary Clinic",
    "customer_contact": "Priya Raman, Practice Manager",
    "delivery_address": "Unit 4, Calder Way, Leeds LS11 9TG",
    "delivery_estimate": "September 15 to 17, 2026",
    "delivery_method": "One delivery on our own van, tail lift, kerbside",
    "payment_method": "On account, account RVC-0082",
    "payment_terms": "30 days from the invoice date",
    "items": [
      {
        "item": "Examination table, hydraulic",
        "item_code": "FOS-EX12",
        "quantity": "1",
        "unit_price": "$1,240.00",
        "amount": "$1,240.00"
      },
      {
        "item": "Stacking chair, grey",
        "item_code": "FOS-CH04",
        "quantity": "12",
        "unit_price": "$46.00",
        "amount": "$552.00"
      },
      {
        "item": "Storage cabinet, lockable",
        "item_code": "FOS-CB09",
        "quantity": "3",
        "unit_price": "$318.00",
        "amount": "$954.00"
      },
      {
        "item": "Desk lamp, clamp fitting",
        "item_code": "FOS-LP02",
        "quantity": "4",
        "unit_price": "$55.00",
        "amount": "$220.00"
      }
    ],
    "goods_total": "$2,966.00",
    "delivery_cost": "$85.00",
    "tax": "$610.20",
    "total": "$3,661.20",
    "order_notes": "The examination table is built to order and leaves the works on September 14, so it may arrive a day after the rest of the order.",
    "support_contact": "orders@fenwickoffice.example or 0113 555 0142, 08:30 to 17:00"
  }
}
JSON

tmpl_your_template_id is a stand-in: build this template in the visual editor and copy the id it shows, or create one with POST /api/v1/templates. Keys, formats, strict mode and batches are in the API reference.

Or let an AI assistant do it

The DocMake MCP server lets Claude and other assistants make this document the same way. Install it once:

claude mcp add docmake \
  --env DOCMAKE_API_KEY=dm_your_api_key \
  -- npx -y @docmake/mcp@latest

Then ask for the document in plain words:

Make a PDF from my Order Confirmation template with order number "ORD-2026-4471" and order date "September 9, 2026".

How the MCP server works →

More sales templates