Skip to main content
POST
/
v1
/
bundle_items
Create
curl --request POST \
  --url https://{defaultHost}/v1/bundle_items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bundle_item": {
    "bundle_price": "032e7cf8-c263-4466-86e4-f587b9a7e085",
    "price": "1e0af18c-c98f-4be3-a855-a4ada1bb1fb1",
    "quantity": 1
  }
}
'
{
  "id": "cd981cb4-0257-477d-bbb0-60567f109629",
  "object": "bundle_item",
  "quantity": 1,
  "metadata": {},
  "position": 1,
  "bundle_price": "032e7cf8-c263-4466-86e4-f587b9a7e085",
  "price": "1e0af18c-c98f-4be3-a855-a4ada1bb1fb1",
  "product": "eb126fee-8ac7-4b43-bf12-a6c046a80073",
  "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.

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.