Get expense document information
GET/api/documents/:id
This API endpoint has been purposefully crafted to get expense document details.
Request
Path Parameters
id stringrequired
Document identifier
Responses
- 200
- 401
- 403
- 404
OK - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
id string
name stringnullable
mimeType string
transactionId integernullable
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"
}
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"
}
Not Found -- The requested resource could not be found.
- application/json
- Schema
- Example (from schema)
Schema
title stringnullable
A short, human-readable summary of the problem.
detail stringnullable
A human-readable explanation specific to this occurrence of the problem.
status numbernullable
Default value: 400
instance stringnullable
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
type string
A URI reference that identifies the problem type
{
"title": "string",
"detail": "string",
"status": 400,
"instance": "string",
"type": "string"
}
Loading...