Trendsic Platform Service

<back to all web services

OpenOrderRequest

The following routes are available for this service:
GET/v1/OrderHeaders/Open
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class OpenOrderRequest
    {
        
    }

    public static class OrderHeadersResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<OrderHeader> OrderHeaders = new ArrayList<OrderHeader>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public OrderHeadersResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<OrderHeader> getOrderHeaders() { return OrderHeaders; }
        public OrderHeadersResponse setOrderHeaders(ArrayList<OrderHeader> value) { this.OrderHeaders = value; return this; }
    }

    public static class OrderHeader
    {
        public Integer ID = null;
        public Integer AgentID = null;
        public Integer CustomerID = null;
        public String AgentName = null;
        public String CustomerName = null;
        public Date OrderDate = null;
        public Short OrderStatus = null;
        public String OrderStatusText = null;
        public Short TotalQuantityUnits = null;
        public BigDecimal TotalOrderCost = null;
        public BigDecimal TotalProductCost = null;
        public BigDecimal TotalOrderTax = null;
        public BigDecimal TotalShippingCost = null;
        public Integer BillingAddressID = null;
        public Integer ShippingAddressID = null;
        public BigDecimal CustomerPaidAmount = null;
        public String Notes = null;
        public UUID UID = null;
        public Boolean Recalculate = null;
        public String PublicOrderID = null;
        public String Address = null;
        public Address ShippingAddress = null;
        public Address BillingAddress = null;
        public Boolean isMultiShip = null;
        
        public Integer getId() { return ID; }
        public OrderHeader setId(Integer value) { this.ID = value; return this; }
        public Integer getAgentID() { return AgentID; }
        public OrderHeader setAgentID(Integer value) { this.AgentID = value; return this; }
        public Integer getCustomerID() { return CustomerID; }
        public OrderHeader setCustomerID(Integer value) { this.CustomerID = value; return this; }
        public String getAgentName() { return AgentName; }
        public OrderHeader setAgentName(String value) { this.AgentName = value; return this; }
        public String getCustomerName() { return CustomerName; }
        public OrderHeader setCustomerName(String value) { this.CustomerName = value; return this; }
        public Date getOrderDate() { return OrderDate; }
        public OrderHeader setOrderDate(Date value) { this.OrderDate = value; return this; }
        public Short getOrderStatus() { return OrderStatus; }
        public OrderHeader setOrderStatus(Short value) { this.OrderStatus = value; return this; }
        public String getOrderStatusText() { return OrderStatusText; }
        public OrderHeader setOrderStatusText(String value) { this.OrderStatusText = value; return this; }
        public Short getTotalQuantityUnits() { return TotalQuantityUnits; }
        public OrderHeader setTotalQuantityUnits(Short value) { this.TotalQuantityUnits = value; return this; }
        public BigDecimal getTotalOrderCost() { return TotalOrderCost; }
        public OrderHeader setTotalOrderCost(BigDecimal value) { this.TotalOrderCost = value; return this; }
        public BigDecimal getTotalProductCost() { return TotalProductCost; }
        public OrderHeader setTotalProductCost(BigDecimal value) { this.TotalProductCost = value; return this; }
        public BigDecimal getTotalOrderTax() { return TotalOrderTax; }
        public OrderHeader setTotalOrderTax(BigDecimal value) { this.TotalOrderTax = value; return this; }
        public BigDecimal getTotalShippingCost() { return TotalShippingCost; }
        public OrderHeader setTotalShippingCost(BigDecimal value) { this.TotalShippingCost = value; return this; }
        public Integer getBillingAddressID() { return BillingAddressID; }
        public OrderHeader setBillingAddressID(Integer value) { this.BillingAddressID = value; return this; }
        public Integer getShippingAddressID() { return ShippingAddressID; }
        public OrderHeader setShippingAddressID(Integer value) { this.ShippingAddressID = value; return this; }
        public BigDecimal getCustomerPaidAmount() { return CustomerPaidAmount; }
        public OrderHeader setCustomerPaidAmount(BigDecimal value) { this.CustomerPaidAmount = value; return this; }
        public String getNotes() { return Notes; }
        public OrderHeader setNotes(String value) { this.Notes = value; return this; }
        public UUID getUid() { return UID; }
        public OrderHeader setUid(UUID value) { this.UID = value; return this; }
        public Boolean isRecalculate() { return Recalculate; }
        public OrderHeader setRecalculate(Boolean value) { this.Recalculate = value; return this; }
        public String getPublicOrderID() { return PublicOrderID; }
        public OrderHeader setPublicOrderID(String value) { this.PublicOrderID = value; return this; }
        public String getAddress() { return Address; }
        public OrderHeader setAddress(String value) { this.Address = value; return this; }
        public Address getShippingAddress() { return ShippingAddress; }
        public OrderHeader setShippingAddress(Address value) { this.ShippingAddress = value; return this; }
        public Address getBillingAddress() { return BillingAddress; }
        public OrderHeader setBillingAddress(Address value) { this.BillingAddress = value; return this; }
        public Boolean getIsMultiShip() { return isMultiShip; }
        public OrderHeader setIsMultiShip(Boolean value) { this.isMultiShip = value; return this; }
    }

    public static class Address
    {
        public Integer ID = null;
        public Short AddressTypeID = null;
        public String AddressContact = null;
        public String AttentionTo = null;
        public String AddressLine1 = null;
        public String AddressLine2 = null;
        public String AddressLine3 = null;
        public String AddressCity = null;
        public String AddressState = null;
        public String AddressZip = null;
        public String AddressCountry = null;
        public String PhoneNumber = null;
        public String FaxNumber = null;
        public UUID UID = null;
        public String Name = null;
        
        public Integer getId() { return ID; }
        public Address setId(Integer value) { this.ID = value; return this; }
        public Short getAddressTypeID() { return AddressTypeID; }
        public Address setAddressTypeID(Short value) { this.AddressTypeID = value; return this; }
        public String getAddressContact() { return AddressContact; }
        public Address setAddressContact(String value) { this.AddressContact = value; return this; }
        public String getAttentionTo() { return AttentionTo; }
        public Address setAttentionTo(String value) { this.AttentionTo = value; return this; }
        public String getAddressLine1() { return AddressLine1; }
        public Address setAddressLine1(String value) { this.AddressLine1 = value; return this; }
        public String getAddressLine2() { return AddressLine2; }
        public Address setAddressLine2(String value) { this.AddressLine2 = value; return this; }
        public String getAddressLine3() { return AddressLine3; }
        public Address setAddressLine3(String value) { this.AddressLine3 = value; return this; }
        public String getAddressCity() { return AddressCity; }
        public Address setAddressCity(String value) { this.AddressCity = value; return this; }
        public String getAddressState() { return AddressState; }
        public Address setAddressState(String value) { this.AddressState = value; return this; }
        public String getAddressZip() { return AddressZip; }
        public Address setAddressZip(String value) { this.AddressZip = value; return this; }
        public String getAddressCountry() { return AddressCountry; }
        public Address setAddressCountry(String value) { this.AddressCountry = value; return this; }
        public String getPhoneNumber() { return PhoneNumber; }
        public Address setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
        public String getFaxNumber() { return FaxNumber; }
        public Address setFaxNumber(String value) { this.FaxNumber = value; return this; }
        public UUID getUid() { return UID; }
        public Address setUid(UUID value) { this.UID = value; return this; }
        public String getName() { return Name; }
        public Address setName(String value) { this.Name = value; return this; }
    }

}

