GET api/Invoice/{id}?user={user}
Return invoice specified by id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Id of the invoice |
integer |
Required |
| user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
An invoice on success
Collection of errors on failure
Return codes
200 - ok
300 - ambiguous
400 - bad request
401 - unauthorized
404 - not found
500 - internal server error
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Invoice id |
integer |
None. |
| TransactionId |
Transaction id |
string |
None. |
| Contents |
Invoice |
string |
None. |
| InvoiceDate |
Invoice date |
date |
None. |
| TotalTTC |
Total TTC of the transaction |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"TransactionId": "sample string 2",
"Contents": "sample string 3",
"InvoiceDate": "2025-12-13T16:31:54.6890145+01:00",
"TotalTTC": 5.0
}
application/xml, text/xml
Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Invoice"> <Contents>sample string 3</Contents> <Id>1</Id> <InvoiceDate>2025-12-13T16:31:54.6890145+01:00</InvoiceDate> <TotalTTC>5</TotalTTC> <TransactionId>sample string 2</TransactionId> </Invoice>