| GET,OPTIONS | /v1/records/logistics/pickups |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PickupsRequest
{
}
public static class PickupsResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<RecordsPickupDto> Pickups = new ArrayList<RecordsPickupDto>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PickupsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<RecordsPickupDto> getPickups() { return Pickups; }
public PickupsResponse setPickups(ArrayList<RecordsPickupDto> value) { this.Pickups = value; return this; }
}
public static class RecordsPickupDto
{
public Integer PickupId = null;
public String PickupKey = null;
public String VendorName = null;
public String VendorCert = null;
public String Status = null;
public String WfLabel = null;
public String RunLabel = null;
public String ManifestJson = null;
public String QuoteJson = null;
public String WindowLabel = null;
public String VendorCertRef = null;
public String LogJson = null;
public Integer getPickupId() { return PickupId; }
public RecordsPickupDto setPickupId(Integer value) { this.PickupId = value; return this; }
public String getPickupKey() { return PickupKey; }
public RecordsPickupDto setPickupKey(String value) { this.PickupKey = value; return this; }
public String getVendorName() { return VendorName; }
public RecordsPickupDto setVendorName(String value) { this.VendorName = value; return this; }
public String getVendorCert() { return VendorCert; }
public RecordsPickupDto setVendorCert(String value) { this.VendorCert = value; return this; }
public String getStatus() { return Status; }
public RecordsPickupDto setStatus(String value) { this.Status = value; return this; }
public String getWfLabel() { return WfLabel; }
public RecordsPickupDto setWfLabel(String value) { this.WfLabel = value; return this; }
public String getRunLabel() { return RunLabel; }
public RecordsPickupDto setRunLabel(String value) { this.RunLabel = value; return this; }
public String getManifestJson() { return ManifestJson; }
public RecordsPickupDto setManifestJson(String value) { this.ManifestJson = value; return this; }
public String getQuoteJson() { return QuoteJson; }
public RecordsPickupDto setQuoteJson(String value) { this.QuoteJson = value; return this; }
public String getWindowLabel() { return WindowLabel; }
public RecordsPickupDto setWindowLabel(String value) { this.WindowLabel = value; return this; }
public String getVendorCertRef() { return VendorCertRef; }
public RecordsPickupDto setVendorCertRef(String value) { this.VendorCertRef = value; return this; }
public String getLogJson() { return LogJson; }
public RecordsPickupDto setLogJson(String value) { this.LogJson = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/records/logistics/pickups HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PickupsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Pickups>
<RecordsPickupDto>
<LogJson>String</LogJson>
<ManifestJson>String</ManifestJson>
<PickupId>0</PickupId>
<PickupKey>String</PickupKey>
<QuoteJson>String</QuoteJson>
<RunLabel>String</RunLabel>
<Status>String</Status>
<VendorCert>String</VendorCert>
<VendorCertRef>String</VendorCertRef>
<VendorName>String</VendorName>
<WfLabel>String</WfLabel>
<WindowLabel>String</WindowLabel>
</RecordsPickupDto>
</Pickups>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</PickupsResponse>