Update subscription bundle details

Updates the contents of a bundle purchased on a subscription, from a custom editing experience. Works whether the customer edits from Loop's subscription portal or your own custom portal.


Auth: šŸ”’ Access-gated (beta). Pass the customer accessToken in the request headers.

The id here is the transaction ID

The id in the body is the transaction ID (the same value used in Get subscription bundle details) - not the Bundle ID and not the subscription/contract ID.

Body parameters

NameTypeRequiredDescription
idstringYesThe transaction ID of the bundle being edited.
itemsarrayYesThe full, updated set of child products (see below).
boxSizeIdstring—Box size id for the updated selection.
discountIdstring—Discount id eligible for the updated content, if any.

items[]: { productVariantShopifyId (int64), quantity (int32) }. quantity is the count of that variant.

On success, the response includes a returnUrl you can redirect the customer back to (e.g. the Loop subscription portal).


Body Params
string
required

Loop's transactionId used to retrieve the details of specific bundle

items
array of objects

Array of all the productVariantId and their quantity part of the updated bundle content

items
int32

Loop's discountId for the discount eligible based on the updated bundle content

int32

Loop's boxSizeId based on the updated bundle content

Response
200
Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!