{
  "info": {
    "name": "PULPO WMS API - 3PL Integration (v4.4.0)",
    "description": "Auto-generated from the PULPO WMS OpenAPI spec. Set the `baseUrl` and `token` collection variables, then run the Authentication request to obtain a token.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://eu.pulpo.co/api/v1"
    },
    {
      "key": "token",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Authentication",
      "item": [
        {
          "name": "Authenticate or refresh an access token",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/auth",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "auth"
              ]
            },
            "description": "OAuth 2.0 endpoint supporting two grant types:\n\n- `password` — exchange username + password for an access token.\n- `refresh_token` — exchange a previously issued `refresh_token` for a fresh\n  access token without re-prompting for credentials.\n\n**Important:**\n- Tokens expire after 60 minutes\n- Store the token and reuse it until expiry\n- Do NOT request a new token for every API call\n- Create a dedicated API user with access to all warehouses\n- If the auth response includes a `refresh_token`, use the `refresh_token` grant\n  to silently renew the access token instead of re-submitting credentials.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"grant_type\": \"password\",\n  \"username\": \"api_user@company.com\",\n  \"password\": \"your_secure_password\",\n  \"scope\": \"default\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        },
        {
          "name": "Revoke an access or refresh token",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/auth/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "auth",
                "revoke"
              ]
            },
            "description": "Best-effort logout — revokes the supplied token so it can no longer be used.\n\nSend the current `Authorization: Bearer <token>` header AND the token to revoke\nin the body. Servers may accept revoking a `refresh_token` here as well.\n\nReturning 200 indicates the token is no longer valid; clients should also clear\ntheir local copy regardless of the response.\n"
          },
          "response": []
        }
      ]
    },
    {
      "name": "User & Tenant",
      "item": [
        {
          "name": "Get current user information",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/iam/users/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "users",
                "me"
              ]
            },
            "description": "Returns detailed information about the authenticated user, including:\n- Tenant ID and details\n- Accessible warehouses (allowlist — users only see data for these warehouses)\n- Accessible merchants (allowlist)\n- User profiles and permissions\n\nUse this endpoint to obtain your `tenant_id` and `warehouse_id` values.\n\nThe returned `warehouses[]` and `merchants[]` define the user's effective\nauthorization scope. There is no explicit role/permission field — visibility\nis implied by these allowlists, and clients should filter server responses\nagainst the same sets.\n"
          },
          "response": []
        },
        {
          "name": "List merchants accessible to a user",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/iam/users/:id/merchants",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "users",
                ":id",
                "merchants"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the merchants the given user has access to. Equivalent to\n`me.merchants[]`, but addressable by ID.\n\nIf this endpoint is not available for your tenant, fall back to\n`GET /merchants/` and intersect with the user's `merchants` allowlist.\n"
          },
          "response": []
        },
        {
          "name": "List sales channels for a merchant",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/iam/merchants/:id/channels",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "merchants",
                ":id",
                "channels"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the merchant_channels configured for a given merchant. Use the\nreturned `id` as `merchant_channel_id` on order/product creation.\n"
          },
          "response": []
        },
        {
          "name": "List active tasks owned by a user",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/iam/users/:id/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "users",
                ":id",
                "tasks"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the set of in-flight warehouse tasks currently assigned to a user.\n\nUseful for the \"one task at a time per user\" rule applied in picking/packing —\nbefore opening a new flow, check whether the user already owns an active task.\n\n**Note:** Paused (`locked`) packing orders are **not** included here. Query\n`GET /packing/orders?state=locked` to find them.\n"
          },
          "response": []
        },
        {
          "name": "Search tags (product_categories)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/categories?id=to_list:16901,16902&code=cold&name=&limit=100&offset=0&sort_by=id:asc",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "categories"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "to_list:16901,16902",
                  "description": "Tag ID, or `to_list:id1,id2`",
                  "disabled": true
                },
                {
                  "key": "code",
                  "value": "cold",
                  "description": "Exact code, or `to_list:code1,code2`",
                  "disabled": true
                },
                {
                  "key": "name",
                  "value": "",
                  "description": "Exact name",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the tenant's tags. Tags are called `product_categories` in the API.\n\n**Filters:** `id`, `code` and `name` are exact, case-sensitive matches (`code=Cold`\ndoes not find `cold`). `id` and `code` also accept `to_list:` for several values.\n\n`total_results` is `null` when `offset` is greater than 0.\n"
          },
          "response": []
        },
        {
          "name": "Create a tag (product_category)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/categories",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "categories"
              ]
            },
            "description": "Creates a tag for the tenant. Send a plain object (not wrapped).\n\n- `code`, `name` and `tenant_id` are required. `tenant_id` must be your own tenant\n  (see `GET /iam/users/me`).\n- `code` must be unique within the tenant. It is case-sensitive, so `cold` and\n  `Cold` count as different codes.\n- `name` does not need to be unique.\n\nUse the returned `id` to assign the tag to products, users or locations.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"fragile\",\n  \"name\": \"Fragile\",\n  \"tenant_id\": 1445\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get a tag by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/categories/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "categories",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get a tag by ID"
          },
          "response": []
        },
        {
          "name": "Update a tag",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/categories/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "categories",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Changes a tag's `code` and/or `name`. Only the fields you send change. The same\nrules as on create apply: `code` must stay unique, neither may be empty.\n\nProducts, users and locations keep the tag — they reference it by ID, so a new\ncode or name shows up everywhere.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Fragile — handle with care\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a tag",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/categories/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "categories",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Deletes a tag and returns it.\n\n**Careful:** a tag that is in use can be deleted too. There is no warning — the\ntag is silently removed from the products that had it (tested for products;\nusers and locations presumably behave the same).\n"
          },
          "response": []
        },
        {
          "name": "Set a user's tags",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/iam/users/:id/categories",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "users",
                ":id",
                "categories"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Sets the user's **tags** (`product_categories`). The body is a plain JSON array of\ntag IDs.\n\nThe list **replaces** the user's tags; `[]` removes all of them. If any ID is\nunknown, the whole call fails and nothing changes. Tag codes are rejected.\n\nThis is the only way to change a user's tags after creation:\n`PUT /iam/users/{id}` silently ignores `product_categories`. When creating a user\nwith `POST /iam/users`, tags can be sent directly as `product_categories: [ids]`.\n\nReturns the full user, including the new `product_categories`.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  16901,\n  16902\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Warehouses",
      "item": [
        {
          "name": "List all warehouses",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/warehouses/?limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "warehouses",
                ""
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Returns detailed information about all warehouses accessible to the current user.\n\nUse this to get warehouse IDs required for order creation.\n"
          },
          "response": []
        },
        {
          "name": "Get warehouse locations",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/warehouses/locations?location_type_id=&warehouse_id=&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "warehouses",
                "locations"
              ],
              "query": [
                {
                  "key": "location_type_id",
                  "value": "",
                  "description": "Filter by location type (e.g., kitting, storage, return)",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Returns physical locations within a warehouse.\n\n**Use cases:**\n- Find kitting locations for kitting tasks\n- Map warehouse layout\n- Track stock by specific bin/shelf\n"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Products",
      "item": [
        {
          "name": "Search products",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products?limit=100&offset=0&sort_by=id:asc&capped_limit=0&id=&sku=COFFEE-001&article_number=&barcode=&name=&description=&management_type=&third_party_id=&merchant_id=69&active=true&has_stock=&holds_stock_on_warehouse_id=&holds_blocked_stock_on_warehouse_id=&related_orders_state=&related_orders_delivery_date=&view_attributes=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "sku",
                  "value": "COFFEE-001",
                  "description": "Exact match or `contains:term` substring search",
                  "disabled": true
                },
                {
                  "key": "article_number",
                  "value": "",
                  "description": "Exact match.",
                  "disabled": true
                },
                {
                  "key": "barcode",
                  "value": "",
                  "description": "Exact match against any of the product's `barcodes`.",
                  "disabled": true
                },
                {
                  "key": "name",
                  "value": "",
                  "description": "Exact match or `contains:term`",
                  "disabled": true
                },
                {
                  "key": "description",
                  "value": "",
                  "description": "Exact match.",
                  "disabled": true
                },
                {
                  "key": "management_type",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "third_party_id",
                  "value": "",
                  "description": "Default supplier ID.",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "69",
                  "description": "Merchant ID. Use `to_list:1,2,3` for multiple.",
                  "disabled": true
                },
                {
                  "key": "active",
                  "value": "true",
                  "disabled": true
                },
                {
                  "key": "has_stock",
                  "value": "",
                  "description": "Whether the product has at least one stock record.",
                  "disabled": true
                },
                {
                  "key": "holds_stock_on_warehouse_id",
                  "value": "",
                  "description": "Restricts `has_stock` to the given warehouse(s). Single ID or\n`to_list:id1,id2`.\n",
                  "disabled": true
                },
                {
                  "key": "holds_blocked_stock_on_warehouse_id",
                  "value": "",
                  "description": "Product holds stock on a blocked position (unavailable state) in the\ngiven warehouse(s). Single ID or `to_list:id1,id2`.\n",
                  "disabled": true
                },
                {
                  "key": "related_orders_state",
                  "value": "",
                  "description": "State of orders that reference this product.",
                  "disabled": true
                },
                {
                  "key": "related_orders_delivery_date",
                  "value": "",
                  "description": "Delivery date of orders that reference this product. Exact match only,\n`YYYY-MM-DD HH:MM:SS` — a bare date or a `gte:`/`between:`/etc. prefix\nreturns a 500 error.\n",
                  "disabled": true
                },
                {
                  "key": "view_attributes",
                  "value": "",
                  "description": "Comma-separated list of fields to return",
                  "disabled": true
                }
              ]
            },
            "description": "Search and filter products with pagination.\n\n**Useful filters:**\n- `id`, `sku`, `article_number`, `barcode` — exact match, or `sku`/`name`\n  accept a `contains:term` prefix for a substring search\n- `name`, `description` — exact match, or `contains:term` on `name`\n- `management_type` — `none`, `lot`, `serial`\n- `third_party_id` — default supplier\n- `merchant_id` (also `to_list:`), `active`, `has_stock`\n- `product_categories` — tag ID, or `to_list:id1,id2` for products with any of\n  them. Tag codes return an error.\n- `holds_stock_on_warehouse_id` / `holds_blocked_stock_on_warehouse_id` —\n  single ID or `to_list:id1,id2`\n- `related_orders_state`, `related_orders_delivery_date` — exact match only,\n  `YYYY-MM-DD HH:MM:SS`. A bare date or a `gte:`/`between:`/etc. prefix\n  returns a 500 error.\n- `view_attributes=id,sku,name` (return only specific fields)\n\n`__or_search` and `show_deleted` are accepted but don't do anything on this\nendpoint — deleted products never appear in search results regardless.\n"
          },
          "response": []
        },
        {
          "name": "Create products in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/bulk/products",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "bulk",
                "products"
              ]
            },
            "description": "Creates multiple products at once. Products are the master data for all items in your warehouse.\n\nTo update existing products instead, use `PUT /inventory/bulk/products`.\n\n**Important fields:**\n- `sku`: Unique identifier per product (your external reference)\n- `name`: Unique product name\n- `merchant_id`: Owner of the product\n- `barcodes`: Required for scanning in warehouse (Android app)\n- `management_type`: none, lot, or serial (for batch tracking)\n\n**Recommended batch size:** up to 50 items per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"active\": true,\n    \"name\": \"Premium Coffee Beans 1kg\",\n    \"sku\": \"COFFEE-001\",\n    \"management_type\": \"lot\",\n    \"batch_control\": true,\n    \"cost_price\": 15.99,\n    \"minimum_purchase_unit\": 1,\n    \"minimum_sales_unit\": 1,\n    \"units_per_purchase_package\": 1,\n    \"units_per_sales_package\": 1,\n    \"purchase_measure_units\": \"BOX\",\n    \"sales_measure_units\": \"BOX\",\n    \"weight\": 1.2,\n    \"length\": 20,\n    \"width\": 15,\n    \"height\": 10,\n    \"tenant_id\": 87,\n    \"merchant_id\": 69,\n    \"merchant_channel_id\": null,\n    \"barcodes\": [\n      \"5060123456789\",\n      \"COFFEE-001\"\n    ],\n    \"attributes\": {\n      \"image_url\": \"https://example.com/coffee.jpg\",\n      \"color\": \"brown\"\n    }\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Update products in bulk",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/bulk/products",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "bulk",
                "products"
              ]
            },
            "description": "Updates existing products. Works as bulk — if any product update fails, the\nremaining products continue processing.\n\n**Identify the product to update:**\n- `sku`: Product SKU (looked up together with your tenant)\n- `id`: PULPO product ID also works, if you already store it\n\n**Updatable fields:**\nSend only the fields you want to change, plus the identifier — this is a\npartial update, **except for `barcodes`**: it must always be included and\nnon-empty (resend the existing barcodes if you're not changing them, or the\nrequest fails). Any other field accepted by product creation can be updated\n— `name`, `active`, `cost_price`, `attributes`, etc.\n\n**`attributes` is replaced, not merged:** whatever you send becomes the\nproduct's complete `attributes` object, and any key you leave out is deleted\n(including `image_url`, which drives the dashboard thumbnail). To change one\nattribute, send all existing keys along with it.\n\nTo deactivate a product instead of updating it, send `active: false`.\n\n**Recommended batch size:** up to 50 items per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"sku\": \"COFFEE-001\",\n    \"cost_price\": 16.49,\n    \"barcodes\": [\n      \"5060123456789\",\n      \"COFFEE-001\"\n    ]\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete products in bulk",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/bulk/products",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "bulk",
                "products"
              ]
            },
            "description": "Permanently removes products. Deleted products no longer appear in\n`GET /inventory/products` or other product searches.\n\nWorks as bulk — if any product fails to delete, the remaining products are\nstill processed.\n\n**Recommended batch size:** up to 50 items per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"sku\": \"COFFEE-001\"\n  },\n  {\n    \"sku\": \"COFFEE-002\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Third Parties",
      "item": [
        {
          "name": "Create third parties in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/iam/bulk/third_parties",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "bulk",
                "third_parties"
              ]
            },
            "description": "Creates suppliers (type=S) or customers (type=C) in bulk.\n\nTo update existing third parties instead, use `PUT /iam/bulk/third_parties`.\n\n**Suppliers (type=S):**\n- Used in purchase orders\n- `merchant_channel_id` can be NULL\n\n**Customers (type=C):**\n- Used in sales orders\n- `merchant_channel_id` is REQUIRED\n\n**Important:**\n- Store the returned `id` for use in orders\n- `identifier_number` + `third_type` must be unique — creating a duplicate is\n  rejected, it does not update the existing record\n\n**Recommended batch size:** up to 50 items per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"active\": true,\n    \"name\": \"Acme Coffee Suppliers Ltd\",\n    \"identifier_type\": \"VAT\",\n    \"identifier_number\": \"GB123456789\",\n    \"third_type\": \"S\",\n    \"email\": \"orders@acmecoffee.com\",\n    \"tenant_id\": 87,\n    \"merchant_id\": 69,\n    \"merchant_channel_id\": null\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Update third parties in bulk",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/iam/bulk/third_parties",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "bulk",
                "third_parties"
              ]
            },
            "description": "Updates existing suppliers or customers. Works as bulk — if any item fails,\nthe remaining ones continue processing. This is a partial update — send only\nthe fields you want to change, plus an identifier.\n\n**Identify the third party to update:**\n- `identifier_number` (with `third_type`)\n- `id`: PULPO third party ID also works\n\n**Recommended batch size:** up to 50 items per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"identifier_number\": \"GB123456789\",\n    \"third_type\": \"S\",\n    \"name\": \"Acme Coffee Suppliers (renamed)\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a third party",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/iam/third_parties/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "iam",
                "third_parties",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Deletes a single supplier or customer by its PULPO ID. This is a soft\ndelete — the record is deactivated (`active: false`, `deleted_at`,\n`deleted_by` set) and no longer appears in third party searches.\n\nThird parties referenced by existing orders (purchase orders or sales\norders) cannot be deleted — deactivate them instead with\n`PUT /iam/bulk/third_parties` (`active: false`).\n"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Stock",
      "item": [
        {
          "name": "List stock records",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks?limit=100&offset=0&sort_by=id:asc&capped_limit=0&warehouse_id=&product_id=&location_id=&batch_id=&merchant_id=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "product_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "location_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "batch_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "",
                  "description": "Merchant ID. Use `to_list:1,2,3` for multiple.",
                  "disabled": true
                }
              ]
            },
            "description": "Lists raw stock records, optionally scoped to a product, location, batch, or\nwarehouse. Each row represents a stock quantity at a specific\n(product, location, batch) tuple.\n\n**When to use this vs the other stock endpoints:**\n\n| Use case | Endpoint |\n|----------|----------|\n| Aggregate per-product totals | `GET /inventory/stocks/summary` |\n| Per-location quantities | `POST /inventory/stocks/products/locations` |\n| Soon-to-expire stock | This endpoint or `GET /inventory/stocks/batches` (the batch-grouped variant returns more complete batch metadata) |\n| Count units at one location | This endpoint with `location_id` + `limit=1` |\n\nEach row includes nested `batch: { id, number, expiration_date, type }` for\nbatch-managed products — use this rather than `/inventory/stocks/expiring`\nwhen you need full batch metadata.\n"
          },
          "response": []
        },
        {
          "name": "Get stock summary",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks/summary?product_id=1957711&warehouse_id=140&merchant_id=69&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks",
                "summary"
              ],
              "query": [
                {
                  "key": "product_id",
                  "value": "1957711",
                  "description": "Product ID; repeat the parameter to query multiple products.",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "140",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "69",
                  "description": "Merchant ID. Use `to_list:1,2,3` for multiple.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Returns stock summary for products with detailed breakdown.\n\n**Stock Types:**\n- `total`: Stock in storage, user, cross-docking, packing locations\n- `available`: Total minus open orders\n- `unavailable`: Open orders + reception + return\n- `rejected`: Stock in return locations\n\n**Filters:**\n- Filter by `product_id`, `warehouse_id`, `merchant_id`\n- Repeat `product_id` to query multiple products in one call:\n  `?product_id=1957711&product_id=1957712`\n- `merchant_id` accepts `to_list:1,2,3` for multi-merchant queries\n- Combine filters for precise queries\n"
          },
          "response": []
        },
        {
          "name": "List stock grouped by batch",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks/batches?limit=100&offset=0&sort_by=id:asc&capped_limit=0&warehouse_id=&merchant_id=&batch_expiration_date=lte:2025-12-31&total_quantity=gt:0&product_management_type=&zone_id=&location_type_id=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks",
                "batches"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "",
                  "description": "Merchant ID. Use `to_list:` for multiple.",
                  "disabled": true
                },
                {
                  "key": "batch_expiration_date",
                  "value": "lte:2025-12-31",
                  "description": "Expiration filter. Supports `between:`, `gte:`, `lte:`.",
                  "disabled": true
                },
                {
                  "key": "total_quantity",
                  "value": "gt:0",
                  "description": "Quantity filter. Supports `gte:`, `gt:`.",
                  "disabled": true
                },
                {
                  "key": "product_management_type",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "zone_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "location_type_id",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Returns stock aggregated by batch (one row per batch), with each row carrying\nthe total quantity across all locations holding that batch plus the per-location\nbreakdown.\n\nThis is the recommended endpoint for expiring-stock reporting when you need\nfull batch metadata — `GET /inventory/stocks/expiring` returns a truncated\nsubset of fields.\n\n**Filters:**\n- `batch_expiration_date` — supports `between:`, `gte:`, `lte:` (e.g.,\n  `lte:2025-12-31` for soon-to-expire batches)\n- `total_quantity` — supports `gte:`, `gt:` (e.g., `gt:0` to exclude empty\n  batches)\n- `product_management_type` — `lot` or `serial`\n- `merchant_id=to_list:...` for multi-merchant queries\n"
          },
          "response": []
        },
        {
          "name": "Get expiring stock",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks/expiring?product_id=1957711&batch_id=&location_id=&zone_id=&location_type_id=&stock_state_id=&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks",
                "expiring"
              ],
              "query": [
                {
                  "key": "product_id",
                  "value": "1957711",
                  "description": "Product ID to filter",
                  "disabled": true
                },
                {
                  "key": "batch_id",
                  "value": "",
                  "description": "Batch ID to filter",
                  "disabled": true
                },
                {
                  "key": "location_id",
                  "value": "",
                  "description": "Location ID to filter",
                  "disabled": true
                },
                {
                  "key": "zone_id",
                  "value": "",
                  "description": "Zone ID to filter",
                  "disabled": true
                },
                {
                  "key": "location_type_id",
                  "value": "",
                  "description": "Location Type ID to filter",
                  "disabled": true
                },
                {
                  "key": "stock_state_id",
                  "value": "",
                  "description": "Stock State ID to filter",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Lists stock items sorted by expiration date (ascending), allowing you to identify\nproducts that are expiring soon.\n\n**Use cases:**\n- Monitor perishable goods approaching expiry\n- Plan promotions or markdowns for soon-to-expire stock\n- Generate expiry reports for compliance\n\n**Filters:**\n- `product_id`: Filter by specific product\n- `batch_id`: Filter by specific batch\n- `zone_id`, `location_id`: Filter by warehouse zone/location\n- `stock_state_id`: Filter by stock state\n"
          },
          "response": []
        },
        {
          "name": "Get batch availability for a product",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks/availability/products/:id/batches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks",
                "availability",
                "products",
                ":id",
                "batches"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the available and reception quantities per batch for a given product.\nUseful for checking which batches have stock available for fulfillment.\n"
          },
          "response": []
        },
        {
          "name": "Get stock by product and location",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks/products/locations?include_packed_goods_segmentation=&warehouse_id=&product_id=&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks",
                "products",
                "locations"
              ],
              "query": [
                {
                  "key": "include_packed_goods_segmentation",
                  "value": "",
                  "description": "Include packed/loose stock breakdown",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "product_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Returns detailed stock information per product and per physical location.\n\n**New Feature:**\n- `include_packed_goods_segmentation=true`: Shows if stock is packed or loose\n- `packed_or_loose` values: `packed`, `loose`, `both`\n\n**Use cases:**\n- Detailed location-level stock reports\n- Loading unit tracking\n- Warehouse layout optimization\n"
          },
          "response": []
        },
        {
          "name": "Correct stock at a location",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/stocks/correct",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "stocks",
                "correct"
              ]
            },
            "description": "Adds or removes stock for a product at a specific location. The path isn't\nunder `/bulk/`, but the request still accepts multiple `items` in one call.\n\n**Direction:** `quantity` is signed — positive adds stock, negative removes\nit. Removing more than what's available at that location returns a 422\n(`not_enough_stock_to_remove_for_given_location_product_batch`).\n\n**Batch-controlled products (`lot`/`serial`):** include `item_batches`, one\nentry per batch/lot/serial affected. For `serial`-managed products, each\nbatch's `quantity` must be `1` — a serial is a single unique unit. For `lot`\nit can be any amount. The batch-level quantities are what actually get\napplied — keep the item's own `quantity` equal to their sum to avoid\nconfusion, even though it isn't strictly validated against it.\n\n**Recommended batch size:** up to 50 corrections (`items` entries) per\nrequest.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"warehouse_id\": 140,\n  \"items\": [\n    {\n      \"location_id\": 229364,\n      \"product_id\": 1957711,\n      \"quantity\": 5\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Batch Management",
      "item": [
        {
          "name": "Search all batches",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/batches?product_id=1957711&number=&type=&expiration_date=&client_id=&existing_stock=&show_unavailable_stock=&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "batches"
              ],
              "query": [
                {
                  "key": "product_id",
                  "value": "1957711",
                  "description": "Filter by product ID",
                  "disabled": true
                },
                {
                  "key": "number",
                  "value": "",
                  "description": "Alphanumerical batch/lot number",
                  "disabled": true
                },
                {
                  "key": "type",
                  "value": "",
                  "description": "Type of batch",
                  "disabled": true
                },
                {
                  "key": "expiration_date",
                  "value": "",
                  "description": "Expiration date filter (format: YYYY-MM-DD)",
                  "disabled": true
                },
                {
                  "key": "client_id",
                  "value": "",
                  "description": "Client identifier associated to batch",
                  "disabled": true
                },
                {
                  "key": "existing_stock",
                  "value": "",
                  "description": "Only show batches with existing stock",
                  "disabled": true
                },
                {
                  "key": "show_unavailable_stock",
                  "value": "",
                  "description": "Include batches with unavailable stock",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Searches batches across all products with optional filters.\n\n**Filters:**\n- `product_id`: Filter by specific product\n- `number`: Filter by batch/lot number\n- `type`: Filter by batch type\n- `expiration_date`: Filter by expiration date\n- `existing_stock`: Only show batches with existing stock\n- `show_unavailable_stock`: Include batches with unavailable stock\n"
          },
          "response": []
        },
        {
          "name": "List batches for a product",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/:id/batches?number=LOT-2025-001&type=lot&expiration_date=2025-12-31&client_id=&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                ":id",
                "batches"
              ],
              "query": [
                {
                  "key": "number",
                  "value": "LOT-2025-001",
                  "description": "Alphanumerical batch/lot number",
                  "disabled": true
                },
                {
                  "key": "type",
                  "value": "lot",
                  "description": "Type of batch",
                  "disabled": true
                },
                {
                  "key": "expiration_date",
                  "value": "2025-12-31",
                  "description": "Expiration date filter (format: YYYY-MM-DD)",
                  "disabled": true
                },
                {
                  "key": "client_id",
                  "value": "",
                  "description": "Client identifier associated to batch",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns all batches associated with a specific product.\nOnly applicable for products with `batch_control: true` and `management_type: lot` or `serial`.\n\n**Filters:**\n- `number`: Filter by batch/lot number\n- `type`: Filter by batch type (`lot`, `serial`, `none`)\n- `expiration_date`: Filter by expiration date (format: `YYYY-MM-DD`)\n- `client_id`: Filter by client identifier\n"
          },
          "response": []
        },
        {
          "name": "Create a batch for a product",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/:id/batches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                ":id",
                "batches"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Creates a new batch/lot for a product that has `batch_control: true`.\n\n**Required setup:**\n- Product must have `management_type` set to `lot` or `serial`\n- Product must have `batch_control` set to `true`\n\n**Use cases:**\n- Pre-create batches before receiving goods\n- Register lot numbers with expiration dates for perishable products\n- Track serial numbers for individual items\n"
          },
          "response": []
        },
        {
          "name": "Get batch by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/batches/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "batches",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns detailed information about a specific batch by its ID.\n"
          },
          "response": []
        },
        {
          "name": "Update a batch",
          "request": {
            "method": "PUT",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inventory/products/batches/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "products",
                "batches",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Updates fields of a batch, such as the expiration date, lot number, or supplier.\n\n**Common use cases:**\n- Correct an expiration date\n- Update the supplier (third_party_id) associated with a batch\n- Change the client identifier\n"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Picking",
      "item": [
        {
          "name": "List picking orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/picking/orders?limit=100&offset=0&capped_limit=0&warehouse_id=&state=&merchant_id=&sales_order_id=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "orders"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "state",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "sales_order_id",
                  "value": "",
                  "description": "Picking orders related to a specific sales order",
                  "disabled": true
                }
              ]
            },
            "description": "Retrieves picking orders with filtering and pagination.\n\n**Possible states** (fixed, managed by PULPO):\n- `queue`: Waiting to be picked\n- `taken`: Being picked\n- `locked`: Remainder of a picking that was finished early with items missing\n  (usually out of stock). The system creates it locked so it isn't picked again\n  and again while stock is still missing — it must be unlocked manually before\n  a picker can take it.\n- `mixed`: Partially picked\n- `ended`: Picking completed\n- `cancelled`: Cancelled\n\n**Useful filters:**\n- `warehouse_id=140`\n- `state=ended`\n- `merchant_id=69`\n- `sales_order_id=13283307` — picking history for a specific sales order\n- `updated_at=between:2024-03-01 00:00:00,2024-03-31 23:59:59`\n\n`sort_by` is not supported here — any value returns `500 Internal Server Error`.\n"
          },
          "response": []
        },
        {
          "name": "Create a batch or cart picklist",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/picking/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "orders"
              ]
            },
            "description": "Creates **one** picklist that groups all given fulfillment orders. Use it for\n**batch** picking (`cart: false`) and **cart** picking (`cart: true`). For one\npicklist per order (standard picking), use `POST /picking/bulk/orders`.\n\n| Request | Resulting picklist `type` |\n|---------|---------------------------|\n| several FOs, `cart: false` | `consolidated` |\n| several FOs, `cart: true` | `cart_picking` |\n| one FO, `cart: false` | `normal` |\n\n**`orders_count`** splits the given fulfillment orders evenly over that many\npicklists. Example: 4 FOs with `orders_count: 2` give 2 picklists with 2 FOs each.\nThese picklists get `type: normal`.\n\n**`pickers`:** the first user ID becomes the picklist `owner`. Further IDs are\nignored. The picklist stays in `queue` until the picker starts it.\n\n**All or nothing:** if any fulfillment order can't be picked (for example missing\nstock or already on a picklist), no picklist is created and the call returns `422`.\n\n**`delete_missing_stock_sales_items: true`** reduces lines without enough stock to\nthe available quantity, so the picklist can still be created. The sales order\nkeeps its original quantities.\n\n`cart: true` does not change `is_cart` on the sales orders.\n\n**Turbo label:** with `turbo_label: true` the picklist is created as a turbo label\npicklist and the labels are generated **within this request** (synchronous, about\n5 seconds per order on staging). For larger volumes use the asynchronous\n`POST /picking/orders/turbo` instead.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fulfillment_orders\": [\n    14619144,\n    14619143\n  ],\n  \"cart\": false,\n  \"notes\": \"Handle with care\",\n  \"delete_missing_stock_sales_items\": false,\n  \"pickers\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Create a turbo label batch picklist (asynchronous)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/picking/orders/turbo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "orders",
                "turbo"
              ]
            },
            "description": "Turbo label version of `POST /picking/orders`: **one** picklist for all given\nfulfillment orders (`type: consolidated_turbo_label`, or `turbo_label` for a\nsingle FO). Before picking starts, PULPO creates a draft packing order per sales\norder and fetches the shipping labels.\n\n**Asynchronous.** The call returns `204 No Content` immediately. The work runs in\nthe background and can take from seconds to minutes, because labels come from\nexternal carrier systems. Track the result per fulfillment order with\n`GET /sales/orders/fulfillments` and its `process_information`:\n\n| `process_information.status` | Meaning |\n|------------------------------|---------|\n| `queue` | Waiting to be processed |\n| `started` | Picklist created, labels being fetched. `value` = picklist number |\n| `turbo_label_created` | Done. `value` = picklist number (e.g. `PI-0000095`) |\n| `error_creating_picking` | Failed. See `errors`. The fulfillment order stays in `queue` and can be submitted again |\n\n**Labels:** one packing box and label **per unit** in a draft packing order of\ntype `turbo_label`, one packing order per sales order.\n\n**Not supported here:** `cart: true` and `turbo_label_per_order: true` both end in\n`error_creating_picking`.\n\nUnknown fulfillment order IDs are rejected synchronously with `422`. All other\nerrors (missing stock, already on a picklist) only show up in\n`process_information`.\n\n**Matching the status to your request:** the `x-request-id` header of the `204`\nresponse equals `process_information.attributes.request_id` of the run it\nstarted. Ignore statuses with a different `request_id` — they are left over from\nan earlier run.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fulfillment_orders\": [\n    14619146,\n    14619142\n  ],\n  \"cart\": false,\n  \"notes\": \"\",\n  \"delete_missing_stock_sales_items\": false,\n  \"pickers\": [\n    4778\n  ],\n  \"turbo_label\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Create turbo label standard picklists (asynchronous)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/picking/bulk/orders/turbo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "bulk",
                "orders",
                "turbo"
              ]
            },
            "description": "Turbo label version of `POST /picking/bulk/orders`: **one** picklist per\nfulfillment order (`type: turbo_label`). Before picking starts, PULPO creates a\ndraft packing order per sales order and fetches the shipping labels.\n\n**Asynchronous.** The call returns `204 No Content` immediately. The work runs in\nthe background and can take from seconds to minutes, because labels come from\nexternal carrier systems. Track the result per fulfillment order with\n`GET /sales/orders/fulfillments` and its `process_information`:\n\n| `process_information.status` | Meaning |\n|------------------------------|---------|\n| `queue` | Waiting to be processed |\n| `started` | Picklist created, labels being fetched. `value` = picklist number |\n| `turbo_label_created` | Done. `value` = picklist number (e.g. `PI-0000092`) |\n| `error_creating_picking` | Failed. See `errors`. The fulfillment order stays in `queue` and can be submitted again |\n\nEach fulfillment order is processed on its own — one can fail while the others\nsucceed.\n\n**Labels:**\n- Default: one packing box and label **per unit**.\n- `turbo_label_per_order: true` with a `shipment_box_template_id`: **one** box and\n  label for the whole order. Without a template ID this fails with\n  `shipment_box_template_id_required_for_order_per_box_strategy`.\n\n**Errors only show up in `process_information`** — the call itself always\nreturns `204` once the body is valid. Unknown fulfillment order IDs are silently\nignored.\n\n**Matching the status to your request:** the `x-request-id` header of the `204`\nresponse equals `process_information.attributes.request_id` of the run it\nstarted. Ignore statuses with a different `request_id` — they are left over from\nan earlier run.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fulfillment_orders\": [\n    14619148\n  ],\n  \"orders_count\": 1,\n  \"pickers\": [],\n  \"turbo_label\": true,\n  \"notes\": \"\",\n  \"delete_missing_stock_sales_items\": false,\n  \"turbo_label_per_order\": false,\n  \"shipment_box_template_id\": null\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Create standard picklists (one per order)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/picking/bulk/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "bulk",
                "orders"
              ]
            },
            "description": "Creates **one picklist per fulfillment order** (`type: normal`). Use this for\nstandard picking. For one picklist covering several orders, use\n`POST /picking/orders`.\n\n`orders_count` has no effect here — there is always one picklist per order.\n\n**`pickers`:** the picklists are assigned to the given users in turn (first\npicklist → first picker, second → second picker, …). Each becomes the picklist\n`owner`; the picklist stays in `queue`.\n\n**Partial success:** each fulfillment order is handled on its own. Those that\nwork are listed in `created`, the others in `errors`. If at least one fails, the\nstatus is `400` — always read both lists. An unknown fulfillment order ID fails\nthe whole call with `422` and creates nothing.\n\n**`delete_missing_stock_sales_items: true`** reduces lines without enough stock to\nthe available quantity, so the picklist can still be created. The sales order\nkeeps its original quantities.\n\n**Turbo label:** with `turbo_label: true` the picklists are created as turbo label\npicklists and the labels are generated **within this request** (synchronous,\nabout 5 seconds per order on staging). For larger volumes use the asynchronous\n`POST /picking/bulk/orders/turbo` instead.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fulfillment_orders\": [\n    14619150\n  ],\n  \"orders_count\": 1,\n  \"pickers\": [],\n  \"turbo_label\": false,\n  \"notes\": \"\",\n  \"delete_missing_stock_sales_items\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete picklists in bulk",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/picking/bulk/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "bulk",
                "orders"
              ]
            },
            "description": "Deletes several picklists in one call. The body is a plain JSON array of\npicklist IDs (`picking_orders[].id`), not wrapped in an object.\n\n**What happens to the orders:** the fulfillment orders and sales orders go back\nto `queue` and can be put on a new picklist. Nothing is cancelled. For turbo label\npicklists, the draft packing order and its labels are deleted too.\n\n`process_information` on the fulfillment order is **not** reset — it still shows\nthe deleted picklist's number until a new turbo run starts.\n\n**Partial success:** each ID is handled on its own. If at least one fails, the\nstatus is `422` — read both `deleted` and `errors`.\n\nTested on picklists in `queue` only.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  79786,\n  79787\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a picklist",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/picking/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "picking",
                "orders",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Deletes one picklist. Same effect as `DELETE /picking/bulk/orders` with a single\nID: the orders go back to `queue`, and turbo label packing orders are removed.\nReturns the deleted picklist.\n"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Packing",
      "item": [
        {
          "name": "List packing orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders?limit=100&offset=0&sort_by=id:asc&capped_limit=0&warehouse_id=&state=&sales_order_id=&view_attributes=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "state",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "sales_order_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "view_attributes",
                  "value": "",
                  "description": "Comma-separated list of fields to return. Example:\n`id,sequence_number,state,inserted_at,fulfillment_order_id,sales_order_id,origin_location,items,sales_order,fulfillment_order`.\n",
                  "disabled": true
                }
              ]
            },
            "description": "Retrieves packing orders with filtering and pagination.\n\n**Possible states** (fixed, managed by PULPO): `draft`, `queue`, `taken`,\n`locked` (paused), `ended`, `closed`, `cancelled`.\n\nPass `state=locked` to retrieve paused packing orders — `locked` tasks are NOT\nincluded in `GET /iam/users/{id}/tasks`, only in this list.\n\n**Useful filters:**\n- `warehouse_id`\n- `state`\n- `sales_order_id` — packing orders related to a specific sales order\n- `view_attributes` — comma-separated field list (controls which nested\n  attributes are returned; useful to keep payloads small for queue views)\n\n**Performance:** pass `capped_limit=0` to skip the total-results count for\n~20% lower latency.\n"
          },
          "response": []
        },
        {
          "name": "Get a packing order by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id?view_attributes=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id"
              ],
              "query": [
                {
                  "key": "view_attributes",
                  "value": "",
                  "description": "Comma-separated list of fields to return",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the full packing order, including `owner`, `origin_location`,\n`packing_boxes[]` with attached labels (`attachments[]`), and the items to\npack.\n\nClients implementing the packing flow should call this endpoint to poll for\nlabel readiness after a box is closed (~5s interval, ~24 attempts).\n\n**Possible states** (fixed, managed by PULPO): `draft`, `queue`, `taken`,\n`locked` (paused), `ended`, `closed`, `cancelled`.\n"
          },
          "response": []
        },
        {
          "name": "Claim (accept) a packing order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id/accept",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id",
                "accept"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Transitions `queue → taken` and sets `owner` to the calling user.\n\nA user may only own one active packing order at a time. Use\n`GET /iam/users/{id}/tasks` first to ensure no other task is owned.\n\nIf the order is in `locked` state and the caller is the original owner, use\n`/unlock` instead. If the caller is not the original owner of a `locked`\norder, call `/unlock` (returns the order to `queue`) and then `/accept`.\n"
          },
          "response": []
        },
        {
          "name": "Pause (lock) a packing order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id/lock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id",
                "lock"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Pauses an in-flight packing order. Transitions `taken → locked` while keeping\nthe current owner. The task disappears from `GET /iam/users/{id}/tasks` but\nremains visible via `GET /packing/orders?state=locked`.\n\nResume with `/unlock` (owner) or by `/unlock` + `/accept` (different user).\n"
          },
          "response": []
        },
        {
          "name": "Resume (unlock) a packing order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id/unlock",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id",
                "unlock"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Unlocks a paused packing order. Behavior depends on the caller:\n\n| Caller | Transition |\n|--------|------------|\n| Original owner | `locked → taken` (resumes work) |\n| Any other user | `locked → queue` (owner is cleared; the task can then be `/accept`-ed by anyone) |\n"
          },
          "response": []
        },
        {
          "name": "Close one or more packing boxes (replace boxes array)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id/boxes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id",
                "boxes"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Commits the set of closed packing boxes for the packing order.\n\n**Important — replace semantics:** the request body is a complete list of\nboxes that should exist for this order. The server **replaces** (not appends)\nthe existing boxes. Callers MUST resend every previously-closed box in this\nlist or those records will be wiped.\n\nEach box must include `box_number` (1-indexed across the full list) and\n`packing_order_id` (matching the path parameter).\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"packing_order_id\": 1272633,\n    \"box_number\": 1,\n    \"weight\": 1.5,\n    \"length\": 30,\n    \"width\": 20,\n    \"height\": 15,\n    \"packing_box_items\": [\n      {\n        \"product_id\": 7646303,\n        \"quantity\": 2\n      }\n    ]\n  },\n  {\n    \"packing_order_id\": 1272633,\n    \"box_number\": 2,\n    \"weight\": 0.8,\n    \"length\": 25,\n    \"width\": 18,\n    \"height\": 10,\n    \"packing_box_items\": [\n      {\n        \"product_id\": 7646305,\n        \"quantity\": 1\n      }\n    ]\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Attach label file to packing box",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:packing_order_id/boxes/:box_id/attach",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":packing_order_id",
                "boxes",
                ":box_id",
                "attach"
              ],
              "variable": [
                {
                  "key": "packing_order_id",
                  "value": ""
                },
                {
                  "key": "box_id",
                  "value": ""
                }
              ]
            },
            "description": "Uploads a shipping label PDF file to a packing box.\n\n**File Requirements:**\n- Format: PDF\n- Type: `label`\n- Max size: Check with PULPO support\n\n**Workflow:**\n1. Update shipment tracking to \"started\"\n2. Generate label PDF in your system\n3. POST label file to this endpoint\n4. Update shipment tracking to \"generated\" with tracking codes\n"
          },
          "response": []
        },
        {
          "name": "Finish a packing order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id/finish",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id",
                "finish"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Transitions `taken → ended`. All items must be packed and each closed box\nmust have a label attachment (or `pulpowms_label_not_required` status).\n\nAfter `/finish`, call `/close` with a `shipping_location_id` to release the\nowner lock and move the order to `closed`.\n"
          },
          "response": []
        },
        {
          "name": "Close a packing order",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:id/close",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":id",
                "close"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Final step of the packing flow. Transitions `ended → closed`, sets\n`end_date`, and releases the owner's \"one active task\" slot so they can\nclaim a new packing order.\n\nRequires a `shipping_location_id` — the warehouse location where the\npacked boxes are physically dropped off for the carrier. Look it up via\n`GET /warehouses/locations?location_type_id={shipping_area}` (the shipping\narea location type for the warehouse).\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"shipping_location_id\": 109911\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Update shipment tracking information",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/packing/orders/:packing_order_id/boxes/:box_id/shipment_tracking/:tracking_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "packing",
                "orders",
                ":packing_order_id",
                "boxes",
                ":box_id",
                "shipment_tracking",
                ":tracking_id"
              ],
              "variable": [
                {
                  "key": "packing_order_id",
                  "value": ""
                },
                {
                  "key": "box_id",
                  "value": ""
                },
                {
                  "key": "tracking_id",
                  "value": ""
                }
              ]
            },
            "description": "Updates shipment tracking for a specific packing box.\n\n**Label Generation Workflow:**\n1. Subscribe to `packing_box_closed` webhook\n2. Receive webhook when box is closed\n3. PUT with status `pulpowms_label_generation_started`\n4. Generate label in your system\n5. POST label file to attach endpoint\n6. PUT with status `pulpowms_label_generated` + tracking info\n\n**Status Values:**\n- `null`: Initial state\n- `pulpowms_label_generation_started`: Label generation in progress\n- `pulpowms_label_generated`: Label successfully created\n- `pulpowms_label_generation_failed`: Label creation failed\n- `pulpowms_label_not_required`: Skip label (no waiting)\n\n**Retrying a failed label:** PUT this endpoint with body `{ \"retry\": true }`\nto re-trigger label generation for the same tracking record. Combine with\n`PATCH /fulfillment_orders/{id}/ship_to` first if the failure was an\naddress issue.\n\n**Polling:** after triggering label generation, poll\n`GET /packing/orders/{id}` every ~5 seconds for up to ~2 minutes (24 attempts).\nTreat the presence of `packing_boxes[].attachments[0].url` as the readiness\nsignal — not `shipment_tracking.status` alone. PULPO's own app gives up at\nthe 2-minute mark.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"pulpowms_label_generation_started\",\n  \"error_message\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Sales Orders",
      "item": [
        {
          "name": "Search sales orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders?state=queue&order_num=SO-2024-12345&warehouse_id=140&merchant_id=69&third_party_id=&client_id=&product_id=1957711&not_product_id=&priority=2&channel=&inserted_at=between:2024-03-01 00:00:00,2024-03-31 23:59:59&updated_at=&delivery_date=&order_items_count=&estimated_total_weight=&estimated_total_volume=&order_products_qty=&criterium=&return_label=&product_category_id=&view_attributes=id,order_num,state,inserted_at&id=&limit=100&offset=0&sort_by=id:asc&capped_limit=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders"
              ],
              "query": [
                {
                  "key": "state",
                  "value": "queue",
                  "description": "Filter by order state",
                  "disabled": true
                },
                {
                  "key": "order_num",
                  "value": "SO-2024-12345",
                  "description": "Filter by external order number",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "140",
                  "description": "Filter by warehouse ID",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "69",
                  "description": "Filter by merchant ID. Use `to_list:1,2,3` for multiple.",
                  "disabled": true
                },
                {
                  "key": "third_party_id",
                  "value": "",
                  "description": "Filter by customer/third party ID",
                  "disabled": true
                },
                {
                  "key": "client_id",
                  "value": "",
                  "description": "Filter by customer client ID",
                  "disabled": true
                },
                {
                  "key": "product_id",
                  "value": "1957711",
                  "description": "Orders containing this product. Use `includes:id1,id2` for multiple.",
                  "disabled": true
                },
                {
                  "key": "not_product_id",
                  "value": "",
                  "description": "Orders NOT containing this product",
                  "disabled": true
                },
                {
                  "key": "priority",
                  "value": "2",
                  "description": "Filter by priority. Use `to_list:1,2` for multiple.",
                  "disabled": true
                },
                {
                  "key": "channel",
                  "value": "",
                  "description": "Filter by sales channel",
                  "disabled": true
                },
                {
                  "key": "inserted_at",
                  "value": "between:2024-03-01 00:00:00,2024-03-31 23:59:59",
                  "description": "Creation date filter (format: YYYY-MM-DD hh:mm:ss). Supports `between:`, `gte:`, `lte:`",
                  "disabled": true
                },
                {
                  "key": "updated_at",
                  "value": "",
                  "description": "Last update filter (format: YYYY-MM-DD hh:mm:ss). Supports `between:`, `gte:`, `lte:`",
                  "disabled": true
                },
                {
                  "key": "delivery_date",
                  "value": "",
                  "description": "Delivery date filter. Supports `between:`, `gte:`, `lte:`",
                  "disabled": true
                },
                {
                  "key": "order_items_count",
                  "value": "",
                  "description": "Filter by number of line items. Supports `gte:`, `gt:`, `lte:`, `lt:`",
                  "disabled": true
                },
                {
                  "key": "estimated_total_weight",
                  "value": "",
                  "description": "Filter by total weight. Supports `gte:`, `gt:`, `lte:`, `lt:`",
                  "disabled": true
                },
                {
                  "key": "estimated_total_volume",
                  "value": "",
                  "description": "Filter by total volume. Supports `gte:`, `gt:`, `lte:`, `lt:`",
                  "disabled": true
                },
                {
                  "key": "order_products_qty",
                  "value": "",
                  "description": "Filter by total product quantity. Supports `gte:`, `gt:`, `lte:`, `lt:`",
                  "disabled": true
                },
                {
                  "key": "criterium",
                  "value": "",
                  "description": "Filter by criterium. Use `to_list:` for multiple.",
                  "disabled": true
                },
                {
                  "key": "return_label",
                  "value": "",
                  "description": "Filter by return label code",
                  "disabled": true
                },
                {
                  "key": "product_category_id",
                  "value": "",
                  "description": "Orders with products matching category ID",
                  "disabled": true
                },
                {
                  "key": "view_attributes",
                  "value": "id,order_num,state,inserted_at",
                  "description": "Comma-separated list of fields to return (e.g. `id,order_num,state`). No associations supported.",
                  "disabled": true
                },
                {
                  "key": "id",
                  "value": "",
                  "description": "Filter by sales order ID",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                }
              ]
            },
            "description": "Searches and filters sales orders with pagination. Supports a wide range of filters\nfor querying orders by state, date, customer, product, and more.\n\n**Possible states** (fixed, managed by PULPO): `queue`, `picking`, `packing`,\n`shipping`, `ended`, `cancelled`. A paused order is not a sales order state — it\nshows as `paused` on `fulfillment_orders[].state` while the sales order stays in\n`queue`.\n\n**Date filters** support range queries:\n- `between:2024-01-01 00:00:00,2024-03-31 23:59:59`\n- `gte:2024-01-01 00:00:00` (greater than or equal)\n- `lte:2024-03-31 23:59:59` (less than or equal)\n\n**Numeric filters** (order_items_count, volume, weight):\n- `gte:value`, `gt:value`, `lte:value`, `lt:value`\n\n**Product filters:**\n- `product_id=123` — orders containing this product\n- `product_id=includes:123,456` — orders containing any of these products\n- `not_product_id=123` — orders NOT containing this product\n\n**Priority filters:**\n- `priority=2` — single priority\n- `priority=to_list:1,2,3` — multiple priorities\n\n**Performance tip:** Use `view_attributes=id,order_num,state` to return only specific fields.\n"
          },
          "response": []
        },
        {
          "name": "Get sales order by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieves detailed information about a specific sales order by its PULPO ID.\n\n**Use cases:**\n- Get order details for creating a return purchase order\n- Check current order state and fulfillment status\n- Retrieve product list, quantities, and batch information\n- Get the `third_party_id` (customer) needed for return orders\n\n**Response includes:**\n- Order metadata (state, dates, merchant info)\n- Items with product IDs, SKUs, and quantities\n- Ship-to address and customer details\n- Shipment instructions and tracking info\n- Batch/lot information for batch-controlled products\n\n**Possible states** (fixed, managed by PULPO): `queue`, `picking`, `packing`,\n`shipping`, `ended`, `cancelled`. A paused order shows as `paused` on\n`fulfillment_orders[].state`, not on the sales order.\n"
          },
          "response": []
        },
        {
          "name": "Update a single sales order",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Updates an individual sales order by ID. Use this when editing one order\nwith a partial payload — for batch updates, use `PUT /sales/bulk/orders`.\n\n### Editable fields\n\n- `notes`\n- `priority` (1=low, 2=normal, 3=high, 4=top)\n- `delivery_date`\n- `items` — replaces the full line-item list; each item may include `id`\n  (to match an existing line), `product_id`, and `quantity`\n- `ship_to` — when only the address changes for an in-flight order, prefer\n  `PATCH /fulfillment_orders/{id}/ship_to` (the address actually used by\n  shipping)\n\n### Edit window\n\nUpdates are rejected when the order is in `picking`, `in_picking`, `packing`,\n`in_packing`, `packed`, `ended`, or `cancelled` states. Clients should\ngate the edit UI on these states.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"notes\": \"Rush — confirmed by customer\",\n  \"priority\": 4,\n  \"delivery_date\": \"2024-03-26T10:00:00\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Create sales orders in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/bulk/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "bulk",
                "orders"
              ]
            },
            "description": "Creates multiple sales orders for outgoing fulfillment.\n\n**Order Types:**\n- `sales_order`: Standard outgoing order (default)\n- `warehouse_movement`: Transfer to another warehouse\n- `return`: Return to supplier\n- `POS_external`: Direct stock reduction (no picking/packing)\n\n**Workflow:**\n1. Create sales order via API\n2. Warehouse picks items (Android app)\n3. Webhook `packing_order_finished` fires (Picking Complete)\n4. Warehouse packs items (Android app)\n5. Webhook `sales_order_finished` fires (Post Goods Issue)\n\n**Customer:** `third_party_id` is required — create the customer first via\n`POST /iam/bulk/third_parties` (type=C), then pass its `id` here.\n\n**Priorities:** required. 1=low, 2=normal, 3=high, 4=top — send `1` if you\ndon't have a use case for it.\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"type\": \"sales_order\",\n    \"order_num\": \"SO-2024-12345\",\n    \"delivery_date\": \"2024-03-26T14:00:00\",\n    \"warehouse_id\": 140,\n    \"merchant_id\": 69,\n    \"merchant_channel_id\": 76,\n    \"third_party_id\": 3218516,\n    \"priority\": 2,\n    \"shipping_method_id\": 952,\n    \"items\": [\n      {\n        \"product_sku\": \"COFFEE-001\",\n        \"quantity\": 5\n      }\n    ],\n    \"ship_to\": {\n      \"name\": \"John Smith\",\n      \"company_name\": \"John's Coffee Shop\",\n      \"phone_number\": \"+44 20 1234 5678\",\n      \"address\": {\n        \"street\": \"123 High Street\",\n        \"city\": \"London\",\n        \"zip\": \"SW1A 1AA\",\n        \"country\": \"GB\",\n        \"country_code\": \"826\",\n        \"email\": \"john@coffeeshop.com\"\n      }\n    }\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Update sales orders in bulk",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/bulk/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "bulk",
                "orders"
              ]
            },
            "description": "Updates multiple existing sales orders. Works as bulk — if any update fails,\nthe remaining orders continue processing. This is a partial update — send\nonly the fields you want to change, plus an identifier.\n\n**Updatable fields:**\n- `order_num`: External order number\n- `delivery_date`: Delivery date\n- `priority`: Order priority (1=low, 2=normal, 3=high, 4=top)\n- `ship_to`: Shipping address\n- `notes`: Order notes\n- `items`: Order line items (replaces existing items)\n- `shipping_method_id`: Shipping method\n- `attributes`: Custom attributes\n\n**Important:**\n- Orders must be identified by `order_num` or `id`\n- Orders in state `ended` or `cancelled` cannot be updated\n- Updating items replaces the full item list\n- Updating `attributes` replaces the whole object — keys you leave out are\n  deleted, so resend every key you want to keep\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"order_num\": \"SO-2024-12345\",\n    \"priority\": 4,\n    \"notes\": \"Rush order - expedite\",\n    \"delivery_date\": \"2024-03-25T09:00:00\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Create POS orders (instant stock reduction)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/bulk/orders/quick",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "bulk",
                "orders",
                "quick"
              ]
            },
            "description": "Creates sales orders of type `POS_external` that immediately reduce stock without\ngoing through picking/packing processes.\n\n**Use cases:**\n- Point of sale transactions\n- Direct sales from warehouse\n- Stock adjustments via sales\n\n**Behavior:**\n- Order status immediately changes to \"finished\"\n- Stock is reduced instantly\n- No picking or packing tasks created\n- Webhook `sales_order_finished` fires immediately\n\nDespite the instant-fulfillment behavior, `delivery_date` is still required\nby the schema — send the current time if you don't have a real one.\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"type\": \"POS_external\",\n    \"order_num\": \"POS-2024-001\",\n    \"delivery_date\": \"2024-03-26T14:00:00\",\n    \"warehouse_id\": 140,\n    \"merchant_id\": 69,\n    \"merchant_channel_id\": 76,\n    \"third_party_id\": 3218516,\n    \"priority\": 1,\n    \"items\": [\n      {\n        \"product_sku\": \"COFFEE-001\",\n        \"quantity\": 2\n      }\n    ]\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Search fulfillment orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/fulfillments?id=to_list:14619148,14619149&sales_order_id=28237369&order_num=SO-2026-4711&state=queue&view_attributes=id,order_num,sequence_number,process_information&limit=100&offset=0",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                "fulfillments"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "to_list:14619148,14619149",
                  "description": "One ID, or several with `to_list:` (e.g. `to_list:14619148,14619149`)",
                  "disabled": true
                },
                {
                  "key": "sales_order_id",
                  "value": "28237369",
                  "disabled": true
                },
                {
                  "key": "order_num",
                  "value": "SO-2026-4711",
                  "disabled": true
                },
                {
                  "key": "state",
                  "value": "queue",
                  "disabled": true
                },
                {
                  "key": "view_attributes",
                  "value": "id,order_num,sequence_number,process_information",
                  "description": "Comma-separated list of fields to return",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                }
              ]
            },
            "description": "Lists fulfillment orders. Use it to read the `fulfillment_orders[].id` values\nfor picking, and to poll `process_information` after an asynchronous turbo\nlabel picking request.\n\n**Polling turbo label picking:**\n`GET /sales/orders/fulfillments?view_attributes=id,order_num,sequence_number,process_information&id=to_list:14619148,14619149`\n— repeat until every `process_information.status` is `turbo_label_created` or\n`error_creating_picking`.\n\nOnly trust a status whose `attributes.request_id` equals the `x-request-id`\nresponse header of your turbo call. `process_information` keeps the result of the\nprevious run — including after its picklist was deleted — until a new run starts.\n\n`total_results` is `null` when `offset` is greater than 0.\n"
          },
          "response": []
        },
        {
          "name": "Update the ship-to address on a fulfillment order",
          "request": {
            "method": "PATCH",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/fulfillment_orders/:id/ship_to",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "fulfillment_orders",
                ":id",
                "ship_to"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Updates the delivery address used during packing/shipping. This is the\nendpoint to call when a label generation failure was caused by a bad\naddress — fix the address here, then retry label generation by calling\n`PUT /packing/orders/{id}/boxes/{box_id}/shipment_tracking/{tracking_id}`\nwith `{ \"retry\": true }`.\n\nAddress changes via this endpoint do not propagate back to the parent\nsales order's `ship_to`; use `PUT /sales/orders/{id}` or\n`PUT /sales/bulk/orders` to persist the change there too.\n"
          },
          "response": []
        },
        {
          "name": "Cancel a single sales order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Cancels a specific sales order by ID.\n\n**Cancellation rules:**\n- Orders in state `ended` **cannot** be cancelled\n- Orders in state `picking` cannot be cancelled when no packing locations are available\n- The result depends on current state:\n  - `queue` → cancelled immediately\n  - `picking` → picking cancelled, items returned to stock\n  - `packing` → packing cancelled, items returned to stock\n"
          },
          "response": []
        },
        {
          "name": "Cancel sales orders in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/bulk/orders/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "bulk",
                "orders",
                "cancel"
              ]
            },
            "description": "Cancels multiple sales orders. Supports multiple payload formats for flexibility.\n\n**Payload formats:**\n- Array of objects with `order_num`: `[{\"order_num\": \"SO-001\"}, ...]`\n- Array of order numbers: `[\"SO-001\", \"SO-002\", ...]`\n- Array of objects with `id`: `[{\"id\": 123}, ...]`\n- Array of IDs: `[123, 456, ...]`\n\n**Cancellation rules:**\n- Orders in state `ended` **cannot** be cancelled\n- Orders in state `picking` cannot be cancelled when there are no available packing locations\n- The cancellation action depends on the current order state:\n  - `queue` → cancelled immediately\n  - `picking` → picking task cancelled, items returned\n  - `packing` → packing task cancelled, items returned\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"order_num\": \"SO-2024-12345\"\n  },\n  {\n    \"order_num\": \"SO-2024-12346\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Pause a single sales order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id/pause",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id",
                "pause"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Pauses a sales order. Only orders in state `queue` can be paused.\nPaused orders are not available for picking.\n"
          },
          "response": []
        },
        {
          "name": "Pause sales orders in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/bulk/orders/pause",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "bulk",
                "orders",
                "pause"
              ]
            },
            "description": "Pauses multiple sales orders. Only orders in state `queue` can be paused.\n\n**Payload formats** (same as cancel):\n- `[{\"order_num\": \"SO-001\"}, ...]`\n- `[\"SO-001\", ...]`\n- `[{\"id\": 123}, ...]`\n- `[123, ...]`\n\nPaused orders will not be picked until resumed.\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"order_num\": \"SO-2024-12345\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Resume a paused sales order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id/resume",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id",
                "resume"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Resumes a paused sales order. Only orders in state `paused` can be resumed.\nThe order returns to `queue` state and becomes available for picking.\n"
          },
          "response": []
        },
        {
          "name": "Resume sales orders in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sales/bulk/orders/resume",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "bulk",
                "orders",
                "resume"
              ]
            },
            "description": "Resumes previously paused sales orders. Only orders in state `paused` can be resumed.\nResumed orders return to `queue` state and become available for picking.\n\n**Payload formats** (same as cancel/pause):\n- `[{\"order_num\": \"SO-001\"}, ...]`\n- `[\"SO-001\", ...]`\n- `[{\"id\": 123}, ...]`\n- `[123, ...]`\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"order_num\": \"SO-2024-12345\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get returns for a sales order",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id/returns",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id",
                "returns"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the return data associated with a specific sales order.\n\n**Use cases:**\n- Check if a sales order has any associated return purchase orders\n- Get details of returned products and quantities\n- Verify return status before creating a new return\n\nThis is useful to avoid creating duplicate returns and to track\nthe return history of an order.\n"
          },
          "response": []
        },
        {
          "name": "Attach a file to a sales order",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id/attach",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id",
                "attach"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Uploads one file (for example a delivery note) and attaches it to the sales order.\nSend it as `multipart/form-data`. Each call adds a new attachment — uploading the\nsame file twice creates two attachments.\n\n**`type`** — one of `document`, `label`, `photo` or `undefined`. Left out or empty,\nit is stored as `undefined`. Any other value is rejected.\n\n**`document_type`** — only allowed with `type=document`. It is free text and stored\nexactly as sent (no fixed list, case is kept), for example `delivery_note` or\n`invoice`. Sending it with any other `type` is rejected.\n\n**Files:** PDF and images (PNG tested) are accepted, plain text files are rejected.\n\nAttachments can be added in any order state, including `ended`. They are returned\nin `attachments[]` when you fetch or search the sales order.\n"
          },
          "response": []
        },
        {
          "name": "Delete a sales order attachment",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sales/orders/:id/attachments/:attachment_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sales",
                "orders",
                ":id",
                "attachments",
                ":attachment_id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "attachment_id",
                  "value": ""
                }
              ]
            },
            "description": "Removes one attachment from the sales order. Returns the full sales order without\nthe removed entry.\n"
          },
          "response": []
        },
        {
          "name": "Search shipping methods",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/shipping/shipping_methods?name=DHL Standard&carrier=DHL&merchant_id=1053&merchant_channel_id=1068&limit=100&offset=0&sort_by=id:asc",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "shipping",
                "shipping_methods"
              ],
              "query": [
                {
                  "key": "name",
                  "value": "DHL Standard",
                  "description": "Exact shipping method name (case-sensitive)",
                  "disabled": true
                },
                {
                  "key": "carrier",
                  "value": "DHL",
                  "description": "Exact carrier (case-sensitive)",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "1053",
                  "description": "Only methods of this merchant",
                  "disabled": true
                },
                {
                  "key": "merchant_channel_id",
                  "value": "1068",
                  "description": "Only methods of this merchant channel",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the shipping methods the user can access. Use it to find the `id` you send\nas `shipping_method_id` when creating sales orders.\n\n**Filters** (`name`, `carrier`, `merchant_id`, `merchant_channel_id`) are exact\nand case-sensitive matches: `name=FedEx` finds \"FedEx\", `name=fedex` and\n`name=Fed` find nothing. Filters combine with AND. There is no `service` filter.\n\n`total_results` is `null` when `offset` is greater than 0.\n"
          },
          "response": []
        },
        {
          "name": "Create a shipping method",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/shipping/shipping_methods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "shipping",
                "shipping_methods"
              ]
            },
            "description": "Creates one shipping method. Only `name` is required, and it must be unique within\nthe merchant.\n\nIf `merchant_id` and `merchant_channel_id` are left out, the method is created for\nthe user's own merchant and channel.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"UPS Express\",\n  \"carrier\": \"UPS\",\n  \"service\": \"express\",\n  \"merchant_id\": 1053,\n  \"merchant_channel_id\": 1068\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Bulk create or update shipping methods",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/shipping/bulk/shipping_methods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "shipping",
                "bulk",
                "shipping_methods"
              ]
            },
            "description": "Creates or updates several shipping methods in one call. The body is a plain JSON\narray (not wrapped in an object).\n\n**Matching:** each entry is matched to an existing method by `name` within the\nmerchant. A match is updated, otherwise a new method is created. `id` in the body is\nignored, so a method cannot be renamed through this endpoint.\n\n**Always send `merchant_id` and `merchant_channel_id`.** Unlike the single create,\na new method created here without them gets no merchant. It then doesn't appear\nin searches, can't be fetched or deleted by the user, and later calls with the same\nname create further duplicates.\n\nPartial success: valid entries are saved even when others fail. If any entry fails\nthe status is `422`, so always read both `created`/`updated` and `errors`.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"name\": \"UPS Express\",\n    \"carrier\": \"UPS\",\n    \"service\": \"saver\",\n    \"merchant_id\": 1053,\n    \"merchant_channel_id\": 1068\n  },\n  {\n    \"name\": \"DPD Classic\",\n    \"carrier\": \"DPD\",\n    \"service\": \"classic\",\n    \"merchant_id\": 1053,\n    \"merchant_channel_id\": 1068\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get shipping method by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/shipping/shipping_methods/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "shipping",
                "shipping_methods",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns one shipping method by its PULPO ID."
          },
          "response": []
        },
        {
          "name": "Delete a shipping method",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/shipping/shipping_methods/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "shipping",
                "shipping_methods",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Permanently deletes a shipping method and returns the deleted record.\n\nA shipping method that has ever been assigned to an order cannot be deleted —\nthis also applies when those orders are cancelled. The API then answers `422`\nwith a technical database message mentioning\n`fulfillment_orders_shipping_method_id_fkey`.\n"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Purchase Orders",
      "item": [
        {
          "name": "List purchase orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reception/purchase_orders?limit=100&offset=0&sort_by=id:asc&capped_limit=0&id=&order_num=PO-2024-001&warehouse_id=140&state=&merchant_id=&product_sku=COFFEE-001&product_name=&delivery_date=2024-03-25 09:00:00&view_attributes=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reception",
                "purchase_orders"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "order_num",
                  "value": "PO-2024-001",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "140",
                  "disabled": true
                },
                {
                  "key": "state",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "",
                  "description": "Merchant ID. Use `to_list:1,2,3` for multiple.",
                  "disabled": true
                },
                {
                  "key": "product_sku",
                  "value": "COFFEE-001",
                  "description": "Exact SKU match.",
                  "disabled": true
                },
                {
                  "key": "product_name",
                  "value": "",
                  "description": "Exact product name match (not a substring search).",
                  "disabled": true
                },
                {
                  "key": "delivery_date",
                  "value": "2024-03-25 09:00:00",
                  "description": "Exact match only, `YYYY-MM-DD HH:MM:SS`. Range prefixes\n(`between:`/`gte:`/`lte:`) are not supported and return a 500 error.\n",
                  "disabled": true
                },
                {
                  "key": "view_attributes",
                  "value": "",
                  "description": "Comma-separated list of fields to return",
                  "disabled": true
                }
              ]
            },
            "description": "Lists purchase orders (incoming, returns, warehouse movements) with filters and pagination.\n\n### Useful filters\n\n- `id`, `order_num` — exact match\n- `warehouse_id`, `state`, `merchant_id` (also `to_list:`)\n- `product_sku`, `product_name` — exact match, not a substring search\n- `delivery_date` — exact match only, `YYYY-MM-DD HH:MM:SS`. `between:`/`gte:`/`lte:`\n  prefixes are **not** supported and return a 500 error.\n- `view_attributes` — comma-separated field list to return\n\n`type`, `third_party_id`, `updated_at`, and a plain `inserted_at` filter are\naccepted but don't actually filter anything on this endpoint — the response is\nunaffected either way, so don't rely on them.\n\n### Performance\n\nPass `cap_limit=0` (or `capped_limit=0`) to skip the total-results count for\n~20% lower latency. Stop paginating when the returned page is shorter than\nthe requested `limit`.\n"
          },
          "response": []
        },
        {
          "name": "Create purchase orders in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reception/bulk/purchase_orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reception",
                "bulk",
                "purchase_orders"
              ]
            },
            "description": "Creates multiple purchase orders for incoming goods.\n\n**Order Types:**\n- `purchase_order`: Standard incoming goods (default)\n- `return`: Customer returns (see Returns section for full workflow)\n- `warehouse_movement`: Stock transfer from another warehouse\n\n**Workflow:**\n1. Create purchase order via API\n2. Warehouse receives goods (Android app)\n3. Webhook `purchase_order_finished` fires (Goods Receipt)\n4. Webhook `replenishment_order_finished` fires (stock available)\n\n**Important:**\n- Products and suppliers must exist before creating PO\n- Use `product_sku` OR `product_id` in items\n- `delivery_date` should be in format YYYY-MM-DDTHH:MM:SS\n\n**For Returns:**\n- Set `type: return`\n- Include `sales_order_id` referencing the original order\n- Use the **customer** (type=C) as `third_party_id` (the customer becomes the \"supplier\" of returned goods)\n- For batch-controlled products, include batch/lot numbers in `items[].batches` array\n- Use the shipment tracking code as `order_num` for traceability\n\n**Recommended batch size:** up to 50 orders per request.\n",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"type\": \"purchase_order\",\n    \"order_num\": \"PO-2024-001\",\n    \"delivery_date\": \"2024-03-25T09:00:00\",\n    \"warehouse_id\": 140,\n    \"merchant_id\": 69,\n    \"merchant_channel_id\": null,\n    \"third_party_id\": 3218515,\n    \"notes\": \"Urgent delivery - coffee beans\",\n    \"items\": [\n      {\n        \"product_sku\": \"COFFEE-001\",\n        \"requested_quantity\": 100,\n        \"batches\": [\n          {\n            \"batch_number\": \"LOT-2024-03\",\n            \"expiration_date\": \"2025-03-01\",\n            \"quantity\": 100\n          }\n        ]\n      }\n    ]\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Cancel/delete a purchase order",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reception/purchase_orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reception",
                "purchase_orders",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Cancels a purchase order that hasn't been received yet. This **is** available\nvia the API — despite older guidance suggesting cancellation was warehouse-only,\n`DELETE` on a `queue`-state order removes it and it no longer appears in\n`GET /reception/purchase_orders` searches.\n\nOrders that have already started receiving are not expected to be\ncancellable this way — this hasn't been verified against every state.\n"
          },
          "response": []
        },
        {
          "name": "Get an incoming-goods record by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reception/incoming_goods/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reception",
                "incoming_goods",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the full incoming-goods record, including per-item states, batch\ndetails, destination locations, inspection photos (`attachments[]`), and\nthe operator who recorded the receipt (`owner`).\n"
          },
          "response": []
        },
        {
          "name": "List incoming-goods (receiving) records",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reception/incoming_goods?limit=100&offset=0&sort_by=id:asc&capped_limit=0&warehouse_id=&purchase_order_id=&document_type=&merchant_id=&owner_id=&sequence_number=&start_date=2026-01-01T00:00:00&end_date=2026-12-31T00:00:00",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reception",
                "incoming_goods"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                },
                {
                  "key": "capped_limit",
                  "value": "0",
                  "description": "Set to 0 to exclude total_results and improve performance by ~20%.\nPagination continues until returned items < limit.\n",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "purchase_order_id",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "document_type",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "",
                  "description": "Merchant ID. Use `to_list:1,2,3` for multiple.",
                  "disabled": true
                },
                {
                  "key": "owner_id",
                  "value": "",
                  "description": "User ID that received/owns the incoming-goods record.",
                  "disabled": true
                },
                {
                  "key": "sequence_number",
                  "value": "",
                  "description": "Exact match, e.g. `IG-0000017`.",
                  "disabled": true
                },
                {
                  "key": "start_date",
                  "value": "2026-01-01T00:00:00",
                  "description": "Filters by `inserted_at`, on/after this timestamp. Must be a full\n`YYYY-MM-DDTHH:MM:SS` date-time — a bare `YYYY-MM-DD` date returns a\n500 error.\n",
                  "disabled": true
                },
                {
                  "key": "end_date",
                  "value": "2026-12-31T00:00:00",
                  "description": "Filters by `inserted_at`, on/before this timestamp. Same format\nrequirement as `start_date`.\n",
                  "disabled": true
                }
              ]
            },
            "description": "Lists incoming-goods records — individual receiving events against purchase\norders. A purchase order may have multiple incoming_goods (partial receipts).\n\nFor returns, query with `document_type=return` to see inspection history,\nincluding per-item accepted/rejected outcomes and attached photos.\n\n### Filters\n\n- `warehouse_id`, `purchase_order_id`, `merchant_id` (`to_list:` supported),\n  `owner_id`, `sequence_number` — exact match\n- `document_type` — `purchase_order`, `return`, `warehouse_movement`, `none`\n  (`none` = unplanned receiving without a PO)\n- `start_date` / `end_date` — filter by `inserted_at`. **Must be a full\n  date-time** (`YYYY-MM-DDTHH:MM:SS`) — a bare `YYYY-MM-DD` date returns a\n  500 error.\n\n`sales_order_id` and a plain `inserted_at` filter are not supported by this\nendpoint — both are silently ignored or error; use `start_date`/`end_date`\ninstead.\n"
          },
          "response": []
        },
        {
          "name": "Record a receiving event",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reception/incoming_goods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reception",
                "incoming_goods"
              ]
            },
            "description": "Records goods received — normally against a purchase order (or return PO), but\nalso usable for unplanned receiving with `document_type: none` and no\n`purchase_order_id`. Multiple `incoming_goods` records can be created per PO for\npartial receipts; the `purchase_order_finished` webhook fires once cumulative\nquantities equal the requested quantities.\n\nThere is no endpoint to delete or cancel an incoming-goods record once created.\n\n### Per-item outcomes\n\nEach item carries a `state` — `accepted` or `rejected` — and a\n`destination_location_id` that routes the physical units accordingly (storage\nvs return locations). Rejected items should carry `reason_codes`.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"warehouse_id\": 140,\n  \"third_party_id\": 3218515,\n  \"purchase_order_id\": 360707,\n  \"document_type\": \"purchase_order\",\n  \"owner_id\": 1295,\n  \"start_date\": \"2024-03-25T09:00:00\",\n  \"end_date\": \"2024-03-25T09:42:00\",\n  \"merchant_id\": 69,\n  \"merchant_channel_id\": null,\n  \"notes\": \"Two units rejected — broken seals\",\n  \"items\": [\n    {\n      \"product_sku\": \"COFFEE-001\",\n      \"quantity\": 98,\n      \"state\": \"accepted\",\n      \"destination_location_id\": 229364,\n      \"batch_id\": 45231\n    },\n    {\n      \"product_sku\": \"COFFEE-001\",\n      \"quantity\": 2,\n      \"state\": \"rejected\",\n      \"destination_location_id\": 229999,\n      \"batch_id\": 45231,\n      \"reason_codes\": [\n        {\n          \"reason_code\": \"pulpo_0000001\"\n        }\n      ]\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Kitting",
      "item": [
        {
          "name": "Get kitting location types",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/warehouses/location_types?name=contains:kitting",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "warehouses",
                "location_types"
              ],
              "query": [
                {
                  "key": "name",
                  "value": "contains:kitting",
                  "disabled": true
                }
              ]
            },
            "description": "Helper endpoint to find kitting location type IDs.\n\nUse the returned ID with `/warehouses/locations` to find actual kitting locations.\n"
          },
          "response": []
        },
        {
          "name": "Create kit template",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inventory/kits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inventory",
                "kits"
              ]
            },
            "description": "Creates a kit template that defines how to assemble a new product from component products.\n\n**Workflow:**\n1. Create kit product (the final assembled item)\n2. Create kit template (this endpoint) defining components\n3. Create kitting task to assemble kits\n4. Webhook fires when kits are assembled\n\n**Example:**\n- Kit Product: \"Coffee Gift Box\"\n- Components: 2x Coffee Beans, 1x Coffee Mug, 1x Gift Box\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Coffee Gift Box Kit\",\n  \"product_id\": 1957720,\n  \"items\": [\n    {\n      \"product_id\": 1957711,\n      \"quantity\": 2\n    },\n    {\n      \"product_id\": 1957712,\n      \"quantity\": 1\n    },\n    {\n      \"product_id\": 1957713,\n      \"quantity\": 1\n    }\n  ],\n  \"warehouses\": [\n    140\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Create kitting task",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/kitting/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "kitting",
                "tasks"
              ]
            },
            "description": "Creates a task to assemble kits from component products.\n\n**Workflow:**\n1. Webhook `replenishment_order_created` (type=kit_move): Components moved to kitting area, stock reduced\n2. Warehouse assembles kits (Android app)\n3. Webhook `replenishment_order_finished` (type=kitting): Kits moved to storage, kit product stock increased\n\n**Requirements:**\n- Kit template must exist\n- Sufficient component stock must be available\n- `destination_location_id` must be a kitting location\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"warehouse_id\": 140,\n  \"destination_location_id\": 109200,\n  \"items\": [\n    {\n      \"kit_id\": 5,\n      \"quantity\": 10\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "List webhook subscriptions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhook/?id=&url=like:%your-domain%&method=&enabled=&warehouse_id=140&merchant_id=69&merchant_channel_id=76&limit=100&offset=0&sort_by=id:asc",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhook",
                ""
              ],
              "query": [
                {
                  "key": "id",
                  "value": "",
                  "description": "Webhook ID",
                  "disabled": true
                },
                {
                  "key": "url",
                  "value": "like:%your-domain%",
                  "description": "Exact endpoint URL, or `like:%pattern%` for a partial match",
                  "disabled": true
                },
                {
                  "key": "method",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "enabled",
                  "value": "",
                  "description": "`true` (the default) returns enabled webhooks, `false` returns disabled ones.\nAny other value returns an error.\n",
                  "disabled": true
                },
                {
                  "key": "warehouse_id",
                  "value": "140",
                  "disabled": true
                },
                {
                  "key": "merchant_id",
                  "value": "69",
                  "disabled": true
                },
                {
                  "key": "merchant_channel_id",
                  "value": "76",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "Number of items to return (1-2000)",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "Number of items to skip",
                  "disabled": true
                },
                {
                  "key": "sort_by",
                  "value": "id:asc",
                  "description": "Sort field and direction (field:asc or field:desc)",
                  "disabled": true
                }
              ]
            },
            "description": "Returns your webhook subscriptions. Use it to check what is subscribed, or to find the\n`id` you need to [delete a subscription](#tag/Webhooks/operation/deleteWebhook).\n\n**Only enabled webhooks by default.** Without `enabled=false` in the query, disabled\nsubscriptions are left out, even when you filter by their `id` or `url`. To see\neverything, call once with `enabled=true` and once with `enabled=false`.\n\n**Filters** (all optional, combine as needed):\n- `id`, `url`, `method`, `enabled`, `warehouse_id`, `merchant_id`,\n  `merchant_channel_id` match exactly.\n- `url` also accepts a partial match with `like:`, e.g. `url=like:%25my-domain%25`\n  (`%25` is the URL-encoded `%` wildcard).\n- Each filter takes one value. Lists such as `warehouse_id=1,2` or\n  `warehouse_id=in:1,2` are not supported and return an error.\n- Unknown query parameters are ignored.\n\n**Paging:** `total_results` is only filled on the first page (`offset` 0 or not set).\nOn later pages it is `null`, so read it from the first call.\n"
          },
          "response": []
        },
        {
          "name": "Subscribe to webhook events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhook/",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhook",
                ""
              ]
            },
            "description": "Subscribes your endpoint to receive real-time notifications for warehouse events.\n\n**Available Events:**\n\n**Purchase Orders / Incoming:**\n- `purchase_order_updated` [📎](/guide/incoming#purchase_order_updated \"Sample payload\"): PO modified\n- `purchase_order_deleted`: PO deleted\n- `purchase_order_finished` [📎](/guide/incoming#purchase_order_finished \"Sample payload\"): Goods receipt completed (GR)\n- `purchase_order_finished_early` [📎](/guide/incoming#purchase_order_finished_early \"Sample payload\"): PO closed with partial receipt\n- `incoming_good_created` [📎](/guide/incoming#incoming_good_created \"Sample payload\"): Receiving task created\n- `replenishment_order_created` [📎](/guide/incoming#replenishment_order_created \"Sample payload\"): Stock movement to storage started\n- `replenishment_order_finished` [📎](/guide/incoming#replenishment_order_finished \"Sample payload\"): Stock available in warehouse\n\n**Sales Orders / Outgoing:**\n- `sales_order_created` [📎](/guide/outgoing#sales_order_created \"Sample payload\"): Order accepted\n- `sales_order_updated` [📎](/guide/outgoing#sales_order_updated \"Sample payload\"): Order modified\n- `sales_order_cancelled` [📎](/guide/outgoing#sales_order_cancelled \"Sample payload\"): Order cancelled\n- `sales_order_finished` [📎](/guide/outgoing#sales_order_finished \"Sample payload\"): Order fully shipped (PGI)\n- `fulfillment_order_finished` [📎](/guide/outgoing#fulfillment_order_finished \"Sample payload\"): Single fulfillment completed\n- `picking_order_created` [📎](/guide/outgoing#picking_order_created \"Sample payload\"): Picking task created\n- `picking_order_finished` [📎](/guide/outgoing#picking_order_finished \"Sample payload\"): Picking completed\n- `packing_order_created` [📎](/guide/outgoing#packing_order_created \"Sample payload\"): Packing task created\n- `packing_order_finished` [📎](/guide/outgoing#packing_order_finished \"Sample payload\"): Packing completed (PIC)\n- `packing_order_closed` [📎](/guide/outgoing#packing_order_closed \"Sample payload\"): Packing task closed and left the packing station\n- `packing_box_closed` [📎](/label-provider/webhooks#packing_box_closed \"Sample payload\"): Individual box sealed (for label generation)\n\n**Stock & Inventory:**\n- `stock_correction_finished` [📎](/guide/stock-changes#stock_correction_finished \"Sample payload\"): Manual stock adjustment\n- `counting_task_created`: Inventory count started\n- `counting_task_finished`: Inventory count completed\n- `counting_task_closed` [📎](/guide/stock-changes#counting_task_closed \"Sample payload\"): Count finalized\n\n**Shipping:**\n- `shipment_tracking_updated` [📎](/label-provider/shipment-tracking#shipment_tracking_updated \"Sample payload\"): Tracking info changed\n- `turbo_label_packing_created`: Quick label process\n\n**Filters:**\n- Filter by `warehouse_id`, `merchant_id`, `merchant_channel_id`\n- `allowed_types`: Array of event types to receive\n\n**Best Practices:**\n- Implement idempotency (webhook may retry)\n- Return 200 OK quickly (process async)\n- Verify webhook signature if available\n- Handle out-of-order delivery\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://your-domain.com/webhooks/pulpo/sales-orders\",\n  \"method\": \"POST\",\n  \"warehouse_id\": 140,\n  \"merchant_id\": 69,\n  \"merchant_channel_id\": 76,\n  \"allowed_types\": [\n    \"sales_order_created\",\n    \"packing_order_finished\",\n    \"sales_order_finished\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get a webhook subscription",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhook/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhook",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns one webhook subscription by its `id`. Unlike the list, this also returns\ndisabled webhooks. The webhook is returned directly, not inside a `webhooks` list.\n"
          },
          "response": []
        },
        {
          "name": "Delete a webhook subscription",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhook/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhook",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Removes a webhook subscription, so PULPO no longer sends its events to that URL.\n\nThe `id` is the UUID returned when you subscribed (`webhooks[].id` in the\n[Subscribe to webhook events](#tag/Webhooks/operation/subscribeWebhook) response). If\nyou don't have it any more, look it up with\n[List webhook subscriptions](#tag/Webhooks/operation/listWebhooks). Disabled webhooks\ncan be deleted too.\n\n**Responses:**\n- `204 No Content` with an empty body when the webhook was deleted.\n- `422` with `{\"errors\": {\"id\": \"The given id is invalid\"}}` when no webhook with this\n  id exists, including one you already deleted. Treat this as \"already gone\" if you\n  retry deletes.\n"
          },
          "response": []
        }
      ]
    }
  ]
}
