Sign Up

Log In

Generate and send PDF receipts via email.

FREEMIUM
By OxeBox
Updated 6 hours ago
6/10
Popularity Score
2007ms
Latency
100%
Success Rate
Discussions
Hi Developer, feel free to ask your question:
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://oxebox-generate-a-new-oxebox-bill-receipt-v1.p.rapidapi.com/generateNewBill")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/json")
.send({"StoreDetails":{"Name":"Jamies Cafe","LogoUrl":"https://www.oxebox.com/assets/images/store_logo/store_5bfbb2b7b1863.png","TaxDetails":"","Phone":"+18008563275","ReceiptHeader":"Welcome to Jamies Cafe","ReceiptFooter":"Thanks for your visit !!!","Address":{"AddressLine1":"P.O. Box 649","AddressLine2":"6067 Vel Road 652374 ","City":"Fuenlabrada","Area":"Anguilla","Zipcode":"23456","Country":"SPAIN"}},"CustomerDetails":{"Name":"Zeph Foreman","Phone":"","CountryCode":"","Email":{"recepientEmail":"","subject":"Here is the receipt for your recent order from Jamies Cafe","fromEmail":"[email protected]","fromName":"Jamies T-shirts","replyToEmail":""}},"BillingDetails":{"BillReceiptID":"Rec-1088686AABC","TransactionDate":"2018-11-30","TransactionTime":"22:10:01","AdditionalDetails":[{"Name":"Table No","Value":"1234"},{"Name":"Order No","Value":"06161"}],"PaymentDetails":[{"Amount":4000,"Type":"card","Cashier":"John Rock"},{"Amount":1646,"Type":"cash","Cashier":"John Rock"}],"ItemDetails":[{"ItemCode":"Pizza - 01","ItemName":"Exotica Supreme Pizza","ItemHeader":"12 medium, extra cheeze,olives","ItemQty":20,"ItemUnit":"pcs","ItemPrice":40,"ItemTotal":800,"SubItems":[{"ItemName":"Extra cheese","ItemQty":1,"ItemUnit":"pcs","ItemPrice":29,"ItemTotal":29},{"ItemName":"Extra Toppings","ItemQty":2,"ItemUnit":"pcs","ItemPrice":55,"ItemTotal":110}]},{"ItemCode":"Pizza-02","ItemName":"Triple chicken feast pizza","ItemHeader":"Crust: Pan, Medium, spicy","ItemQty":40,"ItemUnit":"pcs","ItemPrice":100,"ItemTotal":4000,"Discounts":[{"Name":"Store Promo","Total":99,"Percent":0},{"Name":"Additional discount","Total":18,"Percent":9}],"Taxes":[{"Name":"SGST 6","Total":240,"Percent":6},{"Name":"SGST 9","Total":240,"Percent":9}]}],"Discounts":[{"Name":"Store Promo","Total":99,"Percent":""},{"Name":"Bulk discount","Total":400,"Percent":""}],"Taxes":[{"Name":"SGST","Total":222.86,"Percent":6},{"Name":"CGST","Total":222.86,"Percent":9}],"SubTotal":5600,"GrandTotal":0,"RoundOff":0.29,"TotalBillAmount":5646,"AdditionalCharges":[{"Name":"Delivery Charges","Amount":4000,"Discounts":[{"Name":"Store Promo","Total":99,"Percent":""},{"Name":"Additional discount","Total":18,"Percent":9}],"Taxes":[{"Name":"CGST 9","Total":7.63,"Percent":9},{"Name":"SGST 9","Total":7.63,"Percent":9}]}],"BillingAddress":{"AddressLine1":"954 Dui. St.","AddressLine2":"Leganes ACT","Area":"BTM","City":"Hartford","State":"Mayotte","Zip":16205,"Country":"SPAIN","Name":"Isaiah Marquez","Phone":"+61423475219"},"ShippingAddress":{"AddressLine1":"954 Dui. St.","AddressLine2":"Leganes ACT","Area":"BTM","City":"Hartford","State":"Mayotte","Zip":16205,"Country":"SPAIN","Name":"Isaiah Marquez","Phone":"+61423475219"}},"StorePromotions":{"OfferImage":"https://www.oxebox.com/assets/images/store_promo/promo_5a66a9fae0c2d.png","facebook_link":"https://www.facebook.com/Munafa-Mart-2019937031565683/","twitter_link":"https://twitter.com/munafamart","instagram_link":"https://www.instagram.com/dominos/?hl=en","youtube_link":"https://www.youtube.com/watch?v=dKwDkzdUZvI"}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard