/pdf

Get PDF file from public template

post/pdf/public/{template}

Request

  • Base URL: https://api.ireceipt.pro/v1
  • URL: https://api.ireceipt.pro/v1/pdf/public/{template}
  • Auth: HTTP bearer

Path parameters

templatestring required

Template ID, you can find standard IDs here or create private ones at: dashboard.ireceipt.pro

Query parameters

tokenstring

Access Token (instead of a header)

Request body

variablesBasicTemplateVars

Template Variables that need to be transferred to a public template or you have used in your own template.

format'a1-portrait' | 'a1-landscape' | 'a2-portrait' | 'a2-landscape' | 'a3-portrait' | 'a3-landscape' | 'a4-portrait' | 'a4-landscape' | 'a5-portrait' | 'a5-landscape' | 'a6-portrait' | 'a6-landscape' | 'a7-portrait' | 'a7-landscape'

Page format (default A4 Portrait)

Example request

{
  "variables": {
    "invoice": {
      "number": "13",
      "date": "2023-10-03",
      "table": {
        "headers": [
          "NAME",
          "PRICE",
          "QTY",
          "AMOUNT"
        ],
        "rows": [
          {
            "values": [
              "Gorgeous Fresh Car",
              "$100.99",
              "6",
              "$605.94"
            ]
          },
          {
            "values": [
              "Incredible Rubber Bike",
              "$356.00",
              "1",
              "$356.00"
            ]
          },
          {
            "values": [
              "UX Services",
              "$100.00",
              "2",
              "$200.00"
            ]
          },
          {
            "values": [
              "Development Service",
              "$2000.00",
              "1",
              "$2000.00"
            ]
          }
        ]
      },
      "total": "$3161.94",
      "terms": [
        "Payment is due within 5 days",
        "Payment method CARD",
        "Card Details:",
        "Card Number: 4242-4242-4242-4242",
        "Sergey Dudko"
      ]
    },
    "from": {
      "companyName": "IReceipt PRO",
      "lines": [
        "Identification Number: 55891434",
        "911 Reece Freeway",
        "32390 Kraig Station",
        "East Rhea",
        "IR",
        "support@ireceipt.pro"
      ]
    },
    "to": {
      "companyName": "Morissette - Bogisich",
      "lines": [
        "969 Harber Expressway",
        "South Aishaton",
        "GB"
      ]
    },
    "localization": {
      "invoice": "INVOICE",
      "bill_to": "BILL TO",
      "date": "DATE",
      "total": "Total",
      "terms_and_conditions": "TERMS & CONDITIONS"
    }
  },
  "format": "a4-portrait",
  "size": {
    "width": 796,
    "height": 1126
  }
}

Response

PDF file

Changes

No recorded changes to this operation across all 1 revision of this API.