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 .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/records/disposition/batches 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"}},"Batches":[{"BatchId":0,"BatchKey":"String","Title":"String","Status":"String","MethodSummary":"String","CreatedByLbl":"String","CreatedLabel":"String","ItemsJson":"String","ChainJson":"String","ReturnReason":"String","CertJson":"String","LogJson":"String"}]}