Skip to main content
POST
Create vendor payroll document upload

Authorizations

Authorization
string
header
required

API key authentication. Include your access token as: Authorization: Basic <ACCESS_TOKEN>

Headers

Idempotency-Key
string
required

Unique key for idempotent write requests.

Body

application/json
company_id
string
required

Company ID that the vendor document is being uploaded for.

filename
string
required

Original invoice file name.

Example:

"invoice-1001.pdf"

content_type
enum<string>
required

MIME type for the invoice file. Only PDF uploads are supported.

Available options:
application/pdf

Response

200 - application/json

Vendor payroll document upload session created.

invoice_upload_id
string

Upload ID to pass on the vendor payroll payment item.

upload_url
string<uri>

Presigned URL for uploading the invoice file.

headers
object

Headers to include when uploading the file.

temp_s3_key
string

Temporary object key for the uploaded invoice.

expires_at
string<date-time>

Time when the upload session expires.