Invoices
Get invoices by user ID
Retrieves all invoices associated with a specific user, including those without an uploaded PDF (fileUrl is null in that case).
get/users/{userId}/invoices
Request
- Base URLhttps://connect.clever.gy
- AuthAPI key in header clevergy-api-key
Path parameters
userIdstring required
ID of the user whose invoices to retrieve
Response
List of invoices retrieved successfully
Example response
[
{
"id": "invoice-123",
"issueDate": "2023-01-15",
"invoicePeriodFrom": "2023-01-01",
"invoicePeriodTo": "2023-01-31",
"type": "ELECTRICITY",
"cost": 125.5,
"contractId": "contract-123",
"externalId": "ext-456",
"concepts": {
"energy": "75.20",
"taxes": "15.30",
"fixed": "35.00"
},
"fileUrl": "https://example.com/invoices/detail/123",
"obtainMethod": "REAL",
"totalEnergyConsumption": 350.75,
"paymentDate": "2023-02-01",
"paymentStatus": "PAID"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.