digitaluapi

<back to all web services

UploadBatchErrors

Requires Authentication
Requires any of the roles:Client, Admin, Partner
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class UploadBatchErrors extends ArrayList<BatchErrorsRequest>
    {
        
    }

    public static class BatchErrorsRequest
    {
        public Integer BatchId = null;
        @DataMember(Order=3)
        @Required()
        public String Type = null;

        @DataMember(Order=4)
        public String Message = null;

        public Integer Row = null;
        public String Code = null;
        
        public Integer getBatchId() { return BatchId; }
        public BatchErrorsRequest setBatchId(Integer value) { this.BatchId = value; return this; }
        public String getType() { return Type; }
        public BatchErrorsRequest setType(String value) { this.Type = value; return this; }
        public String getMessage() { return Message; }
        public BatchErrorsRequest setMessage(String value) { this.Message = value; return this; }
        public Integer getRow() { return Row; }
        public BatchErrorsRequest setRow(Integer value) { this.Row = value; return this; }
        public String getCode() { return Code; }
        public BatchErrorsRequest setCode(String value) { this.Code = value; return this; }
    }

    public static class BatchErrorsResponse
    {
        public Integer Records = null;
        public ResponseStatus ResponseStatus = null;
        
        public Integer getRecords() { return Records; }
        public BatchErrorsResponse setRecords(Integer value) { this.Records = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public BatchErrorsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java UploadBatchErrors DTOs

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

HTTP + JSV

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

POST /jsv/reply/UploadBatchErrors HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

[
	
]
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Records: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}