| GET | /posChain/{brand}/{posCode}/availableForTransfer | Get available POS within the same Chain where stock is transferable |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.Stock.ServiceModel;
using Richemont.Booster2.PublicApi.Purchase.ServiceModel;
namespace Richemont.Booster2.PublicApi.Purchase.ServiceModel
{
public partial class Pos
{
///<summary>
///POS Code
///</summary>
[ApiMember(Description="POS Code", IsRequired=true)]
public virtual string posCode { get; set; }
///<summary>
///Name of the POS
///</summary>
[ApiMember(Description="Name of the POS", IsRequired=true)]
public virtual string name { get; set; }
///<summary>
///City of the POS
///</summary>
[ApiMember(Description="City of the POS", IsRequired=true)]
public virtual string city { get; set; }
///<summary>
///Address of the POS
///</summary>
[ApiMember(Description="Address of the POS", IsRequired=true)]
public virtual string address { get; set; }
///<summary>
///Country of the POS
///</summary>
[ApiMember(Description="Country of the POS", IsRequired=true)]
public virtual string country { get; set; }
///<summary>
///Brand of the POS
///</summary>
[ApiMember(Description="Brand of the POS", IsRequired=true)]
public virtual string brand { get; set; }
}
}
namespace Richemont.Booster2.PublicApi.Stock.ServiceModel
{
public partial class GetPosChainTransferAvailable
{
///<summary>
///Brand
///</summary>
[ApiMember(Description="Brand", IsRequired=true)]
public virtual string brand { get; set; }
///<summary>
///POS Legacy Code
///</summary>
[ApiMember(Description="POS Legacy Code", IsRequired=true)]
public virtual string posCode { get; set; }
}
public partial class GetPosChainTransferAvailableResponse
: List<Pos>
{
}
}
C# GetPosChainTransferAvailable DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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" />