Delete an expense document from a transaction
DELETE/api/transactions/:transactionId/documents/:documentId
This endpoint deletes an expense document from 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.
Restrictions:
Only expense documents belonging to the given transaction can be deleted, and completed expenses do not allow document deletion.
Request
Path Parameters
transactionId stringrequired
Transaction identifier
documentId stringrequired
Document identifier
Responses
- 204
- 400
- 401
- 403
OK - The request was processed successfully but no content to return.
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Bad Request -- Your request is invalid.
- application/json
- Schema
- Example (from schema)
Schema
detail string
title string
{
"detail": "Document not deletable for completed expense.",
"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...