Richemont.Booster2.PublicApi

<back to all web services

CreateBasket

Requires Authentication
The following routes are available for this service:
POST/purchase/basketCreate Basket
CreateBasket Parameters:
NameParameterData TypeRequiredDescription
brandbodystringYesBrand Trigram of the intended order
posCodebodystringYesPos Code for the intended order e.g. ES03-10415-01
customerReferencebodystringYesCustomer Reference
notesbodystringYesAdditional Notes regarding the order
orderItemsbodyList<BasketItem>NoList of Articles to be added in the basket
boosterContextIdbodystringNoBrand Context ID
BasketItem Parameters:
NameParameterData TypeRequiredDescription
articleCodeformstringYesReference ID of the article/product
quantityformintNoDesired quantity of the article
strapformBasketStrapItemNoStrap definition
BasketStrapItem Parameters:
NameParameterData TypeRequiredDescription
speakingArticleCodeformstringNoArticle reference
buckleTypeDescriptionformstringNoBuckle type Description
buckleTypeCodeformstringNoBuckle type
watch6Lengthformint?Nowatch 6 Length
watch12Lengthformint?Nowatch 12 Length
materialCodeformstringNoArticle Material Code
materialDescriptionformstringNoArticle Material Description
colorCodeformstringNoArticle Color Code
colorDescriptionformstringNoArticle Color Description
buckleWidthformstringNoBuckle Witdh
liningCodeformstringNoArticle Lining Code
liningDescriptionformstringNoArticle Lining Description
stitchingCodeformstringNoArticle Stitching Code
stitchingDescriptionformstringNoArticle Stitching Description
edgeCodeformstringNoArticle Edge Code
edgeDescriptionformstringNoArticle Edge Description
paddingCodeformstringNoArticle Padding Code
paddingDescriptionformstringNoArticle Padding Description
specialtyCodeformstringNoArticle Speciality Code
specialtyDescriptionformstringNoArticle Speciality Description
nuancierCodeformstringNoNuancier Code
isStrapVipOrderformbool?NoStrap Vip Order
CreateBasketResponse Parameters:
NameParameterData TypeRequiredDescription
purchaseOrderIdformintYesID of the newly created Purchase Order / Basket
validationResultsformList<BasketItemResponse>NoValidation results of each basket item
BasketItemResponse Parameters:
NameParameterData TypeRequiredDescription
lineformintNoLine number of the article
articleCodeformstringNoReference ID of the article/product
oldArticleCodeformstringNoOld reference ID of the article/product
quantityformintNoQuantity of the article
deliveryDateformDateTimeNoDelivery date of the article
strapformBasketStrapItemNoStrap definition
errorsformList<string>NoErrors for the article
warningsformList<string>NoWarnings for the article

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
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/jsv
Content-Length: length

{
	purchaseOrderId: 0,
	validationResults: 
	[
		{
			line: 0,
			articleCode: String,
			oldArticleCode: String,
			quantity: 0,
			deliveryDate: 0001-01-01,
			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
			]
		}
	]
}