{
  "info": {
    "_postman_id": "b3981f47-19c9-4473-9ffb-4e33f106fdfe",
    "name": "AP Control Labs - Finance Controls",
    "description": "Read-only agent-ready finance controls. Set apiKey to a workspace API key before sending any request.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {"key": "baseUrl", "value": "https://api-production-9502.up.railway.app", "type": "string"},
    {"key": "apiKey", "value": "apc_replace_with_your_workspace_key", "type": "string"}
  ],
  "item": [
    {
      "name": "Validate invoice",
      "request": {
        "method": "POST",
        "header": [{"key": "Authorization", "value": "Bearer {{apiKey}}"}, {"key": "Content-Type", "value": "application/json"}],
        "body": {"mode": "raw", "raw": "{\n  \"invoice\": {\n    \"vendor_name\": \"Acme Industrial\",\n    \"invoice_number\": \"INV-1042\",\n    \"invoice_date\": \"2026-08-09\",\n    \"currency\": \"USD\",\n    \"total\": \"125.00\",\n    \"line_items\": [{\"description\": \"Valve assembly\", \"quantity\": \"1\", \"unit_price\": \"120.00\"}]\n  }\n}"},
        "url": "{{baseUrl}}/v1/invoice-validations",
        "description": "Returns a deterministic decision, named exceptions, evidence, and a next action."
      }
    },
    {
      "name": "Check vendor onboarding",
      "request": {
        "method": "POST",
        "header": [{"key": "Authorization", "value": "Bearer {{apiKey}}"}, {"key": "Content-Type", "value": "application/json"}],
        "body": {"mode": "raw", "raw": "{\n  \"vendor_reference\": \"acme-001\",\n  \"required_items\": [\"W9\", \"approval\"],\n  \"supplied_items\": [\"W9\"],\n  \"customer_approved\": false,\n  \"remittance_fingerprint_present\": false\n}"},
        "url": "{{baseUrl}}/v1/vendors/onboarding-checks"
      }
    },
    {
      "name": "Check vendor domain risk",
      "request": {
        "method": "POST",
        "header": [{"key": "Authorization", "value": "Bearer {{apiKey}}"}, {"key": "Content-Type", "value": "application/json"}],
        "body": {"mode": "raw", "raw": "{\n  \"vendor_reference\": \"acme-001\",\n  \"sender_email\": \"ap@acme-industrial.example\",\n  \"approved_domains\": [\"acme.example\"],\n  \"prior_domains\": [\"acme.example\"]\n}"},
        "url": "{{baseUrl}}/v1/vendors/domain-risk-checks"
      }
    },
    {
      "name": "Compare quotes",
      "request": {
        "method": "POST",
        "header": [{"key": "Authorization", "value": "Bearer {{apiKey}}"}, {"key": "Content-Type", "value": "application/json"}],
        "body": {"mode": "raw", "raw": "{\n  \"expected_currency\": \"USD\",\n  \"quotes\": [\n    {\"vendor_name\": \"Northstar Supply\", \"currency\": \"USD\", \"total\": \"1025.00\", \"valid_until\": \"2026-09-01\"},\n    {\"vendor_name\": \"Acme Industrial\", \"currency\": \"USD\", \"total\": \"1180.00\", \"valid_until\": \"2026-08-20\"}\n  ]\n}"},
        "url": "{{baseUrl}}/v1/quotes/compare"
      }
    }
  ]
}
