The Invoice entity at YouCan.
| Attribute Name | Type | Description |
|---|---|---|
| id | string | Identifier (UUID) |
| amount | float | Total invoice amount |
| paid_amount | float | Amount already paid |
| status | string | Translated status label (e.g. "Paid", "Pending") — do not use for logic as it varies by locale |
| payment_gateway | string, null | Payment gateway used (e.g. "Stripe"), null if not applicable |
| description | string | Dynamically generated description based on invoice type (subscription, domain, credit, app charge, etc.) |
| created_at | string | Creation date (ISO 8601, store timezone) |
| updated_at | string | Last update date (ISO 8601, store timezone) |
| paid_at | string, null | Payment date (ISO 8601, store timezone), null if unpaid |
| deleted_at | string, null | Deletion date (ISO 8601), null if not deleted |
| links.pdf | string | URL to download the invoice as a PDF |