| POST | /purchase/simulate/v2 | Simulate Order |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| brand | body | string | Yes | Brand Trigram of the intended Order, e.g. 'IWC', 'CAR', etc. |
| posCode | body | string | Yes | Global Pos Code for the intended Order e.g. ES100:102048 |
| customerReference | body | string | No | Customer Reference |
| notes | body | string | No | Additional Notes regarding the Order |
| orderDate | body | DateTime? | No | Purchase order date, e.g. '2020-12-31' |
| orderItems | body | List<SimulateOrderItemRequestV2> | Yes | List of Articles to be simulated |
| endCustomerBooster1Id | body | string | No | Booster1 ID of the end Customer |
| endCustomerDetails | body | EndCustomerDetails | No | Details of the end Customer |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| lineNumber | form | int | Yes | Line Number |
| articleCode | form | string | Yes | Reference ID of the article/product, e.g. 'CRWB520003' |
| quantity | form | int | Yes | Desired quantity of the article |
| requestedDeliveryDate | form | DateTime? | No | Requested Delivery Date of the Item, e.g. '2020-12-30' |
| orderType | form | string | No | Purchase order type, e.g. 'WCFS', null. Null for ordinary order |
| finalShipToId | form | string | No | Final Ship To Pos Code |
| strap | form | StrapItem | 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 |
|---|---|---|---|---|
| title | form | string | No | Title of the end Customer, e.g. 'MR', 'MRS'. |
| firstName | form | string | Yes | First Name of the end Customer |
| lastName | form | string | Yes | Last Name of the end Customer |
| form | string | No | Email of the end Customer | |
| phone | form | string | No | Phone number of the end Customer, e.g. '0032477123456'. |
| country | form | string | Yes | Countr code in the shipping address, e.g. 'BE' (ISO Code) |
| city | form | string | Yes | City name in the shipping address |
| street | form | string | Yes | Street name in the shipping address |
| houseNumber | form | string | No | House number in the shipping address |
| building | form | string | No | Building number in the shipping address |
| postalCode | form | string | No | Postal code in the shipping address |
| region | form | string | No | Region code in the shipping address, e.g. 'VL' (ISO Code) |
| district | form | string | No | District name in the shipping address |
| additionalInfo | form | string | No | Additional Info number to the shipping address |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| results | form | Dictionary<string, SplittedSimulateOrderResponse> | Yes | List of splitted order simulation results |
| shipTo | form | List<Party> | No | Addresses which order can be shipped to (common list for all splitted orders) |
| finalShipTo | form | List<Party> | No | Addresses which order can be final shipped to (common list for all splitted orders) |
| billTo | form | List<Party> | No | Addresses which order can be billed to (common list for all splitted orders) |
| soldTo | form | Party | No | Address which order is made to (common list for all splitted orders) |
| salesRepresentative | form | Party | No | Sales representatives (common list for all splitted orders) |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| orderType | form | string | Yes | Order Type |
| productType | form | string | Yes | Product Type |
| orderItems | form | List<SimulateOrderItemResponseV2> | Yes | List of Articles simulated |
| totalValues | form | TotalValues | Yes | Total Values |
| shipTo | form | List<Party> | Yes | Addresses which order can be shipped to |
| finalShipTo | form | List<Party> | No | Addresses which order can be final shipped to |
| billTo | form | List<Party> | Yes | Addresses which order can be billed to |
| soldTo | form | Party | Yes | Address which order is made to |
| salesRepresentative | form | Party | No | Sales Representative |
| warnings | form | List<Warning> | Yes | Warning list |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| lineNumber | form | int | Yes | Line Number, e.g 20, 40, 21, 41 |
| parentLineNumber | form | int? | Yes | Parent Line Number, e.g 20, 40 |
| requestLineNumber | form | int | Yes | Original line number in the request. Line numbers are remapped after the split |
| articleCode | form | string | Yes | Reference No of item, e.g.: CRWB521234 |
| substitutedArticleCode | form | string | No | Substituted reference No of item, e.g.: CRWB520003 |
| deliveryPlantId | form | string | Yes | DeliveryPlantId of item, e.g.: CHD6 |
| expectedDeliveryDate | form | string | No | Expected Delivery Date, e.g. '2020-12-30' |
| buckleSummary | form | string | No | Buckle Summary, need to be forwarded to order creation |
| materialSummary | form | string | No | Material Summary, need to be forwarded to order creation |
| contentSummary | form | string | No | Content Summary, need to be forwarded to order creation |
| strapSummary | form | string | No | Strap Summary, need to be forwarded to order creation |
| totalValues | form | ItemTotalValues | Yes | Item Total Values |
| warnings | form | List<Warning> | Yes | Warning list |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| requestedQuantity | form | Quantity | No | Requested Quantity |
| confirmedQuantity | form | Quantity | No | Confirmed Quantity |
| availableQuantity | form | Quantity | No | Available Quantity |
| grossWeightMeasure | form | Quantity | No | Gross Weight |
| netWeightMeasure | form | Quantity | No | Net Weight |
| volumeMeasure | form | Quantity | No | Volume |
| netAmount | form | Amount | No | Net Amount Line Total |
| netPrice | form | AmountAndQuantity | No | Net Price Line Total |
| taxAmount | form | Amount | No | Tax Amount Line Total |
| retailSalesPriceAmount | form | Amount | No | Retail Sales Price Line Total |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| unit | form | string | Yes | Unit |
| value | form | decimal | Yes | Value |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| value | form | decimal | Yes | Value |
| currency | form | string | Yes | Currency |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| amount | form | Amount | Yes | Amount |
| baseQuantity | form | Quantity | Yes | Base Quantity |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| id | form | string | Yes | Id |
| message | form | string | Yes | Message |
| severityCode | form | int | Yes | Severity code, possible values: 1, 2, 3, 4 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| grossWeightMeasure | form | Quantity | Yes | Gross Weight |
| netWeightMeasure | form | Quantity | Yes | Net Weight |
| grossVolumeMeasure | form | Quantity | Yes | Gross Volume |
| grossAmount | form | Amount | Yes | Gross Amount |
| netAmount | form | Amount | Yes | Net Amount |
| taxAmount | form | Amount | Yes | Tax Amount |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| id | form | string | Yes | Internal ID of the Element |
| name | form | string | Yes | Formatted Name of the Element |
| address | form | Address | No | Geographic Address of the Element |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| countryId | form | string | No | Country ID |
| stateId | form | string | No | State ID |
| city | form | string | No | City Name |
| street | form | string | No | Street Name and Number |
| zipCode | form | string | No | Postal Code |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /purchase/simulate/v2 HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SimulateOrderV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel">
<brand>String</brand>
<customerReference>String</customerReference>
<endCustomerBooster1Id>String</endCustomerBooster1Id>
<endCustomerDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel.SharedModels">
<d2p1:additionalInfo>String</d2p1:additionalInfo>
<d2p1:building>String</d2p1:building>
<d2p1:city>String</d2p1:city>
<d2p1:country>String</d2p1:country>
<d2p1:district>String</d2p1:district>
<d2p1:email>String</d2p1:email>
<d2p1:firstName>String</d2p1:firstName>
<d2p1:houseNumber>String</d2p1:houseNumber>
<d2p1:lastName>String</d2p1:lastName>
<d2p1:phone>String</d2p1:phone>
<d2p1:postalCode>String</d2p1:postalCode>
<d2p1:region>String</d2p1:region>
<d2p1:street>String</d2p1:street>
<d2p1:title>String</d2p1:title>
</endCustomerDetails>
<notes>String</notes>
<orderDate>0001-01-01T00:00:00</orderDate>
<orderItems>
<SimulateOrderItemRequestV2>
<articleCode>String</articleCode>
<finalShipToId>String</finalShipToId>
<lineNumber>0</lineNumber>
<orderType>String</orderType>
<quantity>0</quantity>
<requestedDeliveryDate>0001-01-01T00:00:00</requestedDeliveryDate>
<strap xmlns:d4p1="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel.SharedModels">
<d4p1:buckleTypeCode>String</d4p1:buckleTypeCode>
<d4p1:buckleTypeDescription>String</d4p1:buckleTypeDescription>
<d4p1:buckleWidth>String</d4p1:buckleWidth>
<d4p1:colorCode>String</d4p1:colorCode>
<d4p1:colorDescription>String</d4p1:colorDescription>
<d4p1:edgeCode>String</d4p1:edgeCode>
<d4p1:edgeDescription>String</d4p1:edgeDescription>
<d4p1:isStrapVipOrder>false</d4p1:isStrapVipOrder>
<d4p1:liningCode>String</d4p1:liningCode>
<d4p1:liningDescription>String</d4p1:liningDescription>
<d4p1:materialCode>String</d4p1:materialCode>
<d4p1:materialDescription>String</d4p1:materialDescription>
<d4p1:nuancierCode>String</d4p1:nuancierCode>
<d4p1:paddingCode>String</d4p1:paddingCode>
<d4p1:paddingDescription>String</d4p1:paddingDescription>
<d4p1:speakingArticleCode>String</d4p1:speakingArticleCode>
<d4p1:specialtyCode>String</d4p1:specialtyCode>
<d4p1:specialtyDescription>String</d4p1:specialtyDescription>
<d4p1:stitchingCode>String</d4p1:stitchingCode>
<d4p1:stitchingDescription>String</d4p1:stitchingDescription>
<d4p1:watch12Length>0</d4p1:watch12Length>
<d4p1:watch6Length>0</d4p1:watch6Length>
</strap>
</SimulateOrderItemRequestV2>
</orderItems>
<posCode>String</posCode>
</SimulateOrderV2>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SimulateOrderResponseV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Purchase.ServiceModel">
<billTo>
<Party>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</Party>
</billTo>
<finalShipTo>
<Party>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</Party>
</finalShipTo>
<results xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringSplittedSimulateOrderResponsewCvGvoJB>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<billTo>
<Party>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</Party>
</billTo>
<finalShipTo>
<Party>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</Party>
</finalShipTo>
<orderItems>
<SimulateOrderItemResponseV2>
<articleCode>String</articleCode>
<buckleSummary>String</buckleSummary>
<contentSummary>String</contentSummary>
<deliveryPlantId>String</deliveryPlantId>
<expectedDeliveryDate>String</expectedDeliveryDate>
<lineNumber>0</lineNumber>
<materialSummary>String</materialSummary>
<parentLineNumber>0</parentLineNumber>
<requestLineNumber>0</requestLineNumber>
<strapSummary>String</strapSummary>
<substitutedArticleCode>String</substitutedArticleCode>
<totalValues>
<availableQuantity>
<unit>String</unit>
<value>0</value>
</availableQuantity>
<confirmedQuantity>
<unit>String</unit>
<value>0</value>
</confirmedQuantity>
<grossWeightMeasure>
<unit>String</unit>
<value>0</value>
</grossWeightMeasure>
<netAmount>
<currency>String</currency>
<value>0</value>
</netAmount>
<netPrice>
<amount>
<currency>String</currency>
<value>0</value>
</amount>
<baseQuantity>
<unit>String</unit>
<value>0</value>
</baseQuantity>
</netPrice>
<netWeightMeasure>
<unit>String</unit>
<value>0</value>
</netWeightMeasure>
<requestedQuantity>
<unit>String</unit>
<value>0</value>
</requestedQuantity>
<retailSalesPriceAmount>
<currency>String</currency>
<value>0</value>
</retailSalesPriceAmount>
<taxAmount>
<currency>String</currency>
<value>0</value>
</taxAmount>
<volumeMeasure>
<unit>String</unit>
<value>0</value>
</volumeMeasure>
</totalValues>
<warnings>
<Warning>
<id>String</id>
<message>String</message>
<severityCode>0</severityCode>
</Warning>
</warnings>
</SimulateOrderItemResponseV2>
</orderItems>
<orderType>String</orderType>
<productType>String</productType>
<salesRepresentative>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</salesRepresentative>
<shipTo>
<Party>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</Party>
</shipTo>
<soldTo>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</soldTo>
<totalValues>
<grossAmount>
<currency>String</currency>
<value>0</value>
</grossAmount>
<grossVolumeMeasure>
<unit>String</unit>
<value>0</value>
</grossVolumeMeasure>
<grossWeightMeasure>
<unit>String</unit>
<value>0</value>
</grossWeightMeasure>
<netAmount>
<currency>String</currency>
<value>0</value>
</netAmount>
<netWeightMeasure>
<unit>String</unit>
<value>0</value>
</netWeightMeasure>
<taxAmount>
<currency>String</currency>
<value>0</value>
</taxAmount>
</totalValues>
<warnings>
<Warning>
<id>String</id>
<message>String</message>
<severityCode>0</severityCode>
</Warning>
</warnings>
</d2p1:Value>
</d2p1:KeyValueOfstringSplittedSimulateOrderResponsewCvGvoJB>
</results>
<salesRepresentative>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</salesRepresentative>
<shipTo>
<Party>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</Party>
</shipTo>
<soldTo>
<address>
<city>String</city>
<countryId>String</countryId>
<stateId>String</stateId>
<street>String</street>
<zipCode>String</zipCode>
</address>
<id>String</id>
<name>String</name>
</soldTo>
</SimulateOrderResponseV2>