Get Transaction
GET /transactions/:id
Section titled “GET /transactions/:id”Retrieve a transaction by its unique identifier.
Path Parameters
Section titled “Path Parameters”id(string, required) - The transaction ID
Headers
Section titled “Headers”Authorization: Bearer YOUR_API_KEYResponse
Section titled “Response”{ "data": { "id": "txn_123abc", "status": "completed", "service": "openai", "action": "completion", "resource": "gpt-4", "createdAt": "2025-01-15T10:30:00Z", "updatedAt": "2025-01-15T10:30:05Z", "completedAt": "2025-01-15T10:30:05Z" }, "status": "success"}Example
Section titled “Example”curl -X GET \ https://api.sapiom.com/v1/transactions/txn_123abc \ -H 'Authorization: Bearer YOUR_API_KEY'