{"info":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>API documentation on how do we exchange data with our fulfillment partners (return centers).</p>\n<h1 id=\"overview\">Overview</h1>\n<p>This is a short summary of the steps of API communication to build proper and accurate data exchange between Mediapost Hit Mail/ Mercoria platform and our partner fulfillment warehouses (hereinafter referred to as return centers) that process the parcel returns of ecommerce customers.</p>\n<p>All steps described below are available and applicable only after we register and authorize the return center (RC) in the Mercoria back-end.</p>\n<p>The roles in the process described below are as follows:</p>\n<ol>\n<li><p>Shipping return center (SRC) – any business partner of ours that is able to provide a local return address in one or more countries and is willing to:<br> a. accept in their warehouse returned parcels of ecommerce merchants who ship their parcels from one country to another (cross-border);<br> b. process the returned parcels – in other words validate the owner of the parcel (ecommerce merchant), open the parcel, check its content against the information we provide about it (number of items in the parcel shipped by the ecommerce merchant, initial number of items in the parcel, specific products and some of their characteristics etc.), report the check result, report if the parcel itself or one or more items in it are damaged or not, close the parcel.<br> c. prepare all returned parcels for a particular country in a consolidated shipment (Master box (Mbox) or pallet) and send it to a receiving return center in this country based on information we provide (name of the receiving return center, address, contact person etc.).</p>\n</li>\n<li><p>Receiving return center (RRC) – any business partner of ours that is able to receive a consolidated shipment (Mbox or pallet) from a shipping return center from another country and is willing to:<br> a. open and check the content of the consolidated shipment against the information our platform provides (ID of the shipment, no. of parcels inside, data about each parcel etc.)<br> b. report the check result back to the platform in accordance to the data exchange protocol described below<br> c. based on the ecommerce merchant instructions, either prepare the items in the returned parcel for re-stock, destroy the items or else.</p>\n</li>\n<li><p>Ecommerce merchant – any business entity that wants to use the parcel return management service provided by us or any of our business partners in any of the countries within the scope of our network, who accepts B2B or B2C orders from customers in other countries (cross-border) and ships the orders accordingly to the address provided by the customer.</p>\n</li>\n</ol>\n<h1 id=\"authentication\">Authentication</h1>\n<p>All integrated return centers will get an unique authorization token and must use it when sending request to our platform.<br>This is a key-value pair on header (api-token - 123456789).</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>We use JSON with:<br>status - true/false<br>ID - id of the record created<br>message - some user-friendly message<br>or return data.</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>There is still no limit. However, such might be imposed upon reaching certain volumes of data exchange.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"25353905","collectionId":"64f3071e-392e-4a83-8396-dd24da34b8d6","publishedId":"2s8ZDbWLNa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-24T09:43:20.000Z"},"item":[{"name":"Find Order","item":[{"name":"Find Order by oid or awb","event":[{"listen":"test","script":{"id":"ccde1474-6faf-43fa-a462-7409392af33a","exec":[""],"type":"text/javascript"}}],"id":"55c9aa68-1e19-4290-af3f-c2ce6481a1cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://r.mercoria.com/v1/orders?order_id=16516","description":"<p>URL expect awb or oid (OrderID).</p>\n<ol>\n<li>AWB of the returned parcel provided by the ecommerce merchant after they agree with the end customer that there will be returned product(s). This parameter is used if the merchant has this data.</li>\n<li>Oid is the original order id from the ecommerce merchant (external for our platform). It is usually provided in a return form used by the end customer, where they should specify the order ID based on which they send back to the ecommerce merchant one or more of the ordered items in an identified parcel.</li>\n</ol>\n<p>In both cases, we return an array of orders because, theoretically, these fields are not unique for us.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","orders"],"host":["r","mercoria","com"],"query":[{"key":"order_id","value":"16516"},{"disabled":true,"key":"awb","value":"6193602"}],"variable":[]}},"response":[{"id":"e6203278-63d4-4c31-9f1c-db086fbfb342","name":"Find Order by order_id","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://r.mercoria.com/v1/orders?order_id=289828718","protocol":"https","host":["r","mercoria","com"],"path":["v1","orders"],"query":[{"key":"order_id","value":"289828718"},{"key":"awb","value":"61979199594","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 30 Nov 2022 16:12:56 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 289828718,\n        \"int_order_id\": 2360,\n        \"order_awb\": \"61979199594\",\n        \"receiver_id\": 1,\n        \"receiver_name\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"return_process_type\": 2,\n        \"total\": \"115.84\",\n        \"currency\": \"RON\",\n        \"payment_method\": \"onlinecardpayment\",\n        \"customer_note\": \"\",\n        \"shipping\": {\n            \"shipping_contact\": \"Nagy Tünde\",\n            \"shipping_phone\": \"0753925848\",\n            \"shipping_country\": \"RO\",\n            \"shipping_suburb\": \"Cluj\",\n            \"shipping_city\": \"Cluj-Napoca\",\n            \"shipping_street\": \"str. I. C. Brătianu, nr. 43, ap. 20\",\n            \"shipping_postal_code\": \"\",\n            \"shipping_locality_id\": \"5480\",\n            \"shipping_instructions\": \"\",\n            \"shipping_courier\": \"\",\n            \"shipping_method\": \"\",\n            \"shipping_courier_office\": \"\",\n            \"company\": \"Tünde Nagy\",\n            \"email\": \"\"\n        },\n        \"order_items\": [\n            {\n                \"order_items_id\": 2442,\n                \"sku\": \"ACCA-WCB6-S-CH\",\n                \"title\": \"Suport de lemn pentru sitcle de bere, din lemn, pentru 6 sticle, maro\",\n                \"quantity\": 1,\n                \"total\": \"84.03\",\n                \"vat\": \"20.00\"\n            }\n        ]\n    }\n]"},{"id":"e0ee4cc0-e906-4a5e-9675-22b314417767","name":"Find Order by awb","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://r.mercoria.com/v1/orders?awb=61979199594","protocol":"https","host":["r","mercoria","com"],"path":["v1","orders"],"query":[{"key":"order_id","value":"289828718","disabled":true},{"key":"awb","value":"61979199594"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 30 Nov 2022 16:33:53 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"order_id\": 289828718,\n        \"int_order_id\": 2360,\n        \"order_awb\": \"61979199594\",\n        \"receiver_id\": 1,\n        \"receiver_name\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"return_process_type\": 2,\n        \"total\": \"115.84\",\n        \"currency\": \"RON\",\n        \"payment_method\": \"onlinecardpayment\",\n        \"customer_note\": \"\",\n        \"shipping\": {\n            \"shipping_contact\": \"Nagy Tünde\",\n            \"shipping_phone\": \"0753925848\",\n            \"shipping_country\": \"RO\",\n            \"shipping_suburb\": \"Cluj\",\n            \"shipping_city\": \"Cluj-Napoca\",\n            \"shipping_street\": \"str. I. C. Brătianu, nr. 43, ap. 20\",\n            \"shipping_postal_code\": \"\",\n            \"shipping_locality_id\": \"5480\",\n            \"shipping_instructions\": \"\",\n            \"shipping_courier\": \"\",\n            \"shipping_method\": \"\",\n            \"shipping_courier_office\": \"\",\n            \"company\": \"Tünde Nagy\",\n            \"email\": \"\"\n        },\n        \"order_items\": [\n            {\n                \"order_items_id\": 2442,\n                \"sku\": \"ACCA-WCB6-S-CH\",\n                \"title\": \"Suport de lemn pentru sitcle de bere, din lemn, pentru 6 sticle, maro\",\n                \"quantity\": 1,\n                \"total\": \"84.03\",\n                \"vat\": \"20.00\"\n            }\n        ]\n    }\n]"}],"_postman_id":"55c9aa68-1e19-4290-af3f-c2ce6481a1cd"}],"id":"c92cab50-4638-4b2c-a83d-5176cbf08d34","_postman_id":"c92cab50-4638-4b2c-a83d-5176cbf08d34","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}}},{"name":"Return","item":[{"name":"Create Return","id":"3580304f-d682-45a3-86fb-9c64799755cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"int_order_id\": 1913,\r\n    \"return_awb\":\"147258369\",\r\n    \"info_id\":1,\r\n    \"returned_items\": [\r\n        {\r\n            \"order_item_id\": 1759,\r\n            \"qty\": 1,\r\n            \"status_id\": 1\r\n        },\r\n        {\r\n            \"order_item_id\": 1760,\r\n            \"qty\": 1,\r\n            \"status_id\": 2\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns","description":"<p>To create a new return the shipping return center must post JSON with:</p>\n<p><strong>int_order_id</strong> - id is internal for Mercoria for any specific order that we send with order details;<br /><strong>return_awb</strong> - last used AWB from a client if the return can stay in this package (and this will stay visible) or a self-generated number that the SRC will print and place on the consolidated Master box (a.k.a. Mbox). This is required for easier and more accurate processing of the master box from the RRC.<br /><strong>info_id</strong> - general info for return: 1-normal, 2-damaged, 3-partial</p>\n<p><strong>returned_items</strong> - an array for return items<br /><strong>order_item_id</strong> - our internal id (from order details)<br /><strong>qty</strong> - quantity<br /><strong>status_id</strong> - 1-ok, 2-damaged</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","returns"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"9a776915-7be3-4999-a8ec-df4d35e4a88b","name":"Create Return","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"int_order_id\": 987,\r\n    \"return_awb\":\"565656565656\",\r\n    \"info_id\":1,\r\n    \"returned_items\": [\r\n        {\r\n            \"order_item_id\": 409,\r\n            \"qty\": 1,\r\n            \"status_id\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 08:38:10 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"ID\":5,\"message\":\"Return created successfully with ID:5\"}"}],"_postman_id":"3580304f-d682-45a3-86fb-9c64799755cb"},{"name":"Resend return data to external API","id":"29b52013-b1ce-4eb4-bda7-da98aa0ff666","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"client_id","value":"3","type":"text"},{"key":"project_id","value":"3","type":"text"},{"key":"return_id","value":"2","type":"text"}]},"url":"https://r.mercoria.com/v1/resend-return-response","description":"<p>To create a new return the shipping return center must post JSON with:</p>\n<p><strong>int_order_id</strong> - id is internal for Mercoria for any specific order that we send with order details;<br /><strong>return_awb</strong> - last used AWB from a client if the return can stay in this package (and this will stay visible) or a self-generated number that the SRC will print and place on the consolidated Master box (a.k.a. Mbox). This is required for easier and more accurate processing of the master box from the RRC.<br /><strong>info_id</strong> - general info for return: 1-normal, 2-damaged, 3-partial</p>\n<p><strong>returned_items</strong> - an array for return items<br /><strong>order_item_id</strong> - our internal id (from order details)<br /><strong>qty</strong> - quantity<br /><strong>status_id</strong> - 1-ok, 2-damaged</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","resend-return-response"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"952cd400-cc48-4c0d-bbc4-65e5a25e59f4","name":"Create Return","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"int_order_id\": 987,\r\n    \"return_awb\":\"565656565656\",\r\n    \"info_id\":1,\r\n    \"returned_items\": [\r\n        {\r\n            \"order_item_id\": 409,\r\n            \"qty\": 1,\r\n            \"status_id\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 08:38:10 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"ID\":5,\"message\":\"Return created successfully with ID:5\"}"}],"_postman_id":"29b52013-b1ce-4eb4-bda7-da98aa0ff666"},{"name":"Update Return add Mbox","id":"9c02803c-df83-4f30-b157-babe9423512d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"mbox_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns/4","description":"<p>Used when a returned parcel is being put in a master box (Mbox) from the SRC.</p>\n<p><strong>mbox_is</strong> is required, you can get it from mbox listing for a specific RRC.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","returns","4"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"9e606c44-8fb5-412d-9d25-71d04c2e4b38","name":"Update Return add Mbox","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"mbox_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns/4"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:00:10 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"message\":\"Return updated successfully\"}"}],"_postman_id":"9c02803c-df83-4f30-b157-babe9423512d"},{"name":"Update Return by Receiver","id":"bf2e0291-3778-4457-935f-155b03b13d53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\": 5,\r\n    \"returned_items\": [\r\n        {\r\n            \"return_item_id\": 1,\r\n            \"qty\": 1,\r\n            \"status_id\": 1\r\n        },\r\n        {\r\n            \"return_item_id\": 2,\r\n            \"qty\": 0,\r\n            \"status_id\": 2,\r\n            \"note\":\"we can't find this product\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns/1","description":"<p>This is used when a return is being processed from a RRC.</p>\n<p>Return id specified in URL comes from Mbox content information when the RRC checks the Mbox AWB (or a unique identifier/ barcode is placed on it in case the consolidated shipment is a pallet and not Mbox).</p>\n<p><strong>status_id</strong> - general for return: 4-received ok, 5-missing items, 6-damaged/damaged items</p>\n<p><strong>returned_items</strong> - array for returned items<br /><strong>order_item_id</strong> - our internal id (from return details)<br /><strong>qty</strong> - quantity (can be different from initial)<br /><strong>status_id</strong> - 1-ok, 2-missing items, 3-damaged/damaged items<br /><strong>note</strong> - to specify some notes to merchant</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","returns","1"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"2ee2bbcf-715f-4f4e-831e-ad590178be01","name":"Update Return by Receiver","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\": 5,\r\n    \"returned_items\": [\r\n        {\r\n            \"return_item_id\": 1,\r\n            \"qty\": 1,\r\n            \"status_id\": 1,\r\n            \"note\":null\r\n        },\r\n        {\r\n            \"return_item_id\": 2,\r\n            \"qty\": 0,\r\n            \"status_id\": 2,\r\n            \"note\":\"we can't find this product\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/returns/1"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 09:50:22 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"message\":\"Return updated successfully\"}"}],"_postman_id":"bf2e0291-3778-4457-935f-155b03b13d53"},{"name":"Get return center all Returns","id":"008f5dfc-5b20-4c05-b379-58df969ed6bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/returns?all=","description":"<p>This method provides the SRC with all created and open (not placed in Mbox) returns.</p>\n<p>If all param is added a list of all returns will be provided.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","returns"],"host":["r","mercoria","com"],"query":[{"key":"all","value":""}],"variable":[]}},"response":[{"id":"5ecabe40-98ab-4e78-8c02-759d3a985eea","name":"Get return center open Returns /not set Master Box/","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/returns","protocol":"https","host":["r","mercoria","com"],"path":["v1","returns"],"query":[{"key":"all","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 03 Dec 2022 15:46:28 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"false\",\n    \"message\": \"No returns from this Return center.\"\n}"},{"id":"f3829343-32ff-41e9-b8b7-bec9b7c47178","name":"Get return center all Returns","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/returns?all=","protocol":"https","host":["r","mercoria","com"],"path":["v1","returns"],"query":[{"key":"all","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 03 Dec 2022 15:47:35 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 22,\n        \"receiver_id\": 1,\n        \"receiver_title\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"order_id\": 133,\n        \"return_awb\": \"123456\",\n        \"info_id\": 1,\n        \"status_id\": 1,\n        \"mbox_id\": 1,\n        \"created_at\": \"2022-03-06T20:13:49.000000Z\"\n    }\n]"}],"_postman_id":"008f5dfc-5b20-4c05-b379-58df969ed6bf"},{"name":"Get SRC return info","id":"d7d4655a-415e-4217-9209-4572af923529","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/returns/147258369","description":"<p>Get all return information for a particular AWB or another identifier generated and provided by the SRC.</p>\n<p>In the example, you can see:<br />\"id\": 3,<br />\"order_id\": 1913,<br />\"receiver_id\": 1,<br />\"return_awb\": \"147258369\",<br />\"info_id\": 1,<br />\"status_id\": 1,<br />\"mbox_id\": 1,<br />\"returned_items\": [ ...] - for each item return_item_id, title, sku, barcode, qty, status_id</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","returns","147258369"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"1b0e768e-075d-447f-bc60-1622f3f7bdc5","name":"Get return center Return info by return AWB","originalRequest":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/returns/147258369"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 04 Dec 2022 15:16:37 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"order_id\": 1913,\n        \"receiver_id\": 1,\n        \"return_awb\": \"147258369\",\n        \"info_id\": 1,\n        \"status_id\": 1,\n        \"mbox_id\": null,\n        \"created_at\": \"2022-12-04T15:16:31.000000Z\",\n        \"updated_at\": \"2022-12-04T15:16:31.000000Z\",\n        \"returned_items\": [\n            {\n                \"return_item_id\": 5,\n                \"title\": \"Halba cu capac, facuta manual din corn de bivol indian, negru, 25 cm, 600 ml\",\n                \"sku\": \"DBMU-OXMS-S-IN\",\n                \"barcode\": \"3453634192448\",\n                \"qty\": 1,\n                \"status_id\": 1\n            },\n            {\n                \"return_item_id\": 6,\n                \"title\": \"Halba cu capac, facuta manual din corn de bivol indian, negru, 18 cm, 350 ml\",\n                \"sku\": \"DBMU-OXM-S-IN\",\n                \"barcode\": \"3453634182616\",\n                \"qty\": 1,\n                \"status_id\": 2\n            }\n        ]\n    }\n]"}],"_postman_id":"d7d4655a-415e-4217-9209-4572af923529"}],"id":"6d75b051-054b-4809-b7a2-1af139de191b","_postman_id":"6d75b051-054b-4809-b7a2-1af139de191b","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}}},{"name":"Mastebox","item":[{"name":"Create master box (Mbox)","id":"a1583506-b3e4-491f-b9ab-bc6e5aa61c2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiver_id\":2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/mboxes","description":"<p>To create a new Mbox the SRC needs to specify only a <strong>receiver_id</strong>. This information is on order JSON and it is based on the order's initial fulfillment center (where parcels have been shipped from initially).</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mboxes"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"9f3303a1-9a75-4f87-a46b-9f92e0343237","name":"Create Mbox","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiver_id\":2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/mboxes"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:46:35 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"ID\":3,\"message\":\"Mbox saved successfully with ID:3\"}"}],"_postman_id":"a1583506-b3e4-491f-b9ab-bc6e5aa61c2e"},{"name":"Update Mbox","id":"4f315a52-4897-40be-b0c7-7404f393661d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\":3,\r\n    \"pallet_id\":1,\r\n    \"awb\":\"12123123123123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/mboxes/1","description":"<p>On Mbox update, the SRC has two options:</p>\n<ol>\n<li>print a self-generated barcode, put the barcode on the Mbox and place the Mbox on a pallet associated with an AWB</li>\n<li>generate an AWB and put it directly on the Mbox</li>\n</ol>\n<p>status_is is mandatory - 2 closed, 3-shipped<br />When Mbox final processing by the RRC is complete, the RRC sends the:<br />status_id - 4-received ok, 5-damaged, 6-missing returns</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mboxes","1"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"e9c2b782-1e1c-441e-a037-af32a2d78d7b","name":"Update Mbox add pallet_id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\":3,\r\n    \"pallet_id\":1,\r\n    \"awb\":\"12123123123123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/mboxes/1"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:04:40 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"message\":\"Mbox update successfully\"}"},{"id":"025fcb90-4dc0-418a-8a80-198a233947ca","name":"Update Mbox add AWB","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\":3,\r\n    \"awb\":\"12123123123123\",\r\n    \"awb_url\":\"https://aaa.bbb.ccc/\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/mboxes/1"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:05:48 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"message\":\"Mbox update successfully\"}"}],"_postman_id":"4f315a52-4897-40be-b0c7-7404f393661d"},{"name":"Get return center all Mboxes","id":"48e88350-cb25-4433-b4ff-840b304ed3a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/mboxes","description":"<p>Used to get information for open (created) Mboxes.</p>\n<p>In examples:</p>\n<ol>\n<li>get open mboxes for the specific RRC - <strong>receiver_id</strong></li>\n<li>get all open mboxes</li>\n<li>get all created by this SRC - <strong>all</strong></li>\n</ol>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mboxes"],"host":["r","mercoria","com"],"query":[{"disabled":true,"key":"all","value":""},{"disabled":true,"key":"receiver_id","value":"1"}],"variable":[]}},"response":[{"id":"cfc796bd-944b-49ec-ba53-67cbd8a0362d","name":"Get return center created (open) Mboxes for receiver_id","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/mboxes?receiver_id=1","protocol":"https","host":["r","mercoria","com"],"path":["v1","mboxes"],"query":[{"key":"all","value":"","disabled":true},{"key":"receiver_id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 04 Dec 2022 21:20:32 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"receiver_id\": 1,\n        \"receiver_title\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"status_id\": 1,\n        \"pallet_id\": null,\n        \"awb\": \"223344\",\n        \"awb_url\": null,\n        \"created_at\": \"2022-11-26T12:29:57.000000Z\",\n        \"updated_at\": \"2022-12-04T22:06:23.000000Z\"\n    }\n]"},{"id":"87efac5c-46e4-4046-af59-d66b86569ab0","name":"Get return center all created (open) Mboxes","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/mboxes","protocol":"https","host":["r","mercoria","com"],"path":["v1","mboxes"],"query":[{"key":"all","value":"","disabled":true},{"key":"receiver_id","value":"1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 04 Dec 2022 21:22:14 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"receiver_id\": 1,\n        \"receiver_title\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"status_id\": 1,\n        \"pallet_id\": null,\n        \"awb\": \"223344\",\n        \"awb_url\": null,\n        \"created_at\": \"2022-11-26T12:29:57.000000Z\",\n        \"updated_at\": \"2022-12-04T22:06:23.000000Z\"\n    }\n]"},{"id":"dfd995de-2549-4b32-a47e-aa7ed73403b4","name":"Get return center all Mboxes","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/mboxes?all","protocol":"https","host":["r","mercoria","com"],"path":["v1","mboxes"],"query":[{"key":"all","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 04 Dec 2022 09:34:10 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"receiver_id\": 1,\n        \"receiver_title\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"status_id\": 2,\n        \"pallet_id\": null,\n        \"awb\": null,\n        \"awb_url\": null,\n        \"created_at\": \"2022-11-26T12:29:57.000000Z\",\n        \"updated_at\": \"2022-12-03T21:37:39.000000Z\"\n    }\n]"}],"_postman_id":"48e88350-cb25-4433-b4ff-840b304ed3a2"},{"name":"Get return center Mbox info","id":"828c88ae-0dd8-4f96-b206-e422c4b52da9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/mboxes/223344","description":"<p>To get information about a particular Mbox, an AWB or a printed barcode placed on the Mbox must be used by the RRC.</p>\n<p>The platform returns a JSON array with information for Mboxes found. We always do checks and you can see info (or update it) for any parcel, Mbox or pallet only if you are the SRC or RRC, but theoretically, AWB or self-generated codes aren’t unique.</p>\n<p>In the returns array part of JSON, you will find all the required information to identify returns when Mbox processing starts.</p>\n<p><strong>return_id</strong> - from our platform, you will use it when processing the return<br /><strong>return_awb</strong> - AWB or printed code on the return<br /><strong>order_id</strong> - original order id from a merchant</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","mboxes","223344"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"ffceabf0-42f3-4e29-9487-2db278536a91","name":"Get return center Mbox info","originalRequest":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/mboxes/223344"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 04 Dec 2022 21:23:25 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"receiver_id\": 1,\n        \"receiver_title\": \"Metrica\",\n        \"receiver_country\": \"Bulgaria\",\n        \"receiver_country_code\": \"BG\",\n        \"status_id\": 1,\n        \"pallet_id\": null,\n        \"awb\": \"223344\",\n        \"awb_url\": null,\n        \"created_at\": \"2022-11-26T12:29:57.000000Z\",\n        \"updated_at\": \"2022-12-04T22:06:23.000000Z\",\n        \"returns\": [\n            {\n                \"return_id\": 1,\n                \"return_awb\": \"123456\",\n                \"order_id\": 133,\n                \"status_id\": 1,\n                \"updated_at\": \"2022-12-03T16:38:11.000000Z\"\n            }\n        ]\n    }\n]"}],"_postman_id":"828c88ae-0dd8-4f96-b206-e422c4b52da9"}],"id":"d5135b15-8c26-46d5-b9e2-554f5b2e36e3","_postman_id":"d5135b15-8c26-46d5-b9e2-554f5b2e36e3","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}}},{"name":"Pallet","item":[{"name":"Create Pallet","id":"bb647966-e78e-4b30-ac29-75266822ea02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiver_id\":2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/pallets","description":"<p>To create a new pallet the SRC that ships the Mbox to a RRC needs to specify only a receiver_id. This information is provided by the order JSON and it is based on the order's initial fulfillment center (where the parcel has been shipped from initially). Alternatively, it is based on the already prepared Mbox for the same RRC.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","pallets"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"eaba8b54-fee3-4d57-809a-9b461e522158","name":"Create Pallet","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"receiver_id\":2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/pallets"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:50:59 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"ID\":3,\"message\":\"Pallet saved successfully with ID:3\"}"}],"_postman_id":"bb647966-e78e-4b30-ac29-75266822ea02"},{"name":"Update Pallet","id":"35583771-4de8-4e13-bf2b-870d47e79513","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\":3,\r\n    \"awb\":\"12123123123123\",\r\n    \"awb_url\":\"https://aaa.bbb.ccc/\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/pallets/1","description":"<p>Upon updating a pallet, the SRC generates an AWB and reports</p>\n<ol>\n<li>status_id - 2 closed, 3-shipped</li>\n<li>AWB and/or awb_url (optional)</li>\n</ol>\n<p>When Pallet is processed, the RRC reports<br /><strong>status_id</strong> - 4-received ok, 5-damaged, 6-missing mboxes</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","pallets","1"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"b1574572-cea0-48c7-a417-382dee506aea","name":"Update Pallet","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"status_id\":3,\r\n    \"awb\":\"123456\",\r\n    \"awb_url\":\"https://aaa.bbb.ccc/\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://r.mercoria.com/v1/pallets/1"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 21:45:36 GMT"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"status\":true,\"message\":\"Pallet update successfully\"}"}],"_postman_id":"35583771-4de8-4e13-bf2b-870d47e79513"},{"name":"Get all pallets for SRC","id":"444328e3-6502-4b79-aacb-ae5aa790b7f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/pallets?receiver_id=2","description":"<p>Used to get information for open (created) pallets by the SRC.<br />In examples:</p>\n<ol>\n<li>get open pallets for the specific RRC - receiver_id</li>\n<li>get all open pallets</li>\n<li>get all pallets created by the SRC - all</li>\n</ol>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","pallets"],"host":["r","mercoria","com"],"query":[{"disabled":true,"key":"all","value":""},{"key":"receiver_id","value":"2"}],"variable":[]}},"response":[{"id":"9f0afe2b-1a1a-42e6-8eec-9e879488c8dd","name":"Get return center all created (open) Pallets","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/pallets","protocol":"https","host":["r","mercoria","com"],"path":["v1","pallets"],"query":[{"key":"all","value":null,"type":"text","disabled":true},{"key":"receiver_id","value":"2","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:43:19 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"false\",\n    \"message\": \"No created (open) Palletes.\"\n}"},{"id":"20bd3a68-5482-400f-a7b3-5e67a521f58a","name":"Get return center all Pallets","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/pallets?all=","protocol":"https","host":["r","mercoria","com"],"path":["v1","pallets"],"query":[{"key":"all","value":"","type":"text"},{"key":"receiver_id","value":"2","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:44:08 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"receiver_id\": 2,\n        \"receiver_title\": \"Test\",\n        \"receiver_country\": \"Romania\",\n        \"receiver_country_code\": \"RO\",\n        \"status_id\": 2,\n        \"awb\": \"1234567\",\n        \"awb_url\": \"https://www.dir.bg\",\n        \"created_at\": \"2022-11-27T17:09:20.000000Z\",\n        \"updated_at\": \"2022-11-27T17:41:40.000000Z\"\n    }\n]"},{"id":"56665358-1cc4-4c3d-a483-32d971a6d163","name":"Get return center all Pallets for specific receiver","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://r.mercoria.com/v1/pallets?receiver_id=2","protocol":"https","host":["r","mercoria","com"],"path":["v1","pallets"],"query":[{"key":"all","value":"","type":"text","disabled":true},{"key":"receiver_id","value":"2","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 10:44:37 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"false\",\n    \"message\": \"No created (open) Palletes.\"\n}"}],"_postman_id":"444328e3-6502-4b79-aacb-ae5aa790b7f5"},{"name":"Get SRC all created (open) pallets","id":"4ed99697-0ac8-4f8d-991b-3dd25d53ac2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/pallets/12123123123123","description":"<p>To get pallet information the AWB of the pallet must be used.<br />The platform returns a JSON array with information for found pallets.<br />In the mboxes array part of JSON, you will find all the required information to identify an Mbox when Mbox processing starts.<br /><strong>mbox_id</strong> - from our platform, you will use it when processing the mbox<br /><strong>mbox_awb</strong> - AWB or printed code on the Mbox will be used to get Mbox content information</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","pallets","12123123123123"],"host":["r","mercoria","com"],"query":[],"variable":[]}},"response":[{"id":"0b261bd5-801f-4344-bdaa-cd21d21c8b6e","name":"Get return center Pallet info by AWB","originalRequest":{"method":"GET","header":[],"url":"https://r.mercoria.com/v1/pallets/12123123123123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Mon, 05 Dec 2022 12:46:39 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"receiver_id\": 2,\n        \"receiver_title\": \"Test\",\n        \"receiver_country\": \"Romania\",\n        \"receiver_country_code\": \"RO\",\n        \"status_id\": 2,\n        \"awb\": \"12123123123123\",\n        \"awb_url\": \"https://aaa.bbb.ccc/\",\n        \"created_at\": \"2022-11-27T17:09:20.000000Z\",\n        \"updated_at\": \"2022-12-05T13:22:31.000000Z\",\n        \"mboxes\": [\n            {\n                \"mbox_id\": 2,\n                \"mbox_awb\": \"121212\",\n                \"status_id\": 3,\n                \"updated_at\": \"2022-12-05T13:45:31.000000Z\"\n            },\n            {\n                \"mbox_id\": 3,\n                \"mbox_awb\": \"131313\",\n                \"status_id\": 3,\n                \"updated_at\": \"2022-12-05T13:45:32.000000Z\"\n            }\n        ]\n    }\n]"}],"_postman_id":"4ed99697-0ac8-4f8d-991b-3dd25d53ac2b"}],"id":"ae630c61-a7cf-4479-8bc1-286050c08815","_postman_id":"ae630c61-a7cf-4479-8bc1-286050c08815","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"64f3071e-392e-4a83-8396-dd24da34b8d6","id":"64f3071e-392e-4a83-8396-dd24da34b8d6","name":"Merkana - returns processing API v1","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-token"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"5fd67fd6-b4f5-4966-9b4c-c94c7451f529","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cd139757-b501-4f13-9cfd-149af5721ba6","type":"text/javascript","exec":[""]}}]}