Update Receipt
update_receiptEdit a receipt, set category and purpose, add files, and preview or submit changes to finish a Wint card receipt draft.
Instructions
Edit a receipt and optionally submit it, e.g. to finish a Wint card receipt draft: set category and purpose, add the receipt file, then submit. Without confirm it only returns a preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| submit | No | true: send the receipt in for booking (sign it), as the Skicka in button does. false: only save | |
| comment | No | Internal note | |
| company | No | Company id or name; may be omitted with one company | |
| confirm | No | false: preview only. true: apply, only after the user explicitly approved the preview | |
| 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 | No | Category name or id, see get_receipt_options | |
| currency | No | e.g. SEK, USD, EUR | |
| file_url | No | https link to a PDF or image to add | |
| file_name | No | ||
| receipt_id | Yes | ||
| upload_ids | No | Files to add, from upload_document | |
| file_base64 | No | File to add, as base64 (max 10 MB) | |
| purchase_date | No | YYYY-MM-DD | |
| supplier_name | No | ||
| remove_attachment_ids | No | Attachment ids to delete, from get_receipt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||