{
  "opencollection": "1.0.0",
  "info": {
    "name": "Canix Purchase Orders API",
    "version": "1.3.10"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-API-KEY",
      "value": "{{X-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Purchase Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GetPurchaseOrders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.canix.com/api/v1/purchase_orders",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max number of records to return (optional). Cannot exceed 2000"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Offset for the returned records (optional)"
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Order-by clause, in SQL format (optional)"
              },
              {
                "name": "where",
                "value": "",
                "type": "query",
                "description": "Filter results using SQL-like WHERE clause syntax (optional).\n\n**Supported operators**: =, >, <, >=, <=, BETWEEN, IN, LIKE, AND, OR\n\n**Supported patterns**:\n- Equality: `status='Active'`\n- Comparison: `updated_at >= '2024-01-01'`\n- Range: `id BETWEEN 1 AND 10000`\n- List: `status IN ('Active', 'Pending')`\n- Pattern: `sku LIKE 'ABC%'`\n- Compound: `facility_id=123 AND is_active=true`\n"
              }
            ]
          },
          "docs": "Return Purchase Orders"
        },
        {
          "info": {
            "name": "PostPurchaseOrder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.canix.com/api/v1/purchase_orders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "__CALLING THIS ENDPOINT WILL MODIFY YOUR DATA IRREVERSIBLY. ONLY CALL THIS ON SANDBOX DATA DURING DEVELOPMENT/CODING/TESTING.__"
        },
        {
          "info": {
            "name": "GetPurchaseOrder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.canix.com/api/v1/purchase_orders/:purchase_order_id",
            "params": [
              {
                "name": "purchase_order_id",
                "value": "",
                "type": "path",
                "description": "ID of Purchase Order to return"
              }
            ]
          },
          "docs": "Get Purchase Order by ID"
        },
        {
          "info": {
            "name": "GetPurchaseOrderContents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.canix.com/api/v1/purchase_orders/:purchase_order_id/contents",
            "params": [
              {
                "name": "purchase_order_id",
                "value": "",
                "type": "path",
                "description": "Purchase Order ID"
              }
            ]
          },
          "docs": "Get Purchase Order Contents by Purchase Order ID"
        },
        {
          "info": {
            "name": "GetPurchaseOrderPayments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.canix.com/api/v1/purchase_orders/:purchase_order_id/payments",
            "params": [
              {
                "name": "purchase_order_id",
                "value": "",
                "type": "path",
                "description": "Purchase Order ID"
              }
            ]
          },
          "docs": "Get Purchase Order Payments by Purchase Order ID"
        }
      ]
    }
  ],
  "bundled": true
}