Richemont.Booster2.PublicApi

<back to all web services

CreateSellOut

Requires Authentication
The following routes are available for this service:
POST/warrantyCreate a Sell-OutCreate a sell-out in a POS you are authorised for
import java.math.*
import java.util.*
import net.servicestack.client.*


open class CreateSellOut
{
    /**
    * Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided
    */
    @ApiMember(Description="Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided")
    var brand:String? = null

    /**
    * Richemont POS code
    */
    @ApiMember(Description="Richemont POS code", IsRequired=true)
    var posCode:String? = null

    /**
    * Receipt or Invoice Number
    */
    @ApiMember(Description="Receipt or Invoice Number")
    var documentNumber:String? = null

    /**
    * Date of the Sell-out
    */
    @ApiMember(Description="Date of the Sell-out", IsRequired=true)
    var documentDate:Date? = null

    /**
    * Position Number
    */
    @ApiMember(Description="Position Number")
    var documentLineNumber:Int? = null

    /**
    * Richemont Reference Code of the item
    */
    @ApiMember(Description="Richemont Reference Code of the item", IsRequired=true)
    var articleCode:String? = null

    /**
    * Serial Number of the item
    */
    @ApiMember(Description="Serial Number of the item")
    var serialNumber:String? = null

    /**
    * Use positive for standard Sell-out and negative quantity for return
    */
    @ApiMember(Description="Use positive for standard Sell-out and negative quantity for return", IsRequired=true)
    var quantity:Int? = null

    /**
    * Sold Price
    */
    @ApiMember(Description="Sold Price")
    var unitPrice:BigDecimal? = null

    /**
    * Currency of the sold price
    */
    @ApiMember(Description="Currency of the sold price")
    var currencyCode:String? = null

    /**
    * Booster Customer Id
    */
    @ApiMember(Description="Booster Customer Id")
    var boosterCustomerId:Int? = null

    /**
    * Sale Representative Email e.g. rauf.aliyev@richemont.com
    */
    @ApiMember(Description="Sale Representative Email e.g. rauf.aliyev@richemont.com")
    var saleRepresentativeEmails:ArrayList<String> = ArrayList<String>()

    /**
    * Promoter Type ID, e.g. DAI, FIT, GRT
    */
    @ApiMember(Description="Promoter Type ID, e.g. DAI, FIT, GRT")
    var promoterTypeId:String? = null

    /**
    * Return Reason ID, e.g ADM, CLR, EXC, DEF, OTH
    */
    @ApiMember(Description="Return Reason ID, e.g ADM, CLR, EXC, DEF, OTH")
    var returnReasonId:String? = null

    /**
    * Sale related comments
    */
    @ApiMember(Description="Sale related comments")
    var comments:String? = null

    /**
    * Original Sale Detail Id
    */
    @ApiMember(Description="Original Sale Detail Id")
    var originalSaleDetailId:Int? = null

    /**
    * To have the piece back in stock as consignment in case of consignment sellout return
    */
    @ApiMember(Description="To have the piece back in stock as consignment in case of consignment sellout return")
    var consSelloutReturnInStock:Boolean? = null
}

open class CreateSellOutResponse
{
    /**
    * Unique Identifier of the Sell-out item created in Booster
    */
    @ApiMember(Description="Unique Identifier of the Sell-out item created in Booster")
    var saleDetailId:Int? = null

    /**
    * Unique Identifiers of the Sell-out items created in Booster if more than one
    */
    @ApiMember(Description="Unique Identifiers of the Sell-out items created in Booster if more than one")
    var saleDetailIds:ArrayList<Int> = ArrayList<Int>()

    /**
    * Unique Identifier of the Sell-out header created in Booster
    */
    @ApiMember(Description="Unique Identifier of the Sell-out header created in Booster", IsRequired=true)
    var saleId:Int? = null
}

Kotlin CreateSellOut DTOs

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

HTTP + XML

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

POST /warranty HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateSellOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Sellout.ServiceModel">
  <articleCode>String</articleCode>
  <boosterCustomerId>0</boosterCustomerId>
  <brand>String</brand>
  <comments>String</comments>
  <consSelloutReturnInStock>false</consSelloutReturnInStock>
  <currencyCode>String</currencyCode>
  <documentDate>0001-01-01T00:00:00</documentDate>
  <documentLineNumber>0</documentLineNumber>
  <documentNumber>String</documentNumber>
  <originalSaleDetailId>0</originalSaleDetailId>
  <posCode>String</posCode>
  <promoterTypeId>String</promoterTypeId>
  <quantity>0</quantity>
  <returnReasonId>String</returnReasonId>
  <saleRepresentativeEmails xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </saleRepresentativeEmails>
  <serialNumber>String</serialNumber>
  <unitPrice>0</unitPrice>
</CreateSellOut>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateSellOutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Sellout.ServiceModel">
  <saleDetailId>0</saleDetailId>
  <saleDetailIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </saleDetailIds>
  <saleId>0</saleId>
</CreateSellOutResponse>