Product Change

View as Markdown
Use this request to change the product that the order item is tied to.

Authentication

x-api-keystring

Application API Scope — server-to-server, sent in the x-api-key header. See Authentication.

OR
authorizationstring

Storefront API Scope — client-side, scoped to one customer, sent as a signature in the authorization header. See Authentication.

Path parameters

item_idstringRequired
Public ID of the order item you want to change

Request

This endpoint expects an object.
productstringOptional
The product ID you want to change this order item to

Response

200
public_idstringOptional
orderstringOptional
offerstringOptional
subscriptionstringOptional
subscription_componentstringOptional
productstringOptional
product_attributeanyOptional
quantityintegerOptionalDefaults to 0
pricestringOptional
extra_coststringOptional
total_pricestringOptional
one_timebooleanOptionalDefaults to true
order_updatedstringOptional
componentslist of stringsOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error