create_upload
Get a one-hour signed upload URL for a logo file (PNG, JPEG or SVG, up to 2 MB; a PNG or JPEG at most 2 megapixels) that sits on disk. PUT the raw bytes to upload_url with a Content-Length header, then pass file_id as make_receipt's logo.file_id. Free. Make receipts only for lawful purposes, such as replacing a lost receipt, bookkeeping, testing or design mockups. Using a receipt to deceive anyone, including for refunds, expense claims or proof of purchase, is prohibited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Exact size of the file you will upload, in bytes (at most 2 MB) | |
| filename | No | Original file name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| file_id | Yes | ||
| max_bytes | Yes | ||
| expires_at | Yes | ||
| upload_url | Yes |