Richemont.Booster2.PublicApi

<back to all web services

GetPosChainTransferAvailable

Requires Authentication
The following routes are available for this service:
GET/posChain/{brand}/{posCode}/availableForTransferGet available POS within the same Chain where stock is transferable
namespace Richemont.Booster2.PublicApi.Purchase.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Pos() = 
        ///<summary>
        ///POS Code
        ///</summary>
        [<ApiMember(Description="POS Code", IsRequired=true)>]
        member val posCode:String = null with get,set

        ///<summary>
        ///Name of the POS
        ///</summary>
        [<ApiMember(Description="Name of the POS", IsRequired=true)>]
        member val name:String = null with get,set

        ///<summary>
        ///City of the POS
        ///</summary>
        [<ApiMember(Description="City of the POS", IsRequired=true)>]
        member val city:String = null with get,set

        ///<summary>
        ///Address of the POS
        ///</summary>
        [<ApiMember(Description="Address of the POS", IsRequired=true)>]
        member val address:String = null with get,set

        ///<summary>
        ///Country of the POS
        ///</summary>
        [<ApiMember(Description="Country of the POS", IsRequired=true)>]
        member val country:String = null with get,set

        ///<summary>
        ///Brand of the POS
        ///</summary>
        [<ApiMember(Description="Brand of the POS", IsRequired=true)>]
        member val brand:String = null with get,set

    [<AllowNullLiteral>]
    type GetPosChainTransferAvailableResponse() = 
        inherit ResizeArray<Pos>()

    [<AllowNullLiteral>]
    type GetPosChainTransferAvailable() = 
        ///<summary>
        ///Brand
        ///</summary>
        [<ApiMember(Description="Brand", IsRequired=true)>]
        member val brand:String = null with get,set

        ///<summary>
        ///POS Legacy Code
        ///</summary>
        [<ApiMember(Description="POS Legacy Code", IsRequired=true)>]
        member val posCode:String = null with get,set

F# GetPosChainTransferAvailable 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.

GET /posChain/{brand}/{posCode}/availableForTransfer HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfPos xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Stock.ServiceModel" />