Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
GET | /articles/{InternalReferenceId}/reports | Get a report as a PDF file | Get a PDF report. |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@ValidateRequest(Validator="IsAuthenticated")
public static class ExportPayableEntityReport implements ICompany
{
/**
* 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 UUID CompanyId = null;
/**
* 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 String InternalReferenceId = null;
public SendReceiptMethod SendReceiptMethod = null;
/**
* Article type (Could be Service, rebate code types, etc..
*/
@ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true)
public Integer ArticleTypeId = null;
public UUID getCompanyId() { return CompanyId; }
public ExportPayableEntityReport setCompanyId(UUID value) { this.CompanyId = value; return this; }
public String getInternalReferenceId() { return InternalReferenceId; }
public ExportPayableEntityReport setInternalReferenceId(String value) { this.InternalReferenceId = value; return this; }
public SendReceiptMethod getSendReceiptMethod() { return SendReceiptMethod; }
public ExportPayableEntityReport setSendReceiptMethod(SendReceiptMethod value) { this.SendReceiptMethod = value; return this; }
public Integer getArticleTypeId() { return ArticleTypeId; }
public ExportPayableEntityReport setArticleTypeId(Integer value) { this.ArticleTypeId = value; return this; }
}
public static enum SendReceiptMethod
{
Email(1),
PdfExport(2);
private final int value;
SendReceiptMethod(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
Java ExportPayableEntityReport DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {}