Invoices

(ms.invoices)

It stores the order invoices.



Fields

ValueDescription
order_id   
Type: string
Required
Unique identifier for the order.
invoice_number   
Type: string
Required
The unique invoice identity. The format for invoice number is "INV#####".
INV12345
seller_id   
Type: string
Unique id of the seller of the order.
586f990997da96ba5c9ae2ac
invoice_pdf   
Type: string
URL of the invoice pdf file.

Commands (Endpoints)

POST /api/1.1/entity/ms.invoices   
Creates a new invoice
DEL /api/1.1/entity/ms.invoices/{resource_id}   
Deletes a invoice
PUT /api/1.1/entity/ms.invoices/{resource_id}   
Updates an existing invoice
GET /api/1.1/entity/ms.invoices/{resource_id}   
Retrieves a single invoice
GET /api/1.1/entity/ms.invoices   
Retrieves a list of invoices
GET /api/1.1/entity/ms.invoices/_/printInvoice   
print the placed Order Invoice

Examples

printInvoice

Request
{
	
	"data": ["5d778372c536a3a29b10ffa0"]
}
Response
[
    "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n<div style=\"page-break-after: always;\"></div>\n<link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css\" rel=\"stylesheet\">\n<!--<link href=\"http://cdn.storehippo.com/global/assets/ace.min.css\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"/css/ace.min.css\">-->\n<div ng-if=\"loading\">\n    <i class=\"fa fa-cog fa-spin fa-5x\"></i>\n</div>\n<div ng-if=\"!loading\">\n    <div class=\"main-container\" id=\"main-container\">\n\n        <div class=\"row\">\n            <div class=\"col-sm-10 col-sm-offset-1\">\n\n                <div style=\"padding: 25px;\">\n                    <!-- ===================LOGO ROW====================-->\n                    <div class=\"row\" style=\"margin-bottom: 25px;border-bottom: 1px solid #efefef;padding-bottom: 20px;\">\n                        <div class=\"col-sm-12\" style=\"text-align: center;\">\n                            <img src='http://cdn.storehippo.com/s/5c3c0e2d5f5a7a1750cd0870/ms.settings/5256837ccc4abf1d39000001/594a69f4d440752032551950.png' style=\"width: 250px;\"/>\n                            \n                        </div>\n                    </div>\n                    <!-- ===================END LOGO ROW====================-->\n\n\n                    <!-- ===================DETAILS ROW====================-->\n                    <div class=\"row\">\n                        <div class=\"col-sm-12\">\n                            <div class=\"row\" style=\"margin-bottom: 20px;\">\n                                <div class=\"col-sm-6 col-xs-6 ms-fs-14\">\n                                    <b>Sold By:</b><br>\n                                    <span>Store Title </span><br>\n                                    <span>123</span><br>\n                                    <span>123, Andhra Pradesh, 122001 </span><br>\n                                    <p>IN</p>\n                                </div>\n                                <div class=\"col-sm-6 col-xs-6 ms-fs-14\" style=\"text-align: right;\">\n                                    <b>Billing Address:</b><br>\n                                    <span>mukesh </span><br>\n                                    <span>Office No. 240  Building Name-4 Street Name - Spaze</span><br>\n                                    <span>Delhi, Delhi, 110085 </span><br>\n                                    <span>IN</span><br><p> Phone:&nbsp;+918010117117</p>\n                                </div>\n                            </div>\n                            <div class=\"row\" style=\"margin-bottom: 20px;\">\n                                <div class=\"col-sm-6 col-xs-6 ms-fs-14\">\n                                    \n                                    \n                                </div>\n                                <div class=\"col-sm-6 col-xs-6 ms-fs-14\"  style=\"text-align: right;\">\n                                    <b>Shipping Address:</b><br>\n                                    <span>mukesh </span><br>\n                                    <span>Office No. 240  Building Name-4 Street Name - Spaze</span><br>\n                                    <span>Delhi, Delhi, 110085 </span><br>\n                                    <span>IN</span><br><p> Phone:&nbsp;+918010117117</p>\n                                </div>\n                            </div>\n                            <div class=\"row\" style=\"margin-bottom: 20px;\">\n                                <div class=\"col-sm-6 col-xs-6 ms-fs-14\">\n\n                                    <b>Order Number: </b><span style=\"font-size: 14px;\">OID363</span><br>\n                                    <b>Order Date: </b><span style=\"font-size: 14px;\">TUE SEPT 10 2019 16:35:22</span>\n                                </div>\n                                <div class=\"col-sm-6 col-xs-6 ms-fs-14\"  style=\"text-align: right;\">\n                                    <b>Invoice Number: </b><span style=\"font-size: 14px;\"></span><br>\n                                    <!--<b>Invoice Date: </b><span style=\"font-size: 18px;\">TUE SEPT 10 2019 16:35:22</span>-->\n\n\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <!-- ===================END DETAILS ROW====================-->\n\n\n                    <!-- ===================TABLE ROW====================-->\n                    <div class=\"row\">\n                        <div class=\"col-sm-12 col-xs-12\" style=\"padding-left: 0px;\">\n                            <table class=\"table table-striped table-bordered\" style=\"font-size:12px\">\n                                <thead>\n                                <tr>\n                                    <td rowspan=\"2\"><b>Product</b></td>\n                                    <td rowspan=\"2\"><b>Unit Price</b></td>\n                                    <td rowspan=\"2\"><b>Discount (-)</b></td>\n                                    <td rowspan=\"2\"><b>Qty</b></td>\n                                    <td rowspan=\"2\"><b>Shipping (+)</b></td>\n                                    <td rowspan=\"2\"><b>Taxable Amount</b></td>\n                                    <td colspan=\"3\"><b>Tax</b></td>\n                                    <td rowspan=\"2\"><b>Total</b></td>\n                                </tr>\n                                <tr>\n                                    <td>Name</td>\n                                    <td>Rate</td>\n                                    <td>Amount</td>\n                                </tr>\n                                </thead>\n                                <tbody>\n                                <tr>\n                                    <td>Testproduct\n                                        <p>\n                                            size:S<br>\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 70.0\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <span>&#36; 10.0\n                                        (extra)\n                                        <br></span>\n                                    </td>\n                                    <td>4</td>\n                                    <td>\n                                    </td>\n\n                                    <td>\n                                        &#36; 60.0\n                                    </td>\n\n\n                                    <td>\n\n                                        <p>\n                                            <span>tax ruleee(exclusive):</span>\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <p> 15%</p>\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 9.0\n                                        </p>\n                                    </td>\n\n\n                                    <!--\n                                    <td>&#36; 69.0</td>\n-->\n                                    <td>&#36; 240.0</td>\n                                </tr>\n                                <tr>\n                                    <td>Testproduct\n                                        <p>\n                                            size:L<br>\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 70.0\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <span>&#36; 10.0\n                                        (extra)\n                                        <br></span>\n                                    </td>\n                                    <td>6</td>\n                                    <td>\n                                    </td>\n\n                                    <td>\n                                        &#36; 60.0\n                                    </td>\n\n\n                                    <td>\n\n                                        <p>\n                                            <span>tax ruleee(exclusive):</span>\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <p> 15%</p>\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 9.0\n                                        </p>\n                                    </td>\n\n\n                                    <!--\n                                    <td>&#36; 69.0</td>\n-->\n                                    <td>&#36; 360.0</td>\n                                </tr>\n                                <tr>\n                                    <td>Testproduct\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 70.0\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <span>&#36; 10.0\n                                        (extra)\n                                        <br></span>\n                                    </td>\n                                    <td>1</td>\n                                    <td>\n                                    </td>\n\n                                    <td>\n                                        &#36; 60.0\n                                    </td>\n\n\n                                    <td>\n\n                                        <p>\n                                            <span>tax ruleee(exclusive):</span>\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <p> 15%</p>\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 9.0\n                                        </p>\n                                    </td>\n\n\n                                    <!--\n                                    <td>&#36; 69.0</td>\n-->\n                                    <td>&#36; 60.0</td>\n                                </tr>\n                                <tr ng-if=\"order.shipping_method\">\n                                    <td>\n                                        <p>\n                                            Shipping:\n                                        </p>\n                                    </td>\n                                    <td>\n                                        &#36; 77.9\n                                    </td>\n                                    <td></td>\n                                    <td></td>\n\n                                    <td></td>\n\n                                    <td>\n                                        &#36; 77.9\n                                    </td>\n                                    <td>\n\n                                        <p>\n                                            <span>tax ruleee(exclusive):</span>\n                                        </p>\n                                    </td>\n                                    <td>\n                                        <p> 15%</p>\n                                    </td>\n                                    <td>\n                                        <p>\n                                            &#36; 11.7\n                                        </p>\n                                    </td>\n                                    <td>\n                                        &#36; 89.6\n                                    </td>\n                                </tr>\n                                <!---->\n                                <tr>\n                                </tr>\n                                <!-- <tr>\n                                     <td colspan=\"9\" class=\"text-right\">Sub Total</td>\n                                     <td>660</td>\n                                 </tr>-->\n                                <!--   <tr ng-if=\"order.taxes_total\">\n                                       <td colspan=\"9\" class=\"text-right\">Total Tax</td>\n                                       <td colspan=\"1\">\n                                           <span>110.68</span>\n                                       </td>\n                                   </tr>-->\n                                <!-- <tr ng-if=\"order.shipping_metdod\">\n                                     <td colspan=\"9\" class=\"text-right\">Shipping Charges(+)</td>\n                                     <td>77.88</td>\n                                 </tr>-->\n                                <tr>\n                                    <td colspan=\"8\" class=\"text-right\">\n                                        Additional Charges(+)\n                                    </td>\n                                    <td class=\"text-right\">\n                                        cod charge\n                                    </td>\n                                    <td>\n                                        &#36; 84.9\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <td colspan=\"9\" class=\"text-right\"><b>Total Price</b></td>\n                                    <td>&#36; 933.4</td>\n                                </tr>\n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                    <!-- ===================END TABLE ROW====================-->\n                </div>\n            </div>\n        </div>\n    </div>\n\n</div>\n\n<style>\n    .ms-fs-18 p, .ms-fs-18 b{\n        font-size: 18px;\n        margin: 0px;\n    }\n\n\n</style>"
]