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.
File requirements:
- One file per request, sent in the file field.
- Allowed file types: PDF, JPG/JPEG, PNG (application/pdf, image/jpg, image/jpeg, image/png).
- Maximum file size: 12MB.
- A transaction can hold at most 3 expense documents, including documents already attached.
Request
Responses
- 201
- 400
- 401
- 403
- 422
Created - The request was processed successfully.
Bad Request -- Your request is invalid.
Unauthorised -- Your access token is wrong.
Forbidden -- Access to the requested resource or action is forbidden.
Unprocessable Content -- We could not process your request due to invalid data provided.