| GET | /eaccounting/summarizedinvoice/{Id} | Get a single summarized invoice by id | Returns the summarized invoice details including associated booking ids. |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
<ValidateRequest(Validator:="IsAuthenticated")>
Public Partial Class GetSummarizedInvoice
Implements ICompany
'''<Summary>
'''The summarized invoice id.
'''</Summary>
<ApiMember(Description:="The summarized invoice id.", IsRequired:=true)>
Public Overridable Property Id As Guid
'''<Summary>
'''The company id, if empty will use the company id for the user you are logged in with.
'''</Summary>
<ApiMember(Description:="The company id, if empty will use the company id for the user you are logged in with.")>
Public Overridable Property CompanyId As Guid? Implements ICompany.CompanyId
End Class
Public Partial Class SummarizedInvoiceDetailResponse
Public Overridable Property Id As Guid
Public Overridable Property CompanyId As Guid
Public Overridable Property CustomerId As Guid
Public Overridable Property CustomerName As String
Public Overridable Property EAccountingInvoiceId As String
Public Overridable Property Draft As Boolean
Public Overridable Property DateFrom As Date
Public Overridable Property DateTo As Date
Public Overridable Property ServiceId As Integer?
Public Overridable Property Status As Integer
Public Overridable Property StatusName As String
Public Overridable Property ErrorMessage As String
Public Overridable Property BookingIds As List(Of Integer) = New List(Of Integer)
Public Overridable Property CreatedDate As Date
Public Overridable Property UpdatedDate As Date
End Class
End Namespace
End Namespace
VB.NET GetSummarizedInvoice DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eaccounting/summarizedinvoice/{Id} HTTP/1.1
Host: api.bokamera.se
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"CustomerName":"String","EAccountingInvoiceId":"String","Draft":false,"ServiceId":0,"Status":0,"StatusName":"String","ErrorMessage":"String","BookingIds":[0]}