| POST | /purchase/basket | Create Basket |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| brand | body | string | Yes | Brand Trigram of the intended order |
| posCode | body | string | Yes | Pos Code for the intended order e.g. ES03-10415-01 |
| customerReference | body | string | Yes | Customer Reference |
| notes | body | string | Yes | Additional Notes regarding the order |
| orderItems | body | List<BasketItem> | No | List of Articles to be added in the basket |
| boosterContextId | body | string | No | Brand Context ID |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| articleCode | form | string | Yes | Reference ID of the article/product |
| quantity | form | int | No | Desired quantity of the article |
| strap | form | BasketStrapItem | No | Strap definition |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| speakingArticleCode | form | string | No | Article reference |
| buckleTypeDescription | form | string | No | Buckle type Description |
| buckleTypeCode | form | string | No | Buckle type |
| watch6Length | form | int? | No | watch 6 Length |
| watch12Length | form | int? | No | watch 12 Length |
| materialCode | form | string | No | Article Material Code |
| materialDescription | form | string | No | Article Material Description |
| colorCode | form | string | No | Article Color Code |
| colorDescription | form | string | No | Article Color Description |
| buckleWidth | form | string | No | Buckle Witdh |
| liningCode | form | string | No | Article Lining Code |
| liningDescription | form | string | No | Article Lining Description |
| stitchingCode | form | string | No | Article Stitching Code |
| stitchingDescription | form | string | No | Article Stitching Description |
| edgeCode | form | string | No | Article Edge Code |
| edgeDescription | form | string | No | Article Edge Description |
| paddingCode | form | string | No | Article Padding Code |
| paddingDescription | form | string | No | Article Padding Description |
| specialtyCode | form | string | No | Article Speciality Code |
| specialtyDescription | form | string | No | Article Speciality Description |
| nuancierCode | form | string | No | Nuancier Code |
| isStrapVipOrder | form | bool? | No | Strap Vip Order |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| purchaseOrderId | form | int | Yes | ID of the newly created Purchase Order / Basket |
| validationResults | form | List<BasketItemResponse> | No | Validation results of each basket item |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| line | form | int | No | Line number of the article |
| articleCode | form | string | No | Reference ID of the article/product |
| oldArticleCode | form | string | No | Old reference ID of the article/product |
| quantity | form | int | No | Quantity of the article |
| deliveryDate | form | DateTime | No | Delivery date of the article |
| strap | form | BasketStrapItem | No | Strap definition |
| errors | form | List<string> | No | Errors for the article |
| warnings | form | List<string> | No | Warnings for the article |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /purchase/basket HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"brand":"String","posCode":"String","customerReference":"String","notes":"String","orderItems":[{"articleCode":"String","quantity":0,"strap":{"speakingArticleCode":"String","buckleTypeDescription":"String","buckleTypeCode":"String","watch6Length":0,"watch12Length":0,"materialCode":"String","materialDescription":"String","colorCode":"String","colorDescription":"String","buckleWidth":"String","liningCode":"String","liningDescription":"String","stitchingCode":"String","stitchingDescription":"String","edgeCode":"String","edgeDescription":"String","paddingCode":"String","paddingDescription":"String","specialtyCode":"String","specialtyDescription":"String","nuancierCode":"String","isStrapVipOrder":false}}],"boosterContextId":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"purchaseOrderId":0,"validationResults":[{"line":0,"articleCode":"String","oldArticleCode":"String","quantity":0,"deliveryDate":"\/Date(-62135596800000-0000)\/","strap":{"speakingArticleCode":"String","buckleTypeDescription":"String","buckleTypeCode":"String","watch6Length":0,"watch12Length":0,"materialCode":"String","materialDescription":"String","colorCode":"String","colorDescription":"String","buckleWidth":"String","liningCode":"String","liningDescription":"String","stitchingCode":"String","stitchingDescription":"String","edgeCode":"String","edgeDescription":"String","paddingCode":"String","paddingDescription":"String","specialtyCode":"String","specialtyDescription":"String","nuancierCode":"String","isStrapVipOrder":false},"errors":["String"],"warnings":["String"]}]}