v1

latestOpenAPI 3.1.02026-07-24920300.7 KB

Product Change

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

patch/items/{item_id}/change_product/

Path parameters

item_idstring required

Public ID of the order item you want to change

Request body

productstring

The product ID you want to change this order item to

Response

200

public_idstring
orderstring
offerstring
subscriptionstring
subscription_componentstring
productstring
{"stackTrail":"paths:/items/{item_id}/change_product/:patch:responses:200:content:application/json:schema:properties:product_attribute","oasType":"schema","type":"unknown"}
quantityinteger
pricestring
extra_coststring
total_pricestring
one_timeboolean
order_updatedstring
componentsstring[]

Example response

{
  "public_id": "f9cb2f93e1c845eb9de9eff46ddb3cbf",
  "order": "9e78860ef49c4a86861ca11f638e5488",
  "offer": "4a10a0e1738f46bf9d81be56ea6d8d85",
  "subscription": "565998a03d7a4647971aab47f8c487f9",
  "subscription_component": "85eae83c245111eeb185acde48001122",
  "product": "62900-W01",
  "quantity": 2,
  "price": "12.99",
  "extra_cost": "1.00",
  "total_price": "9.20",
  "order_updated": "2025-01-31 00:00:00",
  "components": [
    "product_id_1"
  ]
}