DX STF Client API

<back to all web services

GetOrderByDateRange

Order Requests

Order

Requires Authentication
The following routes are available for this service:
GET/api/order/from/{FromDate}/to/{ToDate}Get invoice between start and end date
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    /**
    * Order
    */
    @Api(Description="Order")
    @ApiResponse(Description="Paged invoice response between start and end date", IsDefaultResponse=true, StatusCode=200)
    public static class GetOrderByDateRange
    {
        /**
        * Requested page number, starting at 1
        */
        @ApiMember(Description="Requested page number, starting at 1")
        public Integer requestedPage = null;

        /**
        * Number of records to return on a page
        */
        @ApiMember(Description="Number of records to return on a page")
        public Integer numberOfRecordsPerPage = null;

        /**
        * From Date Time
        */
        @ApiMember(Description="From Date Time", ParameterType="path")
        public Date fromDate = null;

        /**
        * To Date Time
        */
        @ApiMember(Description="To Date Time", ParameterType="path")
        public Date toDate = null;
        
        public Integer getRequestedPage() { return requestedPage; }
        public GetOrderByDateRange setRequestedPage(Integer value) { this.requestedPage = value; return this; }
        public Integer getNumberOfRecordsPerPage() { return numberOfRecordsPerPage; }
        public GetOrderByDateRange setNumberOfRecordsPerPage(Integer value) { this.numberOfRecordsPerPage = value; return this; }
        public Date getFromDate() { return fromDate; }
        public GetOrderByDateRange setFromDate(Date value) { this.fromDate = value; return this; }
        public Date getToDate() { return toDate; }
        public GetOrderByDateRange setToDate(Date value) { this.toDate = value; return this; }
    }

    public static class PagedQueryResult<T>
    {
        public Long startIndex = null;
        public Long endIndex = null;
        public Integer numberOfRecordsReturned = null;
        public Integer totalNumberOfPages = null;
        public Long totalNumberOfRecords = null;
        public ArrayList<ResultItem<ClaimMessage>> results = new ArrayList<ResultItem<ClaimMessage>>();
        
        public Long getStartIndex() { return startIndex; }
        public PagedQueryResult<T> setStartIndex(Long value) { this.startIndex = value; return this; }
        public Long getEndIndex() { return endIndex; }
        public PagedQueryResult<T> setEndIndex(Long value) { this.endIndex = value; return this; }
        public Integer getNumberOfRecordsReturned() { return numberOfRecordsReturned; }
        public PagedQueryResult<T> setNumberOfRecordsReturned(Integer value) { this.numberOfRecordsReturned = value; return this; }
        public Integer getTotalNumberOfPages() { return totalNumberOfPages; }
        public PagedQueryResult<T> setTotalNumberOfPages(Integer value) { this.totalNumberOfPages = value; return this; }
        public Long getTotalNumberOfRecords() { return totalNumberOfRecords; }
        public PagedQueryResult<T> setTotalNumberOfRecords(Long value) { this.totalNumberOfRecords = value; return this; }
        public ArrayList<ResultItem<ClaimMessage>> getResults() { return results; }
        public PagedQueryResult<T> setResults(ArrayList<ResultItem<ClaimMessage>> value) { this.results = value; return this; }
    }

}

Java GetOrderByDateRange DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/order/from/{FromDate}/to/{ToDate} HTTP/1.1 
Host: stf-api-uat.data-xchange.co.za 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"startIndex":0,"endIndex":0,"numberOfRecordsReturned":0,"totalNumberOfPages":0,"totalNumberOfRecords":0,"results":[{}]}