Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
GET | /articles/{InternalReferenceId}/reports | Get a report as a PDF file | Get a PDF report. |
---|
export enum SendReceiptMethod
{
Email = 1,
PdfExport = 2,
}
// @ValidateRequest(Validator="IsAuthenticated")
export class ExportPayableEntityReport implements ICompany
{
/** @description The company id, if empty will use the company id for the user you are logged in with. */
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
public CompanyId?: string;
/** @description Id of the internal reference (booking, rebate code, etc) */
// @ApiMember(Description="Id of the internal reference (booking, rebate code, etc)", IsRequired=true, ParameterType="path")
public InternalReferenceId: string;
public SendReceiptMethod: SendReceiptMethod;
/** @description Article type (Could be Service, rebate code types, etc.. */
// @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true)
public ArticleTypeId: number;
public constructor(init?: Partial<ExportPayableEntityReport>) { (Object as any).assign(this, init); }
}
TypeScript ExportPayableEntityReport DTOs
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 /articles/{InternalReferenceId}/reports HTTP/1.1 Host: api.bokamera.se Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {}