Purchasing

Void a bill

purchasing_void_bill · Deletes data · Markdown

Voids a bill entered by mistake; the books reverse it and its order can be billed again.

$0.01 a call

From your agent’s balance. A call that fails costs nothing.

An example

The bill from Kühlmann was entered twice. Void the second one.

Your agent callspurchasing_void_bill$0.01 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "bill_id": "3c5e7a9b-1d2f-4a6c-8e0b-4d6f8a1c3e5b",
  "reason": "Entered twice"
}
What comes back
{
  "bill": {
    "bill_id": "3c5e7a9b-1d2f-4a6c-8e0b-4d6f8a1c3e5b",
    "supplier": {
      "supplier_id": 4101,
      "name": "Nordstahl Küchentechnik GmbH"
    },
    "reference": "NS-2026-1188",
    "status": "void",
    "overdue": false,
    "days_overdue": 0,
    "currency": "EUR",
    "issue_date": "2026-10-13",
    "due_date": "2026-11-12",
    "total": "462.50",
    "amount_paid": "0.00",
    "balance": "462.50",
    "order": "PO-0001",
    "lines": [
      {
        "description": "GN 1/1 pan, steel, 65 mm",
        "sku": "GN-PAN-11",
        "account": null,
        "quantity": "25",
        "unit_cost": "18.5",
        "tax_rate": "0",
        "amount": "462.50",
        "tax": "0.00",
        "order_line": 1
      }
    ],
    "subtotal": "462.50",
    "tax": "0.00",
    "tax_treatment": null,
    "order_id": "3bda91d7-9e1f-45fc-b19c-40ca804f08c3",
    "payments": [],
    "file": {
      "file_id": "5255b298-5bc2-4132-967d-71f6ca5a2ce7",
      "name": "NS-2026-1188.pdf",
      "content_type": "application/pdf",
      "size": "1.1 KB",
      "size_bytes": 1147,
      "sha256": "24cfafaca922f96f27862a78624077499c6933a1caf04ba986e83cc228a836c3",
      "created_at": "2026-10-14T08:00:00+00:00",
      "download_url": "https://cncto.co/d/5255b298-5bc2-4132-967d-71f6ca5a2ce7?t=eyJmIjoiNTI1NWIyOTgtNWJjMi00MTMyLTk2N2QtNzFmNmNhNWEyY2U3IiwiZXhwIjoxNzkyNDgxMDUzfQ:1xIhjB:ZVS5_Brr83vCBqq8kDy3U-LoRQIeESCsJQb34oI1wiw",
      "link_expires_in_hours": 24
    },
    "notes": null,
    "books_entry": 1,
    "void_reason": "Entered twice",
    "history": [
      {
        "at": "2026-10-14T08:00:00+00:00",
        "event": "recorded",
        "detail": "Pip",
        "by": "key 4101 (Pip)"
      },
      {
        "at": "2026-10-14T08:00:00+00:00",
        "event": "voided",
        "detail": "Entered twice",
        "by": "key 4101 (Pip)"
      }
    ]
  }
}

Use it when

A bill was entered twice or replaced.

What it does

Void a bill entered by mistake (or replaced): refused while money is recorded as paid on it (record the refund first). The quantities it billed on its order can be billed again; the books reverse it.

What comes back

bill: the bill, now void. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
bill_idRequiredstringThe bill_id purchasing_create_bill returned. Exactly 36 characters.
reasonstringUp to 500 characters.

The call

Over MCP, call purchasing_void_bill on https://api.conecto.chat/mcp/purchasing. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/purchasing_void_bill \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bill_id":"3c5e7a9b-1d2f-4a6c-8e0b-4d6f8a1c3e5b","reason":"Entered twice"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No bill of the business has that bill_id.Find it with purchasing_list_bills.
already_void409The bill is void already.Nothing to do.
has_payments409Money is recorded as paid on it.Record the refund (a negative payment) first.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md