Get revenue by ID
Retrieve a revenue record by its unique identifier.
GET
/v1/revenues/{id}AuthorizationBearer <token>
In: header
Path Parameters
idstring
Unique identifier of the revenue record
Response Body
application/json
curl -X GET "https://api.getlens.ai/v1/revenues/RZJZTK6owKxeMELu3cGWWc"{
"id": "RZJZTK6owKxeMELu3cGWWc",
"key": "revenue-2024-01-001",
"amount": "99.99",
"source": "Manual",
"agentKey": "support-agent",
"customerKey": "customer-abc",
"goalId": "MNOPQR123456789012345678",
"description": "Payment received for service",
"recordedAt": "2024-01-15T10:30:00.000Z",
"createdAt": "2024-01-15T10:30:00.000Z"
}