Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

SaveTraceabilityBatch

Requires Authentication
The following routes are available for this service:
All Verbs/SaveTraceabilityBatch/{EAN}/{BatchNumber}/{Owner}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SaveTraceabilityBatch
    {
        /**
        * EAN
        */
        @ApiMember(Description="EAN", IsRequired=true)
        public String EAN = null;

        /**
        * Traceability Batch Number
        */
        @ApiMember(Description="Traceability Batch Number", IsRequired=true)
        public String BatchNumber = null;

        /**
        * Operator
        */
        @ApiMember(Description="Operator", IsRequired=true)
        public String Owner = null;

        /**
        * Supplier Reference
        */
        @ApiMember(Description="Supplier Reference")
        public String SupplierReference = null;

        /**
        * Stockroom name
        */
        @ApiMember(Description="Stockroom name")
        public String StockroomName = null;
        
        public String getEan() { return EAN; }
        public SaveTraceabilityBatch setEan(String value) { this.EAN = value; return this; }
        public String getBatchNumber() { return BatchNumber; }
        public SaveTraceabilityBatch setBatchNumber(String value) { this.BatchNumber = value; return this; }
        public String getOwner() { return Owner; }
        public SaveTraceabilityBatch setOwner(String value) { this.Owner = value; return this; }
        public String getSupplierReference() { return SupplierReference; }
        public SaveTraceabilityBatch setSupplierReference(String value) { this.SupplierReference = value; return this; }
        public String getStockroomName() { return StockroomName; }
        public SaveTraceabilityBatch setStockroomName(String value) { this.StockroomName = value; return this; }
    }

}

Java SaveTraceabilityBatch DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /SaveTraceabilityBatch/{EAN}/{BatchNumber}/{Owner} HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"EAN":"String","BatchNumber":"String","Owner":"String","SupplierReference":"String","StockroomName":"String"}