Skip to main content
PATCH
/
v1
/
bundle_items
/
{id}
Update
curl --request PATCH \
  --url https://{defaultHost}/v1/bundle_items/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bundle_item": {
    "quantity": 2
  }
}
'
{
  "id": "c2355cd1-d790-4a30-b313-e994b00e1749",
  "object": "bundle_item",
  "quantity": 2,
  "metadata": {},
  "position": 0,
  "bundle_price": "9c2cb6c4-374b-4187-a102-9c63ffe78ee6",
  "price": "f9b61571-f818-40ca-98cc-42bdc1c3334e",
  "product": "926042ec-fbc6-4ced-a599-64437742251c",
  "variant": null,
  "created_at": 1776179336,
  "updated_at": 1776179336
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
bundle_item
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

quantity
integer

The quantity of this component in the bundle.

position
integer | null

The position of this item within the bundle.

metadata
object

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

bundle_price

Expandable – The associated bundle price ID.

price

Expandable – The associated price ID.

product

Expandable – The associated product ID.

variant

Expandable – The associated variant ID.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.