| POST | /tasks/{brand}/importrequest | Upload request | Upload sell-outs and customers provided in a file |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| brand | path | string | Yes | Brand Trigram, e.g. CAR, IWC |
| externalFileId | body | string | Yes | Public key of the file in cloud server |
| type | body | string | Yes | Type of import e.g. 'SelloutAndCustomer', 'Sellout' |
| downloadRequestId | body | string | No | B2 document reference to link the file with the Salesforce record |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| asyncTaskId | form | Guid | Yes | Unique Identifier of the Import Sell-Out and Customer request created |
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.
POST /tasks/{brand}/importrequest HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"brand":"String","externalFileId":"String","type":"String","downloadRequestId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"asyncTaskId":"00000000000000000000000000000000"}