# QR bills for every member of a club: one PDF from the member list

A treasurer has a list of members and must bill each one. This turns the list into one PDF: per member a letter and a Swiss QR bill (payment part and receipt to the SIX guidelines), ready to print. For clubs, schools, landlords and anyone who bills many people at once. Up to 300 members an order.

- Product on PazAIr: Kula Labs' listing for the tool `bulk_collection`, listing `ls_1g5u5d6m3o6s2o5`.
- Price: CHF 19.00 an order, whatever the number of members. Paid by card through Stripe; the card is authorised first and charged only once the file was delivered.
- Free: a sample. Every address is checked, the first 2 bills are built and marked as a sample.
- Nothing is sent to members or to a bank, and whether a member paid is not checked. Terms: https://pazair.ch/terms (2h, 2l). Privacy: https://pazair.ch/privacy.

## Your principal would rather do it by hand

Give them this page: https://pazair.ch/qr-bills
They paste the list from Excel or pick an .xlsx or CSV file, see every line that would get no bill, look at the free sample and pay by card. No account.

## You do it for them

MCP: https://pazair.ch/mcp. The same over HTTPS: POST https://pazair.ch/v1/try, POST https://pazair.ch/v1/agents, POST https://pazair.ch/v1/orders, GET https://pazair.ch/v1/orders/{id}.

1. Find it: `ask_market {"goal": "QR bills for all members of a club"}` (free, no key; ask in your principal's language), then `get_listing {"listing_id": "ls_1g5u5d6m3o6s2o5"}` for the input schema.
2. Sample, free, no key: `try_free {"listing_id": "ls_1g5u5d6m3o6s2o5", "input": <input>}`. In the answer, `result.result.qr_bills` holds `pdf_base64` (the first 2 bills), `skipped` (every member whose address or amount fails the rules of the QR bill, with the reason) and `whole_file.deliverable` (whether the whole order can be delivered). Show your principal the sample and the skipped lines before anything is bought.
3. Buy, with a key (`register_agent {"name": "...", "accept_terms": true}`, free, one call): `buy {"listing_id": "ls_1g5u5d6m3o6s2o5", "input": <input>, "dry_run": true}` checks the input and charges nothing; the same call without `dry_run` returns `order_id` and `pay_url`. Your principal pays there by card.
4. Deliver: `get_order {"order_id": "..."}`. Once `order.status` is `delivered`, `order.delivery.result.qr_bills.pdf_base64` is the PDF and `order.delivery.result.qr_bills.bills` lists page, name, amount and reference of each bill. Hand over both: the list is how the treasurer sees who paid.

## Input that works as it stands

```json
{
  "qr_bills": {
    "creditor": {
      "name": "Turnverein Beispiel",
      "street": "Sportweg 4",
      "postal_code": "8304",
      "town": "Wallisellen",
      "iban": "CH9300762011623852957"
    },
    "subject": "Mitgliederbeitrag 2027",
    "language": "de",
    "auto_reference": true,
    "debtors": [
      {
        "name": "Anna Muster",
        "street": "Bahnhofstrasse 12",
        "postal_code": "8304",
        "town": "Wallisellen",
        "amount": 120
      },
      {
        "name": "Beat Beispiel",
        "street": "Seeweg 3a",
        "postal_code": "8001",
        "town": "Zürich",
        "amount": 85.5
      }
    ]
  }
}
```

- `creditor.iban`: a Swiss or Liechtenstein IBAN or QR-IBAN.
- `debtors`: 1 to 300. `name`, `postal_code` and `town` are needed; `street` completes the address for a window envelope; `amount` may be left out (the member fills it in); `country` when not CH; `message` up to 140 characters.
- `auto_reference: true`: every bill gets its own reference (a creditor reference RF… for a normal IBAN, a QR reference for a QR-IBAN). It stands on the bill, in `bills` and later in the e-banking next to each payment.
- `subject`, `text` (the letter; {name}, {amount} and {currency} are filled in), `language` (de, fr, it, en), `currency` (CHF, EUR), `date`.
- The input of one order may hold up to 120,000 characters.
- The same tool also builds a SEPA direct debit file (pain.008) for EUR accounts with a mandate: `direct_debit`, see the input schema.

## What people call it

Mitgliederbeiträge einziehen, Jahresbeitrag, Mitgliederrechnungen, QR-Rechnung für alle Vereinsmitglieder, Serienbrief mit QR-Rechnung, Sammelrechnung, Vereinskasse, Kassier · cotisations des membres, factures QR pour une association, publipostage avec facture QR · quote sociali, fatture QR per un'associazione · membership fees, QR invoices for a club, mail merge with a Swiss QR bill.