Java OpenOrderRequest DTOs

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

HTTP + CSV

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

GET /v1/OrderHeaders/Open HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"OrderHeaders":[{"ID":0,"AgentID":0,"CustomerID":0,"AgentName":"String","CustomerName":"String","OrderDate":"0001-01-01T00:00:00.0000000","OrderStatus":0,"OrderStatusText":"String","TotalQuantityUnits":0,"TotalOrderCost":0,"TotalProductCost":0,"TotalOrderTax":0,"TotalShippingCost":0,"BillingAddressID":0,"ShippingAddressID":0,"CustomerPaidAmount":0,"Notes":"String","UID":"00000000000000000000000000000000","Recalculate":false,"PublicOrderID":"String","Address":"String","ShippingAddress":{"ID":0,"AddressTypeID":0,"AddressContact":"String","AttentionTo":"String","AddressLine1":"String","AddressLine2":"String","AddressLine3":"String","AddressCity":"String","AddressState":"String","AddressZip":"String","AddressCountry":"String","PhoneNumber":"String","FaxNumber":"String","UID":"00000000000000000000000000000000","Name":"String"},"BillingAddress":{"ID":0,"AddressTypeID":0,"AddressContact":"String","AttentionTo":"String","AddressLine1":"String","AddressLine2":"String","AddressLine3":"String","AddressCity":"String","AddressState":"String","AddressZip":"String","AddressCountry":"String","PhoneNumber":"String","FaxNumber":"String","UID":"00000000000000000000000000000000","Name":"String"},"isMultiShip":false}]}