{
  "info": {
    "name": "ReconSmiths API",
    "description": "Guides: https://developer.reconsmith.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.reconsmith.com"
    },
    {
      "key": "apiKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Customers",
      "item": [
        {
          "name": "Create or update parties in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/parties",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "parties"
              ]
            },
            "description": "Keyed on (source_system, external_ref). Safe to replay: an existing party is returned, not duplicated. A changed name is recorded as a rename, so history is preserved. For every optional detail field, null means LEAVE THE STORED VALUE ALONE and the empty string means clear it — so re-upserting a customer whose VAT number is blank on your side will not wipe one somebody entered here.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"external_ref\": \"string\",\n    \"name\": \"string\"\n  }\n]"
            }
          }
        },
        {
          "name": "Customers whose VAT number or address is missing",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/parties/incomplete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "parties",
                "incomplete"
              ]
            },
            "description": "The list worth asking about. A South African tax invoice over R5,000 must carry the customer's VAT number and address, and a prompt sent to every customer is a prompt most of them ignore — so this is who is actually missing something. Ordered by what they have been invoiced, because the customer you bill most is the one whose missing VAT number costs you soonest. Each row carries your own external_ref, so the list can be acted on without mapping names."
          }
        },
        {
          "name": "Smart customer lookup",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/parties/search",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "parties",
                "search"
              ]
            },
            "description": "Searches names, FORMER names, VAT and company numbers, external refs, account codes, branch numbers, e-mail and address text. Every hit carries matched_via so the caller can show why it appeared."
          }
        }
      ]
    },
    {
      "name": "Invoices and credit notes",
      "item": [
        {
          "name": "Post sales invoices in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices"
              ]
            },
            "description": "Calls the ledger's own posting function: one balanced journal, an open-period check, terms taken from the billing party, and the receivable account resolved from the party.\n\ndoc_no is NOT accepted. ReconSmith mints the tax invoice number from its own sequence, and takes the number inside the posting transaction, so a failed invoice returns it instead of burning it — the sequence has no gaps. A sales order number legitimately HAS gaps, because orders get cancelled, so passing one through as the invoice number would import those gaps into a sequence an auditor expects to be unbroken. Put the order number in external_ref, and in reference if it should print on the invoice.\n\nNo settlement flag is returned: status is derived from allocations and never stored. Read it from GET /v1/documents.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"external_ref\": \"string\",\n    \"doc_date\": \"2026-12-01\",\n    \"lines\": [\n      {\n        \"description\": \"string\",\n        \"amount_excl_tax\": 100,\n        \"tax_amount\": 100\n      }\n    ]\n  }\n]"
            }
          }
        },
        {
          "name": "Credit a customer — against an invoice, or on the account",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/credit-notes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credit-notes"
              ]
            },
            "description": "Three shapes, because all three happen:\n\n1. invoice_external_ref, no lines — credit the whole invoice. The ordinary cancelled-order case.\n2. invoice_external_ref with lines — credit part of that invoice.\n3. customer_external_ref with lines, no invoice — a credit note tied to no invoice at all: goodwill, a pricing correction, a deposit refund, a settlement. It is posted against the customer's account and sits there as money owed, and POST /v1/allocations applies it to any later invoice when they spend it.\n\nAn invoice is never deleted and never renumbered. It keeps its number and a credit note cancels it out: that is what keeps the invoice sequence unbroken when an order falls away, and the audit trail append-only. Credit notes have their own gapless sequence (CRN-).\n\napplied: false means nothing was set against an invoice — either the invoice was already paid, or the credit note was never tied to one. Either way the value is credit the customer holds, and it shows in GET /v1/credits and GET /v1/customers/{ref}/credit.\n\nmark_for_refund records that the customer wants the money back rather than a credit against their next order. The credit note is raised either way; this only records which they chose.\n\nreason is never optional. It is the first thing anyone asks about a credit note, and the ledger refuses one without it.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"reason\": \"string\",\n    \"external_ref\": \"string\"\n  }\n]"
            }
          }
        },
        {
          "name": "The customer asks for the money back",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/credit-notes/:externalRef/refund-request",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credit-notes",
                ":externalRef",
                "refund-request"
              ]
            },
            "description": "Flags an existing credit note as refund-requested. It is a flag, not a payment: nothing moves in the ledger and the customer can change their mind right up until the money leaves. Refused if the credit has already been used up.\\n\\nThe flag shows as refund_requested in GET /v1/credits, and refundOnly=true filters to these.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"note\": \"string\"\n}"
            }
          }
        },
        {
          "name": "They changed their mind",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/credit-notes/:externalRef/refund-request",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credit-notes",
                ":externalRef",
                "refund-request"
              ]
            },
            "description": "Clears the flag. The credit itself is untouched and stays on the account."
          }
        },
        {
          "name": "Pay a credit back in money",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/credit-notes/:externalRef/refund",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credit-notes",
                ":externalRef",
                "refund"
              ]
            },
            "description": "The money leaves: Dr trade receivables, Cr bank. The refund is a settleable document (CUSTOMER_REFUND, its own REF- sequence) and the credit note is allocated to it, exactly as a receipt settles an invoice — so over-refunding is refused by the allocation rather than by trusting the caller.\\n\\nOmit amount to refund whatever is unused. A partial refund leaves the rest on the customer's account, which is a thing customers ask for. Omit bank_account_id and the entity's primary bank account is used.\\n\\nTakes an Idempotency-Key like every write: a retried refund must not pay the customer twice. Once credit_left reaches zero the credit drops off GET /v1/credits.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": 100,\n  \"bank_account_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"doc_date\": \"2026-12-01\",\n  \"reference\": \"string\"\n}"
            }
          }
        },
        {
          "name": "Void a credit note",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/credit-notes/:externalRef/void",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credit-notes",
                ":externalRef",
                "void"
              ]
            },
            "description": "For a credit note raised in error. Posts the mirror journal, keeps the number and marks it VOIDED with the reason. A credit note that has already been used or refunded is refused. Voiding one already voided answers again with already_voided true, so a retry is harmless.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"string\"\n}"
            }
          }
        },
        {
          "name": "Void an invoice",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices/:externalRef/void",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices",
                ":externalRef",
                "void"
              ]
            },
            "description": "For an invoice billed wrong: void it, then issue the correct one under a new external_ref. Posts the mirror journal, keeps the number and marks it VOIDED with the reason. An invoice with a receipt or credit note allocated against it is refused, naming them, because un-allocating money is a decision for a person; un-allocate first, then void. Voiding one already voided answers again with already_voided true.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"string\"\n}"
            }
          }
        },
        {
          "name": "Change an invoice's notes",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices/:externalRef/notes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "invoices",
                ":externalRef",
                "notes"
              ]
            },
            "description": "Replaces the notes line on an invoice and nothing else: same number, same amounts. Works on a draft, posted or paid invoice; a voided one is refused. The PDF is drawn from the document, so fetch it again afterwards to get the new notes. The audit log keeps the old and new notes and the API client that changed them.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"notes\": \"string\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Payments and allocations",
      "item": [
        {
          "name": "Post receipts in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payments"
              ]
            },
            "description": "Posts through the ledger's receipt function: Dr bank, Cr receivables control, one balanced journal. The receipt number is minted here. A receipt with nothing allocated to it is a legitimate state — push it when the money arrives and allocate when you know what it paid.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"external_ref\": \"string\",\n    \"doc_date\": \"2026-12-01\",\n    \"amount\": 100\n  }\n]"
            }
          }
        },
        {
          "name": "Allocate payments to invoices",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/allocations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "allocations"
              ]
            },
            "description": "Line-granular settlement. One R20 000 receipt clearing four invoices is four allocations, and the statement shows all four under the receipt. Over-allocating is refused by the database, not by the caller's discipline.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"payment_external_ref\": \"string\",\n    \"invoice_external_ref\": \"string\",\n    \"amount\": 100\n  }\n]"
            }
          }
        },
        {
          "name": "Customer credit — what the app shows",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/credit",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "credit"
              ]
            },
            "description": "Credit the customer can spend on the next order, how much of it they asked to have refunded instead, and the documents behind the number so the app can say where each credit came from. Use it to apply a credit to the next order rather than refunding it."
          }
        },
        {
          "name": "Unused customer credit",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/credits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credits"
              ]
            },
            "description": "Every credit still unused, for customers the caller knows. Scoped by the CUSTOMER's external reference, not the document's: a credit note a bookkeeper typed into the office for one of your customers is that customer's credit, and your app should show it alongside the ones you pushed. raised_via says which screen it came from (OFFICE, or your system, …).\\n\\nA credit note that was applied to an invoice has done its job and does not appear.\\n\\nEach row carries document_id and doc_no as well as external_ref, so an office-raised credit with no external_ref can still be addressed by the refund endpoints.\\n\\nPer customer, use GET /v1/customers/{ref}/credit instead."
          }
        }
      ]
    },
    {
      "name": "Sales orders",
      "item": [
        {
          "name": "Pull sales orders out",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sales-orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sales-orders"
              ]
            },
            "description": "Orders with their lines, in one call. Filter by status, origin, payment status, or what changed since a moment.\n\nEach order says whether it is paid: payment_status (UNPAID, PART_PAID, PAID), amount_paid, outstanding, paid_at (the date of the bank line that paid it), bank_reference, invoice_no and invoice_external_ref. A bank line carrying the order number and its total to the cent invoices the order (invoiced_on_event PAYMENT) and pays it with no person; anything less certain waits on the reconcile screen.\n\nPolling: send the reply's as_of back as since. Orders changed or paid after it come back, oldest change first."
          }
        },
        {
          "name": "Push sales orders in",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sales-orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sales-orders"
              ]
            },
            "description": "An order is PRE-LEDGER: no journal, no control account, no number an auditor will ask about. That is why it can be deleted outright, and why its numbering may gap freely.\n\norder_no is optional. Supply your own and ReconSmith keeps it; omit it and ReconSmith mints one (SO-000001). Both are correct — a system with its own order numbering should keep it, and a company with no upstream system needs ReconSmith to number its own. The same freedom is deliberately NOT given to invoice numbers.\n\nAn order raises no invoice. That happens on exactly two events: payment confirmed, or fulfilment.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"external_ref\": \"string\",\n    \"lines\": [\n      {\n        \"description\": \"string\"\n      }\n    ]\n  }\n]"
            }
          }
        },
        {
          "name": "Fulfilment — event two of the two that raise an invoice",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sales-orders/:externalRef/fulfil",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sales-orders",
                ":externalRef",
                "fulfil"
              ]
            },
            "description": "Your system says the order was fulfilled; ReconSmith raises the invoice from the order's own lines and takes the next tax invoice number. Idempotent: an order already invoiced (because it was paid up front) returns the invoice it has rather than a second one.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"doc_date\": \"2026-12-01\",\n  \"due_date\": \"2026-12-01\"\n}"
            }
          }
        },
        {
          "name": "Gateway says paid — event one of the two",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sales-orders/:externalRef/payment-confirmation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sales-orders",
                ":externalRef",
                "payment-confirmation"
              ]
            },
            "description": "The gateway's word, NOT the bank's. Raises the invoice if the order has none, posts the receipt into that gateway's CLEARING account, and allocates it. The bank is untouched: no cash is claimed until the settlement actually lands, so the bank reconciliation is never out by money in transit.\n\nIdempotent on (gateway, gateway_ref): a retried webhook returns the same invoice and receipt rather than paying twice. A later fulfilment of the same order raises nothing new.\n\nThe clearing balance is 'money the gateway owes us'. Anything past the gateway's settlement window shows as overdue in GET /v1/gateway-payments, and that total ties to the clearing account on the trial balance — so the exceptions list cannot quietly disagree with the books.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"gateway_code\": \"string\",\n  \"amount\": 100,\n  \"gateway_ref\": \"string\"\n}"
            }
          }
        },
        {
          "name": "One sales order, and whether it is paid",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sales-orders/:externalRef",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sales-orders",
                ":externalRef"
              ]
            },
            "description": "The same shape as one entry of GET /v1/sales-orders."
          }
        },
        {
          "name": "Delete or cancel an un-invoiced order",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sales-orders/:externalRef",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sales-orders",
                ":externalRef"
              ]
            },
            "description": "An order with no invoice simply goes — lines cascade with it. Nothing downstream ever saw it.\n\nPass cancelOnly=true to keep the row with status CANCELLED instead.\n\nOnce the order has an invoice this refuses: at that point it is part of a document trail, and a credit note is the only correct answer. POST /v1/credit-notes."
          }
        }
      ]
    },
    {
      "name": "Card payments",
      "item": [
        {
          "name": "The money landed in the bank, net of the gateway's cut",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/gateway-settlements",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "gateway-settlements"
              ]
            },
            "description": "Dr bank what landed, Dr merchant fees the difference, Cr clearing the gross that was confirmed. Batched, because gateways settle in batches: name the gateway refs in the payout.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"gateway_code\": \"string\",\n  \"gateway_refs\": [\n    \"string\"\n  ],\n  \"amount_received\": 100\n}"
            }
          }
        },
        {
          "name": "In transit — the list that needs handling",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/gateway-payments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "gateway-payments"
              ]
            },
            "description": "Confirmed by a gateway, not yet in the bank. overdue is anything past that gateway's own settlement window (7 days by default). The total ties to the clearing account on the trial balance."
          }
        }
      ]
    },
    {
      "name": "Documents",
      "item": [
        {
          "name": "Bulk settlement status by your own identifiers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "documents"
              ]
            },
            "description": "Which of the invoices you pushed are still open. Derived from allocations and never stored, so it is always current — do not cache it as a boolean, it is wrong the moment a receipt is allocated. Refs that match nothing come back under not_found, so a syncing caller sees what never landed instead of inferring it from a short list.\n\nEach row splits the settling side, because 'settled' is not one fact: paid_amount is receipts, credited_amount is credit notes, and state is derived from the two — OPEN, PART_PAID, PAID, PART_CREDITED, CREDITED, PAID_AND_CREDITED or VOIDED. An invoice paid and an invoice cancelled-and-credited both show settlement_status SETTLED, and an app that renders them the same way is lying to the customer. credit_note_nos lists the credit notes against the document, marked_for_refund says the customer asked for the money back, and last_movement_at is when an allocation last touched it. Everything is derived from the allocation rows, so it cannot disagree with the ledger — learn that something moved from GET /v1/changes (ALLOCATED) and re-read rather than caching a flag."
          }
        },
        {
          "name": "The issued document as a PDF",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/documents/:externalRef/pdf",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "documents",
                ":externalRef",
                "pdf"
              ]
            },
            "description": "The tax invoice or credit note on the ReconSmith letterhead, exactly as posted: our invoice number, the date and due date, our company details and VAT number as the letterhead stood on that date, the customer's name, address and VAT number, every line, the totals, and the reference (your order or work-order number).\n\nFetch it once when the invoice is posted and store it; fetch again if a credit note is raised against it. Your app then serves its stored copy, so a customer can still get their invoice when ReconSmith is slow or unreachable.\n\nDrawn by one renderer from the template's render_spec, and reissued on the branding of the document's own date — a copy fetched next year matches the one that was sent. The service does not draw PDFs itself: a second implementation would mean two versions of the same tax invoice, with no way to say which one the customer received.\n\nOnly a POSTED document has an issued PDF; anything else is a 409."
          }
        },
        {
          "name": "The issued document as JSON or XML",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/documents/:externalRef/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "documents",
                ":externalRef",
                "content"
              ]
            },
            "description": "The same document as data: our invoice number, date and due date; our company details and VAT number from the letterhead for that date; the customer's name, address and VAT number; every line with description, quantity, unit price, amount excluding VAT and VAT; the totals, a tax summary by rate, and the reference.\n\nBuilt from the ledger rather than from what the caller pushed, so if your copy and ours ever disagree, ours is right by construction. Not needed when you store the PDF, but it is what you want to render the invoice natively in an app or to keep an archival XML copy. Bank account number is masked to the last four: the full number belongs on the PDF the supplier issues, not in a payload that gets cached.\n\nformat=xml, or an Accept header asking for XML, returns the XML rendering of the same facts."
          }
        }
      ]
    },
    {
      "name": "Statements",
      "item": [
        {
          "name": "Customer statement as data",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/statement",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "statement"
              ]
            },
            "description": "The customer's statement for a period: opening balance, every line, closing balance and ageing. A payment appears once for the full amount received, with the invoices it was applied to nested beneath it and any unused balance shown. The office screen, the PDF and the e-mailed statement are built from the same data, so they always agree."
          }
        },
        {
          "name": "Customer statement as a PDF",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/statement/file",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "statement",
                "file"
              ]
            },
            "description": "The same statement drawn as a PDF on the company letterhead, ready to show or attach. The file is named for the period's end date, e.g. \"Statement 2026-11-30.pdf\"."
          }
        },
        {
          "name": "E-mail a statement now",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/statement/send",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "statement",
                "send"
              ]
            },
            "description": "Queues the customer's statement for the period to be e-mailed. It is queued, not sent inside the request: the sender retries on failure, and the message shows in the outbox and in sent mail. Omit to_address to send to the customer's own e-mail address.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-12-01\",\n  \"to\": \"2026-12-01\",\n  \"to_address\": \"string\"\n}"
            }
          }
        },
        {
          "name": "The customer's automatic statement setting",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/statement-delivery",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "statement-delivery"
              ]
            },
            "description": "Whether the customer receives statements automatically, how often, to which address, and when the next one goes. A customer who has never chosen is OFF."
          }
        },
        {
          "name": "Turn automatic statements on or off",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/statement-delivery",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "statement-delivery"
              ]
            },
            "description": "Sets how the customer receives statements: OFF, MONTHLY or WEEKLY, on which day, to which address, and whether to send when nothing is owed. Lets a customer switch automatic statements on for themselves from your app. The choice is recorded with the source system that made it, so it can be told apart from one made in the office.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"OFF\"\n}"
            }
          }
        },
        {
          "name": "Put the customer on a statement rule",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/:externalRef/statement-rule",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                ":externalRef",
                "statement-rule"
              ]
            },
            "description": "Puts the customer on one of the company's named statement schedules from GET /v1/statement-rules, exactly as ticking them onto it in the office does. rule_id null takes them off. The choice is recorded with the source system that made it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"rule_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}"
            }
          }
        },
        {
          "name": "The company's statement rules",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/statement-rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "statement-rules"
              ]
            },
            "description": "The named statement schedules the company has set up, for a customer to choose from. Put a customer on one with PUT /v1/customers/{externalRef}/statement-rule."
          }
        }
      ]
    },
    {
      "name": "Outbox",
      "item": [
        {
          "name": "What is waiting for you to send",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/outbox",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "outbox"
              ]
            },
            "description": "For a company whose sending mode is HANDBACK: its invoices are raised in your system, so they go out from your domain, which is the one its customers already know. ReconSmith picks the template, writes the subject and body in the customer's own language and renders the PDF; you send it. Poll this."
          }
        },
        {
          "name": "You have taken it",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/outbox/:id/collected",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "outbox",
                ":id",
                "collected"
              ]
            },
            "description": "Separate from sent, deliberately: marking it sent at the moment it was collected would record an outcome nobody knows yet. Safe to repeat."
          }
        },
        {
          "name": "You sent it",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/outbox/:id/sent",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "outbox",
                ":id",
                "sent"
              ]
            },
            "description": "This is what makes Sent mail true. \"Was that invoice sent, to whom, and when\" is a question the books have to answer whoever pressed the button; one that went out through your system and is invisible here is one nobody can prove was sent.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"providerId\": \"string\",\n  \"sentAt\": \"2026-12-01T10:00:00+02:00\"\n}"
            }
          }
        },
        {
          "name": "You could not send it",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/outbox/:id/failed",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "outbox",
                ":id",
                "failed"
              ]
            },
            "description": "",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"string\"\n}"
            }
          }
        },
        {
          "name": "The PDF attached to an outbox message",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/outbox/:id/pdf",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "outbox",
                ":id",
                "pdf"
              ]
            },
            "description": "The message's own attachment, drawn exactly as the built-in sender would attach it. Works for every kind of message, including ones with no document or customer reference, such as a remittance advice. GET /v1/outbox gives this path in a message's attachment field when it is the way to fetch the file."
          }
        }
      ]
    },
    {
      "name": "Purchases",
      "item": [
        {
          "name": "Post supplier bills in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/purchase-invoices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "purchase-invoices"
              ]
            },
            "description": "Calls rs.post_purchase_invoice: one balanced journal, an open-period check, and the payable account resolved from the party.\n\nUnlike /v1/invoices, supplier_doc_no IS required. A supplier's invoice number is theirs, not ours — we neither mint it nor control it, and it is what goes on the remittance so they can find the payment. Where a slip has no number of its own, send your external_ref.\n\nIdempotent on (source_system, external_ref): a repeat returns the existing document with created = false and posts nothing.\n\nTax: leave tax_code off a line and the posting function defaults to SRI, standard rated inputs, VAT201 box 14. For a purchase that carries no VAT — fuel in South Africa being the usual case — a zero-tax line is stamped with the entity's zero-rated input code instead (ZRI in South Africa, VOOR0 in the Netherlands). Send tax_code explicitly to override.\n\nDimensions are validated on BOTH the key and the value, and keys are case-sensitive. An unknown dimension or an unregistered value is refused and the whole bill fails. Create them with POST /v1/dimensions first.\n\nattachments (135): the supplier's own invoice can ride along on the bill. On a repeat (created = false) the attachments are still kept, so a file sent with a retry is not lost.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"external_ref\": \"string\",\n    \"supplier_doc_no\": \"string\",\n    \"doc_date\": \"2026-12-01\",\n    \"lines\": [\n      {\n        \"description\": \"string\",\n        \"amount_excl_tax\": 100\n      }\n    ]\n  }\n]"
            }
          }
        },
        {
          "name": "List the dimensions and values this entity accepts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/dimensions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "dimensions"
              ]
            },
            "description": "What a line may be tagged with. Worth reading before posting: a line carrying an unknown key or value is refused and the whole document fails."
          }
        },
        {
          "name": "Create dimensions and their values",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/dimensions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "dimensions"
              ]
            },
            "description": "Needed because dimensions are validated on both the key and the value. A new vehicle registration must exist here before a fuel bill carrying it will post.\n\nCodes are upper-cased: VEHICLE and vehicle are not the same dimension, and only the first exists.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"code\": \"VEHICLE\",\n    \"name\": \"Vehicle\",\n    \"values\": [\n      {\n        \"code\": \"JF 24 PV GP\"\n      }\n    ]\n  }\n]"
            }
          }
        },
        {
          "name": "Post supplier credit notes in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/purchase-credit-notes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "purchase-credit-notes"
              ]
            },
            "description": "A supplier's credit note: the same line shape as a purchase invoice (net amount and tax as the supplier printed them). The expense and input VAT are credited back and the supplier's payable is reduced.\n\nName the bill it credits with purchase_invoice_external_ref (your external_ref for that bill, same source_system, same supplier). It is applied to what is still open on that bill; anything over stays on the supplier's account as credit. Leave it out for a credit that is not against one bill.\n\nIdempotent on (source_system, external_ref): a repeat returns the existing credit note with created = false and posts nothing.\n\nsupplier_doc_no is required: the supplier's own credit-note number.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"external_ref\": \"string\",\n    \"supplier_doc_no\": \"string\",\n    \"doc_date\": \"2026-12-01\",\n    \"lines\": [\n      {\n        \"description\": \"string\",\n        \"amount_excl_tax\": 100\n      }\n    ]\n  }\n]"
            }
          }
        },
        {
          "name": "Add the supplier's own document to a bill already sent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/purchase-invoices/:externalRef/attachments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "purchase-invoices",
                ":externalRef",
                "attachments"
              ]
            },
            "description": "For a file that arrives after the bill, e.g. a photo taken later. Names the bill (or supplier credit note) by your external_ref. Same rules as inline attachments: PDF, PNG, JPEG or WebP, 8 MB per file, the same file kept once.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"file_name\": \"string\",\n    \"content_base64\": \"string\"\n  }\n]"
            }
          }
        }
      ]
    },
    {
      "name": "Remittances",
      "item": [
        {
          "name": "Record remittances: one payment for several invoices",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/remittances",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "remittances"
              ]
            },
            "description": "Records a payment the customer is about to make for several invoices under one remittance number of yours. That number is what the payer uses as the card payment's merchant reference or the EFT reference, so when the bank line or the gateway confirmation arrives it finds the remittance waiting and settles every invoice in it. An EFT needs no further call. The lines must add up to the total; with on_account the lines may add up to less (or be none), and the rest settles the customer's open invoices oldest due first. Recording a remittance number that already exists returns it with created false.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"remittance_no\": \"string\",\n    \"total\": 100,\n    \"lines\": [\n      {\n        \"invoice_external_ref\": \"string\",\n        \"amount\": 100\n      }\n    ]\n  }\n]"
            }
          }
        },
        {
          "name": "Where a remittance stands",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/remittances/:remittanceNo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "remittances",
                ":remittanceNo"
              ]
            },
            "description": "The remittance's status (OPEN, PAID or CANCELLED), method, total, when it was paid, and how many of its invoices are settled and how many are still waiting."
          }
        },
        {
          "name": "Cancel an open remittance",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/remittances/:remittanceNo/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "remittances",
                ":remittanceNo",
                "cancel"
              ]
            },
            "description": "The payer gave up. Marks an OPEN remittance CANCELLED with the reason, so a payment that later arrives under its number is not matched to it. A remittance already paid or cancelled cannot be cancelled.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"string\"\n}"
            }
          }
        },
        {
          "name": "Gateway says the remittance is paid",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/remittances/:remittanceNo/payment-confirmation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "remittances",
                ":remittanceNo",
                "payment-confirmation"
              ]
            },
            "description": "The gateway's word, not the bank's. Posts the receipt into that gateway's clearing account and spreads it across the remittance's invoices; the bank is untouched until the settlement arrives under the same reference. Idempotent on the gateway reference, so a retried webhook pays nothing twice. Needs a key with the money scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"gateway_code\": \"string\",\n  \"amount\": 100\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Items",
      "item": [
        {
          "name": "Products and services",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/items",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "items"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "Create or update products",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/items",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "items"
              ]
            },
            "description": "A list. Matched by external_ref (your id) when sent, else by code. Keys: code, name, description, unit, sells, sales_price, sales_account_code, sales_tax_code, buys, purchase_price, purchase_account_code, purchase_tax_code, is_active, external_ref. A key not sent leaves the field alone. An invoice line names a product with item_code.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {}\n]"
            }
          }
        }
      ]
    },
    {
      "name": "Staff and payroll",
      "item": [
        {
          "name": "Create or update an employee",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/employees/:externalRef",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "employees",
                ":externalRef"
              ]
            },
            "description": "PUT, not POST: you name the person, so the same call repeated is the same person and no Idempotency-Key is needed. null leaves a field alone — a caller that does not hold salaries sends a null gross on every sync, and a null that overwrote would zero the payroll.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"email\": \"string\",\n  \"employeeNo\": \"string\",\n  \"startedOn\": \"2026-12-01\"\n}"
            }
          }
        },
        {
          "name": "The kinds of leave this company has",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/leave-types",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "leave-types"
              ]
            },
            "description": "ReconSmith's codes, not yours. Seeded from the company's country — for South Africa, the BCEA minimums — and editable, because a contract may give more and never less."
          }
        },
        {
          "name": "What this person has left",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/employees/:externalRef/leave",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "employees",
                ":externalRef",
                "leave"
              ]
            },
            "description": "Worked out every time from accrual, adjustments and leave taken. Never a stored number. Cycles run from the person's start date: somebody who started in March has an annual cycle ending in February."
          }
        },
        {
          "name": "Record approved leave",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/employees/:externalRef/leave",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "employees",
                ":externalRef",
                "leave"
              ]
            },
            "description": "You own the request and the approval; this records what was taken. Idempotent on externalRef, so a retry after a timeout cannot deduct the same week twice — the second post returns the same leaveId with created = false. days is sent, never derived: ReconSmith does not know your working week, shift patterns or public holidays.\n\nunpaid_days (136): with code ANNUAL, days - unpaid_days come off the annual balance and unpaid_days are recorded as unpaid leave (external_ref + '-UNPAID'). The answer carries annual_days, unpaid_days, recounted and recount_note.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"externalRef\": \"string\",\n  \"code\": \"string\",\n  \"firstDay\": \"2026-12-01\",\n  \"lastDay\": \"2026-12-01\",\n  \"days\": 100\n}"
            }
          }
        },
        {
          "name": "An approval that was withdrawn",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/employees/:externalRef/leave/:leaveRef/reverse",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "employees",
                ":externalRef",
                "leave",
                ":leaveRef",
                "reverse"
              ]
            },
            "description": "Reversed, never deleted. The person asked, it was approved, and then it was cancelled — all three happened and all three stay on the record. Safe to repeat.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"string\"\n}"
            }
          }
        },
        {
          "name": "Which payslips this person has",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/employees/:externalRef/payslips",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "employees",
                ":externalRef",
                "payslips"
              ]
            },
            "description": "Only issued ones. A draft pay run has no payslip, deliberately: it would put a figure in somebody's hands that the ledger has never seen."
          }
        },
        {
          "name": "The payslip as a PDF",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/payslips/:id/file",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payslips",
                ":id",
                "file"
              ]
            },
            "description": "The official one, on the company's letterhead, carrying the leave balances as they stood at the end of that period. Proxied to the single renderer for the same reason the tax invoice is: a payslip somebody may have to show a bank or a landlord must not have two appearances."
          }
        },
        {
          "name": "One person's hours for one pay period",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/employees/:externalRef/hours/:periodRef",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "employees",
                ":externalRef",
                "hours",
                ":periodRef"
              ]
            },
            "description": "PUT, so idempotent: the same period sent again replaces it (an office correction). Once a posted pay run covers any of its dates, it is refused with 409.\n\nHow the pay run uses the days (South Africa, BCEA): the standing pay covers the ordinary hours of rostered days. On top of it: hours over the ordinary day (9) on a rostered day at 1.5x, or the day's multiplier if higher; the ordinary hours of a rostered Sunday or public holiday carry the extra (multiplier - 1); every hour of a rest day worked (rostered = false or rest_day_worked = true) at 1.5x or the multiplier if higher. Hourly rate = standing pay x periods a year / 52 / 45.\n\nUnknown fields on a day are kept, not refused.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"period_from\": \"2026-12-01\",\n  \"period_to\": \"2026-12-01\",\n  \"days\": [\n    {\n      \"date\": \"2026-12-01\",\n      \"hours\": 100\n    }\n  ]\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Reconciliation",
      "item": [
        {
          "name": "Reconciliation suggestions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/bank-transactions/:id/suggestions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "bank-transactions",
                ":id",
                "suggestions"
              ]
            },
            "description": "Ranked candidates with the features that produced each score. Layers: exact reference, exact amount, learned memory, fuzzy name. Nothing here posts anything."
          }
        },
        {
          "name": "Bank lines awaiting review",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/recon/queue",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "recon",
                "queue"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "Accept a suggestion",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/match-candidates/:id/accept",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "match-candidates",
                ":id",
                "accept"
              ]
            },
            "description": "Writes the match and teaches the matcher. Every other candidate on that line is recorded as rejected — the negative training signal."
          }
        },
        {
          "name": "Reject a suggestion",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/match-candidates/:id/reject",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "match-candidates",
                ":id",
                "reject"
              ]
            },
            "description": ""
          }
        }
      ]
    },
    {
      "name": "Reading the books",
      "item": [
        {
          "name": "Statement with settlement trace",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/accounts/:code/statement",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "accounts",
                ":code",
                "statement"
              ]
            },
            "description": "Each payment line carries settlement_trace: which invoices it settled, for how much, and the branch number for chain customers."
          }
        },
        {
          "name": "Aged analysis",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/accounts/:code/aged",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "accounts",
                ":code",
                "aged"
              ]
            },
            "description": "Ages off due_date, which honours the billing party's terms basis. Statement-terms customers age as one block."
          }
        },
        {
          "name": "Unsettled documents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/accounts/:code/open-items",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "accounts",
                ":code",
                "open-items"
              ]
            },
            "description": ""
          }
        },
        {
          "name": "Change feed",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/changes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "changes"
              ]
            },
            "description": "Everything that moved since a cursor. One call instead of polling six endpoints. Cursor-paged, because offsets shift under concurrent writes and a syncing client silently skips rows."
          }
        }
      ]
    },
    {
      "name": "Service",
      "item": [
        {
          "name": "Liveness and database reachability",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ]
            },
            "description": "",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "This API description",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/openapi.json",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "openapi.json"
              ]
            },
            "description": "The OpenAPI document for this API. Needs no key, so an integrator can read it before being issued one.",
            "auth": {
              "type": "noauth"
            }
          }
        }
      ]
    }
  ]
}