{"id":873,"date":"2018-09-27T13:32:06","date_gmt":"2018-09-27T13:32:06","guid":{"rendered":"https:\/\/expressexpense.com\/blog\/?page_id=873"},"modified":"2020-03-26T11:24:04","modified_gmt":"2020-03-26T11:24:04","slug":"api-access-information","status":"publish","type":"page","link":"https:\/\/expressexpense.com\/blog\/api-access-information\/","title":{"rendered":"API Access Information"},"content":{"rendered":"<p><b>ExpressExpense API<\/b><\/p>\n<p><b>Introduction<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The ExpressExpense API enables web developers to use ExpressExpense applications on their own site.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">An Enterprise Account is required to utilize the ExpressExpense API. &nbsp;Contact info@expressexpense.com to request an Enterprise Account and receive an API token.<\/span><\/p>\n<p><b>How it works<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The API takes special parameters either as querystring or form parameters. You don\u2019t have to do anything special to get the application to recognize the parameters, we check for them on every request.<\/span><\/p>\n<p><b>Request and Response<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Please utilize the following REQUEST and RESPONSE details to utilize our API<\/span><\/p>\n<p><b>REQUEST: &nbsp;GET or form parameters<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Name<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">username<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Username for authentication<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">token<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Hex token for authentication<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">style<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Name of the receipt style (we have 36 styles currently)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">language<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Language code (en, es, zn, pt, fr)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">business<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Name of text business input<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">date<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Date of receipt (any format)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">time<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Time of receipt (any format)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">address<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Address<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">location<\/span><\/td>\n<td><span style=\"font-weight: 400;\">City, State Zip<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">separator<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Currency separator. &nbsp;. = period OR , = comma<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">amount<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Payment amount or cost<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">payment-last4<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Payment details &#8211; Last 4 digits of credit card used<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">tax-percent<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Tax Rate: Percent of Amount as Tax (ie: 7.5 )<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">tax-type<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Type of Tax (1,2,3,4)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">show-to-go<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Display &#8220;To-Go&#8221; text on receipt<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">show-total-line<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Display Total write-in line on receipt<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">show-tip-line<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Display Tip write-in line on receipt<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">logo-url<\/span><\/td>\n<td><span style=\"font-weight: 400;\">URL of logo for receipt custom logo<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">fuelQty<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Number of gallons or liters<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">costPerFuel<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Cost per unit (gallon or liter) of fuel<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">font<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Name of font (blank will use default font)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">image-width<\/span><\/td>\n<td><span style=\"font-weight: 400;\"> Image width in pixels (blank for default)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">image-height<\/span><\/td>\n<td><span style=\"font-weight: 400;\"> Image height in pixels (blank for default)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">quality<\/span><\/td>\n<td><span style=\"font-weight: 400;\"> JPG quality (1-100) of output image<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">item#Qty<\/span><\/td>\n<td><span style=\"font-weight: 400;\"> Itemized list Item quantity &nbsp;(valid # is 1 \u2013 8) \u2013 ie: item1Qty<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">item#Name<\/span><\/td>\n<td><span style=\"font-weight: 400;\"> Itemized list Item name (valid # is 1 \u2013 8) \u2013 ie: item5Name<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">item#Amount<\/span><\/td>\n<td><span style=\"font-weight: 400;\"> &nbsp;Itemized list Item amount \/ cost &nbsp;(valid # is 1 \u2013 8) \u2013 ie: item8Amount<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>Sample request:<\/b><\/p>\n<p><b>https:\/\/expressexpense.com\/api\/v1\/retailerreceipt.php?token=dsai9fsadn29na&amp;date=09-30-2018&amp;time=10:28%20am&amp;business=Extons%20roofing%20ltd&amp;address=72%20Cargill%20Rd,%20London,%20SW18%203DZ&amp;location=london,england&amp;amount=9600&amp;tax-percent=20&amp;text_currency=%C2%A3&amp;tax-type=Tax&amp;payment=visa&amp;separator=1&amp;text-last4=9505&amp;telephone=0208%208879%209966&amp;p_qty%5B%5D=1&amp;p_scnt%5B%5D=9000%20slates&amp;p_price%5B%5D=7650&amp;p_qty%5B%5D=1&amp;blur=0&amp;font=1&amp;paper=1&amp;scratch=0&amp;brightness=100&amp;userid=9544&amp;logo-url=uploads\/upfile1538051432.jpg<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>RESPONSE:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The API returns a URL of image with a unique filename. &nbsp;All images are returned in JPG format.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The complete image URL is formed using the following format:<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">https:\/\/expressexpense.com\/api\/v1\/[<\/span><b>username<\/b><span style=\"font-weight: 400;\">]\/<\/span><span style=\"font-weight: 400;\">uploads\/5bacd9844a80c.jpg<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">SAMPLE Representative Generated Receipt <\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-874\" src=\"https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2-430x1024.jpg\" alt=\"\" width=\"430\" height=\"1024\" srcset=\"https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2-430x1024.jpg 430w, https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2-126x300.jpg 126w, https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2-768x1829.jpg 768w, https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2.jpg 805w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ExpressExpense API Introduction The ExpressExpense API enables web developers to use ExpressExpense applications on their own site. An Enterprise&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_mi_skip_tracking":false,"spay_email":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/expressexpense.com\/blog\/api-access-information\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API Access Information - ExpressExpense - How to Make Receipts\" \/>\n<meta property=\"og:description\" content=\"ExpressExpense API Introduction The ExpressExpense API enables web developers to use ExpressExpense applications on their own site. An Enterprise&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/expressexpense.com\/blog\/api-access-information\/\" \/>\n<meta property=\"og:site_name\" content=\"ExpressExpense - How to Make Receipts\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-26T11:24:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2-430x1024.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/expressexpense.com\/blog\/#website\",\"url\":\"https:\/\/expressexpense.com\/blog\/\",\"name\":\"ExpressExpense - How to Make Receipts\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/expressexpense.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/expressexpense.com\/blog\/api-access-information\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/expressexpense.com\/blog\/wp-content\/uploads\/2018\/09\/5bacda1febeb2.jpg\",\"width\":805,\"height\":1917},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/expressexpense.com\/blog\/api-access-information\/#webpage\",\"url\":\"https:\/\/expressexpense.com\/blog\/api-access-information\/\",\"name\":\"API Access Information - ExpressExpense - How to Make Receipts\",\"isPartOf\":{\"@id\":\"https:\/\/expressexpense.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/expressexpense.com\/blog\/api-access-information\/#primaryimage\"},\"datePublished\":\"2018-09-27T13:32:06+00:00\",\"dateModified\":\"2020-03-26T11:24:04+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/expressexpense.com\/blog\/api-access-information\/\"]}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PbIym1-e5","_links":{"self":[{"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/pages\/873"}],"collection":[{"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/comments?post=873"}],"version-history":[{"count":3,"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/pages\/873\/revisions"}],"predecessor-version":[{"id":1693,"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/pages\/873\/revisions\/1693"}],"wp:attachment":[{"href":"https:\/\/expressexpense.com\/blog\/wp-json\/wp\/v2\/media?parent=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}