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

<back to all web services

StockCreate

Requires Authentication
The following routes are available for this service:
All Verbs/CreateStock
All Verbs/StockCreate
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports GoToLightAPI

Namespace Global

    Namespace GoToLightAPI

        Public Partial Class StockCreate
            '''<Summary>
            '''Global Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)
            '''</Summary>
            <ApiMember(Description:="Global Trade Item Number : usually is the barcode of product (EAN, UPC, Gencode, etc...)")>
            Public Overridable Property Gtin As String

            '''<Summary>
            '''Location of main stock or stock address
            '''</Summary>
            <ApiMember(Description:="Location of main stock or stock address", IsRequired:=true)>
            Public Overridable Property StockLocation As String

            '''<Summary>
            '''Quantity physically stocked at this location
            '''</Summary>
            <ApiMember(Description:="Quantity physically stocked at this location", IsRequired:=true)>
            Public Overridable Property PhysicalQuantityStockLocation As Double

            '''<Summary>
            '''Location of reserve stock (2nd stock location address)
            '''</Summary>
            <ApiMember(Description:="Location of reserve stock (2nd stock location address)")>
            Public Overridable Property ReserveStockLocation As String

            '''<Summary>
            '''Quantity physically stocked at this location
            '''</Summary>
            <ApiMember(Description:="Quantity physically stocked at this location")>
            Public Overridable Property PhysicalQuantityReserveStockLocation As Double

            '''<Summary>
            '''Product ID
            '''</Summary>
            <ApiMember(Description:="Product ID")>
            Public Overridable Property ProductID As String

            '''<Summary>
            '''Second product ID E.g. in case of variant
            '''</Summary>
            <ApiMember(Description:="Second product ID E.g. in case of variant")>
            Public Overridable Property ProductAttributeID As String

            '''<Summary>
            '''Product reference
            '''</Summary>
            <ApiMember(Description:="Product reference")>
            Public Overridable Property Reference As String

            '''<Summary>
            '''GTIN of variant
            '''</Summary>
            <ApiMember(Description:="GTIN of variant")>
            Public Overridable Property GtinAttribute As String

            '''<Summary>
            '''Product label
            '''</Summary>
            <ApiMember(Description:="Product label")>
            Public Overridable Property Label As String
        End Class
    End Namespace
End Namespace

VB.NET StockCreate DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Gtin":"String","StockLocation":"String","PhysicalQuantityStockLocation":0,"ReserveStockLocation":"String","PhysicalQuantityReserveStockLocation":0,"ProductID":"String","ProductAttributeID":"String","Reference":"String","GtinAttribute":"String","Label":"String"}