{"info":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","description":"<html><head></head><body><p>This documentation exposes a collection of APIs that can be used by sellers to integrate with the services offered by Melonn.</p>\n<blockquote>\n<p>🚧 This documentation is under construction, if you need to find more information you can check it out at <a href=\"https://melonn.notion.site/Integraciones-c61249d272b6450b82422476854b96b7\">learn with Melonn</a> </p>\n</blockquote>\n<h1 id=\"overview\">✨ Overview</h1>\n<p>This is your complete guide to integrating with Melonn’s fulfillment platform.<br>You will find:</p>\n<ul>\n<li><p>A detailed description of the <strong>available functionalities</strong>, related with order creation, products, inventory, shipping tracking and some others.</p>\n</li>\n<li><p>An overview of the <strong>business flows</strong> supported by the API.</p>\n</li>\n<li><p>The full list of <strong>webhooks and endpoints with request/response examples</strong>, designed to help you get started quickly.<br>  Our goal is to provide you with everything you need to build a smooth, secure, and scalable integration between your systems and Melonn.</p>\n</li>\n</ul>\n<blockquote>\n<p>🚧 We currently cover topics related to Sales Orders, Buyer Return Orders and Products (PIM) in this documentation, but we'll be adding more information about the actions you can perform with our API soon. </p>\n</blockquote>\n<h1 id=\"authentication\">🔐 Authentication</h1>\n<p>You must provide a token in each request that you must generate in <a href=\"https://admin.melonn.com\">Orbita</a> platform going to Integrations -&gt; <a href=\"https://admin.melonn.com/api-token\">API</a> and this must be sent in the headers of each request as <code>x-api-key</code></p>\n<blockquote>\n<p><em>‼️ All endpoints have a request limit of</em> <em><strong>1 request per second</strong></em>. <em>If you reach this limit then you will receive an status code:</em> <em><strong>429</strong></em> <em>and the request will be rejected.</em> </p>\n</blockquote>\n<h1 id=\"environments\">🧪 Environments</h1>\n<p>Before you start testing your integration with our API, you can use the sandbox environment provided by Melonn to experiment and test all the API functionalities without affecting real data from your business. Once you have tested that everything works fine, you just need to switch to the production environment.</p>\n<ol>\n<li><p>Keep <code>https://api.orbita.melonn.com</code> if you are using a production.</p>\n</li>\n<li><p>Use <code>https://api.orbita-qa.melonn.com</code> for sandboxes or test your API integrations.</p>\n</li>\n</ol>\n<p>The API domain should be used in the <code>{{api_url}}</code> variable.</p>\n<h1 id=\"concepts-and-definitions\">📚 Concepts and Definitions</h1>\n<p>📌 <strong>Bundle</strong>: Grouping multiple items into a single SKU. This allows you to set up your sales channel selling a single SKU but have your inventory unconsolidated in Melonn. It does not imply that Melonn has to consolidate these items in any particular way during packaging.</p>\n<p>📌 <strong>CEDIS</strong>: Melonn distribution centers, warehouses or storage facilities.</p>\n<p>📌 <strong>Shipping Method</strong>: Used to deliver an order from the warehouse to the final destination. Each shipping method determines the carrier, delivery time frame, and logistics conditions (e.g., same-day delivery, standard delivery, pickup, or express service).</p>\n<p>📌 <strong>Destination</strong>: These are your own stores, retailers or distributors to whom you will send the merchandise for B2B orders. Each of these may have one or more delivery points.</p>\n<p>📌 <strong>D2C Orders</strong>: D2C orders are those that are usually placed by an individual customer and usually have a low quantity of items.</p>\n<p>📌 <strong>KIT</strong>: It is a bundle that also includes some additional packaging preparation (placing items in a box or bag, closing with a sticker, heat shrinking).</p>\n<p>📌 <strong>VAS - Value added services</strong>: Additional services to the traditional fulfillment concepts of storage, preparation and transportation.</p>\n<h1 id=\"list-of-entities\">📋 List of entities</h1>\n<h2 id=\"warehouses\">Warehouses</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>CEDI</th>\n<th>Country</th>\n<th>Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Ciudad de Mexico #1</td>\n<td>MEX</td>\n<td>MEX-1</td>\n</tr>\n<tr>\n<td>Barranquilla #1 - Granadillo</td>\n<td>COL</td>\n<td>BAQ-1</td>\n</tr>\n<tr>\n<td>Bogotá #2 - Montevideo</td>\n<td>COL</td>\n<td>BOG-2</td>\n</tr>\n<tr>\n<td>Cali #2 - Cámbulos</td>\n<td>COL</td>\n<td>CAL-2</td>\n</tr>\n<tr>\n<td>Guadalajara #1</td>\n<td>MEX</td>\n<td>GDL-1</td>\n</tr>\n<tr>\n<td>Medellin #2 - Sabaneta Mayorca</td>\n<td>COL</td>\n<td>MED-2</td>\n</tr>\n<tr>\n<td>Medellin #3 - Itagüi</td>\n<td>COL</td>\n<td>MED-3</td>\n</tr>\n<tr>\n<td>SAS #1 - FP MED</td>\n<td>COL</td>\n<td>SAS-1</td>\n</tr>\n<tr>\n<td>SAS #2 - Armatura</td>\n<td>COL</td>\n<td>SAS-2</td>\n</tr>\n<tr>\n<td>Tultitlan #1</td>\n<td>MEX</td>\n<td>TLT-1</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"shipping-methods\">Shipping methods</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Mismo día hábil local COL</td>\n<td>FP-4</td>\n</tr>\n<tr>\n<td>Siguiente día hábil local</td>\n<td>FP-5</td>\n</tr>\n<tr>\n<td>Siguiente día hábil - 7am - 1pm</td>\n<td>FP-8</td>\n</tr>\n<tr>\n<td>Siguiente día hábil - 1pm - 9pm</td>\n<td>FP-9</td>\n</tr>\n<tr>\n<td>Recogida</td>\n<td>MEL-13</td>\n</tr>\n<tr>\n<td>Estándar (Local y Nacional)</td>\n<td>MEL-15</td>\n</tr>\n<tr>\n<td>Estándar Dermanat</td>\n<td>MEL-16</td>\n</tr>\n<tr>\n<td>Envío Premium</td>\n<td>MEL-17</td>\n</tr>\n<tr>\n<td>Externo</td>\n<td>EXT</td>\n</tr>\n<tr>\n<td>Recogida Express</td>\n<td>RAPPI</td>\n</tr>\n<tr>\n<td>Mismo día hábil local MX</td>\n<td>MEL-23</td>\n</tr>\n<tr>\n<td>Siguiente día hábil local mediano</td>\n<td>FP-36</td>\n</tr>\n<tr>\n<td>FBA</td>\n<td>EXT-FBA</td>\n</tr>\n<tr>\n<td>MELI FULL</td>\n<td>EXT-MELI</td>\n</tr>\n<tr>\n<td>Envío dedicado</td>\n<td>SCHEDULED</td>\n</tr>\n<tr>\n<td>Recogida Alternativa</td>\n<td>MEL-44</td>\n</tr>\n<tr>\n<td>Recogida B2B</td>\n<td>MEL-45</td>\n</tr>\n<tr>\n<td>Recogida B2B Alternativa</td>\n<td>MEL-46</td>\n</tr>\n<tr>\n<td>Estándar (Local y Nacional) Alt 1 día</td>\n<td>MEL-47</td>\n</tr>\n<tr>\n<td>Estándar (Local y Nacional) Alt 2 días</td>\n<td>MEL-48</td>\n</tr>\n<tr>\n<td>Estándar B2B (Local y Nacional)</td>\n<td>MEL-49</td>\n</tr>\n<tr>\n<td>Estándar B2B (Local y Nacional) Alternativa</td>\n<td>MEL-50</td>\n</tr>\n<tr>\n<td>Estándar B2B (Local y Nacional) *</td>\n<td>MEL-51</td>\n</tr>\n<tr>\n<td>Estándar B2B (Local y Nacional) Alternativa *</td>\n<td>MEL-52</td>\n</tr>\n<tr>\n<td>Recogida B2B *</td>\n<td>MEL-53</td>\n</tr>\n<tr>\n<td>Recogida B2B Alternativa *</td>\n<td>MEL-54</td>\n</tr>\n<tr>\n<td>Externo + 1 Día Hábil</td>\n<td>EXT-1D</td>\n</tr>\n<tr>\n<td>Externo + 2 Días Hábiles</td>\n<td>EXT-2D</td>\n</tr>\n<tr>\n<td>Externo 1h</td>\n<td>EXT-1H</td>\n</tr>\n<tr>\n<td>Externo 2h</td>\n<td>EXT-2H</td>\n</tr>\n<tr>\n<td>Externo 3h</td>\n<td>EXT-3H</td>\n</tr>\n<tr>\n<td>Externo 4h</td>\n<td>EXT-4H</td>\n</tr>\n<tr>\n<td>Externo 5h</td>\n<td>EXT-5H</td>\n</tr>\n<tr>\n<td>Externo 6h</td>\n<td>EXT-6H</td>\n</tr>\n<tr>\n<td>Externo 7h</td>\n<td>EXT-7H</td>\n</tr>\n<tr>\n<td>Externo 8h</td>\n<td>EXT-8H</td>\n</tr>\n<tr>\n<td>Externo 9h</td>\n<td>EXT-9H</td>\n</tr>\n<tr>\n<td>Externo 10h</td>\n<td>EXT-10H</td>\n</tr>\n<tr>\n<td>Externo 11h</td>\n<td>EXT-11H</td>\n</tr>\n<tr>\n<td>Externo 12h</td>\n<td>EXT-12H</td>\n</tr>\n<tr>\n<td>Recogida B2B Express</td>\n<td>MEL-55</td>\n</tr>\n<tr>\n<td>Externo 13h</td>\n<td>EXT-13H</td>\n</tr>\n<tr>\n<td>Externo 14h</td>\n<td>EXT-14H</td>\n</tr>\n<tr>\n<td>Externo 15h</td>\n<td>EXT-15H</td>\n</tr>\n<tr>\n<td>Externo + 3 Días Hábiles</td>\n<td>EXT-3D</td>\n</tr>\n<tr>\n<td>Externo + 4 Días Hábiles</td>\n<td>EXT-4D</td>\n</tr>\n<tr>\n<td>Externo + 5 Días Hábiles</td>\n<td>EXT-5D</td>\n</tr>\n<tr>\n<td>B2B Cargo</td>\n<td>B2B-CARGO</td>\n</tr>\n<tr>\n<td>Estándar Low cost</td>\n<td>MEL-83</td>\n</tr>\n<tr>\n<td>Estándar Low cost Alt</td>\n<td>MEL-84</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"vas---value-added-services\">VAS - Value added services</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Gestión de orden de ingreso</td>\n<td>1</td>\n</tr>\n<tr>\n<td>Etiquetado de ítems - códigos de barras/QR</td>\n<td>2</td>\n</tr>\n<tr>\n<td>Evidencia fotográfica del empacado</td>\n<td>3</td>\n</tr>\n<tr>\n<td>Termosellado de ítems</td>\n<td>4</td>\n</tr>\n<tr>\n<td>Armado de kits</td>\n<td>5</td>\n</tr>\n<tr>\n<td>Detalle del contenido de cada paquete</td>\n<td>6</td>\n</tr>\n<tr>\n<td>Evidencia fotográfica de los paquetes finales</td>\n<td>7</td>\n</tr>\n<tr>\n<td>Incluir dimensiones y peso de paquetes</td>\n<td>8</td>\n</tr>\n<tr>\n<td>Detallar la cantidad de paquetes</td>\n<td>9</td>\n</tr>\n<tr>\n<td>Etiquetado de cada paquete</td>\n<td>10</td>\n</tr>\n<tr>\n<td>Agendamiento de cita para envío</td>\n<td>11</td>\n</tr>\n<tr>\n<td>Impresión de documentos para el envío</td>\n<td>12</td>\n</tr>\n<tr>\n<td>Embalaje de ítems frágiles</td>\n<td>13</td>\n</tr>\n<tr>\n<td>Empaque dirigido</td>\n<td>14</td>\n</tr>\n<tr>\n<td>Limpieza de etiquetas/stickers</td>\n<td>15</td>\n</tr>\n<tr>\n<td>Revisión control de calidad</td>\n<td>16</td>\n</tr>\n<tr>\n<td>Impresión de documentos (Con información operacional)</td>\n<td>17</td>\n</tr>\n<tr>\n<td>Detalle del contenido de cada paquete e impresión.</td>\n<td>18</td>\n</tr>\n<tr>\n<td>Retiro Material de empaque</td>\n<td>19</td>\n</tr>\n<tr>\n<td>Etiquetado de ítems - códigos de barras/QR enviados al CEDI</td>\n<td>20</td>\n</tr>\n</tbody>\n</table>\n</div><p>More details about VAS <a href=\"https://melonn.notion.site/Servicios-de-Valor-Agregado-VAS-para-las-rdenes-B2B-41b69c7e61b24d2687161748b66b1e3b\">here</a></p>\n<h2 id=\"official-destinations\">Official destinations</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>MELI FULL</td>\n<td>MEL-MELI-FULL</td>\n</tr>\n<tr>\n<td>Amazon FBA</td>\n<td>MEL-AMAZON-FBA</td>\n</tr>\n<tr>\n<td>Melonn MX</td>\n<td>MEL-MELONN-MX</td>\n</tr>\n<tr>\n<td>Melonn COL</td>\n<td>MEL-MELONN-COL</td>\n</tr>\n<tr>\n<td>MELI FULL COL</td>\n<td>MEL-MELI-FULL-COL</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"sell-order-states\">Sell Order States</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Received - valid</td>\n<td></td>\n</tr>\n<tr>\n<td>2</td>\n<td>All items reserved - ready for fulfillment</td>\n<td></td>\n</tr>\n<tr>\n<td>3</td>\n<td>Picking</td>\n<td></td>\n</tr>\n<tr>\n<td>4</td>\n<td>Picked</td>\n<td></td>\n</tr>\n<tr>\n<td>5</td>\n<td>Packed</td>\n<td></td>\n</tr>\n<tr>\n<td>6</td>\n<td>Picked-up by buyer</td>\n<td></td>\n</tr>\n<tr>\n<td>7</td>\n<td>Shipped - in transit</td>\n<td></td>\n</tr>\n<tr>\n<td>8</td>\n<td>Delivered to buyer</td>\n<td></td>\n</tr>\n<tr>\n<td>9</td>\n<td>Received - invalid fixable</td>\n<td></td>\n</tr>\n<tr>\n<td>10</td>\n<td>Fixed &amp; valid - to be processed</td>\n<td></td>\n</tr>\n<tr>\n<td>11</td>\n<td>Error - not able to process</td>\n<td></td>\n</tr>\n<tr>\n<td>12</td>\n<td>Processing Requested</td>\n<td></td>\n</tr>\n<tr>\n<td>13</td>\n<td>on stand by - not able to fulfil - no stock</td>\n<td></td>\n</tr>\n<tr>\n<td>15</td>\n<td>Canceled</td>\n<td></td>\n</tr>\n<tr>\n<td>17</td>\n<td>On Cancelation Process - to be unpacked &amp; relocated</td>\n<td></td>\n</tr>\n<tr>\n<td>18</td>\n<td>On Cancelation Process - to be received from courier</td>\n<td></td>\n</tr>\n<tr>\n<td>19</td>\n<td>In transit - Cancelation requested</td>\n<td></td>\n</tr>\n<tr>\n<td>20</td>\n<td>Delivery not posible</td>\n<td></td>\n</tr>\n<tr>\n<td>21</td>\n<td>on stand by - not able to fulfil - expired promises</td>\n<td></td>\n</tr>\n<tr>\n<td>22</td>\n<td>Packing</td>\n<td></td>\n</tr>\n<tr>\n<td>23</td>\n<td>Packed - on hold</td>\n<td></td>\n</tr>\n<tr>\n<td>24</td>\n<td>Prepared for dispatch</td>\n<td></td>\n</tr>\n<tr>\n<td>25</td>\n<td>Selected for dispatch preparation</td>\n<td></td>\n</tr>\n<tr>\n<td>26</td>\n<td>All items reserved - fulfillment on hold</td>\n<td></td>\n</tr>\n<tr>\n<td>27</td>\n<td>Pre Packing - Vas Pending</td>\n<td></td>\n</tr>\n<tr>\n<td>28</td>\n<td>Ready For Packing</td>\n<td></td>\n</tr>\n<tr>\n<td>29</td>\n<td>All items reserved - fulfillment on hold - ext. conditionals</td>\n<td></td>\n</tr>\n<tr>\n<td>30</td>\n<td>All items reserved - fulfillment on hold - int. conditionals</td>\n<td></td>\n</tr>\n<tr>\n<td>31</td>\n<td>on stand by - not able to fulfil - SM restriction</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"sell-order-promise-info\">Sell Order Promise Info</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>promise_source</td>\n<td>String (enum)  <br>MELONN/EXTERNAL</td>\n<td>Source of the promise information</td>\n</tr>\n<tr>\n<td>external_promise_info</td>\n<td>Object (JSON)</td>\n<td>External promise information from third-party systems</td>\n</tr>\n<tr>\n<td>pack_ready_to_sort_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for pack ready to sort</td>\n</tr>\n<tr>\n<td>pack_ready_to_sort_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for pack ready to sort</td>\n</tr>\n<tr>\n<td>pack_ready_to_sort_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for pack ready to sort promise</td>\n</tr>\n<tr>\n<td>pack_ready_to_sort_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when pack was ready to sort</td>\n</tr>\n<tr>\n<td>unpack_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for unpacking</td>\n</tr>\n<tr>\n<td>unpack_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for unpacking</td>\n</tr>\n<tr>\n<td>unpack_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for unpack promise</td>\n</tr>\n<tr>\n<td>unpack_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when unpacked</td>\n</tr>\n<tr>\n<td>unpack_cancelation_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for unpack cancellation</td>\n</tr>\n<tr>\n<td>unpack_cancelation_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for unpack cancellation</td>\n</tr>\n<tr>\n<td>unpack_cancelation_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for unpack cancellation promise</td>\n</tr>\n<tr>\n<td>unpack_cancelation_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when unpack was cancelled</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"sell-order-attempt\">Sell Order Attempt</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>current</td>\n<td>Boolean</td>\n<td>Indicates if this is the current attempt</td>\n</tr>\n<tr>\n<td>ready_to_ship_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for ready to ship</td>\n</tr>\n<tr>\n<td>ready_to_ship_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for ready to ship</td>\n</tr>\n<tr>\n<td>ready_to_ship_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for ready to ship promise</td>\n</tr>\n<tr>\n<td>ready_to_ship_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when ready to ship</td>\n</tr>\n<tr>\n<td>ship_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for shipping</td>\n</tr>\n<tr>\n<td>ship_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for shipping</td>\n</tr>\n<tr>\n<td>ship_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for ship promise</td>\n</tr>\n<tr>\n<td>ship_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when shipped</td>\n</tr>\n<tr>\n<td>delivery_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for delivery</td>\n</tr>\n<tr>\n<td>delivery_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for delivery</td>\n</tr>\n<tr>\n<td>delivery_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for delivery promise</td>\n</tr>\n<tr>\n<td>delivery_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when delivered</td>\n</tr>\n<tr>\n<td>ready_to_pickup_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for ready to pickup</td>\n</tr>\n<tr>\n<td>ready_to_pickup_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for ready to pickup</td>\n</tr>\n<tr>\n<td>ready_to_pickup_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for ready to pickup promise</td>\n</tr>\n<tr>\n<td>ready_to_pickup_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when ready to pickup</td>\n</tr>\n<tr>\n<td>pickup_promise_min</td>\n<td>String (ISO 8601)</td>\n<td>Minimum promise date for pickup</td>\n</tr>\n<tr>\n<td>pickup_promise_max</td>\n<td>String (ISO 8601)</td>\n<td>Maximum promise date for pickup</td>\n</tr>\n<tr>\n<td>pickup_promise_processing_date</td>\n<td>String (ISO 8601)</td>\n<td>Processing date for pickup promise</td>\n</tr>\n<tr>\n<td>pickup_timestamp</td>\n<td>String (ISO 8601)</td>\n<td>Actual timestamp when picked up</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"✨ Overview","slug":"overview"},{"content":"🔐 Authentication","slug":"authentication"},{"content":"🧪 Environments","slug":"environments"},{"content":"📚 Concepts and Definitions","slug":"concepts-and-definitions"},{"content":"📋 List of entities","slug":"list-of-entities"},{"content":"Sell Order States","slug":"sell-order-states"}],"owner":"43252198","collectionId":"e5baeb02-7809-432c-bbed-66b8b2504325","publishedId":"2sAYkEqzk3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-19T14:57:56.000Z"},"item":[{"name":"Sell orders","item":[{"name":"VAS","item":[{"name":"Add vas to order","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"684603b6-3d87-46c5-8277-b4705a013abc"}}],"id":"90e28561-33a1-48f7-a0f8-d0d695c8fb92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"code\": 2,\n        \"files\": [\"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\"],\n        \"comments\": [\"Testing RC\"],\n        \"seller_products_skus\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders/:external_order_number/vas","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders",":external_order_number","vas"],"host":["{{api_url}}"],"query":[],"variable":[{"id":"156749aa-2454-4e34-8ad6-a2cde6a9ff13","type":"any","value":"TESTING-PUBLIC-API-PAO-IMG","key":"external_order_number"}]}},"response":[{"id":"10b2e293-fe53-4441-a392-ae9ea5cc5494","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"code\": 2,\n        \"files\": [\"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\"],\n        \"comments\": [],\n        \"seller_products_skus\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/vas","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","vas"],"variable":[{"key":"external_order_number","value":"TESTING-PUBLIC-API-PAO-IMG"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Dec 2024 20:31:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"232a47f3-5f08-4457-be9a-9d8c8713b9a0"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"09219e89-292f-480b-8d50-fdc64f3bdc5a"},{"key":"x-amzn-Remapped-Content-Length","value":"36"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Wed, 18 Dec 2024 20:31:04 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"DASZMGKFoAMEFpQ="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"36"},{"key":"X-Amzn-Trace-Id","value":"Root=1-67633107-059120c3277672810fb09054"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Wed, 18 Dec 2024 20:31:04 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"VAS added successfully\"\n}"},{"id":"ff71a3b5-9e0a-4e4c-a98f-e3c9fc6e58bb","name":"Bad request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sell_order_vas\": [\n        {\n            \"code\": 4,\n            \"files\": [\n                \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\"\n            ],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/vas","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","vas"],"variable":[{"key":"external_order_number","value":"TESTING-PUBLIC-API_0192"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Dec 2024 18:17:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"355f17d7-cc93-4920-b00d-143ef0ce8038"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"a1f0c7bd-f126-4e60-bbd0-36709919e8af"},{"key":"x-amzn-Remapped-Content-Length","value":"44"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Fri, 13 Dec 2024 18:17:17 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"CvgGrF4lIAMEXfQ="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"44"},{"key":"X-Amzn-Trace-Id","value":"Root=1-675c7a2a-78f8702c439ed12a447c7a4b"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Fri, 13 Dec 2024 18:17:17 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The order already have the VAS\"\n}"}],"_postman_id":"90e28561-33a1-48f7-a0f8-d0d695c8fb92"},{"name":"Add files to VAS","id":"ac363720-ba21-43e6-80f6-64ad2dab843e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\"\n]","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders/:external_order_number/vas/:vas_code/files","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders",":external_order_number","vas",":vas_code","files"],"host":["{{api_url}}"],"query":[],"variable":[{"id":"4d4a4f14-0e76-4cca-a86a-01400a2762a3","type":"any","value":"TEST_BUSINESS_RULES_0001","key":"external_order_number"},{"id":"842786fb-f290-48d2-82e7-a2213c6f7192","type":"any","value":"2","key":"vas_code"}]}},"response":[{"id":"2bb472bf-8bbe-49a9-90c4-2347f7349e5a","name":"Add files to VAS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/vas/:vas_code/files","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","vas",":vas_code","files"],"variable":[{"key":"external_order_number","value":"TEST_BUSINESS_RULES_0001"},{"key":"vas_code","value":"2"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 19 Dec 2024 20:02:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"5d97a7ec-a6c8-4b5e-9cdf-378e5e5e299b"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"df186e36-d161-4330-88c8-2a5b5b14aba9"},{"key":"x-amzn-Remapped-Content-Length","value":"42"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Thu, 19 Dec 2024 20:02:44 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"DDhLDFgUoAMEGiw="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"42"},{"key":"X-Amzn-Trace-Id","value":"Root=1-67647bdf-3f39d3671225184730b6d529;Sampled=1;Lineage=1:744d1f37:0"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Thu, 19 Dec 2024 20:02:44 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"VAS files added successfully\"\n}"},{"id":"ec0c90a6-4a0d-45cb-8a3f-5b929e5f7063","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"x-melonn-context","value":"{  \"user\": {   \"role\": \"seller\", \"user_metadata\": { \"seller\": { \"id\": 70} }}}"}],"body":{"mode":"raw","raw":"{\n    \"files\": [\n        \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/vas/:vas_code/files","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","vas",":vas_code","files"],"variable":[{"key":"external_order_number","value":"TESTING-PUBLIC-API-PAO-IMG"},{"key":"vas_code","value":"2"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Dec 2024 22:06:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"94c4688d-4312-422b-b175-e8a498502fbf"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"53abd480-54f7-454e-9325-c84387868dfa"},{"key":"x-amzn-Remapped-Content-Length","value":"54"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Wed, 18 Dec 2024 22:06:46 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"DAgakGpxoAMERDA="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"54"},{"key":"X-Amzn-Trace-Id","value":"Root=1-67634776-43ef3fa03897e7843d485d08"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Wed, 18 Dec 2024 22:06:46 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The VAS is not associated with the order\"\n}"}],"_postman_id":"ac363720-ba21-43e6-80f6-64ad2dab843e"}],"id":"b705a9ea-d08f-4fcf-9740-43c66054699d","_postman_id":"b705a9ea-d08f-4fcf-9740-43c66054699d","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Create B2B order","id":"46e0dc4d-64e7-4994-83f0-636156567baf","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"TESTING-PUBLIC-API_0192\",\n    \"external_order_id\": \"TESTING-PUBLIC-API_0192\",\n    \"hold_fulfullment_after_processing\": true, // Optional, false by default\n    \"business\": {\n        \"id\": \"Testing-business-SC\",\n        \"delivery_location_id\": \"Testing-location-SC\"\n    },\n    \"warehouse_code\": \"MED-2\",\n    \"tags\": [\n        \"TESTING-RC\"\n    ],\n    \"shipping_method_code\": \"MEL-15\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 3\n        },\n        {\n            \"sku\": \"S0002\",\n            \"quantity\": 2\n        }\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"2\",\n            \"files\": [],\n            \"comments\": [\"Testing\"],\n            \"seller_products_skus\": [\n                \"S0001\"\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders","description":"<p>The creation of a B2B order is directly linked to the business property, once it is included in the body of the request certain fields will be required to satisfy the creation data.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{ \"business\": { \"id\": \"ID\", \"delivery_location_id\": \"ID\" } }\n\n</code></pre>\n<p>By including the <code>business</code> object in the body of your request we will immediately mark this order as B2B and set the <code>warehouse_code</code> field as required.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"270826f0-3d25-40d9-bd15-a2c5347d72e7","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"TESTING-PUBLIC-API_003\",\n    \"external_order_id\": \"TESTING-PUBLIC-API_003\",\n    \"business\": {\n        \"id\": \"6975422688\",\n        \"delivery_location_id\": \"7009239264\"\n    },\n    \"warehouse_code\": \"MED1\",\n    \"tags\": [\"TESTING-RC\"],\n    \"shipping_method_code\": \"MEL-15\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 2\n        },\n        {\n            \"sku\": \"S0002\",\n            \"quantity\": 1\n        }\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"2\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": [\n                \"S0001\"\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"99"},{"key":"Date","value":"Mon, 25 Nov 2024 20:50:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order created successfully\",\n    \"sell_order\": {\n        \"internal_order_number\": \"M1732567774501662\",\n        \"external_order_number\": \"TESTING-PUBLIC-API_003\",\n        \"external_order_id\": \"TESTING-PUBLIC-API_003\"\n    }\n}"},{"id":"6fbcfc62-101c-442c-a4ee-01be727f1ee0","name":"Invalid payload","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"EXTERNAL_NUMBER_001\",\n    \"external_order_id\": \"EXTERNAL_ID_001\",\n    \"business\": {\n        \"delivery_location_id\": \"BDL_EXTERNAL_ID\"\n    },\n    \"warehouse_code\": \"BOG-1\",\n    \"tags\": [\n        \"TAG_1\",\n        \"TAG_2\"\n    ],\n    \"shipping_method_code\": \"EXT-MELI\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 2\n        },\n        {\n            \"sku\": \"S0002\",\n            \"quantity\": 1\n        }\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"VAS_0001\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": [\n                \"S0001\"\n            ]\n        },\n        {\n            \"code\": \"VAS_0002\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        },\n        {\n            \"code\": \"VAS_0003\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"FST_ERR_VALIDATION\",\n    \"message\": \"Business id is required\"\n}"},{"id":"fedf6914-879e-4106-8e1f-5e7f85ce9015","name":"Resource not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"EXTERNAL_NUMBER_001\",\n    \"external_order_id\": \"EXTERNAL_ID_001\",\n    \"business\": {\n        \"id\": \"B_EXTERNAL_ID\",\n        \"delivery_location_id\": \"BDL_EXTERNAL_ID\"\n    },\n    \"warehouse_code\": \"BOG-1\",\n    \"tags\": [\n        \"TAG_1\",\n        \"TAG_2\"\n    ],\n    \"shipping_method_code\": \"EXT-MELI\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 2\n        },\n        {\n            \"sku\": \"S0002\",\n            \"quantity\": 1\n        }\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"VAS_0001\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": [\n                \"S0001\"\n            ]\n        },\n        {\n            \"code\": \"VAS_0002\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        },\n        {\n            \"code\": \"VAS_0003\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Business not found\"\n}"}],"_postman_id":"46e0dc4d-64e7-4994-83f0-636156567baf"},{"name":"Create D2C order","id":"baa2ceac-a631-42c0-9e62-2c9bb3381a9c","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n    \"external_order_id\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n    \"hold_fulfullment_after_processing\": true, // Optional, false by default\n    \"tags\": [\"Testing\"],\n    \"shipping_method_code\": \"FP-5\",\n    \"line_items\": [\n        {\n            \"sku\": \"3922057541989M\",\n            \"quantity\": 2\n        }\n    ],\n    \"shipping_info\": {\n        \"address_l1\": \"CRA 12 A # 145 A - 22\",\n        \"address_l2\": \"\",\n        \"city\": \"Bogotá\",\n        \"country\": \"Colombia\",\n        \"region\": \"Bogotá\",\n        \"full_name\": \"Auti test\",\n        \"phone_number\": \"+57-3046218155\"\n    },\n    \"buyer\": {\n        \"full_name\": \"User test\",\n        \"phone_number\": \"3045336866\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"891f05aa-8de9-4b85-82a3-49312d2e5cdd","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"EXTERNAL_NUMBER_001\",\n    \"external_order_id\": \"EXTERNAL_ID_001\",\n    \"tags\": [],\n    \"shipping_method_code\": \"MEL-15\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 2\n        }\n    ],\n    \"shipping_info\": {\n        \"address_l1\": \"CRA 12 A # 145 A - 22\",\n        \"city\": \"Bogotá\",\n        \"country\": \"Colombia\",\n        \"region\": \"Bogotá\",\n        \"full_name\": \"Auti test\",\n        \"phone_number\": \"+57-3046218155\"\n    },\n    \"buyer\": {\n        \"full_name\": \"User test\",\n        \"phone_number\": \"3045336866\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"99"},{"key":"Date","value":"Mon, 25 Nov 2024 22:12:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order created successfully\",\n    \"sell_order\": {\n        \"internal_order_number\": \"M1732572724531159\",\n        \"external_order_number\": \"EXTERNAL_NUMBER_001\",\n        \"external_order_id\": \"EXTERNAL_ID_001\"\n    }\n}"},{"id":"a6b15551-206b-485c-b484-3fa669d6645d","name":"Invalid payload","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"EXTERNAL_NUMBER_001\",\n    \"external_order_id\": \"EXTERNAL_ID_001\",\n    \"business\": {\n        \"delivery_location_id\": \"BDL_EXTERNAL_ID\"\n    },\n    \"warehouse_code\": \"BOG-1\",\n    \"tags\": [\n        \"TAG_1\",\n        \"TAG_2\"\n    ],\n    \"shipping_method_code\": \"EXT-MELI\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 2\n        },\n        {\n            \"sku\": \"S0002\",\n            \"quantity\": 1\n        }\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"VAS_0001\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": [\n                \"S0001\"\n            ]\n        },\n        {\n            \"code\": \"VAS_0002\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        },\n        {\n            \"code\": \"VAS_0003\",\n            \"files\": [],\n            \"comments\": [],\n            \"seller_products_skus\": []\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"FST_ERR_VALIDATION\",\n    \"message\": \"Business id is required\"\n}"},{"id":"53aeba3b-df4e-4372-a290-e1a84b4badb3","name":"Resource not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"EXTERNAL_NUMBER_001\",\n    \"external_order_id\": \"EXTERNAL_ID_001\",\n    \"tags\": [],\n    \"shipping_method_code\": \"EXT-MELI\",\n    \"line_items\": [\n        {\n            \"sku\": \"S0001\",\n            \"quantity\": 2\n        }\n    ],\n    \"shipping_info\": {\n        \"address_l1\": \"\",\n        \"city\": \"\",\n        \"country\": \"\",\n        \"region\": \"\",\n        \"full_name\": \"\",\n        \"phone_number\": \"\"\n    },\n    \"buyer\": {\n        \"full_name\": \"User test\",\n        \"phone_number\": \"3045336866\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Shipping method not found\"\n}"}],"_postman_id":"baa2ceac-a631-42c0-9e62-2c9bb3381a9c"},{"name":"Get D2C order","event":[{"listen":"prerequest","script":{"id":"80d89779-9d5b-47e4-b5e4-f1023816ed16","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"07437da9-abd9-4c3e-9600-a3ff1bc27f01","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/sell-orders/:external_order_number","description":"<h3 id=\"get-sell-order-details\">Get Sell Order Details</h3>\n<p>This endpoint retrieves the details of a sell order based on the external order number.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><code>external_order_number</code> (path): The external order number for which the details are to be retrieved.</p>\n</li>\n<li><p><code>fields</code> (query, optional): Comma-separated list of additional fields to include in the response. Available options:</p>\n<ul>\n<li><code>sell_order_promises</code>: Includes promise information and delivery attempts</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will contain the details of the sell order, including order information, buyer details, line items, shipping information, and optionally promise information when requested.</p>\n<h4 id=\"promise-information\">Promise Information</h4>\n<p>When <code>fields=sell_order_promises</code> is included in the request, the response will contain additional promise-related information:</p>\n<ul>\n<li><p><strong>sell_order_promise_info</strong>: Contains promise details including estimated delivery dates <a href=\"#list-of-entities\">More info</a></p>\n</li>\n<li><p><strong>sell_order_attempt</strong>: Contains information about delivery attempts and promises of delivered <a href=\"#list-of-entities\">More info</a></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders",":external_order_number"],"host":["{{api_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Optional field to include sell order promises information</p>\n","type":"text/plain"},"key":"fields","value":"sell_order_promises"}],"variable":[{"type":"any","value":"702-4774540-6683432","key":"external_order_number"}]}},"response":[{"id":"653d4f67-bc0f-4ed7-ad79-e2d592f4dd63","name":"Ok D2C","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/sell-orders/:external_order_number","host":["{{api_url}}"],"path":["sell-orders",":external_order_number"],"variable":[{"key":"external_order_number","value":"TESTING-PUBLIC-API_D2C_001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 Dec 2024 18:47:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"783"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"184bd288-c898-4136-997c-4fd953b650c0"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"3f394993-f0ec-4bff-b8ec-add759609769"},{"key":"x-amzn-Remapped-Content-Length","value":"783"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Wed, 18 Dec 2024 18:47:27 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"DADN7FBGoAMEAfA="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"783"},{"key":"X-Amzn-Trace-Id","value":"Root=1-676318bf-12dce8d6784fe29042828743"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Wed, 18 Dec 2024 18:47:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"buyer\": {\n        \"email\": \"krrskl@melonn.com\",\n        \"full_name\": \"Testing\",\n        \"phone_number\": \"+57-3045336862\"\n    },\n    \"id\": 1732571663793215,\n    \"internal_order_number\": \"M1732571663793215\",\n    \"external_order_id\": null,\n    \"external_order_number\": \"TESTING-PUBLIC-API_D2C_001\",\n    \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1732571663793215\",\n    \"payment_on_delivery_amount\": null,\n    \"is_b2b\": false,\n    \"creation_date\": \"2024-11-25T21:54:25.000Z\",\n    \"tags\": [\n        \"TESTING-RC\"\n    ],\n    \"sell_order_state\": {\n        \"id\": 2,\n        \"name\": \"All items reserved - ready for fulfillment\"\n    },\n    \"line_items\": [\n        {\n            \"quantity\": 1,\n            \"sku\": \"S0001\"\n        }\n    ],\n    \"shipping_method\": {\n        \"code\": \"MEL-15\",\n        \"name\": \"Estándar (Local y Nacional)\"\n    },\n    \"warehouse\": {\n        \"address_line1\": \"Calle 55 sur # 44-76\",\n        \"address_line2\": null,\n        \"city\": \"Sabaneta\",\n        \"country\": \"Colombia\",\n        \"postal_code_id\": 1,\n        \"region\": \"ANTIOQUIA\"\n    }\n}"},{"id":"aa37b49b-e125-469d-afa9-c589d4c7e9cd","name":"Resource not found","originalRequest":{"method":"GET","header":[{"key":"x-melonn-context","value":"{ \"user\": { \"email\": \"juan.camargo@melonn.com\", \"role\": \"seller\", \"user_id\": 342, \"user_metadata\": { \"seller\": { \"id\": 71 } } } }"}],"url":{"raw":"{{api_url}}/sell-orders/:external_order_number","host":["{{api_url}}"],"path":["sell-orders",":external_order_number"],"variable":[{"key":"external_order_number","value":"EST_ADDRESS_L2_01"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"66"},{"key":"Date","value":"Tue, 03 Dec 2024 03:53:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order not found\"\n}"}],"_postman_id":"07437da9-abd9-4c3e-9600-a3ff1bc27f01"},{"name":"Get B2B order","id":"30a4f228-f8e5-4ad5-ac9a-f14ea922563b","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/sell-orders/:external_order_number","description":"<h3 id=\"get-sell-order-details\">Get Sell Order Details</h3>\n<p>This endpoint retrieves the details of a sell order based on the external order number.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><code>external_order_number</code> (path): The external order number for which the details are to be retrieved.</p>\n</li>\n<li><p><code>fields</code> (query, optional): Comma-separated list of additional fields to include in the response. Available options:</p>\n<ul>\n<li><code>sell_order_promises</code>: Includes promise information and delivery attempts</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will contain the details of the sell order, including order information, buyer details, line items, shipping information, and optionally promise information when requested.</p>\n<h4 id=\"promise-information\">Promise Information</h4>\n<p>When <code>fields=sell_order_promises</code> is included in the request, the response will contain additional promise-related information:</p>\n<ul>\n<li><p><strong>sell_order_promise_info</strong>: Contains promise details including estimated delivery dates <a href=\"#list-of-entities\">More info</a></p>\n</li>\n<li><p><strong>sell_order_attempt</strong>: Contains information about delivery attempts and promises of delivered <a href=\"#list-of-entities\">More info</a></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders",":external_order_number"],"host":["{{api_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Optional field to include sell order promises information</p>\n","type":"text/plain"},"key":"fields","value":"sell_order_promises"}],"variable":[{"id":"1b992a4b-8982-4483-9d2f-23e6b04bfa67","type":"any","value":"702-4774540-6683432","key":"external_order_number"}]}},"response":[{"id":"bd6d45d8-2c21-47e2-baac-531316f1f969","name":"Ok B2B","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/sell-orders/:external_order_number","host":["{{api_url}}"],"path":["sell-orders",":external_order_number"],"variable":[{"key":"external_order_number","value":"EST_ADDRESS_L2_01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"927"},{"key":"Date","value":"Tue, 03 Dec 2024 03:39:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"business\": {\n        \"external_id\": \"167\",\n        \"name\": \"Comprador B2B 01\",\n        \"business_delivery_location\": {\n            \"id\": 222,\n            \"name\": \"Edficio Cortezza\"\n        }\n    },\n    \"buyer\": {\n        \"email\": \"brayan@melonn.com\",\n        \"full_name\": \"Comprador B2B 01\",\n        \"phone_number\": \"+573007444471\"\n    },\n    \"id\": 1734382854186519,\n    \"internal_order_number\": \"M1734382854186519\",\n    \"external_order_id\": \"TESTING-PUBLIC-API-PAO-IMG\",\n    \"external_order_number\": \"TESTING-PUBLIC-API-PAO-IMG\",\n    \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1734382854186519\",\n    \"payment_on_delivery_amount\": 0,\n    \"is_b2b\": true,\n    \"creation_date\": \"2024-12-16T21:00:54.000Z\",\n    \"tags\": [\n        \"TESTING-RC\"\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"10\",\n            \"name\": \"Etiquetado de cada paquete.\",\n            \"comments\": [],\n            \"files\": []\n        }\n    ],\n    \"sell_order_state\": {\n        \"id\": 26,\n        \"name\": \"All items reserved - fulfillment on hold\"\n    },\n    \"line_items\": [\n        {\n            \"quantity\": 1,\n            \"sku\": \"S0001\"\n        }\n    ],\n    \"shipping_method\": {\n        \"code\": \"MEL-13\",\n        \"name\": \"Recogida\"\n    },\n    \"warehouse\": {\n        \"address_line1\": \"Calle 55 sur # 44-76\",\n        \"address_line2\": null,\n        \"city\": \"Sabaneta\",\n        \"country\": \"Colombia\",\n        \"postal_code_id\": 1,\n        \"region\": \"ANTIOQUIA\"\n    }\n}"},{"id":"dc49d89d-ec33-4379-9ecf-9573a31aa1d2","name":"Resource not found","originalRequest":{"method":"GET","header":[{"key":"x-melonn-context","value":"{ \"user\": { \"email\": \"juan.camargo@melonn.com\", \"role\": \"seller\", \"user_id\": 342, \"user_metadata\": { \"seller\": { \"id\": 71 } } } }"}],"url":{"raw":"{{api_url}}/sell-orders/:external_order_number","host":["{{api_url}}"],"path":["sell-orders",":external_order_number"],"variable":[{"key":"external_order_number","value":"EST_ADDRESS_L2_01"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"66"},{"key":"Date","value":"Tue, 03 Dec 2024 03:53:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order not found\"\n}"},{"id":"c2947b28-9516-4eaa-9a95-495f861261bf","name":"Ok B2B with Promises","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/sell-orders/:external_order_number?fields=sell_order_promises","host":["{{api_url}}"],"path":["sell-orders",":external_order_number"],"query":[{"key":"fields","value":"sell_order_promises"}],"variable":[{"key":"external_order_number","value":"TEST_BUSINESS_RULES_0001"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"business\": {\n        \"external_id\": \"167\",\n        \"name\": \"Comprador B2B 01\",\n        \"business_delivery_location\": {\n            \"id\": 222,\n            \"name\": \"Edficio Cortezza\"\n        }\n    },\n    \"buyer\": {\n        \"email\": \"brayan@melonn.com\",\n        \"full_name\": \"Comprador B2B 01\",\n        \"phone_number\": \"+573007444471\"\n    },\n    \"id\": 1734382854186519,\n    \"internal_order_number\": \"M1734382854186519\",\n    \"external_order_id\": \"TEST_PROMISES_001\",\n    \"external_order_number\": \"TEST_PROMISES_001\",\n    \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1734382854186519\",\n    \"payment_on_delivery_amount\": 0,\n    \"is_b2b\": true,\n    \"creation_date\": \"2025-10-01T21:00:54.000Z\",\n    \"tags\": [\n        \"TESTING-RC\"\n    ],\n    \"sell_order_vas\": [\n        {\n            \"code\": \"10\",\n            \"name\": \"Etiquetado de cada paquete.\",\n            \"comments\": [],\n            \"files\": []\n        }\n    ],\n    \"sell_order_state\": {\n        \"id\": 26,\n        \"name\": \"All items reserved - fulfillment on hold\"\n    },\n    \"line_items\": [\n        {\n            \"quantity\": 1,\n            \"sku\": \"S0001\"\n        }\n    ],\n    \"shipping_method\": {\n        \"code\": \"MEL-13\",\n        \"name\": \"Recogida\"\n    },\n    \"warehouse\": {\n        \"address_line1\": \"Calle 55 sur # 44-76\",\n        \"address_line2\": null,\n        \"city\": \"Sabaneta\",\n        \"country\": \"Colombia\",\n        \"postal_code_id\": 1,\n        \"region\": \"ANTIOQUIA\"\n    },\n    \"sell_order_promise_info\": {\n        \"promise_source\": \"MELONN\",\n        \"external_promise_info\": {\n            \"promise_type\": \"DELIVERY\",\n            \"promise_value\": {\n                \"max\": \"2025-05-20 01:30:00\"\n            }\n        },\n        \"pack_ready_to_sort_promise_min\": \"2025-12-17T08:00:00.000Z\",\n        \"pack_ready_to_sort_promise_max\": \"2025-12-17T18:00:00.000Z\",\n        \"pack_ready_to_sort_promise_processing_date\": \"2025-12-16T21:05:00.000Z\",\n        \"pack_ready_to_sort_timestamp\": \"2025-12-17T10:30:00.000Z\",\n        \"unpack_promise_min\": \"2025-12-18T08:00:00.000Z\",\n        \"unpack_promise_max\": \"2025-12-18T18:00:00.000Z\",\n        \"unpack_promise_processing_date\": \"2025-12-17T10:30:00.000Z\",\n        \"unpack_timestamp\": \"2025-12-18T14:15:00.000Z\",\n        \"unpack_cancelation_promise_min\": null,\n        \"unpack_cancelation_promise_max\": null,\n        \"unpack_cancelation_promise_processing_date\": null,\n        \"unpack_cancelation_timestamp\": null\n    },\n    \"sell_order_attempt\": [{\n        \"current\": true,\n        \"ready_to_ship_promise_min\": \"2025-12-17T08:00:00.000Z\",\n        \"ready_to_ship_promise_max\": \"2025-12-17T18:00:00.000Z\",\n        \"ready_to_ship_promise_processing_date\": \"2025-12-16T21:05:00.000Z\",\n        \"ready_to_ship_timestamp\": \"2025-12-17T10:30:00.000Z\",\n        \"ship_promise_min\": \"2025-12-18T08:00:00.000Z\",\n        \"ship_promise_max\": \"2025-12-18T18:00:00.000Z\",\n        \"ship_promise_processing_date\": \"2025-12-17T10:30:00.000Z\",\n        \"ship_timestamp\": \"2025-12-18T14:15:00.000Z\",\n        \"delivery_promise_min\": \"2025-12-20T08:00:00.000Z\",\n        \"delivery_promise_max\": \"2025-12-20T18:00:00.000Z\",\n        \"delivery_promise_processing_date\": \"2025-12-18T14:15:00.000Z\",\n        \"delivery_timestamp\": null,\n        \"ready_to_pickup_promise_min\": null,\n        \"ready_to_pickup_promise_max\": null,\n        \"ready_to_pickup_processing_date\": null,\n        \"ready_to_pickup_timestamp\": null,\n        \"pickup_promise_min\": null,\n        \"pickup_promise_max\": null,\n        \"pickup_promise_processing_date\": null,\n        \"pickup_timestamp\": null\n    }]\n}"}],"_postman_id":"30a4f228-f8e5-4ad5-ac9a-f14ea922563b"},{"name":"Get order list","event":[{"listen":"prerequest","script":{"id":"80d89779-9d5b-47e4-b5e4-f1023816ed16","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"bd048c94-e32b-45d6-9acd-f5c6caa534f0","protocolProfileBehavior":{"disabledSystemHeaders":{},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/sell-orders?initial_creation_date=2025-12-10T19:22:08.000Z","description":"<h3 id=\"get-sell-order-list\">Get Sell Order List</h3>\n<p>This endpoint retrieves list of sell orders</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><code>fields</code> (query, optional): Comma-separated list of additional fields to include in the response. Available options:</p>\n<ul>\n<li><p><code>page</code>: Number of page from pagination</p>\n</li>\n<li><p><code>per_page</code>: Number of items per page</p>\n</li>\n<li><p><code>sell_order_state_codes</code>: Array of order state codes - Format [1,3]</p>\n</li>\n<li><p><code>initial_creation_date</code> : Orders created &gt;= initial_creation_date - Format ISO 8601</p>\n</li>\n<li><p><code>final_creation_date</code> : Orders created &lt;= final_creation_date - Format ISO 8601</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will contain list of sell orders basic info. For more specific details, request Get Order resource</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders"],"host":["{{api_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Pagination Param</p>\n","type":"text/plain"},"key":"page","value":"0"},{"disabled":true,"description":{"content":"<p>Items Per Page</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"disabled":true,"description":{"content":"<p>Sell order state codes</p>\n","type":"text/plain"},"key":"sell_order_state_codes","value":"[3,28]"},{"key":"initial_creation_date","value":"2025-12-10T19:22:08.000Z"},{"disabled":true,"key":"final_creation_date","value":"2025-12-13T19:22:08.000Z"}],"variable":[]}},"response":[{"id":"ca25bb22-c40e-4e68-b2a5-d65040df3eb7","name":"Get order list","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/sell-orders","host":["{{api_url}}"],"path":["sell-orders"],"query":[{"key":"page","value":"0","description":"Pagination Param","type":"text","disabled":true},{"key":"per_page","value":"10","description":"Items Per Page","type":"text","disabled":true},{"key":"sell_order_state_codes","value":"[3,28]","description":"Sell order state codes","type":"text","disabled":true},{"key":"initial_creation_date","value":"2025-12-10T19:22:08.000Z","disabled":true},{"key":"final_creation_date","value":"2025-12-13T19:22:08.000Z","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 11 Dec 2025 21:11:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2459"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"8087e334-50ef-4617-b347-25ca67bc933c"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"eb381ca8-cb3c-4288-a3d8-5e9edc36fcec"},{"key":"x-amzn-Remapped-Content-Length","value":"2459"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Thu, 11 Dec 2025 21:11:05 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"VcT3-H4yIAMESsw="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"2459"},{"key":"X-Amzn-Trace-Id","value":"Root=1-693b3365-157ca16447f5fc392929eee1"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Thu, 11 Dec 2025 21:11:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1765485926468311,\n            \"internal_order_number\": \"M1765485926468311\",\n            \"external_order_number\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"external_order_id\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1765485926468311\",\n            \"payment_on_delivery_amount\": null,\n            \"payment_on_delivery_type\": null,\n            \"is_b2b\": false,\n            \"creation_date\": \"2025-12-11T20:45:28.000Z\",\n            \"shipping_method\": {\n                \"code\": \"FP-5\",\n                \"name\": \"Siguiente día hábil local\"\n            },\n            \"warehouse\": {\n                \"code\": \"MED1\",\n                \"name\": \"Medellin #1\"\n            },\n            \"sell_order_state\": {\n                \"code\": 2,\n                \"name\": \"All items reserved - ready for fulfillment\"\n            }\n        },\n        {\n            \"id\": 1765471053187852,\n            \"internal_order_number\": \"M1765471053187852\",\n            \"external_order_number\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"external_order_id\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1765471053187852\",\n            \"payment_on_delivery_amount\": null,\n            \"payment_on_delivery_type\": null,\n            \"is_b2b\": false,\n            \"creation_date\": \"2025-12-11T16:37:33.000Z\",\n            \"shipping_method\": {\n                \"code\": \"FP-5\",\n                \"name\": \"Siguiente día hábil local\"\n            },\n            \"warehouse\": {\n                \"code\": \"MED1\",\n                \"name\": \"Medellin #1\"\n            },\n            \"sell_order_state\": {\n                \"code\": 2,\n                \"name\": \"All items reserved - ready for fulfillment\"\n            }\n        },\n        {\n            \"id\": 1765471041767433,\n            \"internal_order_number\": \"M1765471041767433\",\n            \"external_order_number\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"external_order_id\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1765471041767433\",\n            \"payment_on_delivery_amount\": null,\n            \"payment_on_delivery_type\": null,\n            \"is_b2b\": false,\n            \"creation_date\": \"2025-12-11T16:37:23.000Z\",\n            \"shipping_method\": {\n                \"code\": \"FP-5\",\n                \"name\": \"Siguiente día hábil local\"\n            },\n            \"warehouse\": {\n                \"code\": \"MED1\",\n                \"name\": \"Medellin #1\"\n            },\n            \"sell_order_state\": {\n                \"code\": 2,\n                \"name\": \"All items reserved - ready for fulfillment\"\n            }\n        },\n        {\n            \"id\": 1765469803582701,\n            \"internal_order_number\": \"M1765469803582701\",\n            \"external_order_number\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"external_order_id\": \"TESTING_PAYMENT_ON_DELIVERY_AMOUNT_RC\",\n            \"melonn_tracking_link\": \"https://d31a8gq0kszthp.cloudfront.net/M1765469803582701\",\n            \"payment_on_delivery_amount\": null,\n            \"payment_on_delivery_type\": null,\n            \"is_b2b\": false,\n            \"creation_date\": \"2025-12-11T16:16:45.000Z\",\n            \"shipping_method\": {\n                \"code\": \"FP-5\",\n                \"name\": \"Siguiente día hábil local\"\n            },\n            \"warehouse\": {\n                \"code\": \"MED1\",\n                \"name\": \"Medellin #1\"\n            },\n            \"sell_order_state\": {\n                \"code\": 2,\n                \"name\": \"All items reserved - ready for fulfillment\"\n            }\n        }\n    ],\n    \"meta_data\": {\n        \"page\": 0,\n        \"per_page\": 10,\n        \"total_count\": 4\n    }\n}"}],"_postman_id":"bd048c94-e32b-45d6-9acd-f5c6caa534f0"},{"name":"Release hold fulfillment","event":[{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"17b86e00-db7c-41ef-a96e-5d720b58f137"}}],"id":"eb362cbb-148b-4fd1-843c-492efcaf306c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shipping_method_code\": \"\" // string | undefined\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/sell-orders/:external_order_number/release-hold-fulfillment","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["sell-orders",":external_order_number","release-hold-fulfillment"],"host":["{{api_url}}"],"query":[],"variable":[{"id":"29a56363-8d37-476d-8631-cc636dce04ca","type":"any","value":"1661-01","key":"external_order_number"}]}},"response":[{"id":"460f4cd5-b307-4946-a6ef-c037b9759608","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shipping_method_code\": \"TEST\" // string | undefined\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/release-hold-fulfillment","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","release-hold-fulfillment"],"variable":[{"key":"external_order_number","value":"1661-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"0"},{"key":"Date","value":"Tue, 07 Jan 2025 14:48:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"},{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Order released successfully\"\n}"},{"id":"82ac61d7-182f-429d-8cd2-dde1d74e6ba9","name":"Bad request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shipping_method_code\": \"\" // string | undefined\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/release-hold-fulfillment","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","release-hold-fulfillment"],"variable":[{"key":"external_order_number","value":"TEST_BUSINESS_RULES_0001"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jan 2025 16:50:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"0e6e616d-8cab-4e25-a811-e35b96c358e0"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"fea6ff0b-303f-40bf-bea4-0ff4f8904a11"},{"key":"x-amzn-Remapped-Content-Length","value":"38"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Tue, 07 Jan 2025 16:50:05 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"EBsxGGY3IAMEiRw="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"38"},{"key":"X-Amzn-Trace-Id","value":"Root=1-677d5b39-20c59ccc1f6e3ad7351196ff;Sampled=1;Lineage=1:744d1f37:0"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Tue, 07 Jan 2025 16:50:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Sell Order invalid state\"\n}"},{"id":"038c32d1-8e14-4261-85a2-ef1e8be647bd","name":"Resource not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"shipping_method_code\": \"TEST\" // string | undefined\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/sell-orders/:external_order_number/release-hold-fulfillment","host":["{{api_url}}"],"path":["sell-orders",":external_order_number","release-hold-fulfillment"],"variable":[{"key":"external_order_number","value":"1661-01"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"39"},{"key":"Date","value":"Tue, 07 Jan 2025 14:49:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Shipping method not found\"\n}"}],"_postman_id":"eb362cbb-148b-4fd1-843c-492efcaf306c"}],"id":"3e5fe41d-7cde-4d65-a8bd-5f28fa3a7372","description":"<p>This API exposes a set of methods related to sales orders.</p>\n<h1 id=\"schema-and-data-validation\">Schema and data validation</h1>\n<p>Creating a sell order requires a set of basic data regardless of the type of order you want to create (B2B or D2C).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>external_order_number</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>external_order_id</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>warehouse_code</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_method_code</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>tags</td>\n<td>String[]</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>line_items</td>\n<td>Object[]</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>line_items.sku</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>line_items.quantity</td>\n<td>Number</td>\n<td>X</td>\n<td>&gt; 0</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"b2b\">B2B</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>business</td>\n<td>Object</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td><a href=\"http://business.id\">business.id</a></td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>business.delivery_location_id</td>\n<td>String</td>\n<td></td>\n<td>This field only is required if the shipping method type is Delivery.</td>\n</tr>\n<tr>\n<td>warehouse_code</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>sell_order_vas</td>\n<td>Object[]</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>sell_order_vas.code</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>sell_order_vas.files</td>\n<td>String[]</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>sell_order_vas.comments</td>\n<td>String[]</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>sell_order_vas.seller_products_skus</td>\n<td>String[]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"d2c\">D2C</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payment_on_delivery_amount</td>\n<td>Number</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info</td>\n<td>Object</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.address_l1</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.address_l2</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.city</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.region</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.country</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.postal_code</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.full_name</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>shipping_info.phone_number</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>buyer</td>\n<td>Object</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>buyer.full_name</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>buyer.email</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer.phone_number</td>\n<td>String</td>\n<td>X</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":["const melonnContext = pm.environment.get(\"x_melonn_context\");","","if (melonnContext?.length) {","  pm.request.addHeader({ key: \"x-melonn-context\", value: melonnContext });","}",""],"id":"5136bf70-a50b-4f61-8967-453cfe112636"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"7707e51f-f34a-4865-b8a8-76c252c5cd59"}}],"_postman_id":"3e5fe41d-7cde-4d65-a8bd-5f28fa3a7372","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Business","item":[{"name":"Get all","id":"a2c330da-e24a-4f00-8187-25ec3b01a563","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/business","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["business"],"host":["{{api_url}}"],"query":[{"disabled":true,"description":{"content":"<p>Business email</p>\n","type":"text/plain"},"key":"email","value":"krrskl@melonn.com"}],"variable":[]}},"response":[{"id":"f2a3aef0-4a01-43b2-a744-7b41cd02e490","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/business","host":["{{api_url}}"],"path":["business"],"query":[{"key":"email","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"8893"},{"key":"Date","value":"Tue, 14 Jan 2025 12:57:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"3726016736-OLD\",\n        \"name\": \"B2B Int 01\",\n        \"email\": \"saleschannels@melonn.com\",\n        \"phone_number\": \"\",\n        \"delivery_locations\": []\n    },\n    {\n        \"id\": \"186\",\n        \"name\": \"b2btest2\",\n        \"email\": null,\n        \"phone_number\": \"+573192821788\",\n        \"delivery_locations\": [\n            {\n                \"id\": \"7009239264-1\",\n                \"address_l1\": \"Carrera 82\",\n                \"email\": \"krrskl@melonn.com\",\n                \"name\": \"Carrera 82\",\n                \"phone_number\": \"+573192821788\"\n            }\n        ]\n    }\n]"}],"_postman_id":"a2c330da-e24a-4f00-8187-25ec3b01a563"},{"name":"Create in bulk","id":"4dbf2d97-d670-471e-b4bd-862c2df94c59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"country_id\": 1,\n        \"email\": \"example@business.com\",\n        \"external_id\": \"BUS123\",\n        \"logo_url\": \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\",\n        \"name\": \"Ejemplo Business\",\n        \"phone_number\": \"+57345637890\",\n        \"website\": \"https://example.com\",\n        \"business_delivery_locations\": [\n            {\n                \"external_id\": \"LOC123\",\n                \"name\": \"Sucursal Centro\",\n                \"address_l1\": \"Calle 48 #26\",\n                \"address_l2\": \"Casa 20\",\n                \"phone_number\": \"+573459967891\",\n                \"location_info\": {\n                    \"city\": \"Santa Marta\",\n                    \"region\": \"Magdalena\",\n                    \"country\": \"Colombia\",\n                    \"postal_code\": \"470003\"\n                }\n            }\n        ],\n        \"business_vas\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/business","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["business"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"df8730c4-ed1f-48a2-93b5-6a757272c09d","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"country_id\": 1,\n        \"email\": \"example@business.com\",\n        \"external_id\": \"BUS123\",\n        \"logo_url\": \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\",\n        \"name\": \"Ejemplo Business\",\n        \"phone_number\": \"+57345637890\",\n        \"website\": \"https://example.com\",\n        \"business_delivery_locations\": [\n            {\n                \"external_id\": \"LOC123\",\n                \"name\": \"Sucursal Centro\",\n                \"address_l1\": \"Calle 48 #26\",\n                \"address_l2\": \"Casa 20\",\n                \"phone_number\": \"+573459967891\",\n                \"location_info\": {\n                    \"city\": \"Santa Marta\",\n                    \"region\": \"Magdalena\",\n                    \"country\": \"Colombia\",\n                    \"postal_code\": \"470003\"\n                }\n            }\n        ],\n        \"business_vas\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/business"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-length","value":"0"},{"key":"Date","value":"Tue, 07 Jan 2025 14:48:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"},{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Businesses created successfully\"\n}"},{"id":"837cb84b-0392-4734-80ab-6647054bee1e","name":"Bad request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"country_id\": 1,\n        \"email\": \"example@business.com\",\n        \"external_id\": \"BUS123\",\n        \"logo_url\": \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\",\n        \"name\": \"Ejemplo Business\",\n        \"phone_number\": \"+57345637890\",\n        \"website\": \"https://example.com\",\n        \"business_delivery_locations\": [\n            {\n                \"external_id\": \"LOC123\",\n                \"name\": \"Sucursal Centro\",\n                \"address_l1\": \"Calle 48 #26\",\n                \"address_l2\": \"Casa 20\",\n                \"phone_number\": \"+573459967891\",\n                \"location_info\": {\n                    \"city\": \"Santa Marta\",\n                    \"region\": \"Magdalena\",\n                    \"country\": \"Colombia\",\n                    \"postal_code\": \"470003\"\n                }\n            }\n        ],\n        \"business_vas\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/business"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 Jan 2025 16:50:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"0e6e616d-8cab-4e25-a811-e35b96c358e0"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"fea6ff0b-303f-40bf-bea4-0ff4f8904a11"},{"key":"x-amzn-Remapped-Content-Length","value":"38"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Tue, 07 Jan 2025 16:50:05 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"EBsxGGY3IAMEiRw="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"38"},{"key":"X-Amzn-Trace-Id","value":"Root=1-677d5b39-20c59ccc1f6e3ad7351196ff;Sampled=1;Lineage=1:744d1f37:0"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Tue, 07 Jan 2025 16:50:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error uploading file:\"\n}"},{"id":"f4d2ceeb-7b61-4627-b9df-115fabcc8a97","name":"Resource not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n    {\n        \"country_id\": 1,\n        \"email\": \"example@business.com\",\n        \"external_id\": \"BUS123\",\n        \"logo_url\": \"https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_27_2x.png\",\n        \"name\": \"Ejemplo Business\",\n        \"phone_number\": \"+57345637890\",\n        \"website\": \"https://example.com\",\n        \"business_delivery_locations\": [\n            {\n                \"external_id\": \"LOC123\",\n                \"name\": \"Sucursal Centro\",\n                \"address_l1\": \"Calle 48 #26\",\n                \"address_l2\": \"Casa 20\",\n                \"phone_number\": \"+573459967891\",\n                \"location_info\": {\n                    \"city\": \"Santa Marta\",\n                    \"region\": \"Magdalena\",\n                    \"country\": \"Colombia\",\n                    \"postal_code\": \"470003\"\n                }\n            }\n        ],\n        \"business_vas\": []\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/business"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"39"},{"key":"Date","value":"Tue, 07 Jan 2025 14:49:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"VAS not found: 21, 22\"\n}"}],"_postman_id":"4dbf2d97-d670-471e-b4bd-862c2df94c59"}],"id":"57bbe0be-9d4f-4c6b-9502-f35f12c7c222","event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":["const melonnContext = pm.environment.get(\"x_melonn_context\");","","if (melonnContext?.length) {","  pm.request.addHeader({ key: \"x-melonn-context\", value: melonnContext });","}",""],"id":"2534124a-e537-4125-a3ad-58721270822f"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"73980ada-c8d2-4bd6-aed2-39ae96509bb7"}}],"_postman_id":"57bbe0be-9d4f-4c6b-9502-f35f12c7c222","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Supplier orders","item":[{"name":"Create supplier order","id":"b293bb5a-4b49-4837-83f3-58718133dda0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{api_url}}/supplier-orders","description":"<h2 id=\"create-supplier-order\">Create Supplier Order</h2>\n<p>This API endpoint allows you to create a new supplier order to send inventory to a Melonn warehouse.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>seller_supplier_id</code> (integer, required) - ID of the seller's supplier.</p>\n</li>\n<li><p><code>destination_warehouse_code</code> (string, required) - Code of the destination warehouse where the inventory will be received.</p>\n</li>\n<li><p><code>external_order_number</code> (string, required) - External identifier for the supplier order.</p>\n</li>\n<li><p><code>tracking_number</code> (string, required) - Courier tracking number for the shipment.</p>\n</li>\n<li><p><code>expected_reception_date</code> (string, optional) - Expected date for the shipment to arrive at the warehouse (ISO 8601 format, e.g., <code>2025-01-31T00:00:00Z</code>).</p>\n</li>\n<li><p><code>comments</code> (string, required) - Comments or notes about the supplier order.</p>\n</li>\n<li><p><code>return_address_l1</code> (string, required) - Return address line 1 (in case items need to be returned to seller).</p>\n</li>\n<li><p><code>return_address_l2</code> (string, required) - Return address line 2 (additional address details).</p>\n</li>\n<li><p><code>return_city</code> (string, required) - Return address city.</p>\n</li>\n<li><p><code>return_region</code> (string, required) - Return address region or state.</p>\n</li>\n<li><p><code>return_country</code> (string, required) - Return address country.</p>\n</li>\n<li><p><code>return_postal_code</code> (string, required) - Return address postal code.</p>\n</li>\n<li><p><code>courier_company_id</code> (integer, required) - ID of the courier company handling the shipment.</p>\n</li>\n<li><p><code>line_items</code> (array, required) - List of products being sent. Each item includes:</p>\n<ul>\n<li><p><code>sku</code> (string, required) - SKU of the product.</p>\n</li>\n<li><p><code>qty_ordered</code> (integer, required) - Quantity being sent.</p>\n</li>\n<li><p><code>expiration_date</code> (string, optional) - Expiration date of the product (<code>YYYY-MM-DD</code>). Use a far future date for non-perishable items.</p>\n</li>\n<li><p><code>lot_number</code> (string, optional) - Lot number for inventory control.</p>\n</li>\n<li><p><code>reception_services</code> (array of codes, optional) - Codes of reception services (refer to <a href=\"#inbound-reception-services\">Inbound reception service</a>) requested for this item.</p>\n</li>\n</ul>\n</li>\n<li><p><code>shipped_packages</code> (array, required) - Information about the physical packages being shipped. Each package includes:</p>\n<ul>\n<li><p><code>package_type</code> (string, required) - Type of package being shipped. <code>box</code> or <code>pallet</code></p>\n</li>\n<li><p><code>qty_packages_shipped</code> (integer, required) - Number of packages of this type.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response-codes\">Response Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 OK</td>\n<td>Supplier order created successfully.</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>Invalid request body or validation error.</td>\n</tr>\n<tr>\n<td>403 Forbidden</td>\n<td>Warehouse not found or seller supplier not found.</td>\n</tr>\n<tr>\n<td>422 Unprocessable Entity</td>\n<td>Invalid SKU values provided.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["supplier-orders"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"d3c8f065-db1d-44aa-b013-c46b664c6295","name":"Ok","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"seller_supplier_id\": 123,\n    \"destination_warehouse_code\": \"WCOD-1\",\n    \"external_order_number\": \"PO-2025-001\",\n    \"tracking_number\": \"TRK123456789\",\n    \"expected_reception_date\": \"2025-01-31T00:00:00Z\",\n    \"comments\": \"Urgent replenishment order\",\n    \"return_address_l1\": \"Calle 100 # 15-20\",\n    \"return_address_l2\": \"Oficina 501\",\n    \"return_city\": \"Bogota\",\n    \"return_region\": \"Cundinamarca\",\n    \"return_country\": \"Colombia\",\n    \"return_postal_code\": \"110111\",\n    \"courier_company_id\": 1,\n    \"line_items\": [\n        {\n            \"sku\": \"PROD-ABC-001\",\n            \"qty_ordered\": 100,\n            \"expiration_date\": \"2026-12-31T00:00:00Z\",\n            \"lot_number\": \"LOT-2025-001\",\n            \"reception_services\": [\n                \"bag\"\n            ]\n        },\n        {\n            \"sku\": \"PROD-XYZ-002\",\n            \"qty_ordered\": 50,\n            \"expiration_date\": \"2025-06-30T00:00:00Z\",\n            \"lot_number\": \"LOT-2025-002\",\n            \"reception_services\": [\n                \"lab\",\n                \"bag\"\n            ]\n        }\n    ],\n    \"shipped_packages\": [\n        {\n            \"package_type\": \"box\",\n            \"qty_packages_shipped\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/supplier-orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345,\n    \"seller_supplier_id\": 123,\n    \"destination_warehouse_code\": \"WCOD-1\",\n    \"internal_order_number\": \"I00012345\",\n    \"external_order_number\": \"PO-2025-001\",\n    \"creation_date\": \"2025-01-15T10:30:00.000Z\",\n    \"comments\": \"Urgent replenishment order\",\n    \"return_address_l1\": \"Calle 100 # 15-20\",\n    \"return_address_l2\": \"Oficina 501\",\n    \"return_city\": \"Bogota\",\n    \"return_region\": \"Cundinamarca\",\n    \"return_country\": \"Colombia\",\n    \"return_postal_code\": \"110111\",\n    \"supplier_order_state\": {\n        \"code\": 2,\n        \"description\": \"Confirmed\",\n        \"closed\": false\n    },\n    \"supplier_order_lines\": [\n        {\n            \"sku\": \"PROD-ABC-001\",\n            \"original\": true,\n            \"qty_ordered\": 100,\n            \"qty_received_ok\": 0,\n            \"qty_received_defective\": 0,\n            \"expiration_date\": \"2026-12-31T00:00:00.000Z\",\n            \"lot_number\": \"LOT-2025-001\",\n            \"reception_services\": [\n                {\n                    \"reception_service_code\": \"bag\",\n                    \"requested_by_seller\": true,\n                    \"qty_executed\": null\n                }\n            ]\n        },\n        {\n            \"sku\": \"PROD-XYZ-002\",\n            \"original\": true,\n            \"qty_ordered\": 50,\n            \"qty_received_ok\": 0,\n            \"qty_received_defective\": 0,\n            \"expiration_date\": \"2025-06-30T00:00:00.000Z\",\n            \"lot_number\": \"LOT-2025-002\",\n            \"reception_services\": [\n                {\n                    \"reception_service_code\": \"bag\",\n                    \"requested_by_seller\": true,\n                    \"qty_executed\": null\n                },\n                {\n                    \"reception_service_id\": \"lab\",\n                    \"requested_by_seller\": true,\n                    \"qty_executed\": null\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"b293bb5a-4b49-4837-83f3-58718133dda0"},{"name":"List supplier orders","id":"a644f660-6aa3-4d35-b1b3-48acf34865a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/supplier-orders","description":"<h2 id=\"list-supplier-orders\">List Supplier Orders</h2>\n<p>Retrieves a paginated list of supplier orders.</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><p><code>page</code> (integer, optional) - Page number (default: 0).</p>\n</li>\n<li><p><code>per_page</code> (integer, optional) - Items per page (default: 10, max: 100).</p>\n</li>\n<li><p><code>external_order_number</code> (string, optional) - Filter by exact external order number.</p>\n</li>\n<li><p><code>internal_order_number</code> (string, optional) - Filter by exact internal order number.</p>\n</li>\n<li><p><code>external_order_numbers</code> (array[string], optional) - Filter by multiple external order numbers (e.g., <code>?external_order_numbers=[\"PO-001\",\"PO-002\"]</code>).</p>\n</li>\n<li><p><code>supplier_order_state_id</code> (array[integer], optional) - Filter by one or multiple state IDs (e.g., <code>?supplier_order_state_id=[1,2,4]</code>).</p>\n</li>\n<li><p><code>warehouse_code</code> (string, optional) - Filter by destination warehouse code.</p>\n</li>\n</ul>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response contains two sections: <code>data</code> and <code>meta</code>.</p>\n<ul>\n<li><p><code>data</code> - Array of supplier orders. Each order includes:</p>\n<ul>\n<li><p><code>id</code> - Internal ID.</p>\n</li>\n<li><p><code>internal_order_number</code> - Internal order number.</p>\n</li>\n<li><p><code>external_order_number</code> - External identifier.</p>\n</li>\n<li><p><code>destination_warehouse_code</code> - Destination warehouse code.</p>\n</li>\n<li><p><code>creation_date</code> - Creation date.</p>\n</li>\n<li><p><code>comments</code> - Order comments.</p>\n</li>\n<li><p><code>supplier_order_state</code> - State information (code, description, closed).</p>\n</li>\n<li><p>Return address fields.</p>\n</li>\n</ul>\n</li>\n<li><p><code>meta</code> - Pagination information:</p>\n<ul>\n<li><p><code>page</code> - Current page number.</p>\n</li>\n<li><p><code>per_page</code> - Number of records per page.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response-codes\">Response Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 OK</td>\n<td>List returned successfully.</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>Invalid query parameters.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["supplier-orders"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"61e9ad9b-3318-49f6-975b-966e00a2e364","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/supplier-orders?page=0&per_page=10","host":["{{api_url}}"],"path":["supplier-orders"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 12345,\n            \"seller_supplier_id\": 123,\n            \"destination_warehouse_code\": \"WCOD-1\",\n            \"internal_order_number\": \"I00012345\",\n            \"external_order_number\": \"PO-2025-001\",\n            \"creation_date\": \"2025-01-15T10:30:00.000Z\",\n            \"comments\": \"Urgent replenishment order\",\n            \"return_address_l1\": \"Calle 100 # 15-20\",\n            \"return_address_l2\": \"Oficina 501\",\n            \"return_city\": \"Bogota\",\n            \"return_region\": \"Cundinamarca\",\n            \"return_country\": \"Colombia\",\n            \"return_postal_code\": \"110111\",\n            \"supplier_order_state\": {\n                \"code\": 2,\n                \"description\": \"Confirmed\",\n                \"closed\": false\n            }\n        },\n        {\n            \"id\": 12344,\n            \"seller_supplier_id\": 123,\n            \"destination_warehouse_code\": \"WCOD-2\",\n            \"internal_order_number\": \"I00012344\",\n            \"external_order_number\": \"PO-2025-002\",\n            \"creation_date\": \"2025-01-14T09:00:00.000Z\",\n            \"comments\": null,\n            \"supplier_order_state\": {\n                \"code\": 5,\n                \"description\": \"Finalized\",\n                \"closed\": true\n            }\n        }\n    ],\n    \"meta\": {\n        \"page\": 0,\n        \"per_page\": 10\n    }\n}"}],"_postman_id":"a644f660-6aa3-4d35-b1b3-48acf34865a0"},{"name":"Get supplier order","id":"2a51e7ba-bc02-4ac3-80ce-5a58dca6dd05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/supplier-orders/:internal_order_number","description":"<h2 id=\"get-supplier-order-details\">Get Supplier Order Details</h2>\n<p>Retrieves the details of a specific supplier order including line items and packages information.</p>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><code>internal_order_number</code> (string, required) - The internal order number (e.g., <code>I00012345</code>).</li>\n</ul>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response contains detailed information about the supplier order:</p>\n<ul>\n<li><p><code>id</code> - Internal ID of the supplier order.</p>\n</li>\n<li><p><code>internal_order_number</code> - Internal order number assigned by Melonn.</p>\n</li>\n<li><p><code>external_order_number</code> - External identifier provided during creation.</p>\n</li>\n<li><p><code>destination_warehouse_code</code> - Code of the destination warehouse.</p>\n</li>\n<li><p><code>creation_date</code> - Date and time when the order was created.</p>\n</li>\n<li><p><code>comments</code> - Order comments/notes.</p>\n</li>\n<li><p><code>return_address_l1</code>, <code>return_address_l2</code>, <code>return_city</code>, <code>return_region</code>, <code>return_country</code>, <code>return_postal_code</code> - Return address details.</p>\n</li>\n<li><p><code>supplier_order_state</code> - Object with state information:</p>\n<ul>\n<li><p><code>code</code> - State code (refer to <a href=\"#supplier-order-states\">Supplier Order States</a>)</p>\n</li>\n<li><p><code>description</code> - Human-readable state description.</p>\n</li>\n<li><p><code>closed</code> - Boolean indicating if the order is in a final state.</p>\n</li>\n</ul>\n</li>\n<li><p><code>supplier_order_lines</code> - Array of line items:</p>\n<ul>\n<li><p><code>sku</code> - Product SKU.</p>\n</li>\n<li><p><code>original</code> - Boolean indicating if this is an original line item (not added during reception).</p>\n</li>\n<li><p><code>qty_ordered</code> - Quantity originally ordered.</p>\n</li>\n<li><p><code>qty_received_ok</code> - Quantity received in good condition.</p>\n</li>\n<li><p><code>qty_received_defective</code> - Quantity received in defective condition.</p>\n</li>\n<li><p><code>expiration_date</code> - Product expiration date.</p>\n</li>\n<li><p><code>lot_number</code> - Product lot number.</p>\n</li>\n<li><p><code>reception_services</code> - Array of reception services:</p>\n<ul>\n<li><p><code>reception_service_code</code> - Reception service code.</p>\n</li>\n<li><p><code>requested_by_seller</code> - Whether the service was requested by seller.</p>\n</li>\n<li><p><code>qty_executed</code> - Quantity processed with this service (null if not executed).</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>supplier_order_packages</code> - Array of packages:</p>\n<ul>\n<li><p><code>internal_package_number</code> - Internal package identifier.</p>\n</li>\n<li><p><code>reception_date</code> - Date when the package was received at warehouse.</p>\n</li>\n<li><p><code>max_unpack_promise</code> - Maximum promised date for unpacking.</p>\n</li>\n<li><p><code>unpacking_end_date</code> - Date when unpacking was completed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response-codes\">Response Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 OK</td>\n<td>Supplier order found and returned.</td>\n</tr>\n<tr>\n<td>403 Forbidden</td>\n<td>Order does not exist</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["supplier-orders",":internal_order_number"],"host":["{{api_url}}"],"query":[],"variable":[{"id":"f6b5ad5b-a9ee-49dc-8a7a-4b3b3ba8e8cf","type":"any","value":"","key":"internal_order_number"}]}},"response":[{"id":"b2815ed5-eb82-4eb1-a9da-ca5faffcffa3","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/supplier-orders/:internal_order_number","host":["{{api_url}}"],"path":["supplier-orders",":internal_order_number"],"variable":[{"key":"internal_order_number","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345,\n    \"seller_supplier_id\": 123,\n    \"destination_warehouse_code\": \"WCOD-1\",\n    \"internal_order_number\": \"I00012345\",\n    \"external_order_number\": \"PO-2025-001\",\n    \"creation_date\": \"2025-01-15T10:30:00.000Z\",\n    \"comments\": \"Urgent replenishment order\",\n    \"return_address_l1\": \"Calle 100 # 15-20\",\n    \"return_address_l2\": \"Oficina 501\",\n    \"return_city\": \"Bogota\",\n    \"return_region\": \"Cundinamarca\",\n    \"return_country\": \"Colombia\",\n    \"return_postal_code\": \"110111\",\n    \"supplier_order_state\": {\n        \"code\": 5,\n        \"description\": \"Finalized\",\n        \"closed\": true\n    },\n    \"supplier_order_lines\": [\n        {\n            \"sku\": \"PROD-ABC-001\",\n            \"original\": true,\n            \"qty_ordered\": 100,\n            \"qty_received_ok\": 98,\n            \"qty_received_defective\": 2,\n            \"expiration_date\": \"2026-12-31T00:00:00.000Z\",\n            \"lot_number\": \"LOT-2025-001\",\n            \"supplier_order_line_item_reception_service\": [\n                {\n                    \"reception_service_code\": \"lab\",\n                    \"requested_by_seller\": true,\n                    \"qty_executed\": 98\n                }\n            ]\n        },\n        {\n            \"sku\": \"PROD-XYZ-002\",\n            \"original\": true,\n            \"qty_ordered\": 50,\n            \"qty_received_ok\": 50,\n            \"qty_received_defective\": 0,\n            \"expiration_date\": \"2025-06-30T00:00:00.000Z\",\n            \"lot_number\": \"LOT-2025-002\",\n            \"eception_services\": [\n                {\n                    \"reception_service_id\": \"lab\",\n                    \"requested_by_seller\": true,\n                    \"qty_executed\": 50\n                },\n                {\n                    \"reception_service_id\": \"bag\",\n                    \"requested_by_seller\": true,\n                    \"qty_executed\": 50\n                }\n            ]\n        }\n    ],\n    \"supplier_order_packages\": [\n        {\n            \"internal_package_number\": \"B00012345001\",\n            \"reception_date\": \"2025-01-20T14:00:00.000Z\",\n            \"max_unpack_promise\": \"2025-01-22T23:59:59.000Z\",\n            \"unpacking_end_date\": \"2025-01-21T09:30:00.000Z\"\n        },\n        {\n            \"internal_package_number\": \"B00012345002\",\n            \"reception_date\": \"2025-01-20T14:00:00.000Z\",\n            \"max_unpack_promise\": \"2025-01-22T23:59:59.000Z\",\n            \"unpacking_end_date\": \"2025-01-21T10:15:00.000Z\"\n        }\n    ]\n}"}],"_postman_id":"2a51e7ba-bc02-4ac3-80ce-5a58dca6dd05"},{"name":"Cancel supplier order","id":"79ce074d-2147-42e2-b5fa-4fea682a32bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{api_url}}/supplier-orders/:internal_order_number/cancel","description":"<h2 id=\"cancel-supplier-order\">Cancel Supplier Order</h2>\n<p>Cancels an existing supplier order. This action is only valid for orders in specific states.</p>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><code>internal_order_number</code> (string, required) - The internal order number to cancel.</li>\n</ul>\n<h3 id=\"allowed-states-for-cancellation\">Allowed States for Cancellation</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Created</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Confirmed</td>\n</tr>\n</tbody>\n</table>\n</div><p>Orders in other states cannot be cancelled.</p>\n<h3 id=\"response-codes\">Response Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>204 No Content</td>\n<td>Order cancelled successfully.</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>Invalid request body or validation error.*</td>\n</tr>\n<tr>\n<td>403 Forbidden</td>\n<td>Order does not exist or state does not allow cancellation.</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>*Note: Although no request body is required for this operation, including the Content-Type: application/json header without a corresponding payload will result in a 400 error, as the server expects a valid JSON body when this header is present. To avoid this issue, either omit the Content-Type header entirely or include an empty JSON object {} in the request body.</em></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["supplier-orders",":internal_order_number","cancel"],"host":["{{api_url}}"],"query":[],"variable":[{"id":"11ba2f41-fa3b-4a7f-8322-76155bbbbffe","type":"any","value":"","key":"internal_order_number"}]}},"response":[{"id":"67298951-ec97-4d2d-9d01-a8d855c11b5e","name":"Ok","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{api_url}}/supplier-orders/:internal_order_number/cancel","host":["{{api_url}}"],"path":["supplier-orders",":internal_order_number","cancel"],"variable":[{"key":"internal_order_number","value":""}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"79ce074d-2147-42e2-b5fa-4fea682a32bb"},{"name":"List seller suppliers","id":"9e95c961-1e5a-4a64-9723-287306f81775","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/seller-suppliers","description":"<h2 id=\"list-seller-suppliers\">List Seller Suppliers</h2>\n<p>Retrieves a paginated list of suppliers configured for the seller.</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><p><code>page</code> (integer, optional) - Page number (default: 0).</p>\n</li>\n<li><p><code>per_page</code> (integer, optional) - Items per page (default: 10).</p>\n</li>\n</ul>\n<h3 id=\"response-body\">Response Body</h3>\n<ul>\n<li><p><code>data</code> - Array of supplier objects:</p>\n<ul>\n<li><p><code>id</code> - Supplier ID (use this as <code>seller_supplier_id</code> when creating orders).</p>\n</li>\n<li><p><code>name</code> - Supplier name.</p>\n</li>\n<li><p><code>active</code> - Whether the supplier is active.</p>\n</li>\n</ul>\n</li>\n<li><p><code>meta</code> - Pagination information:</p>\n<ul>\n<li><p><code>page</code> - Current page.</p>\n</li>\n<li><p><code>per_page</code> - Records per page.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response-codes\">Response Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200 OK</td>\n<td>List returned successfully.</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>Invalid query parameters.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["seller-suppliers"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"3c51e86f-a8f1-4da7-8035-47839ac8361c","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/seller-suppliers?page=0&per_page=10","host":["{{api_url}}"],"path":["seller-suppliers"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 123,\n            \"name\": \"Main Supplier Co.\",\n            \"active\": true\n        },\n        {\n            \"id\": 124,\n            \"name\": \"Secondary Supplier LLC\",\n            \"active\": true\n        },\n        {\n            \"id\": 125,\n            \"name\": \"Old Supplier (Inactive)\",\n            \"active\": false\n        }\n    ],\n    \"meta\": {\n        \"page\": 0,\n        \"per_page\": 10\n    }\n}"}],"_postman_id":"9e95c961-1e5a-4a64-9723-287306f81775"}],"id":"236fda4c-c34a-4149-8ee7-614dc95dc4e4","description":"<h1 id=\"supplier-orders-public-api\">Supplier Orders Public API</h1>\n<blockquote>\n<p>🚧 This documentation is under construction </p>\n</blockquote>\n<p>This document describes the public API endpoints for managing supplier orders in the Melonn platform. Supplier orders represent inventory replenishment shipments from suppliers to Melonn warehouses.</p>\n<h1 id=\"📋-entities\">📋 Entities</h1>\n<h2 id=\"supplier-order-states\">Supplier Order States</h2>\n<p>The following table describes all possible supplier order states:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Name</th>\n<th>Description</th>\n<th>Closed</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Created</td>\n<td>Order has been created but not yet confirmed.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Confirmed</td>\n<td>Order is confirmed and awaiting shipment/reception.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Canceled</td>\n<td>Order has been cancelled.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Reception In Process</td>\n<td>Packages are being received and unpacked at the warehouse.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Finalized</td>\n<td>All packages have been processed and inventory has been added to stock.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Received</td>\n<td>All shipments have been received at the warehouse.</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"state-flow\">State Flow</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Created (1) → Confirmed (2) → Received (6) → Reception In Process (4) → Finalized (5)\n     ↓              ↓\nCanceled (3)  Canceled (3)\n\n</code></pre><p><strong>Notes:</strong></p>\n<ul>\n<li><p>Orders can only be cancelled when in <code>Created</code> (1) or <code>Confirmed</code> (2) states.</p>\n</li>\n<li><p>Once packages start arriving at the warehouse, the order moves to <code>Received</code> (6).</p>\n</li>\n<li><p>During unpacking, the order is in <code>Reception In Process</code> (4).</p>\n</li>\n<li><p>When all products have been processed, the order becomes <code>Finalized</code> (5).</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"inbound-reception-services\">Inbound reception services</h2>\n<p>The following reception services can be requested for line items:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>code</strong></th>\n<th><strong>Service Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Lab</td>\n<td>Labeling</td>\n<td>Apply missing product barcodes/labels.</td>\n</tr>\n<tr>\n<td>Bag</td>\n<td>Bagging (Packaging bag)</td>\n<td>Store textile products in plastic bags for protection.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"236fda4c-c34a-4149-8ee7-614dc95dc4e4","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Buyer return orders - V2","item":[{"name":"Create return order","id":"e34164f0-aece-44a6-bebb-6c84daadb3f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"assigned_warehouse_code\": \"WCOD-1\",\n  \"buyer_return_order_shipping_method_id\": 1,\n  \"external_order_number\": \"test-public-api-001\",\n  \"buyer\": {\n    \"full_name\": \"Test Test\",\n    \"phone_number\": \"+573123456789\",\n    \"email\": \"string\"\n  },\n  \"comments\": \"dummy commet\",\n  \"pickup_info\": {\n    \"full_name\": \"Test Test\",\n    \"identification_number\": \"1000000\",\n    \"address_l1\": \"CRA 12 A # 145 A - 22\",\n    \"address_l2\": \"\",\n    \"city\": \"Bogota\",\n    \"region\": \"Cundinamarca\",\n    \"country\": \"Colombia\",\n    \"postal_code\": \"12\",\n    \"phone_number\": \"573123456789\",\n    \"pickup_date\": \"2025-01-31\"\n  },\n  \"line_items\": [\n    {\n      \"sku\": \"AAABC-2-J0013-L0027-1723-M\",\n      \"qty_returned\": 1,\n      \"buyer_return_reason_id\": 1,\n      \"buyer_return_item_action_id\": 1,\n      \"return_comments\": \"test comment\"\n    }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/buyer-return-orders/v2","description":"<h3 id=\"create-buyer-return-order\">Create buyer return order</h3>\n<p>This API endpoint allows you to create a buyer return order from an existing Melonn order.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>ecommerce_store_id</code> (integer, optional) - ID of the e-commerce store, specific to each seller configuration.</p>\n</li>\n<li><p><code>external_order_number</code> (string) - External identifier for the return.</p>\n</li>\n<li><p><code>external_order_id</code> (integer) - External number identifier for the return.</p>\n</li>\n<li><p><code>buyer</code> (object) - Buyer details:</p>\n<ul>\n<li><p><code>full_name</code> (string) - Buyer's full name.</p>\n</li>\n<li><p><code>phone_number</code> (string) - Buyer's phone number, including country code (e.g., +57-3000000000).</p>\n</li>\n<li><p><code>email</code> (string) - Buyer's email address.</p>\n</li>\n</ul>\n</li>\n<li><p><code>parent_external_order_number</code> (string) - External identifier of the parent sell order.</p>\n</li>\n<li><p><code>comments</code> (string) - Optional comments about the return.</p>\n</li>\n<li><p><code>pickup_info</code> (object) - Information about the pickup location if the return needs to be collected.</p>\n<ul>\n<li><p><code>full_name</code> (string) - Name of the person handing over the return.</p>\n</li>\n<li><p><code>identification_number</code> (string) - Identification number of the person handing over the return.</p>\n</li>\n<li><p><code>address_l1</code> (string) - Pickup address line 1.</p>\n</li>\n<li><p><code>address_l2</code> (string) - Additional address details (optional).</p>\n</li>\n<li><p><code>city</code> (string) - Pickup city.</p>\n</li>\n<li><p><code>region</code> (string) - Pickup region or state.</p>\n</li>\n<li><p><code>country</code> (string) - Pickup country.</p>\n</li>\n<li><p><code>postal_code</code> (string) - Postal code (optional).</p>\n</li>\n<li><p><code>phone_number</code> (string) - Phone number, including country code.</p>\n</li>\n<li><p><code>pickup_date</code> (string) - Date for the pickup (UTC-0).</p>\n</li>\n</ul>\n</li>\n<li><p><code>line_items</code> (array) - List of returned items.</p>\n<ul>\n<li><p><code>sku</code> (string) - SKU of the product.</p>\n</li>\n<li><p><code>qty_returned</code> (integer) - Quantity being returned.</p>\n</li>\n<li><p><code>buyer_return_reason_code</code> (integer) - Reason for return (refer to the Reason Table below).</p>\n</li>\n<li><p><code>buyer_return_item_action_code</code> (integer) - Action to take for the returned item (refer to the Actions Table below).</p>\n</li>\n</ul>\n</li>\n<li><p><code>buyer_return_order_shipping_method_code</code> (integer) - Shipping method code, indicating whether Melonn or the buyer handles transportation.</p>\n</li>\n</ul>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"parent_external_order_number\": \"EXT-123\",\n  \"buyer_return_order_shipping_method_code\": 1,\n  \"external_order_number\": \"test-public-api-001\",\n  \"external_order_id\": 1,\n  \"buyer\": {\n    \"full_name\": \"Test Test\",\n    \"phone_number\": \"+573123456789\",\n    \"email\": \"string\"\n  },\n  \"comments\": \"dummy commet\",\n  \"pickup_info\": {\n    \"full_name\": \"Test Test\",\n    \"identification_number\": \"1000000\",\n    \"address_l1\": \"CRA 12 A # 145 A - 22\",\n    \"address_l2\": \"\",\n    \"city\": \"Bogota\",\n    \"region\": \"Cundinamarca\",\n    \"country\": \"Colombia\",\n    \"postal_code\": \"12\",\n    \"phone_number\": \"573123456789\",\n    \"pickup_date\": \"2025-01-31\"\n  },\n  \"line_items\": [\n    {\n      \"sku\": \"AAABC-2-J0013-L0027-1723-M\",\n      \"qty_returned\": 1,\n      \"buyer_return_reason_code\": 1,\n      \"buyer_return_item_action_code\": 1,\n      \"return_comments\": \"test comment\"\n    }\n  ]\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["buyer-return-orders","v2"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"74132ed1-5252-43a9-a96b-e0543e842b4d","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"parent_external_order_number\": \"EXT-123\",\n  \"buyer_return_order_shipping_method_code\": 1,\n  \"external_order_number\": \"test-public-api-001\",\n  \"external_order_id\": 1,\n  \"buyer\": {\n    \"full_name\": \"Test Test\",\n    \"phone_number\": \"+573123456789\",\n    \"email\": \"string\"\n  },\n  \"comments\": \"dummy commet\",\n  \"pickup_info\": {\n    \"full_name\": \"Test Test\",\n    \"identification_number\": \"1000000\",\n    \"address_l1\": \"CRA 12 A # 145 A - 22\",\n    \"address_l2\": \"\",\n    \"city\": \"Bogota\",\n    \"region\": \"Cundinamarca\",\n    \"country\": \"Colombia\",\n    \"postal_code\": \"12\",\n    \"phone_number\": \"573123456789\",\n    \"pickup_date\": \"2025-01-31\"\n  },\n  \"line_items\": [\n    {\n      \"sku\": \"AAABC-2-J0013-L0027-1723-M\",\n      \"qty_returned\": 1,\n      \"buyer_return_reason_code\": 1,\n      \"buyer_return_item_action_code\": 1,\n      \"return_comments\": \"test comment\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/buyer-return-orders"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 527,\n  \"internal_order_number\": \"R00527\",\n  \"external_order_number\": \"ORDER-DEVOLUCION\",\n  \"external_order_id\": null,\n  \"assigned_warehouse_code\": \"WCOD-1\",\n  \"buyer_full_name\": \"Test Test\",\n  \"creation_date\": \"2025-12-01T16:16:13.000Z\",\n  \"last_modified_date\": \"2025-12-01T16:16:13.000Z\",\n  \"return_full_label_url\": \"https://buyer-return-orders-resources-014568175151.s3.us-east-1.amazonaws.com/public/warehouses/2/return-orders/melonn-full-labels/2025-03-26/R00515-melonn-full-label.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAQGZCUWYXVP3MDZP4%2F20251201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251201T162036Z&X-Amz-Expires=259200&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEDkaCXVzLWVhc3QtMSJHMEUCICHmPhl39zRr9vcEmMzBrPwXETdQmmidl2ZdatLQhFA5AiEA%2FtHuPPEABKwxBx42Kon0UPMUrYMfHskggio3d%2FWEZiIqoQMIARAAGgwwMTQ1NjgxNzUxNTEiDM8i8zjVddz6fUvrFir%2BAu7N1xMHefS8c5vE40QEY%2F7ih691jY90m44RbctXTU8jrY0c0U5mg%2BA68kM4h3LwqYQRUrvLIfWetd6DsQDk75iihnloTx8lu2HpEpeE3%2B1GNlw8gXyjK3KdM7uTiz99DweRjBhsS8PnHQdtqku08RY7N0wDKQ01KjbLYhWhPXp2toQn%2BG36n1kBhOz3oRkDm1G0UK9P0RkKGdUU40wTDo6RzqYaRkaznBZOIk1vKhCfzRQGQRD2V4LPSqdkryndoSnaVCpTAWSgDs3ZZgMeDwgPFzUC35rCpSf%2B1BcjeT%2ByjeKDpc%2F3Y5kCw2CaLorXcGJpxDthft3CCqG%2B4obd5eztoMnXN52AoTBq7nBNnkZCYd5Am%2F%2BXAEsZ4eI4Yi5O%2BvrvjUuNUB9aQQLartHzo045MOAUVO4BRLfr95XwgBZuoQ1UQegtvEZEYU8jY6Ktz2kc7suumfgfDxV4bFHyPLOcX1PJ5xU4EqATMizPqjZoU3%2B1PQhMf88ir%2BfykiQwuf%2B2yQY6nQEiw3hidedV2L%2FBBmeRu%2BkNO5g9vzWUZ0h50kTnSfGz4hMN1StawLzY3h5JXR1LfXSF82UnBVHkbbK8hk3C43nePF6v8QwOzT3Ye5jVwMDwf7BHCPkrO6nIT0vZQ0mZt7GE94lOMEuokXy%2BEOgx23OWBHIY0ihDT0fCZY0u9%2FngbscqentFgnQ%2FI6GPr5zAw4SypGXV18zEDSOcP7Xv&X-Amz-Signature=4db60558f300d24a2847863c6744cc733de6ac0a9d383d97e6e901f7737fc8f6&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject\",\n  \"buyer_return_order_state\": {\n      \"code\": 1,\n      \"closed\": false,\n      \"description\": \"Created\"\n  },\n  \"line_items_summary\": [\n      {\n          \"sku\": \"S0001\",\n          \"qty_returned\": 1,\n          \"content\": [],\n          \"composite\": false\n      }\n  ],\n  \"parent_sell_order\": {\n    \"internal_order_number\": \"S1234567890\",\n    \"external_order_number\": \"EXT-123\",\n    \"external_order_id\": \"123\"\n  }\n}"}],"_postman_id":"e34164f0-aece-44a6-bebb-6c84daadb3f8"},{"name":"Get return order","id":"7042b472-0ebd-4e64-a1b4-51a5d53afb66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/buyer-return-orders/v2/:id","description":"<h3 id=\"get-buyer-return-order-details\">Get buyer return order details</h3>\n<p>Retrieves the details of a specific return order.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will contain the details of the buyer return order, including various attributes such as ID, internal and external order numbers, seller and buyer information, order state, dates.</p>\n<ul>\n<li><p><code>id</code>: Internal ID of the buyer return order.</p>\n</li>\n<li><p><code>internal_order_number</code>: Internal return order number.</p>\n</li>\n<li><p><code>external_order_number</code> / <code>external_order_id</code>: Identifiers used by external systems.</p>\n</li>\n<li><p><code>assigned_warehouse_code</code>: Code of the warehouse where the return is processed.</p>\n</li>\n<li><p><code>buyer_full_name</code>: Full name of the buyer that generated the return.</p>\n</li>\n<li><p><code>creation_date</code>: Date and time when the return order was created.</p>\n</li>\n<li><p><code>last_modified_date</code>: Date and time of the last update to the return order.</p>\n</li>\n<li><p><code>return_full_label_url</code>: A download URL valid for 3 days.</p>\n</li>\n<li><p><code>buyer_return_order_state</code>: Object with detailed information about the state of the return order, including:</p>\n<ul>\n<li><code>code</code>, <code>closed</code>, <code>description</code>.</li>\n</ul>\n</li>\n<li><p><code>line_items_summary</code>: Array with the summary of the returned products.<br />  Each item in this array includes:</p>\n<ul>\n<li><p><code>sku</code>: SKU of the returned product.</p>\n</li>\n<li><p><code>qty_returned</code>: Quantity of that SKU that was returned.</p>\n</li>\n<li><p><code>qty_received_ok</code>: (Optional) Quantity of items received in good condition.</p>\n</li>\n<li><p><code>qty_received_ok_restocked</code>: (Optional) Quantity of items received in good condition that were restocked.</p>\n</li>\n<li><p><code>qty_received_ok_not_restocked</code>: (Optional) Quantity of items received in good condition that were not restocked.</p>\n</li>\n<li><p><code>qty_received_defective</code>: (Optional) Quantity of items received in defective condition.</p>\n</li>\n<li><p><code>composite</code>: Indicates whether the product is a composite (kit) or not.</p>\n</li>\n<li><p><code>content</code>: (Optional) If the product is composite and has components, this field lists its atomic components; otherwise, it is <code>undefined</code>. Each component in the <code>content</code> array includes:</p>\n<ul>\n<li><p><code>sku</code>: SKU of the component product.</p>\n</li>\n<li><p><code>qty_returned</code>: Quantity of that component SKU that was returned.</p>\n</li>\n<li><p><code>qty_received_ok</code>: (Optional) Quantity of component items received in good condition.</p>\n</li>\n<li><p><code>qty_received_ok_restocked</code>: (Optional) Quantity of component items received in good condition that were restocked.</p>\n</li>\n<li><p><code>qty_received_ok_not_restocked</code>: (Optional) Quantity of component items received in good condition that were not restocked.</p>\n</li>\n<li><p><code>qty_received_defective</code>: (Optional) Quantity of component items received in defective condition.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>parent_sell_order</code>: Sell order that the return was created from.</p>\n</li>\n</ul>\n<p>This response will contain <code>line_items_summary</code>, which includes all the information about the returned products. If a product is a composite (kit), its atomic components will be listed in the <code>content</code> field of the composite product.</p>\n<p>The fields <code>qty_received_ok</code>, <code>qty_received_ok_restocked</code>, <code>qty_received_ok_not_restocked</code>, and <code>qty_received_defective</code> are only present when the return order has been received and unpacked at the warehouse. These fields provide detailed information about the condition and handling of the returned items.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 76409,\n  \"internal_order_number\": \"R76409\",\n  \"external_order_number\": \"12600005422400-DEVOLUCION\",\n  \"external_order_id\": null,\n  \"assigned_warehouse_code\": \"WCOD-2\",\n  \"buyer_full_name\": \"Test Test\",\n  \"creation_date\": \"2025-11-12T00:44:25.000Z\",\n  \"last_modified_date\": \"2025-11-20T20:15:44.000Z\",\n  \"return_full_label_url\": \"https://buyer-return-orders-resources-335198790816.s3.us-east-1.amazonaws.com/public/warehouses/5/return-orders/melonn-full-labels/2025-11-12/R76409-melonn-full-label.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&amp;X-Amz-Credential=ASIAU4C3HUSQMIBO33TH/20251126/us-east-1/s3/aws4_request&amp;X-Amz-Date=20251126T182028Z&amp;X-Amz-Expires=3600&amp;X-Amz-Security-Token=IQoJb3JpZ2luX2VjEML//////////wEaCXVzLWVhc3QtMSJHMEUCIQD3yLCN+zCuysdAgMQWq9VrT8JDl13WyBCWlF8bMa/1mAIgGrTFxKpznbv3PJYGBholqHrKCeYtbObJs6nO3GNpiv8qsAMIi///////////ARACGgwzMzUxOTg3OTA4MTYiDHKtqESh48vtEFM63iqEA9ncezV1qBHlPI8ZIRCZ4ITFgRJLPrvl64QADF899GcEdizYmOm4zx8niEabttDtMXgNQn9nJf0mH7eKQ8muP6SF7utBcJqO29wwe0nLe/spY6TheNdz0Er9tpKhOd2UZGyXoGG0ZOB6PN9puLSm+h2lcdq+oUXFRzFmBmk4JxKiEn0NErumPoBaFVtyHfRUqNK8/6Niqnd3VJWFovVJEERYwE0dXqmC/owGwvLc5srPBrylV7fte4qgkBE6ERjwwW+ktsrQwvvqLU7NPbCpa0xFJk2u7cDWKMQZyUU9BIWO10kcr2RC8UJmlxmrL4POePERH7L4VjHyUiIIx/YGNmadZta2Kf0CKtnEYTMGN5MQbHMNXJ4fmYvvYBWif5+L7qkSbHn1ZiqBpaUPtwGSrVbf2Fd9aurdk6fUe/cYiN+U6ZJ42UnktLHyTo9fsPg8GDTxodbWUSNzt6r3UeubULcNGmAjgsqDqQ/qCEB7yqEozsjm1lSiRu2g0ni3GLrzKcd0y7kws/KcyQY6nQG1UcltftSbfovPNGytnJ5u1ewkbNJ+/KjwhXbpFEe/d38guODzXqeAA4F4ySSClu6enQoTLax8O0UUxpmVsVickcFomwbV6PpYP2DFbR7xemN0CLASz0ruA/RIAx3fuWzVUjInSqdR5MOFXiXCYmIS+36bmm7vU3cLZNBd81y+3x8NbppNbwcS1J4zgQBKVTQcKV3pOJM53kJSHrvJ&amp;X-Amz-Signature=14278023e37fcfbc0f6f32a66e968a8e083ff5809a0bdbf76dfb5bbe9974476c&amp;X-Amz-SignedHeaders=host&amp;x-amz-checksum-mode=ENABLED&amp;x-id=GetObject\",\n  \"buyer_return_order_state\": {\n    \"code\": 6,\n    \"closed\": true,\n    \"description\": \"Processed\"\n  },\n  \"line_items_summary\": [\n    {\n      \"sku\": \"BLACK_SHIRT_SIZE_M\",\n      \"qty_returned\": 1,\n      \"qty_received_ok\": 1,\n      \"qty_received_ok_restocked\": 1,\n      \"qty_received_ok_not_restocked\": 0,\n      \"qty_received_defective\": 0,\n      \"composite\": false\n    },\n    {\n      \"sku\": \"SHIRT_KIT_SIZE_M\",\n      \"qty_returned\": 1,\n      \"qty_received_ok\": 1,\n      \"qty_received_ok_restocked\": 0,\n      \"qty_received_ok_not_restocked\": 1,\n      \"qty_received_defective\": 0,\n      \"content\": [\n        {\n          \"sku\": \"BLACK_SHIRT_SIZE_M\",\n          \"qty_returned\": 1,\n          \"qty_received_ok\": 1,\n          \"qty_received_ok_restocked\": 1,\n          \"qty_received_ok_not_restocked\": 0,\n          \"qty_received_defective\": 0\n        },\n        {\n          \"sku\": \"RED_SHIRT_SIZE_M\",\n          \"qty_returned\": 1,\n          \"qty_received_ok\": 1,\n          \"qty_received_ok_restocked\": 0,\n          \"qty_received_ok_not_restocked\": 1,\n          \"qty_received_defective\": 0\n        },\n        {\n          \"sku\": \"GREEN_SHIRT_SIZE_M\",\n          \"qty_returned\": 1,\n          \"qty_received_ok\": 0,\n          \"qty_received_ok_restocked\": 0,\n          \"qty_received_ok_not_restocked\": 0,\n          \"qty_received_defective\": 1\n        }\n      ],\n      \"composite\": true\n    }\n  ],\n  \"parent_sell_order\": {\n    \"internal_order_number\": \"M1234567890\",\n    \"external_order_number\": \"EX1234567890\",\n    \"external_order_id\": \"123\"\n  }\n}\n\n</code></pre>\n<p>In this example:</p>\n<ul>\n<li><p>The first product (sku: BLACK_SHIRT_SIZE_M) is a standard product (not composite) that was received in good condition and restocked.</p>\n</li>\n<li><p>The second product (sku: SHIRT_KIT_SIZE_M) is a kit product (composite) that consists of three atomic products:</p>\n<ul>\n<li><p>BLACK_SHIRT_SIZE_M: received in good condition and restocked</p>\n</li>\n<li><p>RED_SHIRT_SIZE_M: received in good condition but not restocked</p>\n</li>\n<li><p>GREEN_SHIRT_SIZE_M: received in defective condition</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["buyer-return-orders","v2",":id"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>The internal ID or external number of the buyer return order.</p>\n","type":"text/plain"},"type":"any","value":"R00527","key":"id"}]}},"response":[{"id":"5c30e692-e3a5-4b41-90b0-9829007a1726","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/buyer-return-orders/v2/:id","host":["{{api_url}}"],"path":["buyer-return-orders","v2",":id"],"variable":[{"key":"id","value":"R00527"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 01 Dec 2025 16:20:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2178"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"410f3ad7-2c0d-4063-99ae-d278e21cb7da"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"afcc2600-1b9f-417c-8d8d-d48935e08d6a"},{"key":"x-amzn-Remapped-Content-Length","value":"2178"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Mon, 01 Dec 2025 16:20:36 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"U6r9MGauIAMEquQ="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"2178"},{"key":"X-Amzn-Trace-Id","value":"Root=1-692dc054-6b16afd33f9d3f6d71b4143a"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Mon, 01 Dec 2025 16:20:36 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 527,\n  \"internal_order_number\": \"R00527\",\n  \"external_order_number\": \"PAO-D2C-ORDER-WITH-KIT-DEVOLUCION\",\n  \"external_order_id\": null,\n  \"assigned_warehouse_code\": \"WCOD-2\",\n  \"buyer_full_name\": \"Test Test\",\n  \"creation_date\": \"2025-12-01T16:16:13.000Z\",\n  \"last_modified_date\": \"2025-12-01T16:16:13.000Z\",\n  \"return_full_label_url\": \"https://buyer-return-orders-resources-014568175151.s3.us-east-1.amazonaws.com/public/warehouses/2/return-orders/melonn-full-labels/2025-03-26/R00515-melonn-full-label.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAQGZCUWYXVP3MDZP4%2F20251201%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251201T162036Z&X-Amz-Expires=259200&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEDkaCXVzLWVhc3QtMSJHMEUCICHmPhl39zRr9vcEmMzBrPwXETdQmmidl2ZdatLQhFA5AiEA%2FtHuPPEABKwxBx42Kon0UPMUrYMfHskggio3d%2FWEZiIqoQMIARAAGgwwMTQ1NjgxNzUxNTEiDM8i8zjVddz6fUvrFir%2BAu7N1xMHefS8c5vE40QEY%2F7ih691jY90m44RbctXTU8jrY0c0U5mg%2BA68kM4h3LwqYQRUrvLIfWetd6DsQDk75iihnloTx8lu2HpEpeE3%2B1GNlw8gXyjK3KdM7uTiz99DweRjBhsS8PnHQdtqku08RY7N0wDKQ01KjbLYhWhPXp2toQn%2BG36n1kBhOz3oRkDm1G0UK9P0RkKGdUU40wTDo6RzqYaRkaznBZOIk1vKhCfzRQGQRD2V4LPSqdkryndoSnaVCpTAWSgDs3ZZgMeDwgPFzUC35rCpSf%2B1BcjeT%2ByjeKDpc%2F3Y5kCw2CaLorXcGJpxDthft3CCqG%2B4obd5eztoMnXN52AoTBq7nBNnkZCYd5Am%2F%2BXAEsZ4eI4Yi5O%2BvrvjUuNUB9aQQLartHzo045MOAUVO4BRLfr95XwgBZuoQ1UQegtvEZEYU8jY6Ktz2kc7suumfgfDxV4bFHyPLOcX1PJ5xU4EqATMizPqjZoU3%2B1PQhMf88ir%2BfykiQwuf%2B2yQY6nQEiw3hidedV2L%2FBBmeRu%2BkNO5g9vzWUZ0h50kTnSfGz4hMN1StawLzY3h5JXR1LfXSF82UnBVHkbbK8hk3C43nePF6v8QwOzT3Ye5jVwMDwf7BHCPkrO6nIT0vZQ0mZt7GE94lOMEuokXy%2BEOgx23OWBHIY0ihDT0fCZY0u9%2FngbscqentFgnQ%2FI6GPr5zAw4SypGXV18zEDSOcP7Xv&X-Amz-Signature=4db60558f300d24a2847863c6744cc733de6ac0a9d383d97e6e901f7737fc8f6&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject\",\n  \"buyer_return_order_state\": {\n    \"code\": 1,\n    \"closed\": false,\n    \"description\": \"Created\"\n  },\n  \"line_items_summary\": [\n    {\n      \"sku\": \"S0001\",\n      \"qty_returned\": 2,\n      \"content\": [],\n      \"composite\": false\n    },\n    {\n      \"sku\": \"S0003\",\n      \"qty_returned\": 2,\n      \"content\": [],\n      \"composite\": false\n    },\n    {\n      \"sku\": \"S0004\",\n      \"qty_returned\": 2,\n      \"content\": [],\n      \"composite\": false\n    }\n  ],\n  ,\n  \"parent_sell_order\": {\n    \"internal_order_number\": \"M1234567890\",\n    \"external_order_number\": \"EX1234567890\",\n    \"external_order_id\": \"123\"\n  }\n}"}],"_postman_id":"7042b472-0ebd-4e64-a1b4-51a5d53afb66"},{"name":"List return orders","id":"db4b8bfb-2157-4236-a7cc-c7772083b89c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/buyer-return-orders/v2/?page=0&per_page=10","description":"<h3 id=\"list-buyer-return-order-details\">List buyer return order details</h3>\n<h4 id=\"retrieves-a-paginated-list-of-return-orders\">Retrieves a paginated list of return orders.</h4>\n<p><strong>Query Parameters</strong></p>\n<ul>\n<li><p><code>page</code> (integer, optional): Page number (default 0).</p>\n</li>\n<li><p><code>per_page</code> (integer, optional): Items per page (max 100).</p>\n</li>\n<li><p><code>buyer_return_order_state_id[]</code> (array[int], optional): Filter by one or multiple status IDs (e.g., <code>?buyer_return_order_state_code=[1,2,3]</code>).</p>\n</li>\n<li><p><code>external_order_number[]</code> (array[string], optional): Filter by one or multiple external order ids (e.g., <code>?external_order_number=[\"11233\", \"342342\"]</code>).</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>On success, the endpoint returns a JSON object with two main sections: <code>data</code> and <code>meta</code>.</p>\n<ul>\n<li><p><code>data</code> is an array where each element represents a buyer return order.<br />  Each buyer return order includes, among others, the following attributes:</p>\n<ul>\n<li><p><code>id</code>: Internal ID of the buyer return order.</p>\n</li>\n<li><p><code>internal_order_number</code>: Internal return order number.</p>\n</li>\n<li><p><code>external_order_number</code> / <code>external_order_id</code>: Identifiers used by external systems.</p>\n</li>\n<li><p><code>assigned_warehouse_code</code>: Code of the warehouse where the return is processed.</p>\n</li>\n<li><p><code>buyer_full_name</code>: Full name of the buyer that generated the return.</p>\n</li>\n<li><p><code>creation_date</code>: Date and time when the return order was created.</p>\n</li>\n<li><p><code>last_modified_date</code>: Date and time of the last update to the return order.</p>\n</li>\n<li><p><code>buyer_return_order_state</code>: Object with detailed information about the state of the return order, including:</p>\n<ul>\n<li><code>code</code>, <code>closed</code>, <code>description</code>.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>meta</code> contains pagination information:</p>\n<ul>\n<li><p><code>page</code>: Current page number.</p>\n</li>\n<li><p><code>per_page</code>: Maximum number of records returned per page.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["buyer-return-orders","v2",""],"host":["{{api_url}}"],"query":[{"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Items per page (max 100)</p>\n","type":"text/plain"},"key":"per_page","value":"10"},{"disabled":true,"description":{"content":"<p>Filter by one or multiple status IDs</p>\n","type":"text/plain"},"key":"buyer_return_order_state_code","value":"[1,2,3]"},{"disabled":true,"description":{"content":"<p>Filter by one or multiple external order ids</p>\n","type":"text/plain"},"key":"external_order_number","value":"[\"11233\", \"342342\"]"}],"variable":[]}},"response":[{"id":"5fbf52bd-460f-41ff-9276-e7c56c841460","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/buyer-return-orders/v2/?page=0&per_page=10","host":["{{api_url}}"],"path":["buyer-return-orders","v2",""],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 01 Dec 2025 16:20:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2178"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"410f3ad7-2c0d-4063-99ae-d278e21cb7da"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"afcc2600-1b9f-417c-8d8d-d48935e08d6a"},{"key":"x-amzn-Remapped-Content-Length","value":"2178"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Mon, 01 Dec 2025 16:20:36 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"U6r9MGauIAMEquQ="},{"key":"x-amzn-Remapped-x-amzn-Remapped-content-length","value":"2178"},{"key":"X-Amzn-Trace-Id","value":"Root=1-692dc054-6b16afd33f9d3f6d71b4143a"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Mon, 01 Dec 2025 16:20:36 GMT"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": 76409,\n      \"internal_order_number\": \"R76409\",\n      \"external_order_number\": \"12600005422400-DEVOLUCION\",\n      \"external_order_id\": null,\n      \"assigned_warehouse_code\": \"WCOD-1\",\n      \"buyer_full_name\": \"Aldo Alonso Carrete Espinoza\",\n      \"creation_date\": \"2025-11-12T00:44:25.000Z\",\n      \"last_modified_date\": \"2025-11-20T20:15:44.000Z\",\n      \"buyer_return_order_state\": {\n        \"code\": 6,\n        \"closed\": true,\n        \"description\": \"Processed\"\n      }\n    }\n  ],\n  \"meta\": {\n    \"page\": 1,\n    \"per_page\": 10\n  }\n}"}],"_postman_id":"db4b8bfb-2157-4236-a7cc-c7772083b89c"},{"name":"Cancel return order","id":"f49a2fd0-1c9d-48d7-a472-7db8e4c257ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{api_url}}/buyer-return-orders/v2/:internal_order_number/cancel","description":"<h3 id=\"cancel-buyer-return-order\">Cancel buyer return order</h3>\n<p>Cancel a return order. This action is only valid if the return order is in one of the following statuses:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td><strong>Created</strong></td>\n</tr>\n<tr>\n<td>7</td>\n<td><strong>Transport service requested</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response\"><strong>Response</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>204 OK</td>\n<td>Order cancelled successfully.</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>Order state does not allow cancellation.</td>\n</tr>\n<tr>\n<td>405 Method Not Allowed</td>\n<td>Order state does not allow cancellation.</td>\n</tr>\n<tr>\n<td>403 Forbidden</td>\n<td>Order does not exist or belongs to another seller.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["buyer-return-orders","v2",":internal_order_number","cancel"],"host":["{{api_url}}"],"query":[],"variable":[{"description":{"content":"<p>The internal ID of the buyer return order.</p>\n","type":"text/plain"},"type":"any","value":"R00527","key":"internal_order_number"}]}},"response":[{"id":"ed4f4a42-e699-4c67-ac4e-e325d87f2902","name":"Ok","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{api_url}}/buyer-return-orders/v2/:internal_order_number/cancel","host":["{{api_url}}"],"path":["buyer-return-orders","v2",":internal_order_number","cancel"],"variable":[{"key":"internal_order_number","value":"R00527","description":"The internal ID of the buyer return order."}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Mon, 01 Dec 2025 16:41:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"efdaea13-1ae3-4bae-9226-36918de65dc5"},{"key":"x-amzn-Remapped-x-amzn-RequestId","value":"1fa2062f-db25-45e8-b5cb-a4b890985e75"},{"key":"x-amzn-Remapped-Content-Length","value":"0"},{"key":"x-amzn-Remapped-x-amzn-Remapped-date","value":"Mon, 01 Dec 2025 16:41:54 GMT"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"x-amz-apigw-id","value":"U6vERG4jIAMErZg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-692dc54e-0ac3e8fb1d6786397fefd835"},{"key":"x-amzn-Remapped-x-amzn-Remapped-connection","value":"keep-alive"},{"key":"x-amzn-Remapped-Date","value":"Mon, 01 Dec 2025 16:41:54 GMT"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f49a2fd0-1c9d-48d7-a472-7db8e4c257ed"}],"id":"20078787-3bb0-41a2-8461-2cd442a6d932","description":"<blockquote>\n<p>🚧 This documentation is under construction, if you need to find more information you can check it out at <a href=\"https://www.notion.so/melonn/Devoluciones-81cee32609cb491da5ca6eb1317a7d1b?pvs=4\">learn with Melonn - Buyer return orders</a> </p>\n</blockquote>\n<h1 id=\"summary\">Summary</h1>\n<p>A <strong>Buyer Return Order</strong> represents the process of managing returns for items purchased by a customer. This API allows you to create, cancel, list, and retrieve return orders, offering the flexibility needed to handle customer returns efficiently and reliably.</p>\n<h2 id=\"key-concepts\">Key concepts</h2>\n<ul>\n<li><p><strong>Return Items:</strong> Details the items being returned, including quantities, reasons, and actions to be taken.</p>\n</li>\n<li><p><strong>Order States:</strong> Tracks the status of the return order, from creation to processing or closure.</p>\n</li>\n<li><p><strong>Product Kit:</strong> A kit product is a composition of multiple atomic products. It has all the properties of a product (barcode, SKU, etc.), but physically consists of multiple atomic products.</p>\n</li>\n<li><p><strong>Atomic Product:</strong> An atomic product is a single item and the fundamental entity that Melonn operates with.</p>\n</li>\n</ul>\n<h1 id=\"📋-entities\">📋 Entities</h1>\n<h2 id=\"buyer-return-order-states\">Buyer return order states</h2>\n<p>This table show the states a buyer return order could have. The states with the closed flag on true represents the end of lifecycle.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Closed</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td><strong>Created</strong></td>\n<td>false</td>\n</tr>\n<tr>\n<td>2</td>\n<td><strong>Cancelled</strong></td>\n<td>true</td>\n</tr>\n<tr>\n<td>3</td>\n<td><strong>In transit</strong></td>\n<td>false</td>\n</tr>\n<tr>\n<td>4</td>\n<td><strong>Received</strong></td>\n<td>false</td>\n</tr>\n<tr>\n<td>5</td>\n<td><strong>Processing</strong></td>\n<td>false</td>\n</tr>\n<tr>\n<td>6</td>\n<td><strong>Processed</strong></td>\n<td>true</td>\n</tr>\n<tr>\n<td>7</td>\n<td><strong>Transport service requested</strong></td>\n<td>false</td>\n</tr>\n<tr>\n<td>8</td>\n<td><strong>Delivered at warehouse by transport service</strong></td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"shipping-methods\">Shipping methods</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Name</th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Managed by melonn</td>\n<td>Melonn manages transportation by generating a pickup service at the buyer's address.</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Managed by buyer</td>\n<td>The buyer is responsible for arranging transportation to return the item to the warehouse.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"reason-catalog\">Reason catalog</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Wrong product</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Damaged product</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Buyer does not want the product any more</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Change for other product</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Additional product received by the buyer</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"actions\">Actions</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Return to stock</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Return to seller</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Discard</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Donate</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"20078787-3bb0-41a2-8461-2cd442a6d932","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Seller Products","item":[{"name":"Barcodes","item":[{"name":"Create Barcode","id":"662a3ad2-de6c-48f8-8fa4-6b8d3b609fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"barcode\": \"0561\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/seller-products/:sku/barcode","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["seller-products",":sku","barcode"],"host":["{{api_url}}"],"query":[],"variable":[{"type":"any","value":"AAADF-10-L0027-L0027-126-NA","key":"sku"}]}},"response":[{"id":"afb296cb-6797-4ade-bc20-2b88671a7fa0","name":"Create Barcode","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"barcode\": \"BCODE1234\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/seller-products/:sku/barcodes","host":["{{api_url}}"],"path":["seller-products",":sku","barcodes"],"variable":[{"key":"sku","value":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 44594,\n    \"barcode\": \"BCODE1234\",\n    \"managed_by\": \"SELLER\",\n    \"seller_product_id\": 121131\n}"}],"_postman_id":"662a3ad2-de6c-48f8-8fa4-6b8d3b609fc1"}],"id":"62b7efc7-7a89-4748-83bf-b793cc4231d8","_postman_id":"62b7efc7-7a89-4748-83bf-b793cc4231d8","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"List Seller Product","id":"3f11d7d0-0695-40a8-a181-6b57f9725ff2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/seller-products?page=0&per_page=10&sort_field=id&sort_order=desc&active=true","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["seller-products"],"host":["{{api_url}}"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"10"},{"key":"sort_field","value":"id"},{"key":"sort_order","value":"desc"},{"key":"active","value":"true"}],"variable":[]}},"response":[{"id":"9b0d594c-ebcb-45a7-b88b-8595d28f79a5","name":"List Seller Product","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/seller-products?page=0&per_page=10&sort_field=id&sort_order=desc&active=true","host":["{{api_url}}"],"path":["seller-products"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"10"},{"key":"sort_field","value":"id"},{"key":"sort_order","value":"desc"},{"key":"active","value":"true"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n    \"data\": [\r\n        {\r\n            \"id\": 121128,\r\n            \"seller_id\": 70,\r\n            \"product_id\": 93025,\r\n            \"active\": true,\r\n            \"composite\": false,\r\n            \"sku\": \"SKU000212431\",\r\n            \"external_barcode\": null,\r\n            \"internal_code\": \"P00121128\",\r\n            \"source_seller_ecommerce_store_id\": null,\r\n            \"reception_instructions\": null,\r\n            \"packing_instructions\": null,\r\n            \"creation_date\": \"2025-08-11T15:37:26.000Z\",\r\n            \"last_updated_date\": null,\r\n            \"buyer_returns_allowed\": true,\r\n            \"default_buyer_return_item_action_id\": null,\r\n            \"restock_failed_inspection_buyer_return_item_action_id\": null,\r\n            \"buyer_return_restock_inspection_instructions\": null,\r\n            \"low_stock_notification_threshold\": 1,\r\n            \"last_low_stock_notification_date\": null,\r\n            \"storage_instructions\": null,\r\n            \"requires_health_register\": null,\r\n            \"health_register_document_url\": null,\r\n            \"packing_material_type_id\": null,\r\n            \"pre_packed_order_container\": null,\r\n            \"product_type_id\": 1,\r\n            \"product_category_id\": null,\r\n            \"product_category\": \"Calzado\",\r\n            \"product_brand_id\": null,\r\n            \"product_brand\": \"Boubles\",\r\n            \"name\": \"Zapatos Azules\",\r\n            \"description\": null,\r\n            \"variant\": \"Talla pequeña\",\r\n            \"perishable\": null,\r\n            \"control_by_lot_number\": false,\r\n            \"control_by_serial_number\": false,\r\n            \"fragile\": null,\r\n            \"net_content\": null,\r\n            \"small_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\r\n            \"medium_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\r\n            \"large_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\r\n            \"stackable\": null,\r\n            \"min_storage_temp_celcius\": 12,\r\n            \"max_storage_temp_celcius\": 12,\r\n            \"allows_cross_contamination\": null,\r\n            \"flammable\": false,\r\n            \"weapon\": false,\r\n            \"sat_category_id\": 18849,\r\n            \"lot_number_regex\": null,\r\n            \"serial_number_regex\": null,\r\n            \"expiration_date_format\": null,\r\n            \"use_state_height\": null,\r\n            \"use_state_length\": null,\r\n            \"use_state_width\": null,\r\n            \"use_state_dimensions_validated\": null,\r\n            \"exclude_from_dimensioning\": null,\r\n            \"product_type\": {\r\n                \"id\": 1,\r\n                \"name\": \"Sellable\",\r\n                \"description\": \"Items that can be sold\"\r\n            }\r\n        }\r\n    ],\r\n    \"meta_data\": {\r\n        \"page\": 0,\r\n        \"per_page\": 10,\r\n        \"total_count\": 25\r\n    }\r\n}"}],"_postman_id":"3f11d7d0-0695-40a8-a181-6b57f9725ff2"},{"name":"Update Seller Product","id":"1240b85f-52d2-4153-9352-a8695ef6212a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Zapatos Azules\",\n    \"variant\": \"Talla pequeña\",\n    \"category\": \"Calzado\",\n    \"brand\": \"Boubles\",\n    \"active\": true,\n    \"image\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"composite\": false,\n    \"low_stock_notification_threshold\": 10,\n    \"min_storage_temp_celcius\": 1,\n    \"max_storage_temp_celcius\": 1,\n    \"allows_cross_contamination\": true,\n    \"buyer_returns_allowed\": false,\n    \"control_by_lot_number\": true,\n    \"control_by_serial_number\": true,\n    \"expiration_date_format\": \"DDMMYY\",\n    \"fragile\": true,\n    \"packing_instructions\": \"Empacar con tarjeta de bienvenida\",\n    \"perishable\": true,\n    \"pre_packed_order_container\": false,\n    \"reception_instructions\": \"TEST RECEPCION\",\n    \"requires_health_register\": false,\n    \"default_buyer_return_item_action_id\": \"DONATE\",\n    \"restock_failed_inspection_buyer_return_item_action_id\": \"DISCARD\",\n    \"stackable\": true,\n    \"storage_instructions\": \"Empacar en Caja del mismo color del zapato\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/seller-products/:seller_product_sku","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["seller-products",":seller_product_sku"],"host":["{{api_url}}"],"query":[],"variable":[{"type":"any","value":"S0001","key":"seller_product_sku"}]}},"response":[{"id":"a205ff76-509b-4790-893e-46123fada3ff","name":"Update Seller Product","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Zapatos Azules\",\n    \"variant\": \"Talla pequeña\",\n    \"product_category\": \"Calzado\",\n    \"product_brand\": \"Boubles\",\n    \"active\": true,\n    \"image\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"composite\": false,\n    \"low_stock_notification_threshold\": 10,\n    \"min_storage_temp_celcius\": null,\n    \"max_storage_temp_celcius\": null,\n    \"allows_cross_contamination\": true,\n    \"buyer_returns_allowed\": false,\n    \"control_by_lot_number\": true,\n    \"control_by_serial_number\": true,\n    \"expiration_date_format\": \"DDMMYY\",\n    \"fragile\": true,\n    \"packing_instructions\": \"Empacar con tarjeta de bienvenida\",\n    \"perishable\": true,\n    \"pre_packed_order_container\": false,\n    \"reception_instructions\": \"TEST RECEPCION\",\n    \"requires_health_register\": false,\n    \"default_buyer_return_item_action_id\": \"DONATE\",\n    \"restock_failed_inspection_buyer_return_item_action_id\": \"DISCARD\",\n    \"stackable\": true,\n    \"storage_instructions\": \"Empacar en Caja del mismo color del zapato\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api_url}}/seller-products/:seller_product_sku","host":["{{api_url}}"],"path":["seller-products",":seller_product_sku"],"variable":[{"key":"seller_product_sku","value":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 121129,\n    \"seller_id\": 70,\n    \"product_id\": 93026,\n    \"active\": true,\n    \"composite\": false,\n    \"sku\": \"AZULZAP01\",\n    \"external_barcode\": null,\n    \"internal_code\": \"P00121129\",\n    \"source_seller_ecommerce_store_id\": null,\n    \"reception_instructions\": null,\n    \"packing_instructions\": null,\n    \"creation_date\": \"2025-08-11T16:25:36.000Z\",\n    \"last_updated_date\": null,\n    \"buyer_returns_allowed\": true,\n    \"default_buyer_return_item_action_id\": null,\n    \"restock_failed_inspection_buyer_return_item_action_id\": null,\n    \"buyer_return_restock_inspection_instructions\": null,\n    \"low_stock_notification_threshold\": 1,\n    \"last_low_stock_notification_date\": null,\n    \"storage_instructions\": null,\n    \"requires_health_register\": null,\n    \"health_register_document_url\": null,\n    \"packing_material_type_id\": null,\n    \"pre_packed_order_container\": null,\n    \"product_type_id\": 1,\n    \"product_category_id\": null,\n    \"product_category\": \"Calzado\",\n    \"product_brand_id\": null,\n    \"product_brand\": \"Boubles\",\n    \"name\": \"Zapatos Azules\",\n    \"description\": null,\n    \"variant\": \"Talla pequeña\",\n    \"perishable\": null,\n    \"control_by_lot_number\": false,\n    \"control_by_serial_number\": false,\n    \"fragile\": null,\n    \"net_content\": null,\n    \"small_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"medium_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"large_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"stackable\": null,\n    \"min_storage_temp_celcius\": 12,\n    \"max_storage_temp_celcius\": 12,\n    \"allows_cross_contamination\": null,\n    \"flammable\": false,\n    \"weapon\": false,\n    \"sat_category_id\": 18849,\n    \"lot_number_regex\": null,\n    \"serial_number_regex\": null,\n    \"expiration_date_format\": null,\n    \"use_state_height\": null,\n    \"use_state_length\": null,\n    \"use_state_width\": null,\n    \"use_state_dimensions_validated\": null,\n    \"exclude_from_dimensioning\": null,\n    \"product_type\": {\n        \"id\": 1,\n        \"name\": \"Sellable\",\n        \"description\": \"Items that can be sold\"\n    }\n}"}],"_postman_id":"1240b85f-52d2-4153-9352-a8695ef6212a"},{"name":"Get Seller Product","id":"31e4f4d8-9d13-4b3b-aca5-ae82d24dde16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/seller-products/7507057371811M","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["seller-products","7507057371811M"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"1092398b-f8be-43cb-bdca-b133db4dd924","name":"Get Seller Product","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/seller-products/:seller_product_sku","host":["{{api_url}}"],"path":["seller-products",":seller_product_sku"],"variable":[{"key":"seller_product_sku","value":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 121129,\n    \"seller_id\": 70,\n    \"product_id\": 93026,\n    \"active\": true,\n    \"composite\": false,\n    \"sku\": \"AZULZAP01\",\n    \"external_barcode\": null,\n    \"internal_code\": \"P00121129\",\n    \"source_seller_ecommerce_store_id\": null,\n    \"reception_instructions\": null,\n    \"packing_instructions\": null,\n    \"creation_date\": \"2025-08-11T16:25:36.000Z\",\n    \"last_updated_date\": null,\n    \"buyer_returns_allowed\": true,\n    \"default_buyer_return_item_action_id\": null,\n    \"restock_failed_inspection_buyer_return_item_action_id\": null,\n    \"buyer_return_restock_inspection_instructions\": null,\n    \"low_stock_notification_threshold\": 1,\n    \"last_low_stock_notification_date\": null,\n    \"storage_instructions\": null,\n    \"requires_health_register\": null,\n    \"health_register_document_url\": null,\n    \"packing_material_type_id\": null,\n    \"pre_packed_order_container\": null,\n    \"product_type_id\": 1,\n    \"product_category_id\": null,\n    \"product_category\": \"Calzado\",\n    \"product_brand_id\": null,\n    \"product_brand\": \"Boubles\",\n    \"name\": \"Zapatos Azules\",\n    \"description\": null,\n    \"variant\": \"Talla pequeña\",\n    \"perishable\": null,\n    \"control_by_lot_number\": false,\n    \"control_by_serial_number\": false,\n    \"fragile\": null,\n    \"net_content\": null,\n    \"small_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"medium_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"large_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"stackable\": null,\n    \"min_storage_temp_celcius\": 12,\n    \"max_storage_temp_celcius\": 12,\n    \"allows_cross_contamination\": null,\n    \"flammable\": false,\n    \"weapon\": false,\n    \"sat_category_id\": 18849,\n    \"lot_number_regex\": null,\n    \"serial_number_regex\": null,\n    \"expiration_date_format\": null,\n    \"use_state_height\": null,\n    \"use_state_length\": null,\n    \"use_state_width\": null,\n    \"use_state_dimensions_validated\": null,\n    \"exclude_from_dimensioning\": null,\n    \"product_type\": {\n        \"id\": 1,\n        \"name\": \"Sellable\",\n        \"description\": \"Items that can be sold\"\n    }\n}"}],"_postman_id":"31e4f4d8-9d13-4b3b-aca5-ae82d24dde16"},{"name":"Create Seller Product","id":"b2da58ea-b3e4-4844-93df-d604d6a0e3c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Zapatos Azules\",\n    \"variant\": \"Talla pequeña\",\n    \"sku\": \"AZULZAP031934\",\n    \"category\": \"Calzado\",\n    \"brand\": \"Boubles\",\n    \"active\": true,\n    \"image\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"composite\": false,\n    \"low_stock_notification_threshold\": 10,\n    \"min_storage_temp_celcius\": 12,\n    \"max_storage_temp_celcius\": 12,\n    \"allows_cross_contamination\": true,\n    \"buyer_returns_allowed\": false,\n    \"control_by_lot_number\": true,\n    \"control_by_serial_number\": true,\n    \"expiration_date_format\": \"DDMMYY\",\n    \"fragile\": true,\n    \"packing_instructions\": \"Empacar con tarjeta de bienvenida\",\n    \"perishable\": true,\n    \"pre_packed_order_container\": false,\n    \"reception_instructions\": \"TEST RECEPCION\",\n    \"requires_health_register\": false,\n    \"default_buyer_return_item_action_id\": \"DONATE\",\n    \"restock_failed_inspection_buyer_return_item_action_id\": \"DISCARD\",\n    \"stackable\": true,\n    \"storage_instructions\": \"Empacar en Caja del mismo color del zapato\",\n    \"seller_product_barcodes\": [\n        {\n            \"barcode\": \"BC00031934\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/seller-products","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["seller-products"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"03e7952d-e35a-4b32-b584-43dec4cf9334","name":"Create Seller Product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Zapatos Azules\",\n    \"variant\": \"Talla pequeña\",\n    \"sku\": \"AZULZAP01\",\n    \"product_category\": \"Calzado\",\n    \"product_brand\": \"Boubles\",\n    \"active\": true,\n    \"image\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"composite\": false,\n    \"low_stock_notification_threshold\": 10,\n    \"min_storage_temp_celcius\": 12,\n    \"max_storage_temp_celcius\": 12,\n    \"allows_cross_contamination\": true,\n    \"buyer_returns_allowed\": false,\n    \"control_by_lot_number\": true,\n    \"control_by_serial_number\": true,\n    \"expiration_date_format\": \"DDMMYY\",\n    \"fragile\": true,\n    \"packing_instructions\": \"Empacar con tarjeta de bienvenida\",\n    \"perishable\": true,\n    \"pre_packed_order_container\": false,\n    \"reception_instructions\": \"TEST RECEPCION\",\n    \"requires_health_register\": false,\n    \"default_buyer_return_item_action_id\": \"DONATE\",\n    \"restock_failed_inspection_buyer_return_item_action_id\": \"DISCARD\",\n    \"stackable\": true,\n    \"storage_instructions\": \"Empacar en Caja del mismo color del zapato\",\n    \"seller_product_barcodes\": [\n        {\n            \"barcode\": \"BC0002\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{api_url}}/seller-products"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"id\": 121129,\n    \"seller_id\": 70,\n    \"product_id\": 93026,\n    \"active\": true,\n    \"composite\": false,\n    \"sku\": \"AZULZAP01\",\n    \"external_barcode\": null,\n    \"internal_code\": \"P00121129\",\n    \"source_seller_ecommerce_store_id\": null,\n    \"reception_instructions\": null,\n    \"packing_instructions\": null,\n    \"creation_date\": \"2025-08-11T16:25:36.000Z\",\n    \"last_updated_date\": null,\n    \"buyer_returns_allowed\": true,\n    \"default_buyer_return_item_action_id\": null,\n    \"restock_failed_inspection_buyer_return_item_action_id\": null,\n    \"buyer_return_restock_inspection_instructions\": null,\n    \"low_stock_notification_threshold\": 1,\n    \"last_low_stock_notification_date\": null,\n    \"storage_instructions\": null,\n    \"requires_health_register\": null,\n    \"health_register_document_url\": null,\n    \"packing_material_type_id\": null,\n    \"pre_packed_order_container\": null,\n    \"product_type_id\": 1,\n    \"product_category_id\": null,\n    \"product_category\": \"Calzado\",\n    \"product_brand_id\": null,\n    \"product_brand\": \"Boubles\",\n    \"name\": \"Zapatos Azules\",\n    \"description\": null,\n    \"variant\": \"Talla pequeña\",\n    \"perishable\": null,\n    \"control_by_lot_number\": false,\n    \"control_by_serial_number\": false,\n    \"fragile\": null,\n    \"net_content\": null,\n    \"small_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"medium_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"large_image_url\": \"https://melonn-public-resources-014568175151.s3.amazonaws.com/public/products/707753ea75-0953-4211-b5b0-d2c620b91869.jpeg\",\n    \"stackable\": null,\n    \"min_storage_temp_celcius\": 12,\n    \"max_storage_temp_celcius\": 12,\n    \"allows_cross_contamination\": null,\n    \"flammable\": false,\n    \"weapon\": false,\n    \"sat_category_id\": 18849,\n    \"lot_number_regex\": null,\n    \"serial_number_regex\": null,\n    \"expiration_date_format\": null,\n    \"use_state_height\": null,\n    \"use_state_length\": null,\n    \"use_state_width\": null,\n    \"use_state_dimensions_validated\": null,\n    \"exclude_from_dimensioning\": null,\n    \"product_type\": {\n        \"id\": 1,\n        \"name\": \"Sellable\",\n        \"description\": \"Items that can be sold\"\n    }\n}"}],"_postman_id":"b2da58ea-b3e4-4844-93df-d604d6a0e3c1"}],"id":"6b354f0e-79c4-4ec6-888b-b7e00cc293f1","description":"<blockquote>\n<p>🚧 This documentation is under construction .----------------------------------------------------- </p>\n</blockquote>\n<p>This documentation will allow you to create, update, list and obtain Seller Products using their respective API.</p>\n<h2 id=\"schemas\">Schemas</h2>\n<p>Seller Product</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Required</td>\n<td></td>\n</tr>\n<tr>\n<td>sku</td>\n<td>String</td>\n<td>Required</td>\n<td></td>\n</tr>\n<tr>\n<td>variant</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>category</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>brand</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>active</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>image</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>composite</td>\n<td>String</td>\n<td></td>\n<td>Define than product is a Kit</td>\n</tr>\n<tr>\n<td>low_stock_notification_threshold</td>\n<td>Number</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>min_storage_temp_celcius</td>\n<td>Number</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>max_storage_temp_celcius</td>\n<td>Number</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>allows_cross_contamination</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>buyer_returns_allowed</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>control_by_lot_number</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>control_by_serial_number</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>expiration_date_format</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>fragile</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>packing_instructions</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>perishable</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>pre_packed_order_container</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>reception_instructions</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>requires_health_register</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>default_buyer_return_item_action_id</td>\n<td>String</td>\n<td></td>\n<td>Enum Field ( RETURN_STOCK,  <br />RETURN_SELLER,  <br />DISCARD,  <br />DONATE )</td>\n</tr>\n<tr>\n<td>restock_failed_inspection_buyer_return_item_action_id</td>\n<td>String</td>\n<td></td>\n<td>Enum Field ( RETURN_STOCK,  <br />RETURN_SELLER,  <br />DISCARD,  <br />DONATE )</td>\n</tr>\n<tr>\n<td>stackable</td>\n<td>Boolean</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>storage_instructions</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>seller_product_barcodes</td>\n<td>JSON Array</td>\n<td></td>\n<td>[  <br />{  <br />\"barcode\": string  <br />}  <br />]</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"6b354f0e-79c4-4ec6-888b-b7e00cc293f1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Stock","item":[{"name":"Get available stock","id":"d9d32baa-58ae-4176-8159-53c3c1b3e859","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/stock?warehouse_code=BOG-2","description":"<h2 id=\"get-available-stock\">Get Available Stock</h2>\n<p>Retrieves the available stock quantities for products in a specific warehouse.</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><p><code>warehouse_code</code> (string, <strong>required</strong>) - The unique code identifying the destination warehouse.</p>\n</li>\n<li><p><code>sku</code> (array[string], optional) - Filter by specific SKU codes (e.g., <code>?sku=[SKU-001,SKU-002]</code>).</p>\n</li>\n<li><p><code>page</code> (integer, optional) - Page number for pagination (min: 1).</p>\n</li>\n<li><p><code>per_page</code> (integer, optional) - Number of results per page (min: 1, max: 100).</p>\n</li>\n</ul>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response contains two sections: <code>data</code> and <code>meta_data</code>.</p>\n<ul>\n<li><p><code>data</code> - Array of stock items. Each item includes:</p>\n<ul>\n<li><p><code>sku</code> - The product SKU code.</p>\n</li>\n<li><p><code>qty_available</code> - The quantity available for sale/fulfillment in the specified warehouse.</p>\n</li>\n</ul>\n</li>\n<li><p><code>meta_data</code> - Pagination information:</p>\n<ul>\n<li><p><code>page</code> - Current page number.</p>\n</li>\n<li><p><code>per_page</code> - Number of records per page.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["stock"],"host":["{{api_url}}"],"query":[{"key":"warehouse_code","value":"BOG-2"}],"variable":[]}},"response":[{"id":"e86be65a-1f83-47ed-a1f4-28c005239be8","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/stock?warehouse_code=BOG-2&page=0&per_page=10","host":["{{api_url}}"],"path":["stock"],"query":[{"key":"warehouse_code","value":"BOG-2"},{"key":"page","value":"0"},{"key":"per_page","value":"10"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"sku\": \"SKU-12345\",\n            \"qty_available\": 150\n        },\n        {\n            \"sku\": \"SKU-67890\",\n            \"qty_available\": 0\n        }\n    ],\n    \"meta_data\": {\n        \"page\": 0,\n        \"per_page\": 10\n    }\n}"}],"_postman_id":"d9d32baa-58ae-4176-8159-53c3c1b3e859"},{"name":"Get stock adjustments","id":"47be5c54-4cf3-4abf-bf96-c59d5b05d867","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_url}}/stock/adjustments","description":"<h2 id=\"get-stock-adjustments\">Get stock adjustments</h2>\n<p>Retrieves a paginated list of historical stock adjustment records for the authenticated seller.</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><p><code>start_date</code> (datetime, optional) - Filter adjustments from this date (ISO 8601 format, e.g., <code>2024-01-01T00:00:00.000Z</code>). Defaults to 1 year ago from the current date. Dates older than 1 year will be adjusted to the 1-year limit.</p>\n</li>\n<li><p><code>end_date</code> (datetime, optional) - Filter adjustments up to this date (ISO 8601 format, e.g., <code>2024-12-31T23:59:59.000Z</code>). Defaults to the current date.</p>\n</li>\n<li><p><code>sku</code> (string, optional) - Filter by a specific SKU code.</p>\n</li>\n<li><p><code>page</code> (integer, optional) - Page number for pagination (default: 0, min: 0).</p>\n</li>\n<li><p><code>per_page</code> (integer, optional) - Number of results per page (default: 10, min: 1, max: 100).</p>\n</li>\n</ul>\n<h3 id=\"response-body\">Response Body</h3>\n<p>The response contains two sections: <code>data</code> and <code>meta_data</code>.</p>\n<ul>\n<li><p><code>data</code> - Array of stock adjustments. Each adjustment includes:</p>\n<ul>\n<li><p><code>internal_adjustment_identifier</code> - Unique internal identifier for the adjustment.</p>\n</li>\n<li><p><code>adjustment_date</code> - Date and time when the adjustment was executed (ISO 8601 format).</p>\n</li>\n<li><p><code>adjustment_details</code> - Array of adjustment detail items. Each detail includes:</p>\n<ul>\n<li><p><code>sku</code> - The product SKU code.</p>\n</li>\n<li><p><code>quantity_adjusted</code> - The quantity changed (positive for additions, negative for reductions).</p>\n</li>\n<li><p><code>adjustment_justification</code> - Justification information:</p>\n<ul>\n<li><p><code>name</code> - Name of the justification type.</p>\n</li>\n<li><p><code>description</code> - Detailed description of the justification (may be <code>null</code>).</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>meta_data</code> - Pagination information:</p>\n<ul>\n<li><p><code>page</code> - Current page number.</p>\n</li>\n<li><p><code>per_page</code> - Number of records per page.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>quantity_adjusted can be positive (stock increase) or negative (stock decrease).</p>\n</li>\n<li><p>Adjustments are grouped by internal_adjustment_identifier.</p>\n</li>\n<li><p>The maximum queryable date range is 1 year from the current date.</p>\n</li>\n<li><p>If start_date is not provided or is older than 1 year, it defaults to 1 year ago.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}},"urlObject":{"path":["stock","adjustments"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"0080e7b9-3de9-4587-b6f4-afc49ac9c500","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api_url}}/stock/adjustments?page=0&per_page=10","host":["{{api_url}}"],"path":["stock","adjustments"],"query":[{"key":"page","value":"0"},{"key":"per_page","value":"10"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"internal_adjustment_identifier\": \"SCA00012\",\n            \"adjustment_date\": \"2024-01-15T10:30:00.000Z\",\n            \"adjustment_details\": [\n                {\n                    \"sku\": \"SKU-12345\",\n                    \"quantity_adjusted\": -5,\n                    \"adjustment_justification\": {\n                        \"name\": \"Damage\",\n                        \"description\": \"Products damaged during storage\"\n                    }\n                },\n                {\n                    \"sku\": \"SKU-67890\",\n                    \"quantity_adjusted\": -2,\n                    \"adjustment_justification\": {\n                        \"name\": \"Loss\",\n                        \"description\": null\n                    }\n                }\n            ]\n        },\n        {\n            \"internal_adjustment_identifier\": \"ADJ-2024-002\",\n            \"adjustment_date\": \"2024-01-20T14:45:00.000Z\",\n            \"adjustment_details\": [\n                {\n                    \"sku\": \"SKU-11111\",\n                    \"quantity_adjusted\": 10,\n                    \"adjustment_justification\": {\n                        \"name\": \"Inventory Count\",\n                        \"description\": \"Adjustment from physical inventory reconciliation\"\n                    }\n                }\n            ]\n        }\n    ],\n    \"meta_data\": {\n        \"page\": 0,\n        \"per_page\": 10\n    }\n}"}],"_postman_id":"47be5c54-4cf3-4abf-bf96-c59d5b05d867"}],"id":"3686af81-eb42-4a94-a4c5-ab066e23039e","description":"<h1 id=\"stock-public-api\">Stock Public API</h1>\n<blockquote>\n<p>🚧 This documentation is under construction </p>\n</blockquote>\n<p>This document describes the public API endpoints for managing stock information in the Melonn platform. The Stock Public API allows sellers to query their available inventory and view historical stock adjustments at Melonn warehouses.</p>\n","_postman_id":"3686af81-eb42-4a94-a4c5-ab066e23039e","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Webhooks","item":[],"id":"4892ec31-9212-4aec-bd44-e6f5cb8f62a4","description":"<p>In the Webhooks section, you can enable and manage all the events you want to receive on your custom URL associated with your user.</p>\n<p>Every time an event is triggered, our system will send an HTTP notification (POST request) to the configured URL, including a JSON payload with the relevant event information in the message body.</p>\n<p>Below are configuration examples for each new webhook, along with examples of the input data (request body) you will receive on your endpoint upon notification.</p>\n<img src=\"https://content.pstmn.io/6856c78a-bd0a-40ba-8023-a8ee74a15a80/aW1hZ2UucG5n\" width=\"811\" height=\"567\" />\n\n<p>Additionally, after configuring a webhook, you can test it from the configured webbooks system.</p>\n<img src=\"https://content.pstmn.io/2f9f416b-42b2-4702-a6d0-85f07c5b5e4a/aW1hZ2UucG5n\" width=\"845\" height=\"595\" />\n\n<p>We will send a test event to the URL you configured.</p>\n<img src=\"https://content.pstmn.io/6d17a93b-f98d-40f1-9e0b-6ee9729e63e6/aW1hZ2UucG5n\" width=\"663\" height=\"731\" />\n\n<h2 id=\"events\">Events</h2>\n<h5 id=\"name-orden-de-venta---cancelada\">Name: Orden de venta - Cancelada</h5>\n<h5 id=\"event-oie-sell_ordercanceled\">Event: OIE-SELL_ORDER/CANCELED</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"eventDate\": \"2025-09-30T20:45:28.961Z\",\n  \"eventClassifier\": {\n    \"category\": \"SELL_ORDER\",\n    \"type\": \"SELL_ORDER/CANCELED\"\n  },\n  \"eventData\": {\n    \"id\": 9999999999999999,\n    \"externalOrderId\": \"\",\n    \"internalOrderNumber\": \"M9999999999999999\",\n    \"externalOrderNumber\": \"20250930204137099\",\n    \"sellOrderState\": {\n      \"id\": 15,\n      \"name\": \"Canceled\"\n    },\n    \"warehouse\": {\n      \"id\": 1,\n      \"name\": \"Test Warehouse\"\n    },\n    \"seller\": {\n      \"id\": 123,\n      \"name\": \"Demo Store\"\n    },\n    \"shippingMethod\": {\n      \"id\": 10,\n      \"name\": \"Standard Test Shipping\"\n    },\n    \"fulfillmentType\": {\n      \"id\": 3,\n      \"deliveryMode\": \"DELIVERY\"\n    },\n    \"shippingType\": {\n      \"id\": 1,\n      \"name\": \"Delivery\"\n    },\n    \"sellOrderLineItems\": [\n      {\n        \"sellerProductId\": 111111,\n        \"productName\": \"Test Product A\",\n        \"productVariant\": \"Variant A\",\n        \"sellerProductSku\": \"TPA-001\",\n        \"sellerProductExternalBarcode\": \"1234567890123\",\n        \"sellerProductInternalCode\": \"TEST111111\",\n        \"qtyOrdered\": 2,\n        \"fulfillable\": true,\n        \"qtyReserved\": 0,\n        \"qtyToFulfill\": 2,\n        \"productTypeId\": 1\n      },\n      {\n        \"sellerProductId\": 222222,\n        \"productName\": \"Test Product B\",\n        \"productVariant\": \"Variant B\",\n        \"sellerProductSku\": \"TPB-002\",\n        \"sellerProductExternalBarcode\": \"9876543210987\",\n        \"sellerProductInternalCode\": \"TEST222222\",\n        \"qtyOrdered\": 1,\n        \"fulfillable\": true,\n        \"qtyReserved\": 0,\n        \"qtyToFulfill\": 1,\n        \"productTypeId\": 1\n      }\n    ],\n    \"buyerFullName\": \"John Doe\",\n    \"buyerPhoneNumber\": \"+57-3000000000\",\n    \"buyerEmail\": \"john.doe@example.com\"\n  }\n}\n\n</code></pre>\n<h5 id=\"name-orden-de-venta---entregada-al-comprador\">Name: Orden de venta - Entregada al comprador</h5>\n<h5 id=\"event-oie-sell_orderdelivered_to_buyer\">Event: OIE-SELL_ORDER/DELIVERED_TO_BUYER</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"eventDate\": \"2025-09-30T20:45:28.961Z\",\n  \"eventClassifier\": {\n    \"category\": \"SELL_ORDER\",\n    \"type\": \"SELL_ORDER/DELIVERED_TO_BUYER\",\n    \"tags\": [\n      \"test\",\n      \"demo\"\n    ]\n  },\n  \"eventData\": {\n    \"internalOrderNumber\": \"MTEST123456789\",\n    \"buyerFullName\": \"Alice Johnson\",\n    \"buyerEmail\": \"alice.johnson@example.com\",\n    \"buyerPhoneNumber\": \"+57-3111111111\",\n    \"externalOrderNumber\": \"EXT-20250930-0001\",\n    \"externalOrderId\": \"EXT123456\",\n    \"id\": 987654321,\n    \"sellOrderState\": {\n      \"id\": 1,\n      \"name\": \"Delivered\"\n    },\n    \"warehouse\": {\n      \"id\": 10,\n      \"name\": \"Test Warehouse Bogotá\"\n    },\n    \"seller\": {\n      \"id\": 200,\n      \"name\": \"Demo Seller Store\"\n    },\n    \"sellerEcommerceStore\": {\n      \"id\": 300,\n      \"name\": \"Demo Shopify Store\",\n      \"storeIdentifier\": \"shopify-12345\"\n    },\n    \"ecommercePlatform\": {\n      \"id\": 1,\n      \"name\": \"Shopify\"\n    },\n    \"shippingMethod\": {\n      \"id\": 55,\n      \"name\": \"Express Test Shipping\"\n    },\n    \"fulfillmentType\": {\n      \"id\": 3,\n      \"deliveryMode\": \"DELIVERY\"\n    },\n    \"sellOrderLineItems\": [\n      {\n        \"sellerProductId\": 1001,\n        \"productName\": \"Test Sneakers\",\n        \"productVariant\": \"Blue - Size 42\",\n        \"sellerProductSku\": \"TSNK-B42\",\n        \"sellerProductExternalBarcode\": \"1234567890123\",\n        \"sellerProductInternalCode\": \"P1001\",\n        \"qtyOrdered\": 1,\n        \"serialNumbers\": [\n          \"SN123456789\"\n        ],\n        \"fulfillable\": true,\n        \"qtyReserved\": 0,\n        \"qtyToFulfill\": 1,\n        \"productTypeId\": 1\n      },\n      {\n        \"sellerProductId\": 1002,\n        \"productName\": \"Test T-Shirt\",\n        \"productVariant\": \"Red - L\",\n        \"sellerProductSku\": \"TTRED-L\",\n        \"sellerProductExternalBarcode\": \"9876543210987\",\n        \"sellerProductInternalCode\": \"P1002\",\n        \"qtyOrdered\": 2,\n        \"serialNumbers\": [],\n        \"fulfillable\": true,\n        \"qtyReserved\": 0,\n        \"qtyToFulfill\": 2,\n        \"productTypeId\": 1\n      }\n    ],\n    \"sellOrderAttempt\": [\n      {\n        \"id\": 1,\n        \"current\": true,\n        \"deliveryService\": [\n          {\n            \"id\": 101,\n            \"trackingNumber\": \"TRACK12345\"\n          }\n        ],\n        \"deliveryRoute\": {\n          \"id\": 500,\n          \"internalRouteNumber\": \"RTE-0001\",\n          \"transportService\": {\n            \"id\": 900,\n            \"name\": \"Fast Courier Service\",\n            \"courierCompany\": {\n              \"id\": 50,\n              \"name\": \"Demo Courier Co.\"\n            },\n            \"transportServiceType\": {\n              \"id\": 5,\n              \"name\": \"Ground\"\n            }\n          }\n        }\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h5 id=\"name-orden-de-venta---items-reservados\">Name: Orden de venta - Items Reservados</h5>\n<h5 id=\"event-oie-sell_orderitems_reserved\">Event: OIE-SELL_ORDER/ITEMS_RESERVED</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"eventDate\": \"2023-08-28T15:57:54.020Z\",\n  \"eventClassifier\": {\n    \"category\": \"SELL_ORDER\",\n    \"type\": \"SELL_ORDER/ITEMS_RESERVED\"\n  },\n  \"eventData\": {\n    \"id\": 213217314323232,\n    \"internalOrderNumber\": \"M213217314323232\",\n    \"externalOrderNumber\": \"\",\n    \"sellOrderState\": {\n      \"id\": 2,\n      \"name\": \"All items reserved - ready for fulfillment\"\n    },\n    \"warehouse\": {\n      \"id\": 2,\n      \"name\": \"Medellin #1\"\n    },\n    \"seller\": {\n      \"id\": 1,\n      \"name\": \"My seller\"\n    },\n    \"buyerFullName\": \"Pepito perez\",\n    \"buyerPhoneNumber\": \"+57-3000000000\",\n    \"shippingMethod\": {\n      \"id\": 6,\n      \"name\": \"Recogida\"\n    },\n    \"shippingType\": {\n      \"id\": 2,\n      \"name\": \"Pickup at Melonn\"\n    },\n    \"promises\": {\n      \"shipPromiseMax\": \"2023-08-28T15:57:39.000Z\",\n      \"deliveryPromiseMax\": \"2023-08-28T15:57:39.000Z\"\n    },\n    \"sellOrderLineItems\": [\n      {\n        \"sellerProductId\": 1029,\n        \"productName\": \"Gafas persianas\",\n        \"productVariant\": \"Verde neon\",\n        \"sellerProductSku\": \"gafas-persianas-verde\",\n        \"sellerProductInternalCode\": \"P00024384\",\n        \"qtyOrdered\": 1,\n        \"productTypeId\": 1\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h5 id=\"name-orden-de-venta---recogida-por-el-comprador\">Name: Orden de venta - Recogida por el comprador</h5>\n<h5 id=\"event-oie-sell_orderpicked_up_by_buyer\">Event: OIE-SELL_ORDER/PICKED_UP_BY_BUYER</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"eventDate\": \"2025-10-01T15:00:00.000Z\",\n  \"eventClassifier\": {\n    \"category\": \"SELL_ORDER\",\n    \"type\": \"SELL_ORDER/PICKED_UP_BY_BUYER\",\n    \"tags\": [\n      \"fake\",\n      \"demo\",\n      \"test\"\n    ]\n  },\n  \"eventData\": {\n    \"internalOrderNumber\": \"MTEST987654321\",\n    \"buyerFullName\": \"Carlos Ramírez\",\n    \"buyerEmail\": \"carlos.ramirez@example.com\",\n    \"externalOrderNumber\": \"EXT-20251001-0001\",\n    \"externalOrderId\": \"EXT987654\",\n    \"id\": 987654321,\n    \"sellOrderState\": {\n      \"id\": 5,\n      \"name\": \"Packed\"\n    },\n    \"tags\": [\n      \"pickup\",\n      \"demo\"\n    ],\n    \"warehouse\": {\n      \"id\": 99,\n      \"name\": \"Fake Warehouse #99\"\n    },\n    \"seller\": {\n      \"id\": 555,\n      \"name\": \"Demo Seller Store\"\n    },\n    \"sellerEcommerceStore\": {\n      \"storeIdentifier\": \"fake-shop-123\"\n    },\n    \"ecommercePlatform\": {\n      \"id\": 10,\n      \"name\": \"FakeCommerce\"\n    },\n    \"shippingMethod\": {\n      \"id\": 77,\n      \"name\": \"Recogida Test\"\n    },\n    \"fulFillmentType\": {\n      \"id\": 1,\n      \"deliverMode\": \"PICKUP\"\n    },\n    \"sellOrderLineItems\": [\n      {\n        \"sellerProductId\": 2001,\n        \"productTypeId\": 1,\n        \"productName\": \"Fake Sneakers\",\n        \"productVariant\": \"Negro - 42\",\n        \"sellerProductSku\": \"FSNK42\",\n        \"sellerProductExternalBarcode\": \"1111111111111\",\n        \"sellerProductInternalCode\": \"PF2001\",\n        \"qtyOrdered\": 2,\n        \"qtyToFulfill\": 2,\n        \"serialNumbers\": []\n      },\n      {\n        \"sellerProductId\": 2002,\n        \"productTypeId\": 1,\n        \"productName\": \"Fake T-Shirt\",\n        \"productVariant\": \"Azul - L\",\n        \"sellerProductSku\": \"FTS-AL\",\n        \"sellerProductExternalBarcode\": \"2222222222222\",\n        \"sellerProductInternalCode\": \"PF2002\",\n        \"qtyOrdered\": 1,\n        \"qtyToFulfill\": 1,\n        \"serialNumbers\": []\n      },\n      {\n        \"sellerProductId\": 2003,\n        \"productTypeId\": 1,\n        \"productName\": \"Fake Jacket\",\n        \"productVariant\": \"Rojo - M\",\n        \"sellerProductSku\": \"FJK-RM\",\n        \"sellerProductExternalBarcode\": \"3333333333333\",\n        \"sellerProductInternalCode\": \"PF2003\",\n        \"qtyOrdered\": 1,\n        \"qtyToFulfill\": 1,\n        \"serialNumbers\": []\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h5 id=\"name-orden-de-venta---recibida-válida\">Name: Orden de venta - Recibida válida</h5>\n<h5 id=\"event-oie-sell_orderreceived_valid\">Event: OIE-SELL_ORDER/RECEIVED_VALID</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"eventDate\": \"2025-10-01T14:30:00Z\",\n  \"eventClassifier\": {\n    \"category\": \"SELL_ORDER\",\n    \"type\": \"SELL_ORDER/RECEIVED_VALID\"\n  },\n  \"eventData\": {\n    \"id\": 123456,\n    \"buyerEmail\": \"juan.perez@example.com\",\n    \"buyerFullName\": \"Juan Pérez\",\n    \"buyerPhoneNumber\": \"+57 3000000000\",\n    \"externalOrderNumber\": \"ORD-2025-0001\",\n    \"externalOrderId\": \"EXT-98765\",\n    \"internalOrderNumber\": \"INT-54321\",\n    \"seller\": {\n      \"id\": 77,\n      \"name\": \"Super Tienda Online\"\n    },\n    \"sellOrderState\": {\n      \"id\": 1,\n      \"name\": \"Received - valid\"\n    },\n    \"warehouse\": {\n      \"id\": 1,\n      \"name\": \"Bodega Principal\"\n    },\n    \"shippingMethod\": {\n      \"id\": 10,\n      \"name\": \"Envío Express\"\n    },\n    \"sellOrderLineItems\": [\n      {\n        \"id\": 1001,\n        \"productId\": \"SKU-12345\",\n        \"productName\": \"Zapatos Deportivos\",\n        \"quantity\": 2,\n        \"price\": 120000,\n        \"currency\": \"COP\"\n      },\n      {\n        \"id\": 1002,\n        \"productId\": \"SKU-98765\",\n        \"productName\": \"Camiseta Negra\",\n        \"quantity\": 1,\n        \"price\": 35000,\n        \"currency\": \"COP\"\n      }\n    ],\n    \"fulfillmentType\": {\n      \"id\": 3,\n      \"delivery_mode\": \"HOME_DELIVERY\",\n      \"order_type\": \"B2C\",\n      \"shipment_type\": \"STANDARD\"\n    },\n    \"ecommercePlatform\": {\n      \"id\": 1,\n      \"name\": \"Shopify\"\n    },\n    \"sellerEcommerceStore\": {\n      \"id\": 88,\n      \"name\": \"Tienda Oficial SuperTienda\",\n      \"storeIdentifier\": \"shopify-store-001\"\n    }\n  }\n}\n\n</code></pre>\n<h5 id=\"name-orden-de-venta---en-tránsito\">Name: Orden de venta - En tránsito</h5>\n<h5 id=\"event-oie-sell_ordershipped\">Event: OIE-SELL_ORDER/SHIPPED</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"eventDate\": \"2025-10-01T16:30:00.000Z\",\n  \"eventClassifier\": {\n    \"category\": \"SELL_ORDER\",\n    \"type\": \"SELL_ORDER/SHIPPED\",\n    \"tags\": [\n      \"fake\",\n      \"demo\"\n    ]\n  },\n  \"eventData\": {\n    \"timestamp\": \"2025-10-01T16:25:00.000Z\",\n    \"internalOrderNumber\": \"MTEST1122334455\",\n    \"buyerFullName\": \"Laura Fernández\",\n    \"buyerEmail\": \"laura.fernandez@example.com\",\n    \"buyerPhoneNumber\": \"+57-3100000000\",\n    \"externalOrderNumber\": \"EXT-20251001-0002\",\n    \"externalOrderId\": \"EXT445566\",\n    \"paymentOnDeliveryAmount\": null,\n    \"id\": 1122334455,\n    \"sellOrderState\": {\n      \"id\": 7,\n      \"name\": \"Shipped - in transit\"\n    },\n    \"tags\": [\n      \"shipment\",\n      \"demo\"\n    ],\n    \"warehouse\": {\n      \"id\": 88,\n      \"name\": \"Fake Warehouse Cali\"\n    },\n    \"seller\": {\n      \"id\": 777,\n      \"name\": \"Demo Seller Store\"\n    },\n    \"sellerEcommerceStore\": {\n      \"storeIdentifier\": \"fake-store-001\"\n    },\n    \"ecommercePlatform\": {\n      \"id\": 20,\n      \"name\": \"FakeCommerce\"\n    },\n    \"shippingMethod\": {\n      \"id\": 15,\n      \"name\": \"Test Express Shipping\"\n    },\n    \"fulfillmentType\": {\n      \"id\": 2,\n      \"deliveryMode\": \"DELIVERY\"\n    },\n    \"sellOrderLineItems\": [\n      {\n        \"sellerProductId\": 3001,\n        \"productName\": \"Fake Shoes\",\n        \"productTypeId\": 1,\n        \"productVariant\": \"Blanco - 41\",\n        \"sellerProductSku\": \"FSH-B41\",\n        \"sellerProductExternalBarcode\": \"4444444444444\",\n        \"sellerProductInternalCode\": \"PF3001\",\n        \"qtyOrdered\": 1,\n        \"qtyToFulfill\": 1,\n        \"serialNumbers\": [\n          \"FSN123456\"\n        ]\n      },\n      {\n        \"sellerProductId\": 3002,\n        \"productName\": \"Fake Polo Shirt\",\n        \"productTypeId\": 1,\n        \"productVariant\": \"Verde - M\",\n        \"sellerProductSku\": \"FPS-VM\",\n        \"sellerProductExternalBarcode\": \"5555555555555\",\n        \"sellerProductInternalCode\": \"PF3002\",\n        \"qtyOrdered\": 2,\n        \"qtyToFulfill\": 2,\n        \"serialNumbers\": []\n      },\n      {\n        \"sellerProductId\": 3003,\n        \"productName\": \"Fake Jeans\",\n        \"productTypeId\": 1,\n        \"productVariant\": \"Azul - 32\",\n        \"sellerProductSku\": \"FJN-A32\",\n        \"sellerProductExternalBarcode\": \"6666666666666\",\n        \"sellerProductInternalCode\": \"PF3003\",\n        \"qtyOrdered\": 1,\n        \"qtyToFulfill\": 1,\n        \"serialNumbers\": []\n      }\n    ],\n    \"sellOrderAttempt\": [\n      {\n        \"id\": 9999,\n        \"current\": true,\n        \"deliveryService\": [\n          {\n            \"id\": 8888,\n            \"trackingNumber\": \"TRACKFAKE123\"\n          }\n        ],\n        \"deliveryRoute\": {\n          \"id\": 7777,\n          \"internalRouteNumber\": \"RTE-7777\",\n          \"transportService\": {\n            \"id\": 123,\n            \"name\": \"Fast Fake Transport\",\n            \"courierCompany\": {\n              \"id\": 55,\n              \"name\": \"Fake Courier Co.\"\n            }\n          }\n        }\n      }\n    ]\n  }\n}\n\n</code></pre>\n<h5 id=\"name-buyer-return-order-created\">Name: Buyer Return Order**: Created**</h5>\n<p>Triggered when a new return order is successfully created in Orbita.</p>\n<p>Event: <strong>BUYER_RETURN_ORDER/CREATED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2025-12-03T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"BUYER_RETURN_ORDER\",\n        \"type\": \"BUYER_RETURN_ORDER/CREATED\"\n    },\n    \"eventData\": {\n        \"id\": \"76409\",\n        \"internalOrderNumber\": \"R76409\",\n        \"externalOrderNumber\": \"12600005422400-DEVOLUCION\",\n        \"externalOrderId\": \"EXT-123\"\n    }\n}\n\n</code></pre>\n<h5 id=\"name-buyer-return-order-received-at-warehouse\">Name: Buyer Return Order**:** Received at Warehouse</h5>\n<p>Triggered when the physical return arrives at the Melonn warehouse.</p>\n<p>Event: <strong>BUYER_RETURN_ORDER/RECEIVED_AT_WAREHOUSE</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2025-12-03T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"BUYER_RETURN_ORDER\",\n        \"type\": \"BUYER_RETURN_ORDER/RECEIVED_AT_WAREHOUSE\"\n    },\n    \"eventData\": {\n        \"id\": \"76409\",\n        \"internalOrderNumber\": \"R76409\",\n        \"externalOrderNumber\": \"12600005422400-DEVOLUCION\",\n        \"externalOrderId\": \"EXT-123\",\n        \"receptionDate\": \"2025-12-03T16:30:00.000Z\"\n    }\n}\n\n</code></pre>\n<h5 id=\"name-buyer-return-order-label-generated\">Name: Buyer Return Order**:** Label Generated</h5>\n<p>Triggered when the shipping label is generated.<br /><em>Note: The transportServiceRequestLabelUrl is a signed URL valid for 1 day.</em></p>\n<p>Event: <strong>BUYER_RETURN_ORDER/ITSR_LABEL_GENERATED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2025-12-03T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"BUYER_RETURN_ORDER\",\n        \"type\": \"ITSR_LABEL_GENERATED\",\n        \"tags\": [\n            \"R76409\"\n        ]\n    },\n    \"eventData\": {\n        \"id\": \"76409\",\n        \"internalOrderNumber\": \"R76409\",\n        \"externalOrderNumber\": \"12600005422400-DEVOLUCION\",\n        \"externalOrderId\": \"EXT-123\",\n        \"transportServiceRequestLabelUrl\": \"https://s3.aws.com/signed-url...\"\n    }\n}\n\n</code></pre>\n<p><strong>Name: Buyer Return Order: Unpacked</strong><br />Triggered when the return order items have been unpacked and verified at the warehouse.<br /><em>Note: This event includes detailed information about received quantities (OK, defective, restocked) and item summaries including composite products.</em><br />Event: <strong>BUYER_RETURN_ORDER/UNPACKED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2023-08-28T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"BUYER_RETURN_ORDER\",\n        \"type\": \"BUYER_RETURN_ORDER/UNPACKED\"\n    },\n    \"eventData\": {\n        \"id\": 1454564547,\n        \"internalOrderNumber\": \"R0002359\",\n        \"externalOrderNumber\": \"SP-566\",\n        \"externalOrderId\": \"EXT-123\"\n    }\n}\n\n</code></pre>\n<p><strong>Name: Buyer Return Order: Canceled</strong><br />Triggered when a return order is canceled.<br />Event: <strong>BUYER_RETURN_ORDER/CANCELED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2025-12-03T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"BUYER_RETURN_ORDER\",\n        \"type\": \"BUYER_RETURN_ORDER/CANCELED\"\n    },\n    \"eventData\": {\n        \"id\": 76409,\n        \"internalOrderNumber\": \"R76409\",\n        \"externalOrderNumber\": \"12600005422400-DEVOLUCION\",\n        \"externalOrderId\": \"EXT-123\"\n    }\n}\n\n</code></pre>\n<p><strong>Name: Supplier Order: Created</strong><br />Triggered when a supplier order is created.<br />Event: <strong>SUPPLIER_ORDER/CREATED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventClassifier\":{\n        \"category\":\"SUPPLIER_ORDER\",\n        \"type\":\"SUPPLIER_ORDER/CREATED\"\n    },\n    \"eventData\":{\n        \"supplierOrderId\": 1994, \n        \"supplierOrderExternalOrderNumber\": \"TEST INTEGRATION\",\n        \"supplierOrderInternalOrderNumber\": \"I00001994\"\n    }\n}\n\n</code></pre>\n<p><strong>Name: Supplier Order: Cancelled</strong><br />Triggered when a supplier order is cancelled.<br />Event: <strong>SUPPLIER_ORDER/CANCELLED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventClassifier\":{\n        \"category\":\"SUPPLIER_ORDER\",\n        \"type\":\"SUPPLIER_ORDER/CANCELLED\"\n    },\n    \"eventData\":{\n        \"supplierOrderId\": 1994, \n        \"supplierOrderExternalOrderNumber\": \"TEST INTEGRATION\",\n        \"supplierOrderInternalOrderNumber\": \"I00001994\"\n    }\n}\n\n</code></pre>\n<p><strong>Name: Supplier Order: Closed</strong><br />Triggered when a supplier order is closed.<br />Event: <strong>SUPPLIER_ORDER/CLOSED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventClassifier\":{\n        \"category\":\"SUPPLIER_ORDER\",\n        \"type\":\"SUPPLIER_ORDER/CLOSED\"\n    },\n    \"eventData\":{\n        \"supplierOrderId\": 1994, \n        \"supplierOrderExternalOrderNumber\": \"TEST INTEGRATION\",\n        \"supplierOrderInternalOrderNumber\": \"I00001994\"\n    }\n}\n\n</code></pre>\n<p><strong>Name: Supplier order package unpaked</strong><br />Triggered when a specific package within the order is unpacked and items are verified<br />Event: <strong>SUPPLIER_ORDER_PACKAGE/UNPACKED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventClassifier\":{\n        \"category\":\"SUPPLIER_ORDER_PACKAGE\",\n        \"type\":\"SUPPLIER_ORDER_PACKAGE/UNPACKED\"\n    },\n    \"eventData\":{\n        \"supplierOrder\":{\n            \"id\": 1994,\n            \"internalOrderNumber\": \"I00001994\",\n            \"externalOrderNumber\": \"TEST INTEGRATION\"\n        }\n    }\n}\n\n</code></pre>\n<p><strong>Name: Stock Control Point Executed</strong><br />Triggered when a stock control point is finalized and executed, including any stock adjustments and missing items reported. qtyAdjustment can be positive (stock increase) or negative (stock decrease).<br />Event: <strong>STOCK_MGMT/STOCK_CONTROL_POINT_EXECUTED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2023-08-28T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"STOCK_MGMT\",\n        \"type\": \"STOCK_MGMT/STOCK_CONTROL_POINT_EXECUTED\"\n    },\n    \"eventData\": {\n        \"id\": 1234,\n        \"warehouse\": {\n            \"id\": 10\n        },\n        \"stockAdjustments\": [\n            {\n                \"sellerProductSku\": \"SKU-001\",\n                \"qtyAdjustment\": -5\n            }\n        ]\n    }\n}\n\n</code></pre>\n<p><strong>Name: Stock Count Adjustment Executed</strong></p>\n<p>Triggered when a stock count adjustment is executed, detailing the adjustment line items with their quantities andinsurance values. qtyAdjustments can be positive (stock increase) or negative (stock decrease).</p>\n<p>Event: <strong>STOCK_MGMT/STOCK_COUNT_ADJUSTMENT_EXECUTED</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"eventDate\": \"2023-08-28T16:30:00.000Z\",\n    \"eventClassifier\": {\n        \"category\": \"STOCK_MGMT\",\n        \"type\": \"STOCK_MGMT/STOCK_COUNT_ADJUSTMENT_EXECUTED\"\n    },\n    \"eventData\": {\n        \"stockCountAdjustmentId\": 1234,\n        \"internalNumber\": \"ADJ-2024-001\",\n        \"warehouse\": {\n            \"id\": 10\n        },\n        \"adjustmentLineItems\": [\n            {\n                \"sellerProductSku\": \"SKU-001\",\n                \"qtyNetAdjustments\": -3\n            }\n        ]\n    }\n}\n\n</code></pre>\n","_postman_id":"4892ec31-9212-4aec-bd44-e6f5cb8f62a4","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]},"isInherited":true,"source":{"_postman_id":"e5baeb02-7809-432c-bbed-66b8b2504325","id":"e5baeb02-7809-432c-bbed-66b8b2504325","name":"Melonn sellers API","type":"collection"}}},{"name":"Change Log","item":[{"name":"2025-10","item":[{"name":"2025-10-01","item":[],"id":"adbcab30-6850-499f-a8de-f8e4fe3a8d0d","description":"<h1 id=\"1---new-get-promise-data-from-sell-order-api\">1 - New: get promise data from Sell Order API</h1>\n<h1 id=\"general-information\">General Information</h1>\n<ul>\n<li><p><strong>Change Type:</strong> <code>No-breaking</code></p>\n</li>\n<li><p><strong>Summary:</strong> Optional parameter <code>fields=sell_order_promises</code> is added to the GET endpoint for sell orders to provide delivery promise information</p>\n</li>\n</ul>\n<h2 id=\"affected-endpoints\">Affected Endpoints</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /sell-orders/:external_order_number\n\n</code></pre><h2 id=\"migration\">Migration</h2>\n<h3 id=\"steps-to-follow\">Steps to follow:</h3>\n<ol>\n<li><p><strong>No migration required</strong> - The change is completely optional and backward compatible</p>\n</li>\n<li><p><strong>To get promises:</strong> Add <code>?fields=sell_order_promises</code> to existing query</p>\n</li>\n</ol>\n<h2 id=\"quick-examples\">Quick Examples</h2>\n<h3 id=\"request-without-promises-→-with-promises\">Request (without promises → with promises)</h3>\n<p><strong>Without promises:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /sell-orders/TEST_ORDER_001\n\n</code></pre><p><strong>With promises:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /sell-orders/TEST_ORDER_001?fields=sell_order_promises\n\n</code></pre><h3 id=\"response-new-fields-added\">Response (new fields added)</h3>\n<p><strong>Additional fields in current response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sell_order_promise_info\": {\n    \"promise_source\": \"melonn_internal\",\n    \"external_promise_info\": {\n      \"promise_type\": \"DELIVERY\",\n      \"promise_value\": {\n        \"max\": \"2025-05-20 01:30:00\"\n      }\n    },\n    \"pack_ready_to_sort_promise_min\": \"2025-12-17T08:00:00.000Z\",\n    \"pack_ready_to_sort_promise_max\": \"2025-12-17T18:00:00.000Z\"\n  },\n  \"sell_order_attempt\": [{\n    \"current\": true,\n    \"ready_to_ship_promise_min\": \"2025-12-17T08:00:00.000Z\",\n    \"ready_to_ship_promise_max\": \"2025-12-17T18:00:00.000Z\",\n    \"delivery_promise_min\": \"2025-12-20T08:00:00.000Z\",\n    \"delivery_promise_max\": \"2025-12-20T18:00:00.000Z\"\n  }]\n}\n\n</code></pre>\n<h2 id=\"additional-notes\">Additional Notes</h2>\n<ul>\n<li><p><strong>Compatibility/Impact:</strong> ✅ <strong>100% backward compatible</strong> - Does not affect existing query</p>\n</li>\n<li><p><strong>Available fields:</strong></p>\n<ul>\n<li><p><code>sell_order_promise_info</code>: Information about packaging and processing promises</p>\n</li>\n<li><p><code>sell_order_attempt</code>: Information about shipping and delivery promises</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Recommended usage:</strong> Include the parameter only when promise information is needed to optimize performance</p>\n</li>\n</ul>\n<h1 id=\"2---new-webhook-events-added\">2 - New: webhook events added</h1>\n<h2 id=\"general-information-1\">General Information</h2>\n<ul>\n<li><p><strong>Change Type:</strong> <code>No-breaking</code></p>\n</li>\n<li><p><strong>Summary:</strong> The following events are added to the list of events for webhook configuration.</p>\n</li>\n</ul>\n<ol>\n<li><p>Orden de venta - Cancelada</p>\n</li>\n<li><p>Orden de venta - Entregada al comprador</p>\n</li>\n<li><p>Orden de venta - Items Reservados</p>\n</li>\n<li><p>Orden de venta - Recogida por el comprador</p>\n</li>\n<li><p>Orden de venta - Recibida válida</p>\n</li>\n<li><p>Orden de venta - En tránsito</p>\n</li>\n</ol>\n","_postman_id":"adbcab30-6850-499f-a8de-f8e4fe3a8d0d","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}}],"id":"b6affe3b-0ae3-417e-a5a2-970a45956e1b","_postman_id":"b6affe3b-0ae3-417e-a5a2-970a45956e1b","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}},{"name":"2025-12","item":[{"name":"2025-12-03","item":[],"id":"af12082a-bac7-407d-b60e-6b8f449c5cff","description":"<h1 id=\"1---new-v2-for-buyer-return-orders-api\">1 - New: V2 for Buyer return orders API</h1>\n<h1 id=\"general-information\">General Information</h1>\n<ul>\n<li><p><strong>Change Type:</strong> <code>No-breaking</code></p>\n</li>\n<li><p><strong>Summary:</strong> expose new endpoint for list and cancel buyer return orders</p>\n</li>\n</ul>\n<h2 id=\"affected-endpoints\">Affected Endpoints</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /buyer-return-orders/v2/\nGET /buyer-return-orders/v2/:internal_order_number\nPOST /buyer-return-orders/v2/:internal_order_number/cancel\n\n</code></pre><h2 id=\"additional-notes\">Additional Notes</h2>\n<ul>\n<li><strong>Compatibility/Impact:</strong> ✅ <strong>100% backward compatible</strong> - Does not affect existing query</li>\n</ul>\n<h1 id=\"2---new-webhook-events-added\">2 - New: webhook events added</h1>\n<h2 id=\"general-information-1\">General Information</h2>\n<ul>\n<li><p><strong>Change Type:</strong> <code>No-breaking</code></p>\n</li>\n<li><p><strong>Summary:</strong> The following events are added to the list of events for webhook configuration.</p>\n</li>\n</ul>\n<ol>\n<li><p>Buyer Return Order - Created</p>\n</li>\n<li><p>Buyer Return Order - Received at Warehouse</p>\n</li>\n<li><p>Buyer Return Order - Label Generated</p>\n</li>\n</ol>\n","_postman_id":"af12082a-bac7-407d-b60e-6b8f449c5cff","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}},{"name":"2025-12-10","item":[],"id":"f475d3a7-6fac-4e66-a57d-9987e2144946","description":"<h1 id=\"1---new-enhanced-get-return-order-details-endpoint\">1 - New: Enhanced Get Return Order Details endpoint</h1>\n<h1 id=\"general-information\">General Information</h1>\n<ul>\n<li><p><strong>Change Type</strong>: No-breaking</p>\n</li>\n<li><p><strong>Summary</strong>: Added new fields to line_items_summary response to include received quantity information for unpacked return orders</p>\n</li>\n</ul>\n<h2 id=\"affected-endpoints\">Affected Endpoints</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /return-orders/{internalOrderNumber}\n\n</code></pre><p><strong>New Response Fields:</strong></p>\n<ul>\n<li><p><code>qty_received_ok</code>: Quantity of items received in good condition</p>\n</li>\n<li><p><code>qty_received_ok_restocked</code>: Quantity of items received in good condition that were restocked</p>\n</li>\n<li><p><code>qty_received_ok_not_restocked</code>: Quantity of items received in good condition that were not restocked</p>\n</li>\n<li><p><code>qty_received_defective</code>: Quantity of items received in defective condition</p>\n</li>\n</ul>\n<p>For composite products these fields are available inside the <code>content</code> array. The <code>content</code> field is now optional (can be <code>undefined</code> instead of empty array when product is not composite).</p>\n<h2 id=\"additional-notes\">Additional Notes</h2>\n<p><strong>Compatibility/Impact: ✅ 100% backward compatible</strong> - New fields are optional and only present when return order has been unpacked,</p>\n<h1 id=\"2---new-webhook-events-added\">2 - New: webhook events added</h1>\n<h1 id=\"general-information-1\">General Information</h1>\n<ul>\n<li><p><strong>Change Type</strong>: No-breaking</p>\n</li>\n<li><p><strong>Summary:</strong> The following events are added to the list of events for webhook configuration.</p>\n<ul>\n<li><p><code>Buyer Return Order - Canceled</code></p>\n</li>\n<li><p><code>Buyer Return Order - Unpacked</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"additional-notes-1\">Additional Notes</h2>\n<ul>\n<li><p><code>Buyer Return Order - Canceled</code>: Triggered when a return order is canceled. A return order can only be canceled if it is in \"Created\" or \"TransportServiceRequested\" state. Event: <code>BUYER_RETURN_ORDER/CANCELED</code></p>\n</li>\n<li><p><code>Buyer Return Order - Unpacked</code>: Triggered when the return order items have been unpacked and verified at the warehouse.</p>\n</li>\n</ul>\n","_postman_id":"f475d3a7-6fac-4e66-a57d-9987e2144946","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}}],"id":"76dec159-2e15-43fa-bdea-0c5523d7a1fd","_postman_id":"76dec159-2e15-43fa-bdea-0c5523d7a1fd","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}},{"name":"2025-12","item":[{"name":"2025-12-22","item":[],"id":"a1330761-d947-43cd-967e-e6d08e21c32c","description":"<h2 id=\"1---new-supplier-orders-api\">1 - New: Supplier Orders API</h2>\n<h3 id=\"general-information\">General Information</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Change Type</strong></td>\n<td>No-breaking</td>\n</tr>\n<tr>\n<td><strong>Summary</strong></td>\n<td>Expose new endpoints for list, get, create and cancel supplier orders</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"affected-endpoints\">Affected Endpoints</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET    /cle/public-api/supplier-orders/\nGET    /cle/public-api/supplier-orders/:internal_order_number\nPOST   /cle/public-api/supplier-orders/\nPOST   /cle/public-api/supplier-orders/:internal_order_number/cancel\nGET    /cle/public-api/seller-suppliers/\n\n</code></pre><h3 id=\"additional-notes\">Additional Notes</h3>\n<p><strong>Compatibility/Impact:</strong> ✅ 100% backward compatible - Does not affect existing query</p>\n<hr />\n<h2 id=\"2---new-webhook-events-added\">2 - New: Webhook Events Added</h2>\n<h3 id=\"general-information-1\">General Information</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Change Type</strong></td>\n<td>No-breaking</td>\n</tr>\n<tr>\n<td><strong>Summary</strong></td>\n<td>The following events are added to the list of events for webhook configuration.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"events\">Events</h3>\n<ul>\n<li><p>Supplier Order - Created</p>\n</li>\n<li><p>Supplier Order - Cancelled</p>\n</li>\n<li><p>Supplier Order - Closed</p>\n</li>\n<li><p>Supplier Order Package - Unpacked</p>\n</li>\n</ul>\n<h3 id=\"additional-notes-1\">Additional Notes</h3>\n<p><strong>Compatibility/Impact:</strong> ✅ 100% backward compatible - Does not affect existing webhook configurations</p>\n","_postman_id":"a1330761-d947-43cd-967e-e6d08e21c32c","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}}],"id":"b56f5f00-80a1-4e1e-8714-7a73bdcd0b5b","_postman_id":"b56f5f00-80a1-4e1e-8714-7a73bdcd0b5b","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","id":"7659417c-33a7-415e-9fbb-13eaba66fe66","name":"Change Log","type":"folder"}}}],"id":"7659417c-33a7-415e-9fbb-13eaba66fe66","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"61ca8f01-cd78-42c7-883c-00867edaf4f0","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"7e0e5e3a-a1d0-4944-972e-d1ef7c76e767","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"7659417c-33a7-415e-9fbb-13eaba66fe66","description":""}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{api_key}}"}]}},"event":[{"listen":"prerequest","script":{"id":"c133e4f2-bb2b-4159-96ea-79d905389707","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"29284390-7297-4c51-bda8-6f5c5fd46c22","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"id":"5e867266-7d38-4974-9d30-9eb727991604","key":"sell_orders_collection_path","value":"sell-orders"},{"id":"31c38408-eaa6-4b2c-8a6c-0028ced1e588","key":"vas_collection_path","value":"vas"},{"id":"deea0426-94ac-445a-b5cf-fcb5d8d3c576","key":"business_collection_path","value":"business"},{"id":"f3842b18-9a01-4fa2-ab00-adb1c793cd56","key":"buyer_return_order_path","value":"buyer-return-orders"},{"id":"e3ca5fae-baae-4a99-8767-e1dc56138109","key":"supplier_orders_path","value":"supplier-orders"},{"id":"e0392a59-fd5d-48a6-bafb-156cd2342075","key":"seller_suppliers_path","value":"seller-suppliers"},{"id":"f32dd95b-68a3-48e1-aafe-af5b5209eca3","key":"stock_path","value":"stock"}]}