| POST | /stock/validate | Create Validate Stock Request |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class CreateStockValidateRequest
{
/**
* Brand Trigram, e.g. CAR, IWC
*/
@ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)
var brand:String? = null
/**
* POS Code e.g. ES100:102048
*/
@ApiMember(Description="POS Code e.g. ES100:102048", IsRequired=true)
var posCode:String? = null
/**
* Validation Date
*/
@ApiMember(Description="Validation Date", IsRequired=true)
var date:Date? = null
/**
* Items
*/
@ApiMember(Description="Items", IsRequired=true)
var items:ArrayList<CreateStockValidateRequestItem> = ArrayList<CreateStockValidateRequestItem>()
}
open class CreateStockValidateRequestItem
{
/**
* Legacy Article Code of the item
*/
@ApiMember(Description="Legacy Article Code of the item", IsRequired=true)
var articleCode:String? = null
/**
* Stock Quantity
*/
@ApiMember(Description="Stock Quantity", IsRequired=true)
var quantity:Int? = null
/**
* Serial Numbers
*/
@ApiMember(Description="Serial Numbers")
var serialNumbers:ArrayList<String> = ArrayList<String>()
}
open class CreateStockValidateResponse
{
/**
* Validation Id
*/
@ApiMember(Description="Validation Id", IsRequired=true)
var validationId:Int? = null
}
Kotlin CreateStockValidateRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /stock/validate HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"brand":"String","posCode":"String","date":"\/Date(-62135596800000-0000)\/","items":[{"articleCode":"String","quantity":0,"serialNumbers":["String"]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"validationId":0}