{
  "info": {
    "_postman_id": "7f3a2c9e-5b1d-4e8a-9c6f-0d2b4a8e1c3b",
    "name": "TAXMIUM Platform API",
    "description": "The TAXMIUM public API. TAXMIUM watches your money moments, files the paperwork and keeps a living tax record all 365 days of the year.\n\nAuth: The demo environment answers without a key. At launch, requests carry Authorization: Bearer with your key. The sandbox on the TAXMIUM site never needs one.\n\nErrors: Every endpoint answers {\"ok\":false,\"error\":\"Human readable message.\"} when something is off. Status 400 means bad or missing fields, 404 means an unknown id or source, 409 means a paused source or a state conflict, 429 means rate limited.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Platform",
      "description": "Platform wide signals: health and the live Tax Readiness Score.",
      "item": [
        {
          "name": "Platform health",
          "description": "Liveness for the platform and the ambient capture engine. Safe to call often.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/health",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "health"
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/api/v1/health",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "health"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\"ok\":true,\"data\":{\"status\":\"healthy\",\"database\":{\"ok\":true,\"latencyMs\":3},\"engine\":{\"running\":true,\"ticks\":412,\"lastTickAt\":\"2026-04-12T09:41:22.000Z\"},\"capture\":{\"filed\":18,\"inFlight\":2,\"review\":1}}}"
            }
          ]
        },
        {
          "name": "Tax Readiness Score",
          "description": "The live Tax Readiness Score with its factor breakdown.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/readiness",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "readiness"
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/api/v1/readiness",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "readiness"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"ok\": true,\n  \"data\": {\n    \"total\": 84,\n    \"grade\": \"Filing-ready\",\n    \"message\": \"Your year is already there. Filing season should be calm.\",\n    \"documents\": {\n      \"points\": 35,\n      \"max\": 35,\n      \"count\": 10,\n      \"label\": \"Documents captured\"\n    },\n    \"lifeEvents\": {\n      \"points\": 25,\n      \"max\": 25,\n      \"count\": 5,\n      \"label\": \"Life events recorded\"\n    },\n    \"alertsActioned\": {\n      \"points\": 18.8,\n      \"max\": 25,\n      \"count\": 3,\n      \"label\": \"Alerts actioned\"\n    },\n    \"validationsResolved\": {\n      \"points\": 5,\n      \"max\": 15,\n      \"count\": 1,\n      \"label\": \"Validations resolved\"\n    },\n    \"daysLeftInYear\": 263\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Engine",
      "description": "The ambient capture engine: check its heartbeat and steer its sources.",
      "item": [
        {
          "name": "Engine status",
          "description": "Heartbeat, capture sources, running totals and the latest engine log lines.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/engine/status",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "engine",
                "status"
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/api/v1/engine/status",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "engine",
                    "status"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\"ok\":true,\"data\":{\"heartbeat\":{\"running\":true,\"ticks\":412,\"startedAt\":\"2026-04-12T09:00:00.000Z\",\"lastTickAt\":\"2026-04-12T09:41:22.000Z\"},\"stats\":{\"detected\":1,\"matched\":1,\"filed\":18,\"review\":1,\"total\":21,\"hoursSaved\":1.2},\"sources\":[{\"key\":\"card\",\"label\":\"Card spend\",\"enabled\":true,\"processed\":9,\"lastEventAt\":\"2026-04-12T09:40:10.000Z\"}],\"events\":[{\"id\":\"evt_1\",\"level\":\"action\",\"message\":\"Filed the receipt from Four Corners Grocery. Nothing for you to do.\",\"itemId\":\"cap_1\",\"createdAt\":\"2026-04-12T09:40:15.000Z\"}]}}"
            }
          ]
        },
        {
          "name": "Pause or resume a source",
          "description": "Pause one capture source or turn it back on. Pausing stops new detections from that source only.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\"source\":\"card\",\"enabled\":false}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{base_url}}/api/v1/engine/sources",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "engine",
                "sources"
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\"source\":\"card\",\"enabled\":false}"
                },
                "url": {
                  "raw": "{{base_url}}/api/v1/engine/sources",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "engine",
                    "sources"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\"ok\":true,\"data\":{\"source\":{\"key\":\"card\",\"label\":\"Card spend\",\"enabled\":false,\"processed\":9,\"lastEventAt\":\"2026-04-12T09:40:10.000Z\"}}}"
            }
          ]
        }
      ]
    },
    {
      "name": "Documents",
      "description": "Everything the engine has taken in, ready to browse and filter.",
      "item": [
        {
          "name": "List captured documents",
          "description": "Everything the engine has taken in, newest first, with live counts.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/receipts?limit=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "receipts"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many documents to return. Optional, default 20, max 50."
                },
                {
                  "key": "status",
                  "value": "",
                  "disabled": true,
                  "description": "Filter by stage. Optional, one of detected, matched, filed, review."
                },
                {
                  "key": "source",
                  "value": "",
                  "disabled": true,
                  "description": "Filter by capture source. Optional, one of card, email, bank, payments, invoicing."
                }
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/api/v1/receipts?limit=20",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "receipts"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\"ok\":true,\"data\":{\"items\":[{\"id\":\"cap_1\",\"ref\":\"CAP-7F3A2C\",\"kind\":\"receipt\",\"source\":\"card\",\"merchant\":\"Four Corners Grocery\",\"description\":\"Weekly groceries\",\"amount\":42.17,\"currency\":\"CAD\",\"status\":\"filed\",\"confidence\":96,\"category\":\"groceries\",\"stageNote\":\"Filed in your living tax file.\",\"occurredAt\":\"2026-04-12T09:38:00.000Z\",\"detectedAt\":\"2026-04-12T09:38:01.000Z\",\"matchedAt\":\"2026-04-12T09:38:04.000Z\",\"filedAt\":\"2026-04-12T09:38:07.000Z\",\"viaApi\":true}],\"counts\":{\"detected\":1,\"matched\":1,\"filed\":18,\"review\":1}}}"
            }
          ]
        },
        {
          "name": "Read a document",
          "description": "Send a receipt, invoice or PDF. The reader gives back the words on the page and the tax fields they map to. A PDF with a text layer is read straight off the page, a photo goes through the vision engine. Optional store=true also files it into the living tax file.",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": [],
                  "description": "The document to read. An image, a PDF or a text file, max 4MB. Required."
                },
                {
                  "key": "store",
                  "value": "true",
                  "type": "text",
                  "disabled": true,
                  "description": "Set true to also file the document into the living tax file. Optional, default false."
                }
              ]
            },
            "url": {
              "raw": "{{base_url}}/api/v1/capture/read",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "capture",
                "read"
              ]
            },
            "description": "The reader answers with method text_layer or vision, the extracted words, their length and the mapped fields: category, vendor, amount, date, month, summary, taxRelevance, deductible."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Capture",
      "description": "Send money moments in and settle review items.",
      "item": [
        {
          "name": "Ingest a transaction event",
          "description": "Feed the engine one money moment. It detects, matches and files it on its own. Send a card charge, an email receipt, a paid bill or an invoice you issued.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\"source\":\"card\",\"kind\":\"receipt\",\"merchant\":\"Four Corners Grocery\",\"amount\":42.17,\"currency\":\"CAD\",\"description\":\"Weekly groceries\"}",
              "options": {
                "raw": {
                  "language": "json"
                }
              },
              "description": "source is required and must be one of card, email, bank, payments or invoicing. kind is optional and must be one of receipt, invoice, payment or bank_line. merchant is required. amount is required and must be a positive number. currency is optional and defaults to CAD. description is optional. ref is optional and names your own reference, one is generated when omitted."
            },
            "url": {
              "raw": "{{base_url}}/api/v1/capture/ingest",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "capture",
                "ingest"
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\"source\":\"card\",\"kind\":\"receipt\",\"merchant\":\"Four Corners Grocery\",\"amount\":42.17,\"currency\":\"CAD\",\"description\":\"Weekly groceries\"}"
                },
                "url": {
                  "raw": "{{base_url}}/api/v1/capture/ingest",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "capture",
                    "ingest"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\"ok\":true,\"data\":{\"message\":\"Detected. The engine takes it from here.\",\"item\":{\"id\":\"cap_new\",\"ref\":\"CAP-9D4B1E\",\"kind\":\"receipt\",\"source\":\"card\",\"merchant\":\"Four Corners Grocery\",\"description\":\"Weekly groceries\",\"amount\":42.17,\"currency\":\"CAD\",\"status\":\"detected\",\"confidence\":0,\"category\":\"\",\"stageNote\":\"Spotted on card spend. Reading it now.\",\"occurredAt\":\"2026-04-12T09:45:00.000Z\",\"detectedAt\":\"2026-04-12T09:45:00.000Z\",\"matchedAt\":null,\"filedAt\":null,\"viaApi\":true}}}"
            }
          ]
        },
        {
          "name": "Approve a flagged document",
          "description": "Items the engine is not confident about wait in review. This files one after your yes.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\"id\":\"REPLACE_WITH_ITEM_ID\"}",
              "options": {
                "raw": {
                  "language": "json"
                }
              },
              "description": "id is the document id from the ingest response or the documents list. Swap REPLACE_WITH_ITEM_ID for a real id."
            },
            "url": {
              "raw": "{{base_url}}/api/v1/capture/approve",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "capture",
                "approve"
              ]
            }
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\"id\":\"cap_9\"}"
                },
                "url": {
                  "raw": "{{base_url}}/api/v1/capture/approve",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "v1",
                    "capture",
                    "approve"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\"ok\":true,\"data\":{\"message\":\"Approved and filed.\",\"item\":{\"id\":\"cap_9\",\"ref\":\"CAP-2C8B44\",\"kind\":\"receipt\",\"source\":\"card\",\"merchant\":\"Fresh Fruit Market\",\"description\":\"\",\"amount\":23.87,\"currency\":\"CAD\",\"status\":\"filed\",\"confidence\":96,\"category\":\"groceries\",\"stageNote\":\"You looked, you approved, it is filed.\",\"occurredAt\":\"2026-04-12T09:05:00.000Z\",\"detectedAt\":\"2026-04-12T09:05:01.000Z\",\"matchedAt\":\"2026-04-12T09:05:04.000Z\",\"filedAt\":\"2026-04-12T09:12:00.000Z\",\"viaApi\":false}}}"
            }
          ]
        },
        {
          "name": "Receive a forwarded email",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/capture/email",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "capture",
                "email"
              ]
            },
            "description": "The production inbound endpoint behind receipts@taxmium.app. Attachments carry in attachments as { filename, contentType, contentBase64 }, max 3 files of 4MB. With EMAIL_INBOUND_SECRET set, send it in the X-Taxmium-Mail-Signature header.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"Metro Plus <ereceipts@metroplus.ca>\",\n  \"to\": \"receipts@taxmium.app\",\n  \"subject\": \"Your eReceipt from Metro Plus\",\n  \"text\": \"Thanks for your visit. Date: 2026-03-14. Total: $21.57. Paid with Visa ending 4417.\"\n}"
            }
          }
        },
        {
          "name": "List the capture inbox",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/capture/email",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "capture",
                "email"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "List the card feed",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/capture/bank",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "capture",
                "bank"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "Drive the card feed",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/capture/bank",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "capture",
                "bank"
              ]
            },
            "description": "action: connect | disconnect | sync | pair | ignore. Pair needs transactionId and documentId. Disconnect and ignore need id.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"connect\",\n  \"institution\": \"Great Northern Bank\"\n}"
            }
          }
        },
        {
          "name": "Watch the payment rails",
          "description": "Connected payment rails, recent bill payments with their pairing state and, for payments still waiting, the vault documents close enough to consider. Totals roll up the whole rail.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/capture/payments",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "capture",
                "payments"
              ]
            },
            "description": "No body. Returns providers, connections, the twenty most recent payments and live totals."
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/api/capture/payments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "capture",
                    "payments"
                  ]
                }
              },
              "code": 200,
              "status": "OK",
              "body": "{\n  \"simulation\": true,\n  \"providers\": [\n    {\n      \"name\": \"Interac\",\n      \"kind\": \"e_transfer\"\n    }\n  ],\n  \"connections\": [\n    {\n      \"id\": \"rail_1\",\n      \"provider\": \"Interac\",\n      \"accountMask\": \"\\u2022\\u2022\\u2022\\u2022 7723\",\n      \"status\": \"active\"\n    }\n  ],\n  \"payments\": [\n    {\n      \"id\": \"pay_1\",\n      \"payee\": \"Toronto Hydro\",\n      \"amount\": 88.12,\n      \"status\": \"matched\",\n      \"confidence\": 97,\n      \"candidates\": []\n    }\n  ],\n  \"totals\": {\n    \"connected\": 1,\n    \"payments\": 6,\n    \"matched\": 3,\n    \"waiting\": 2,\n    \"ignored\": 1\n  }\n}"
            }
          ]
        },
        {
          "name": "Drive the payment rails",
          "description": "Connect a provider to open the rail and the first cleared bill payments arrive right away. Sync pulls the rails again. Pair ties a waiting payment to a document by id, ignore marks a payment personal. Payments whose bills are already in the vault pair themselves on arrival.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/capture/payments",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "capture",
                "payments"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"action\": \"connect\", \"provider\": \"Interac\"}",
              "options": {
                "raw": {
                  "language": "json"
                }
              },
              "description": "action is required and must be one of connect, disconnect, sync, pair or ignore. provider is required for connect. id is required for disconnect and ignore. paymentId and documentId are required for pair."
            }
          },
          "response": [
            {
              "name": "Example 201 response",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/api/capture/payments",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "capture",
                    "payments"
                  ]
                }
              },
              "code": 200,
              "status": "OK",
              "body": "{\n  \"ok\": true,\n  \"connection\": {\n    \"id\": \"rail_1\",\n    \"provider\": \"Interac\",\n    \"status\": \"active\"\n  },\n  \"pull\": {\n    \"created\": 2,\n    \"matched\": 1\n  }\n}"
            }
          ]
        },
        {
          "name": "List outbound invoices",
          "description": "Every invoice you sent with its status, due date, payment reference and, for paid ones, the income document it filed in the vault. Totals roll up outstanding, paid and overdue money.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/capture/invoices",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "capture",
                "invoices"
              ]
            },
            "description": "No body. Returns the twenty most recent invoices and live totals. Invoices past their due date flip to overdue on their own."
          },
          "response": [
            {
              "name": "Example 200 response",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/api/capture/invoices",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "capture",
                    "invoices"
                  ]
                }
              },
              "code": 200,
              "status": "OK",
              "body": "{\n  \"simulation\": true,\n  \"invoices\": [\n    {\n      \"id\": \"inv_1\",\n      \"number\": \"INV-2026-0007\",\n      \"client\": \"Studio Nord\",\n      \"amount\": 2400,\n      \"status\": \"paid\",\n      \"document\": {\n        \"id\": \"doc_9\",\n        \"fileName\": \"Invoice INV-2026-0007 \\u00b7 Studio Nord.txt\"\n      }\n    },\n    {\n      \"id\": \"inv_2\",\n      \"number\": \"INV-2026-0008\",\n      \"client\": \"Atelier Rivard\",\n      \"amount\": 980,\n      \"status\": \"sent\",\n      \"document\": null\n    }\n  ],\n  \"totals\": {\n    \"outstanding\": 980,\n    \"paidTotal\": 2400,\n    \"sent\": 1,\n    \"paid\": 1,\n    \"overdue\": 0\n  }\n}"
            }
          ]
        },
        {
          "name": "Run an invoice",
          "description": "Send opens an invoice and it waits for the money. Pay records the client payment: the invoice marks paid and the income paperwork files itself in the vault. Remind nudges the client gently.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/capture/invoices",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "capture",
                "invoices"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"action\": \"send\", \"client\": \"Atelier Rivard\", \"amount\": 980, \"dueInDays\": 30, \"note\": \"Brand sprint, milestone 1\"}",
              "options": {
                "raw": {
                  "language": "json"
                }
              },
              "description": "action is required and must be one of send, pay or remind. client and amount are required for send, dueInDays and note are optional. id is required for pay and remind. paymentRef is optional for pay, one is minted when omitted."
            }
          },
          "response": [
            {
              "name": "Example 201 response",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/api/capture/invoices",
                  "host": [
                    "{{base_url}}"
                  ],
                  "path": [
                    "api",
                    "capture",
                    "invoices"
                  ]
                }
              },
              "code": 200,
              "status": "OK",
              "body": "{\n  \"ok\": true,\n  \"invoice\": {\n    \"id\": \"inv_2\",\n    \"number\": \"INV-2026-0008\",\n    \"client\": \"Atelier Rivard\",\n    \"amount\": 980,\n    \"status\": \"sent\"\n  }\n}"
            }
          ]
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://gettaxmium.app"
    }
  ]
}