Skip to navigation

Change Product

View as Markdown

Changes the product that the subscription is tied to. Past orders are unchanged; items in unsent orders pick up the new product.

Returns 400 when:

  • product doesn’t exist for the merchant
  • The subscription isn’t live
  • The subscription is prepaid, has prepaid orders remaining, and the new product’s price differs from the current product’s

Merchants can ask Ordergroove support to allow prepaid swaps to a lower-priced product. Swaps to a higher-priced product stay blocked while prepaid orders remain.

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

subscription_public_idstringRequired
Unique subscription ID

Request

This endpoint expects an object.
productstringRequired
Product ID

Response

200
customerstringOptional
merchantstringOptional
productstringOptional
paymentstringOptional
shipping_addressstringOptional
offerstringOptional
subscription_typestringOptional
componentslist of objectsOptional
extra_dataobjectOptional
public_idstringOptional
product_attributeanyOptional
quantityintegerOptionalDefaults to 0
pricestring or nullOptional
frequency_daysintegerOptionalDefaults to 0
reminder_daysintegerOptionalDefaults to 0
everyintegerOptionalDefaults to 0
every_periodintegerOptionalDefaults to 0
start_datestringOptional
cancelledstring or nullOptional
cancel_reasonstring or nullOptional
cancel_reason_codeinteger or nullOptional
iterationanyOptional
sequenceanyOptional
session_idstringOptional
merchant_order_idstringOptional
customer_repinteger or nullOptional
clubanyOptional
createdstringOptional
updatedstringOptional
livebooleanOptionalDefaults to true

Errors

403
Forbidden Error
404
Not Found Error