Docs home

Invoice Print

Returns a ready-to-print HTML tax invoice for one instalment invoice. Use it to show or save an invoice in your own portal.

GET/invoice/print/{invoice_id}
Invoice Print
curl --request GET \
  --url 'https://<your-api-host>/nuSource/api/v1/invoice/print/{invoice_id}' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>'
{
  "code": 200,
  "message": "Success",
  "template": "<style type=\"text/css\" media=\"print\">\n\t@page\n\t{\n\t\t\tsize:  auto;   /* auto is the initial value */\n\t\t\tmargin: 0mm;  /* this affects the margin in the printer settings */\n\t}\n\thtml\n\t{\n\t\t\tbackground-color: #FFFFFF;\n\t\t\tmargin: 0px;  /* this affects the margin on the html before sending to printer */\n\t}\n\n\tbody\n\t{\n\t\t\t/*border: solid 1px blue ;*/\n\t\t\tfont-family: sans-serif;\n\t}\n\t</style>\n  <table style=\"padding: 0 24px; \" width=\"800\" >\n    <tr>\n      <td colspan=\"2\">\n\t\t\t\t<table  width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin-bottom: 24px;\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<table style=\"font-size: 14px;\">\n\t\t\t\t\t\t\t\t<tr><td style=\"font-size: 22px; font-weight: 600; padding-bottom: 12px;\">Tax Invoice</td></tr>\n\t\t\t\t\t\t\t\t<tr><td style=\"color: #737982;\">Invoice No.</td><td>#700</td></tr>\n\t\t\t\t\t\t\t\t<tr><td style=\"color: #737982;\">Invoice Date</td><td>18 Mar 2026</td></tr>\n\t\t\t\t\t\t\t\t<tr><td style=\"color: #737982;\">Due Date</td><td>18 Mar 2026</td></tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td style=\"text-align: right;\" ><a href=\"\" target=\"_blank\"><img style=\"max-width: 200px;max-height: 200px; object-fit: contain;\" src=\"\" alt=\"logo\" /></a></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n      </td>\n    <tr>\n    <tr style=\"display: flex; justify-content: space-between; column-gap: 24px;\">\n        <td id=\"gst-details\" style=\"padding: 16px 24px; background-color: #F8FAFE; border-radius: 8px; border: 1px solid #EFF2F5; width: 100%;\">\n          <table style=\"font-size: 14px; width: 100%;\">\n              <tr>\n                <td colspan=\"2\" style=\"font-size: 14px; color: #1154D9; padding-bottom: 6px;\">Billed By</td>\n              </tr>\n              <tr>\n                <td colspan=\"2\" style=\"font-size: 18px; font-weight: 500; padding-bottom: 6px;\">darwin</td>\n              </tr>\n              <tr>\n                <td colspan=\"2\" style=\"color: #737982;\">Harshurpur Devaliya , Lathi, Amreli gujarat<br>Dudhala Lathi-365430</td>\n              </tr>\n              <tr>\n                <td style=\"color: #737982;\"></td>\n                <td></td>\n              </tr>\n              <tr>\n                <td style=\"color: #737982;\">PAN</td>\n                <td>AAACH7409R</td>\n              </tr>\n              <tr>\n                <td style=\"color: #737982;\">GSTIN</td>\n                <td>09AAACH7409R1ZZ</td>\n              </tr>\n              <tr>\n                <td style=\"color: #737982;\"></td>\n                <td></td>\n              </tr>\n          </table>\n        </td>\n\n        <td style=\"padding: 16px 24px; background-color: #F8FAFE; border-radius: 8px; border: 1px solid #EFF2F5; width: 100%;\">\n              <table style=\"font-size: 14px; width: 100%;\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\" style=\"font-size: 14px; color: #1154D9; padding-bottom: 6px;\">Billed To</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\" style=\"font-size: 18px; font-weight: 500; padding-bottom: 6px;\">DemoHemal</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=\"2\" style=\"color: #737982;\">21 Applegate Apartment\r\nRockledge Street,New York-11561</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td style=\"color: #737982;\">Email</td>\n\t\t\t\t\t\t\t\t\t<td>hemal@edmingle.com</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td style=\"color: #737982;\">Phone</td>\n\t\t\t\t\t\t\t\t\t<td>+91-7359943259</td>\n\t\t\t\t\t\t\t\t</tr>\n                                <tr>\n\t\t\t\t\t\t\t\t\t<td style=\"color: #737982;\">Reg. No.</td>\n\t\t\t\t\t\t\t\t\t<td>350</td>\n\t\t\t\t\t\t\t\t</tr>\n                                \n\t\t\t\t\t\t\t\t\n                                \n                <tr><td style=\"color: #737982;\">Place of Supply</td><td>UTTAR PRADESH</td></tr>\n\t\t\t\t\t\t\t</table>\n        </td>\n    </tr>\n    <tr >  \n      <td colspan=\"4\">\n      <table style=\"width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 8px; overflow: hidden; margin: 24px 0px; border: 1px solid #ddd;\">\n      <thead>\n          <tr style=\"background-color: #5D6D7E; color: white;\">\n            <th style=\"padding: 10px; text-align: left; border-bottom: 1px solid #ddd;\">Service and description</th>\n            <th style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\"></th>\n                          <th style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\n                              \n                          </th>\n            <th style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\"> </th>\n                          <th style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">CGST </th>\n                          <th style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">SGST </th>\n            <th style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">Amount</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr>\n            <td style=\"padding: 10px; border-bottom: 1px solid #ddd;\">\n              <p style=\"margin-bottom: 0px; margin-top: 4px;\"><strong>All-In-One Course</strong><br></p>\n              <p style=\"margin: 6px 0px; color: #363C45; font-size: 14px;\">Item Name: Full Payment</p>\n            </td>\n            <td style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n                              \n                          </td>\n            <td style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n                              \n                          </td>\n            <td style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n                              \n                          </td>\n            <td style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n                              9.00%\n                          </td>\n                          <td style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n                              9.00%\n                          </td>\n                          <td style=\"padding: 10px; text-align: right; border-bottom: 1px solid #ddd;\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n                              ₹ 0.00\n                          </td>\n          </tr>\n          <!-- <tr>\n            <td style=\"padding: 10px;\">\n              <p style=\"margin-bottom: 0px; margin-top: 4px;\"><strong>2. UX Strategy</strong><br></p>\n              <p style=\"margin: 6px 0px; color: #363C45; font-size: 14px;\">Installment name: Full Fees</p>\n            </td>\n            <td style=\"padding: 10px; text-align: right;\">1</td>\n            <td style=\"padding: 10px; text-align: right;\">$5000</td>\n            <td style=\"padding: 10px; text-align: right;\">$5000</td>\n            <td style=\"padding: 10px; text-align: right;\">$5000</td>\n          </tr> -->\n        </tbody>\n      </table>\n      </td>\n    </tr>\n\n  \n    <tr style=\"display: flex; justify-content: space-between; column-gap: 24px;\">\n      <td style=\"padding: 16px 24px; background-color: #F8FAFE; border-radius: 8px; border: 1px solid #EFF2F5; width: 100%;\">\n        <table style=\"font-size: 14px; width: 100%;\">\n          <tr>\n            <td style=\"font-size: 14px; font-weight: 500; padding-bottom: 6px;\">Note</td>\n          </tr>\n          <tr>\n            <td style=\"color: #737982;\"> Amount once paid will not be refunded.</td>\n          </tr>\n        </table>\n      </td>\n      <td style=\"width: 100%;\">\n        <table style=\"font-size: 14px; width: 100%; border-collapse: collapse;\">\n          <tr>\n            <td style=\"color: #363C45;padding-top: 8px;\">Sub Total</td>\n            <td style=\"color: #363C45; text-align: right;\">₹ 0.00</td>\n          </tr>\n          <tr>\n            <td style=\"color: #363C45;padding-top: 8px;\">Discount </td>\n            <td style=\"color: #363C45; text-align: right;\">- ₹ 0.00</td>\n          </tr>\n                          \n          \n            <tr>\n                    <td style=\"color: #363C45;padding-top: 8px;\">GST </td>\n                    <td style=\"color: #363C45; text-align: right;\">₹ 0.00</td>\n                </tr>\n            \n                \n                          <tr>\n            \n                              <td style=\"color: #363C45;padding-top: 8px;\">Total </td>\n            <td style=\"color: #363C45; text-align: right;\">₹ 0.00</td>\n          </tr>\n          <tr>\n                              <td style=\"color: #363C45;padding-top: 8px;\">Total  Paid</td>\n            <td style=\"color: #363C45; text-align: right;\">- ₹ 0.00</td>\n          \n          </tr>\n          <tr>\n            <td style=\"height: 42px; color: #363C45; border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 18px; font-weight: 600;\">Amount Due</td>\n            <td style=\"height: 42px; color: #363C45; border-top: 1px solid #000; border-bottom: 1px solid #000; font-size: 18px; font-weight: 600; text-align: right;\">₹ 0.00</td>\n          </tr>\n          <tr>\n            <td colspan=\"2\" style=\"color: #363C45; padding-top: 12px; font-weight: 500;\">Amount in words</td>\n          </tr>\n          <tr>\n            <td colspan=\"2\" style=\"color: #363C45;\">Indian Rupee Zero Only</td>\n          </tr>\n        </table>\n      </td>\n    </tr>\n  \n \n    <tr >\n\n            <td colspan=\"2\" style=\"font-size: 15px;\"  style=\"margin-top: 30px; text-align: right;\"> \n            <table style=\"margin-top: 30px; text-align: right; width: 100%;\">\n            <tr >\n\n            <td colspan=\"2\" style=\"font-size: 15px;\"  style=\"margin-top: 30px; text-align: right;\"> \n                <br><br><br>(Authorized Signatory)\n                \n                </td>\n                </tr>\n           </table>\n        </td>\n    </tr>\n  \n\n  </table>"
}

Access: Any signed-in user. Learners can only fetch their own invoices.

Path parameters
invoice_idintegerrequired
Invoice ID (invoice_id from the purchase details).
Response200application/json
codeinteger
Example: 200
messagestring
Example: Success
templatestring

Notes: Error "Invalid Invoice Id" when the invoice doesn't exist (or, for learners, isn't theirs). Rate limit: 30 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI