Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
POST | /reports/booking/printout/test | Test to print a report to PDF with fake data |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | query | Guid? | No | Enter the company you want to see add a token for, if blank and you are an admin, your company id will be used |
HeaderLeftCell | body | string | Yes | Report header left cell content |
HeaderMiddleCell | body | string | Yes | Report header middle cell content |
HeaderRightCell | body | string | Yes | Report header right cell content |
BodyCell | body | string | Yes | Report body cell content |
FooterLeftCell | body | string | Yes | Report footer left cell content |
FooterMiddleCell | body | string | Yes | Report footer middle cell content |
FooterRightCell | body | string | Yes | Report footer right cell content |
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.
POST /reports/booking/printout/test HTTP/1.1
Host: api.bokamera.se
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000","HeaderLeftCell":"String","HeaderMiddleCell":"String","HeaderRightCell":"String","BodyCell":"String","FooterLeftCell":"String","FooterMiddleCell":"String","FooterRightCell":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {}