Retrieve a single card transaction information
GET/api/card_transaction_details/:id
This API endpoint allows you to retrieve detailed information about a specific card transaction, making it a valuable tool for accessing precise transaction details in your system.
Request
Path Parameters
id stringrequired
CardTransactionDetail 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
originalCurrency string
originalAmount string
type string
Possible values: [authorization, transaction, reversal]
executionDate string
settlementDate stringnull
status string
Possible values: [executed, pending]
card object
id integer
name string
pan4 string
merchant object
id integer
name string
country string
mccCode 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
comment stringnull
vat string[]deprecated
vats object[]
expenseVat integernull
rate string
amount string
grossAmount string
externalId stringnull
createdAt string
updatedAt string
magicLinkUrl stringnull
error string[]
{
"id": 1,
"currency": "CHF",
"amount": "100.00",
"originalCurrency": "CHF",
"originalAmount": "100.00",
"type": "transaction",
"executionDate": "2023-01-01T00:00:00+00:00",
"settlementDate": "2023-01-01T00:00:00+00:00",
"status": "executed",
"card": {
"id": 1,
"name": "Example Card Name",
"pan4": "1234"
},
"merchant": {
"id": 1,
"name": "Example Merchant Name Italy",
"country": "IT",
"mccCode": "1234"
},
"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"
},
"comment": "Travel expense",
"vats": [
{
"expenseVat": 1,
"rate": "5",
"amount": "20",
"grossAmount": "120",
"externalId": "vat-5"
}
],
"createdAt": "2023-01-01T00:00:00+00:00",
"updatedAt": "2023-01-01T00:00:00+00:00",
"magicLinkUrl": "https://app.amnis.com/expenses-public/4cb001f8-2b57-4b4a-8d2c-7d1a2f3b4c5d",
"error": {
"key": "card.expired",
"message": "Card expired"
}
}
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...