Trendsic Platform Service

<back to all web services

DispositionBatchesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/records/disposition/batches
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DispositionBatchesRequest
    {
        
    }

    public static class DispositionBatchesResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<DispositionBatchDto> Batches = new ArrayList<DispositionBatchDto>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DispositionBatchesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<DispositionBatchDto> getBatches() { return Batches; }
        public DispositionBatchesResponse setBatches(ArrayList<DispositionBatchDto> value) { this.Batches = value; return this; }
    }

    public static class DispositionBatchDto
    {
        public Integer BatchId = null;
        public String BatchKey = null;
        public String Title = null;
        public String Status = null;
        public String MethodSummary = null;
        public String CreatedByLbl = null;
        public String CreatedLabel = null;
        public String ItemsJson = null;
        public String ChainJson = null;
        public String ReturnReason = null;
        public String CertJson = null;
        public String LogJson = null;
        
        public Integer getBatchId() { return BatchId; }
        public DispositionBatchDto setBatchId(Integer value) { this.BatchId = value; return this; }
        public String getBatchKey() { return BatchKey; }
        public DispositionBatchDto setBatchKey(String value) { this.BatchKey = value; return this; }
        public String getTitle() { return Title; }
        public DispositionBatchDto setTitle(String value) { this.Title = value; return this; }
        public String getStatus() { return Status; }
        public DispositionBatchDto setStatus(String value) { this.Status = value; return this; }
        public String getMethodSummary() { return MethodSummary; }
        public DispositionBatchDto setMethodSummary(String value) { this.MethodSummary = value; return this; }
        public String getCreatedByLbl() { return CreatedByLbl; }
        public DispositionBatchDto setCreatedByLbl(String value) { this.CreatedByLbl = value; return this; }
        public String getCreatedLabel() { return CreatedLabel; }
        public DispositionBatchDto setCreatedLabel(String value) { this.CreatedLabel = value; return this; }
        public String getItemsJson() { return ItemsJson; }
        public DispositionBatchDto setItemsJson(String value) { this.ItemsJson = value; return this; }
        public String getChainJson() { return ChainJson; }
        public DispositionBatchDto setChainJson(String value) { this.ChainJson = value; return this; }
        public String getReturnReason() { return ReturnReason; }
        public DispositionBatchDto setReturnReason(String value) { this.ReturnReason = value; return this; }
        public String getCertJson() { return CertJson; }
        public DispositionBatchDto setCertJson(String value) { this.CertJson = value; return this; }
        public String getLogJson() { return LogJson; }
        public DispositionBatchDto setLogJson(String value) { this.LogJson = value; return this; }
    }

}

Java DispositionBatchesRequest DTOs

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

HTTP + XML

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

GET /v1/records/disposition/batches HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DispositionBatchesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Batches>
    <DispositionBatchDto>
      <BatchId>0</BatchId>
      <BatchKey>String</BatchKey>
      <CertJson>String</CertJson>
      <ChainJson>String</ChainJson>
      <CreatedByLbl>String</CreatedByLbl>
      <CreatedLabel>String</CreatedLabel>
      <ItemsJson>String</ItemsJson>
      <LogJson>String</LogJson>
      <MethodSummary>String</MethodSummary>
      <ReturnReason>String</ReturnReason>
      <Status>String</Status>
      <Title>String</Title>
    </DispositionBatchDto>
  </Batches>
  <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>
</DispositionBatchesResponse>