General Notes
Authentication
You must authenticate with Salesforce Authentication System to make API calls.
curl -i -X GET \ 'https://mydefaultshortcode.api.commercecloud.salesforce.com/basket/{basketId}?c_marketplaceCheckPricesAndQuantities=true&siteId=string'
{ "productItems": [ { … } ], "shipments": [ { … } ] }
curl -i -X GET \ 'https://mydefaultshortcode.api.commercecloud.salesforce.com/customers/{customerId}/baskets?c_marketplaceCheckPricesAndQuantities=true&siteId=string'
{ "baskets": [ { … } ] }
Request body containing the basket to update
The total tax on products in the shipment, including item-level price adjustments but not including service charges such as shipping. If the Discount Taxation preference is set to Tax Products and Shipping Only Based on Adjusted Price, this amount also includes prorated order-level price adjustments. It is read only.
The total tax on shipping charges in the shipment, including shipping price adjustments. It is read only.
The expiration datetime of the inventory reservation. It is read only.
The total products tax in the purchase currency. Merchandise total price represents the sum of the product prices before services (such as shipping) or adjustments from promotions have been added. It is read only.
The total price of all products including item-level adjustments, but not including order-level adjustments or shipping charges. If the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.
The total price of all products including adjustments, but not including shipping charges. If the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.
The total price of all shipping charges, including shipping adjustments. If the taxation policy is net, it doesn't include tax. If the taxation policy is gross, it includes tax. It is read only.
The total tax on all shipping charges, not including shipping adjustments. It is read only.
curl -i -X PATCH \ 'https://mydefaultshortcode.api.commercecloud.salesforce.com/baskets/{basketId}?c_updatePrices=true&siteId=string' \ -H 'Content-Type: application/json' \ -d '{ "shipment": [ "object" ], "giftCertificateItems": [ "object" ], "bonusDiscountLineItems": [ "object" ], "productTotal": 0, "sourceCode": "string", "lastModified": "2023-03-28T09:34:42Z", "agentBasket": true, "productSubTotal": 0, "couponItems": [ "object" ], "shippingItems": [ "object" ], "shippingTotal": 0, "customerInfo": "object", "merchandizeTotalTax": 0, "shippingTotalTax": 0, "taxation": "string", "paymentInstruments": [ "object" ], "notes": "object", "inventoryReservationExpiry": "2023-03-28T09:34:42Z", "taxTotal": 0, "orderTotal": 0, "currency": "string", "adjustedShippingTotalTax": 0, "adjustedMerchandizeTotalTax": 0, "basketId": "string", "billingAddress": "object", "creationDate": "2023-03-28T09:34:42Z", "productItems": [ "object" ], "orderPriceAdjustments": [ "object" ], "channelType": "string" }'
{ "productItems": [ { … } ], "shipments": [ { … } ] }