BokaMera.API.Host

<back to all web services

ExportPayableEntityReport

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
GET/articles/{InternalReferenceId}/reportsGet a report as a PDF fileGet 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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}