| POST | /stock/{brand}/transferBulk | Bulk Transfer Stock from one POS to another |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| brand | path | string | Yes | Brand Trigram |
| posCodeOrigin | body | string | Yes | POS of the stock origin |
| posCodeDestination | body | string | Yes | POS of the stock destination |
| items | body | List<Item> | Yes | Items to be transferred |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| articleCode | form | string | Yes | Article Code of the item to be transferred |
| quantity | form | int | Yes | Quantity of the the item to be transferred |
| serialNumbers | form | List<string> | No | Serial Numbers of the item to be transferred |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| items | form | List<ItemResponse> | Yes | Response of items |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| articleCode | form | string | Yes | Article Code of the item response |
| stockTransferStatusId | form | int | Yes | Status of Stock Transfer: 1 means done, 2 means might take a while because consignment transfers need to be approved by SAP |
| errors | form | List<Lookup<String>> | Yes | Errors of items |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /stock/{brand}/transferBulk HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
brand: String,
posCodeOrigin: String,
posCodeDestination: String,
items:
[
{
articleCode: String,
quantity: 0,
serialNumbers:
[
String
]
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
articleCode: String,
stockTransferStatusId: 0,
errors:
[
{
id: String,
description: String
}
]
}
]
}