| GET | /selloutFormConfigurations/{brand}/{posCode} | Get all available Sellout Form Configurations |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.Sellout.ServiceModel;
namespace Richemont.Booster2.PublicApi.Sellout.ServiceModel
{
public partial class GetSelloutFormConfigurations
{
///<summary>
///Brand Triagram, e.g. CAR, IWC, VAC
///</summary>
[ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)]
public virtual string brand { get; set; }
///<summary>
///Point of Sale Code, e.g. ES100:102048
///</summary>
[ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)]
public virtual string posCode { get; set; }
}
public partial class GetSelloutFormConfigurationsResponse
{
///<summary>
///Requirement for sales representative field, e.g. M, V, N
///</summary>
[ApiMember(Description="Requirement for sales representative field, e.g. M, V, N", IsRequired=true)]
public virtual string salesRep { get; set; }
///<summary>
///Allow consignment transfer during sellout, e.g. M, V, N
///</summary>
[ApiMember(Description="Allow consignment transfer during sellout, e.g. M, V, N", IsRequired=true)]
public virtual string allowConsignmentTransfer { get; set; }
///<summary>
///Invoice Number will be generated automatically during sellout, e.g. M, V, N
///</summary>
[ApiMember(Description="Invoice Number will be generated automatically during sellout, e.g. M, V, N", IsRequired=true)]
public virtual string automaticInvoiceNumber { get; set; }
///<summary>
///Allow consignment sellout return is stock, e.g. V, N
///</summary>
[ApiMember(Description="Allow consignment sellout return is stock, e.g. V, N", IsRequired=true)]
public virtual string allowConsignmentReturnInStock { get; set; }
///<summary>
///Allow declare sellout and extend the warranty of certified pre-owned items, e.g. V, N
///</summary>
[ApiMember(Description="Allow declare sellout and extend the warranty of certified pre-owned items, e.g. V, N", IsRequired=true)]
public virtual string cpoSaleDeclaration { get; set; }
}
}
C# GetSelloutFormConfigurations 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.
GET /selloutFormConfigurations/{brand}/{posCode} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"salesRep":"String","allowConsignmentTransfer":"String","automaticInvoiceNumber":"String","allowConsignmentReturnInStock":"String","cpoSaleDeclaration":"String"}