Richemont.Booster2.PublicApi

<back to all web services

ImportRequest

Requires Authentication
The following routes are available for this service:
POST/tasks/{brand}/importrequestUpload requestUpload sell-outs and customers provided in a file
namespace Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel

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

    [<AllowNullLiteral>]
    type ImportRequestResponse() = 
        ///<summary>
        ///Unique Identifier of the Import Sell-Out and Customer request created
        ///</summary>
        [<ApiMember(Description="Unique Identifier of the Import Sell-Out and Customer request created", IsRequired=true)>]
        member val asyncTaskId:Guid = new Guid() with get,set

    [<AllowNullLiteral>]
    type ImportRequest() = 
        ///<summary>
        ///Brand Trigram, e.g. CAR, IWC
        ///</summary>
        [<ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)>]
        member val brand:String = null with get,set

        ///<summary>
        ///Public key of the file in cloud server
        ///</summary>
        [<ApiMember(Description="Public key of the file in cloud server", IsRequired=true)>]
        member val externalFileId:String = null with get,set

        ///<summary>
        ///Type of import e.g. 'SelloutAndCustomer', 'Sellout'
        ///</summary>
        [<ApiMember(Description="Type of import e.g. 'SelloutAndCustomer', 'Sellout'", IsRequired=true)>]
        member val type:String = null with get,set

        ///<summary>
        ///B2 document reference to link the file with the Salesforce record
        ///</summary>
        [<ApiMember(Description="B2 document reference to link the file with the Salesforce record")>]
        member val downloadRequestId:String = null with get,set

F# ImportRequest DTOs

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

HTTP + CSV

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

POST /tasks/{brand}/importrequest HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"brand":"String","externalFileId":"String","type":"String","downloadRequestId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"asyncTaskId":"00000000000000000000000000000000"}