Upload an expense document for a transaction
POST/api/transactions/:id/expense-upload
This endpoint uploads an expense document for an existing transaction.
Prerequisites:
To use this endpoint you need to have the ACCOUNTING scope for the API Key. Please contact your relation manager to get this permission.
Eligibility: The transaction type must be enabled in the business partner expense settings targets.
Request
Path Parameters
id stringrequired
Transaction identifier
Header Parameters
Unique-Request-Id string
Possible values: <= 50 characters
An optional unique identifier for the request, limited to 50 characters. Used to track requests and prevent duplication.
- multipart/form-data
Body
required
file binaryrequired
Responses
- 201
- 400
- 401
- 403
Created - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
id string
name stringnull
mimeType string
transactionId integernull
createdAt string
Datetime of the creation in format Y-m-d H:i:s.
{
"id": 1,
"name": "document.pdf",
"mimeType": "application/pdf",
"transactionId": "1",
"createdAt": "2027-11-22 13:00:00"
}
Bad Request -- Your request is invalid.
- application/json
- Schema
- Example (from schema)
Schema
detail string
title string
{
"detail": "The `file` parameter is required.",
"title": "An error occurred"
}
Unauthorised -- Your access token is wrong.
- application/json
- Schema
- Example (from schema)
Schema
type string
title string
detail string
{
"type": "string",
"title": "string",
"detail": "string"
}
Forbidden -- Access to the requested resource or action is forbidden.
- application/json
- Schema
- Example (from schema)
Schema
type string
title string
detail string
{
"type": "string",
"title": "string",
"detail": "string"
}
Loading...