addPriceBooksToBasket
Add price books to a basket.
Operation ID: addPriceBooksToBasketPUT
https://{shortCode}.api.commercecloud.salesforce.com/checkout/shopper-baskets/v1/organizations/{organizationId}/baskets/{basketId}/price-books
( DEPRECATED ) This method allows you to put an array of priceBookIds to an existing basket, which will be used for basket calculation. This endpoint is deprecated. Use Shopper Context, hooks or dw.catalog.PriceBookMgr#setApplicablePriceBooks()
instead.
Request
curl "https://{shortCode}.api.commercecloud.salesforce.com/checkout/shopper-baskets/v1/organizations/{organizationId}/baskets/{basketId}/price-books?siteId=RefArch" \
-X PUT \
-H "content-type: application/json" \
-d '[
null,
null
]'
Security
URI parameters
shortCode
string
Required
Default value:
shortCode
organizationId
string
Required
An identifier for the organization the request is being made by
Minimum characters:
1
Maximum characters:
32
f_ecom_zzxy_prd
basketId
string
Required
The ID of the basket to be modified.
Minimum characters:
1
Query parameters
siteId
string
Required
The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites
Minimum characters:
1
Maximum characters:
32
RefArch
Body
Media type:
application/json
[
null,
null
]
items
string
Maximum characters:
256
Maximum array length:
10
Responses
Success, without body.