Skip to main content
POST
/
v1
/
invoices
/
upload-url
Request a presigned URL to upload an invoice
curl --request POST \
  --url https://api.example.com/v1/invoices/upload-url \
  --header 'Content-Type: application/json' \
  --data '
{
  "fileName": "<string>",
  "fileSize": 123
}
'
{
  "invoiceId": "<string>",
  "uploadUrl": "<string>"
}

Body

application/json
fileName
string
required

Original file name of the invoice

fileSize
number
required

File size in bytes (max 10MB)

mimeType
enum<string>
required
Available options:
application/pdf,
image/jpeg,
image/png

Response

invoiceId
string
required

Invoice UUID — use for confirm + get calls

uploadUrl
string
required

Presigned PUT URL valid for 3 minutes