{"id":485,"date":"2020-04-30T14:51:36","date_gmt":"2020-04-30T14:51:36","guid":{"rendered":"https:\/\/senitron.net\/developers\/?page_id=485"},"modified":"2020-05-01T17:21:36","modified_gmt":"2020-05-01T17:21:36","slug":"restapi-audit-shipment-upload","status":"publish","type":"page","link":"https:\/\/senitron.net\/developers\/restapi-audit-shipment-upload\/","title":{"rendered":"RESTAPI-Audit Shipment Upload"},"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\"><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:0px;margin-bottom:0px;width:100%;\"><div class=\"fusion-separator-border sep-single sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;border-color:#e2e2e2;border-top-width:2px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-1\"><p><span class=\"redtextcolor\">Service Name<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span class=\"textindentlevel1\">Audit Shipment Upload<\/span><br \/>\n<span class=\"redtextcolor\">Service Method<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0 <span class=\"textindentlevel1\">POST<\/span><br \/>\n<span class=\"redtextcolor\">Service URL<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span class=\"textindentlevel1\">\/audits<\/span><\/p>\n<p><span class=\"redtextcolor\">Request Header Fields<\/span><br \/>\n<span class=\"greentextcolor\">Content-Type<\/span> = <span class=\"cyantextcolor\">application\/json<\/span><br \/>\n<span class=\"greentextcolor\">Authorization<\/span> = &lt;<span class=\"cyantextcolor\">token<\/span>&gt;<\/p>\n<p><span class=\"darkbluetextcolor\">Request Body Data (JSON)<\/span><br \/>\n{<br \/>\n<span class=\"textindentlevel1\">\"<span class=\"greentextcolor\">location<\/span>\": \"&lt;<span class=\"cyantextcolor\">location code<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">order_id<\/span>\": \"&lt;<span class=\"cyantextcolor\">order id<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">user<\/span>\": \"&lt;<span class=\"cyantextcolor\">username<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">user_name<\/span>\": \"&lt;<span class=\"cyantextcolor\">name of user<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">audit_date<\/span>\": \"&lt;<span class=\"cyantextcolor\">audit date<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">total_assets<\/span>\": &lt;<span class=\"cyantextcolor\">total assets<\/span>&gt;,<br \/>\n\"<span class=\"greentextcolor\">read_assets<\/span>\": &lt;<span class=\"cyantextcolor\">read assets<\/span>&gt;,<br \/>\n\"<span class=\"greentextcolor\">items<\/span>\": [<\/span><br \/>\n<span class=\"textindentlevel2\">{<\/span><br \/>\n<span class=\"textindentlevel3\">\"<span class=\"greentextcolor\">item_number<\/span>\" : \"&lt;<span class=\"cyantextcolor\">item#<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">item_name<\/span>\" : \"&lt;<span class=\"cyantextcolor\">item name<\/span>&gt;\",<br \/>\n\"<span class=\"greentextcolor\">expected_count<\/span>\" : &lt;<span class=\"cyantextcolor\">item expected count<\/span>&gt;,<br \/>\n\"<span class=\"greentextcolor\">read_count<\/span>\" : &lt;<span class=\"cyantextcolor\">item read count<\/span>&gt;,<br \/>\n\"<span class=\"greentextcolor\">override<\/span>\" : &lt;<span class=\"cyantextcolor\">override status<\/span>&gt;,<br \/>\n\"<span class=\"greentextcolor\">epcs<\/span>\" : [<\/span><br \/>\n<span class=\"textindentlevel4\">{<\/span><br \/>\n<span class=\"textindentlevel5\">\"<span class=\"greentextcolor\">epc<\/span>\" : \"&lt;<span class=\"cyantextcolor\">epc<\/span>&gt;\"<\/span><br \/>\n<span class=\"textindentlevel4\">},<br \/>\n...<\/span><br \/>\n<span class=\"textindentlevel3\">]<\/span><br \/>\n<span class=\"textindentlevel2\">},<br \/>\n...<\/span><br \/>\n<span class=\"textindentlevel1\">]<\/span><br \/>\n}<\/p>\n<p><span class=\"darkbluetextcolor\">Response Data (JSON)<\/span><br \/>\n<span class=\"greentextcolor\">Status code = 200<\/span><\/p>\n<p>{<br \/>\n\"<span class=\"greentextcolor\">message<\/span>\" : \"&lt;<span class=\"cyantextcolor\">a successful message<\/span>&gt;\"<br \/>\n}<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"graytextcolor\">Example<\/span><br \/>\n<span class=\"blacktextcolor\">POST: http:\/\/app.senitron.net\/api\/v1\/audits<\/span><br \/>\n{<br \/>\n<span class=\"textindentlevel1\">\"<span class=\"greentextcolor\">location<\/span>\": \"<span class=\"cyantextcolor\">001<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">order_id<\/span>\": \"<span class=\"cyantextcolor\">35350<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">user<\/span>\": \"<span class=\"cyantextcolor\">test@test.com<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">user_name<\/span>\": \"<span class=\"cyantextcolor\">Test User<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">audit_date<\/span>\": \"<span class=\"cyantextcolor\">03\/20\/2020 10:30<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">total_assets<\/span>\": <span class=\"cyantextcolor\">25<\/span>,<br \/>\n\"<span class=\"greentextcolor\">read_assets<\/span>\": <span class=\"cyantextcolor\">6<\/span>,<br \/>\n\"<span class=\"greentextcolor\">items<\/span>\": [<\/span><br \/>\n<span class=\"textindentlevel2\">{<\/span><br \/>\n<span class=\"textindentlevel3\">\"<span class=\"greentextcolor\">item_number<\/span>\" : \"<span class=\"cyantextcolor\">000493<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">item_name<\/span>\" : \"<span class=\"cyantextcolor\">FIGS DRIED WOODEN BOX 22LBS<\/span>\",<br \/>\n\"<span class=\"greentextcolor\">expected_count<\/span>\" : <span class=\"cyantextcolor\">2<\/span>,<br \/>\n\"<span class=\"greentextcolor\">read_count<\/span>\" : <span class=\"cyantextcolor\">2<\/span>,<br \/>\n\"<span class=\"greentextcolor\">override<\/span>\" : <span class=\"cyantextcolor\">false<\/span>,<br \/>\n\"<span class=\"greentextcolor\">epcs<\/span>\" : [<\/span><br \/>\n<span class=\"textindentlevel4\">{<\/span><br \/>\n<span class=\"textindentlevel5\">\"<span class=\"greentextcolor\">epc<\/span>\" : \"<span class=\"cyantextcolor\">321AB45009E66F002367ABCD<\/span>\"<\/span><br \/>\n<span class=\"textindentlevel4\">},<br \/>\n{<\/span><br \/>\n<span class=\"textindentlevel5\">\"<span class=\"greentextcolor\">epc<\/span>\" : \"<span class=\"cyantextcolor\">321AB45009E66F002367AF001<\/span>\"<\/span><br \/>\n<span class=\"textindentlevel4\">}<\/span><br \/>\n<span class=\"textindentlevel3\">]<\/span><br \/>\n<span class=\"textindentlevel2\">}<\/span><br \/>\n<span class=\"textindentlevel1\">]<\/span><br \/>\n}<\/p>\n<p><span class=\"darkbluetextcolor\">Response Data (JSON) <\/span><br \/>\n<span class=\"greentextcolor\">Status code = 200<\/span><\/p>\n<\/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-485","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/485","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=485"}],"version-history":[{"count":0,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/485\/revisions"}],"wp:attachment":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/media?parent=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}