BokaMera.API.Host

<back to all web services

PreviewSummarizedInvoice

Requires Authentication
The following routes are available for this service:
GET/eaccounting/summarizedinvoice/previewPreview eligible bookings for summarized invoicingReturns the customers and booking counts that would be included in a summarized invoice run, without actually creating anything.
PreviewSummarizedInvoice Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
DateFromqueryDateTimeYesStart date for the booking range to include.
DateToqueryDateTimeYesEnd date for the booking range to include.
CustomerIdqueryGuid?NoOptional customer id filter.
ServiceIdqueryint?NoOptional service/event id filter.
BookingStatusIdsqueryList<int>NoOptional list of booking status ids to include. If empty, all statuses are included.
SendTypequeryEAccountingInvoiceSendTypes?NoSend type for invoices. 0 = None, 1 = AutoInvoiceElectronic, 2 = AutoInvoicePrint, 3 = AutoInvoiceB2C. Used to validate customer addresses for postal delivery.
EAccountingInvoiceSendTypes Enum:
None
AutoInvoiceElectronic
AutoInvoicePrint
AutoInvoiceB2C
PreviewSummarizedInvoiceResponse Parameters:
NameParameterData TypeRequiredDescription
TotalCustomersformintNo
TotalBookingsformintNo
CustomersformList<PreviewCustomerGroup>Yes
ResponseStatusformResponseStatusYes
PreviewCustomerGroup Parameters:
NameParameterData TypeRequiredDescription
CustomerIdformGuidNo
CustomerNameformstringYes
EmailformstringNo
BookingCountformintNo
BookingIdsformList<int>Yes
MissingInvoiceAddressformboolNo
MissingEmailformboolNo

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /eaccounting/summarizedinvoice/preview HTTP/1.1 
Host: api.bokamera.se 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"TotalCustomers":0,"TotalBookings":0,"Customers":[{"CustomerName":"String","Email":"String","BookingCount":0,"BookingIds":[0],"MissingInvoiceAddress":false,"MissingEmail":false}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}