| GET | /eaccounting/summarizedinvoices | List summarized invoices with optional filters | Query summarized invoices by company, customer, date range, and status. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | query | Guid? | No | The company id, if empty will use the company id for the user you are logged in with. |
| CustomerId | query | Guid? | No | Filter by customer id. |
| DateFrom | query | DateTime? | No | Filter by date from. |
| DateTo | query | DateTime? | No | Filter by date to. |
| Status | query | SummarizedInvoiceStatus? | No | Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed). |
| Pending | |
| Processing | |
| Completed | |
| Failed |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Results | form | List<SummarizedInvoiceDetailResponse> | Yes | |
| ResponseStatus | form | ResponseStatus | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| CompanyId | form | Guid | No | |
| CustomerId | form | Guid | No | |
| CustomerName | form | string | Yes | |
| EAccountingInvoiceId | form | string | No | |
| Draft | form | bool | No | |
| DateFrom | form | DateTime | No | |
| DateTo | form | DateTime | No | |
| ServiceId | form | int? | No | |
| Status | form | int | No | |
| StatusName | form | string | Yes | |
| ErrorMessage | form | string | No | |
| BookingIds | form | List<int> | Yes | |
| CreatedDate | form | DateTime | No | |
| UpdatedDate | form | DateTime | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eaccounting/summarizedinvoices HTTP/1.1 Host: api.bokamera.se Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Results":[{"CustomerName":"String","EAccountingInvoiceId":"String","Draft":false,"ServiceId":0,"Status":0,"StatusName":"String","ErrorMessage":"String","BookingIds":[0]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}