Carts | Update
Patch cart - update only values in request
Only the properties supplied in the body are updated; everything else on the cart is left untouched. The cart is recalculated after the patch is applied.
Example - update the customer email and add a custom property:
PATCH /api/carts/{cartId}/PatchCart
{
"customerEmail": "ola.nordmann@example.com",
"properties": [
{ "key": "giftWrap", "value": "true" }
]
}
List properties such as {orderForm.payments}, {orderForm.shipments}, {orderForm.discounts} and {orderForm.couponCodes} can be merged with add/update/replace semantics - see the corresponding {*MergeMode} fields for details.
patch/api/Cart/{cartId}/PatchCart
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Cart/{cartId}/PatchCart
- Auth: API key in header Authorization
Path parameters
cartIdstring nullable required
ID of existing cart. (Required)
Query parameters
returnUpdatedItemboolean
Set to true to include the updated cart in the response as {updatedItem}, avoiding a follow-up GET
Request body
Response
Cart updated successfully
Changes
No recorded changes to this operation across all 1 revision of this API.