GET
/merchants/{id}/transactions/{transaction_id}
Get a single transaction
Merchants
Description
Retrieve detailed information about a specific transaction.
Authentication Required: User must be authenticated and have the 'merchant' feature flag.
Authorization: Merchant users can only view transactions for their own merchant account.
Parameters
id
integer
path
required
Merchant ID
transaction_id
integer
path
required
Transaction ID
Responses
200
Successful response
application/jsonstatusstring
Example:
successdataobject
Example:
{
"status": "success",
"data": {
"id": "8MIZ2XUMFV7",
"tracking_id": "3B01WYNUGO1R4G20",
"basket_price": 129.99,
"affiliate_id": 42,
"basket_items": [
{
"id": 1,
"name": "Laptop Stand",
"ean": "1234567890123",
"price": 49.99,
"quantity": 2,
"commission_rate": 10.0,
"status": "accepted"
},
{
"id": 2,
"name": "Wireless Mouse",
"ean": "9876543210987",
"price": 80.0,
"quantity": 1,
"commission_rate": 12.5,
"status": "accepted"
}
],
"status": "accepted",
"total_commission": 20.0,
"reward": "pending",
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:30:00Z"
}
}
401
Authentication required
application/jsonExample:
{
"status": "error",
"message": "Not authenticated or insufficient permissions"
}
404
Merchant or Transaction not found
application/json
500
Internal server error
application/jsonstatusstring
Example:
errormessagestring
Example:
Failed to fetch transactionerrorstring
Example:
Database connection failed