Skip to main content

User Invoice

This model represents user invoice.

PropertyTypeDescriptionInformation
idintIdentifierUnique for single user invoice.
user_idintIdentifierForeign key to user table.
monthintMonth number--
yearintYear--
invoice_receivedboolInvoice received stateTrue if invoice has been uploaded, false if not.
file_idboolIdentifiedForeign key to file table.
invoice_not_received_notifiedboolInvoice not received notification stateTrue if notification has been sent, false if not.
user_commentstringUser's commentComment of User
notestringNote of AdminInternal note of Admin
created_atDateTimeUser Invoice creation date and timeRead-only.
updated_atDateTimeUser Invoice update date and timeRead-only.

Example:

{
"id": 3,
"user_id": 1,
"month": 6,
"year": 2023,
"invoice_received": false,
"file_id": 1,
"invoice_not_received_notified": true,
"user_comment": "Hello",
"note": null,
"created_at": "2023-07-25T13:37:56+0200",
"updated_at": "2023-07-25T14:17:32+0200",
"_links": [
{
"href": "/api/v0/user-invoices/3",
"rel": "self",
"type": "GET"
}
]
}