Skip to main content

Get Transaction Details

Use this endpoint to retrieve a transaction by its unique ID. It returns the transaction details (amount, currency, lifecycle state, external reference, parties, timestamps) and is useful for manual verification. Invoke it from the Merchant Backend to the Zastrpay Backend as follows:

GET https://host.com/transaction-service/v1/transactions/{trxId}
Content-Type: application/json
x-api-key: $apiKey

Zastrpay Backend will answer with the following response:

200 OK

{
"id": "75ee2f08-8d05-4a05-901c-31c3f6e45327",
"type": "CustomerToMerchantTransfer",
"amount": 100,
"currency": "EUR",
"state": "Completed",
"externalReference": "ext-ref-101",
"customerId": "04c384af-fb97-4069-bdd5-65dfc6fd477c",
"merchantId": "d1637091-0605-4a64-aae0-0b77ff777971",
"createdOn": "2025-10-07T15:51:15.559Z",
"lastModifiedOn": "2025-10-07T15:51:15.701Z",
}

See Get Transaction By Id API Reference for more information.