Create Receipt
create_receiptCreate and submit a new receipt for an out-of-pocket expense; returns a preview unless confirmed. Use for costs paid with your own money, not Wint card drafts.
Instructions
Send in a new receipt, as "Lägg till dokument" → Kvitto does, e.g. for something paid with your own money (paid back to you by Wint). Wint card purchases already have a draft: use update_receipt for those. Without confirm it only returns a preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| comment | No | ||
| company | No | Company id or name; may be omitted with one company | |
| confirm | No | ||
| persons | No | For representation: [{name, company}] of everyone who took part | |
| purpose | No | Only for categories that have it in Wint: representation (syfte) and Övrigt-type categories (förklaring). Other categories have no purpose field | |
| category | Yes | Category name or id, see get_receipt_options | |
| currency | No | SEK | |
| file_url | No | ||
| file_name | No | ||
| upload_ids | No | ||
| file_base64 | No | ||
| purchase_date | Yes | YYYY-MM-DD | |
| supplier_name | No | ||
| payment_method | No | Name or id from get_receipt_options; default: your own-expense method (eget utlägg) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||