Retrieve a single account transaction
GET/api/transactions/:id
This API endpoint is tailored to retrieve detailed information about an individual transaction, serving as a valuable tool for accessing specific transaction data within your system.
Request
Path Parameters
id stringrequired
Transaction identifier
Responses
- 200
- 401
- 403
- 404
OK - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
id integer
currency string
amount string
type string
Possible values: [fee, payin, payout, peer, fx, card]
executionDate string
executed boolean
createdAt string
updatedAt string
account integer
transactionDetailId integernull
tags string[]
documents object
id integer
name string
mimeType string
expenseCategory object
id integer
name string
accountingAccountNumber string
externalId string
expenseCostCenter object
id integer
name string
number string
vat string[]deprecated
vats object[]
expenseVat stringnull
rate string
amount string
grossAmount string
externalId stringnull
comment stringnull
expenseCompletedAt stringnull
magicLinkUrl stringnull
contact object
id integer
{
"id": "1",
"currency": "CHF",
"amount": "100.00",
"type": "payin",
"executionDate": "2023-01-01T00:00:00+00:00",
"executed": true,
"createdAt": "2023-01-01T00:00:00+00:00",
"updatedAt": "2023-01-01T00:00:00+00:00",
"account": 1,
"transactionDetailId": 1,
"tags": [
"tag1",
"tag2"
],
"documents": {
"id": "1",
"name": "example_document.jpg",
"mimeType": "image/jpeg"
},
"expenseCategory": {
"id": "1",
"name": "Travel expense",
"accountingAccountNumber": "123456",
"externalId": "abcefg"
},
"expenseCostCenter": {
"id": "1",
"name": "Travel expense",
"number": "123456"
},
"vats": [
{
"expenseVat": "/api/expense_vats/1",
"rate": "5",
"amount": "20",
"grossAmount": "120",
"externalId": "vat-5"
}
],
"expenseCompletedAt": "2023-01-01T00:00:00+00:00",
"magicLinkUrl": "https://app.amnis.com/expenses-public/4cb001f8-2b57-4b4a-8d2c-7d1a2f3b4c5d",
"contact": {
"id": "1"
}
}
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.
Loading...