| All Verbs | /CreateStock | ||
|---|---|---|---|
| All Verbs | /StockCreate |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class StockCreate
{
/**
* Global Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)
*/
@ApiMember(Description="Global Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)")
public String Gtin = null;
/**
* Location of main stock or stock address
*/
@ApiMember(Description="Location of main stock or stock address", IsRequired=true)
public String StockLocation = null;
/**
* Quantity physically stocked at this location
*/
@ApiMember(Description="Quantity physically stocked at this location", IsRequired=true)
public Double PhysicalQuantityStockLocation = null;
/**
* Location of reserve stock (2nd stock location address)
*/
@ApiMember(Description="Location of reserve stock (2nd stock location address)")
public String ReserveStockLocation = null;
/**
* Quantity physically stocked at this location
*/
@ApiMember(Description="Quantity physically stocked at this location")
public Double PhysicalQuantityReserveStockLocation = null;
/**
* Product ID
*/
@ApiMember(Description="Product ID")
public String ProductID = null;
/**
* Second product ID E.g. in case of variant
*/
@ApiMember(Description="Second product ID E.g. in case of variant")
public String ProductAttributeID = null;
/**
* Product reference
*/
@ApiMember(Description="Product reference")
public String Reference = null;
/**
* GTIN of variant
*/
@ApiMember(Description="GTIN of variant")
public String GtinAttribute = null;
/**
* Product label
*/
@ApiMember(Description="Product label")
public String Label = null;
public String getGtin() { return Gtin; }
public StockCreate setGtin(String value) { this.Gtin = value; return this; }
public String getStockLocation() { return StockLocation; }
public StockCreate setStockLocation(String value) { this.StockLocation = value; return this; }
public Double getPhysicalQuantityStockLocation() { return PhysicalQuantityStockLocation; }
public StockCreate setPhysicalQuantityStockLocation(Double value) { this.PhysicalQuantityStockLocation = value; return this; }
public String getReserveStockLocation() { return ReserveStockLocation; }
public StockCreate setReserveStockLocation(String value) { this.ReserveStockLocation = value; return this; }
public Double getPhysicalQuantityReserveStockLocation() { return PhysicalQuantityReserveStockLocation; }
public StockCreate setPhysicalQuantityReserveStockLocation(Double value) { this.PhysicalQuantityReserveStockLocation = value; return this; }
public String getProductID() { return ProductID; }
public StockCreate setProductID(String value) { this.ProductID = value; return this; }
public String getProductAttributeID() { return ProductAttributeID; }
public StockCreate setProductAttributeID(String value) { this.ProductAttributeID = value; return this; }
public String getReference() { return Reference; }
public StockCreate setReference(String value) { this.Reference = value; return this; }
public String getGtinAttribute() { return GtinAttribute; }
public StockCreate setGtinAttribute(String value) { this.GtinAttribute = value; return this; }
public String getLabel() { return Label; }
public StockCreate setLabel(String value) { this.Label = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /CreateStock HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Gtin: String,
StockLocation: String,
PhysicalQuantityStockLocation: 0,
ReserveStockLocation: String,
PhysicalQuantityReserveStockLocation: 0,
ProductID: String,
ProductAttributeID: String,
Reference: String,
GtinAttribute: String,
Label: String
}