{"id":828,"date":"2020-06-10T17:38:16","date_gmt":"2020-06-10T17:38:16","guid":{"rendered":"https:\/\/senitron.net\/developers\/?page_id=828"},"modified":"2020-06-10T18:06:44","modified_gmt":"2020-06-10T18:06:44","slug":"push-audit-results-api","status":"publish","type":"page","link":"https:\/\/senitron.net\/developers\/push-audit-results-api\/","title":{"rendered":"Push Audit Results API"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-bg-size:cover;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-column-wrapper-legacy\"><nav class=\"fusion-breadcrumbs fusion-breadcrumbs-1\" style=\"--awb-alignment:left;--awb-breadcrumb-sep:&#039;\/&#039;;text-align:left;\" aria-label=\"Breadcrumb\"><ol class=\"awb-breadcrumb-list\"><li class=\"fusion-breadcrumb-item awb-breadcrumb-sep\" ><a href=\"https:\/\/senitron.net\/developers\" class=\"fusion-breadcrumb-link\"><span >Home<\/span><\/a><\/li><\/ol><\/nav><div class=\"fusion-text fusion-text-1\"><h3><strong>Push Audit Results API to External Source(s)<br \/>\n<\/strong><\/h3>\n<p>This integration will send a request to the configured endpoint as a POST request. Containing the transaction details as JSON object in the body of the request.<\/p>\n<p>URL Example to receive the transaction data:<\/p>\n<p>https:\/\/yourserver.com\/receive-transaction?key=3844ikksdl3905klxio1<\/p>\n<p>(URL and Key is configurable on the dashboard. By default Senitron will Attempt to send the data to the end point 5 times, and then it will stop, and will send out an Fail Email notification)<\/p>\n<pre>{\r\n  \"id\":          48475,                  \/\/ Senitron Transaction ID (Internal)\r\n  \"name\":        \"Sale\",                 \/\/ Transaction Name \/ Type\r\n  \"location\":    \"001\",                  \/\/ Store Location Number\r\n  \"zone\":        \"54, Sales Floor\",      \/\/ Audit location,\r\n  \"user\":        \"John Doe\",             \/\/ User name\r\n  \"user_email\":  \"john.doe@test.com\",    \/\/ User email\r\n  \"comment\":     \"Reason \/ notes\",       \/\/ Reason \/ notes memo from the audit\r\n  \"document_id\": \"183-642958\",           \/\/ Ticket No \/ Transaction ID\r\n  \"reference\":   \"6000\",                 \/\/ Misc. reference attached on transaction recorded\r\n  \"count\":       2,                      \/\/ Count of items in transaction\r\n  \"total\":       \"25.00\",                \/\/ Total amount of sale transaction\r\n  \"currency\":    \"USD\",                  \/\/ Transaction currency\r\n  \"date\":        \"2020-05-14 11:51:55\",  \/\/ Transaction date &amp; time\r\n  \"audit_date\":  \"2020-05-14 11:51:55\",  \/\/ Audit date &amp; time\r\n  \"transaction_details\": [\r\n    {\r\n      \"id\":          129551,                       \/\/ Senitron Transaction ID (Internal)\r\n      \"epc\":         \"3074D89E04D99E7503C1A452\",   \/\/ RFID Tag EPC\r\n      \"product_id\":  \"1271417\",                    \/\/ Catalog Product ID \/ Item Number\r\n      \"serial_no\":   \"2033\",                       \/\/ Tag Serial number\r\n      \"alt_serial\":  \"AL-1000\",                    \/\/ Alt. Serial\r\n      \"description\": \"Shimmer Lettermen Hood\",     \/\/ Catalog Item description\r\n      \"price\":       \"19.00\",                      \/\/ Catalog Item price\r\n      \"comment\":     \"Reason \/ notes\"              \/\/ Item notes\r\n    },\r\n    {\r\n      \"id\":          129552,                       \/\/ Senitron Transaction ID (Internal)\r\n      \"epc\":         \"3074D89E05372DF5038345AA\",   \/\/ RFID Tag EPC\r\n      \"product_id\":  \"1367223\",                    \/\/ Catalog Product ID \/ Item Number\r\n      \"serial_no\":   \"2033\",                       \/\/ Tag Serial number\r\n      \"alt_serial\":  \"AL-1000\",                    \/\/ Alt. Serial\r\n      \"description\": \"Classic Lettermen Tee\",      \/\/ Catalog Item description\r\n      \"price\":       \"6.00\",                       \/\/ Catalog Item price\r\n      \"comment\":     \"Reason \/ notes\"              \/\/ Item notes\r\n    }\r\n  ]\r\n}<\/pre>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;width:100%;\"><div class=\"fusion-separator-border sep-double sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;border-color:#e2e2e2;border-top-width:1px;border-bottom-width:1px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"side-navigation.php","meta":{"footnotes":""},"class_list":["post-828","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/comments?post=828"}],"version-history":[{"count":0,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/828\/revisions"}],"wp:attachment":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/media?parent=828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}