Skip to main content
PATCH
/
v1
/
upsells
/
{id}
Update
curl --request PATCH \
  --url https://{defaultHost}/v1/upsells/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "upsell": {
    "amount_off": 750
  }
}
'
{
  "id": "fc2bea85-01e8-4b3a-b1af-10ef9692394c",
  "object": "upsell",
  "amount_off": 750,
  "duplicate_purchase_behavior": "allow",
  "fee_description": "Upsell Offer",
  "metadata": {},
  "percent_off": null,
  "replacement_behavior": "none",
  "step": "initial",
  "price": "13d9ca6a-e36b-4226-84db-15af95e82018",
  "upsell_funnel": "92a0616e-c423-409f-aa81-129d6c706e12",
  "discarded_at": null,
  "created_at": 1767909786,
  "updated_at": 1767909786
}

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
upsell
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

amount_off
integer | null

Amount (in the currency of the price) that will be taken off line items associated with this upsell.

duplicate_purchase_behavior
string

How to handle duplicate purchases of the product – can be one of allow, block_within_checkout, or block.

fee_description
string

The description for this upsell which will be visible to customers.

percent_off
number | null

Percent that will be taken off line items associated with this upsell.

replacement_behavior
string

Whether or not to replace line items in the associated checkout. Replacement occurs when a line item is upsold. Possible values include:

  • none (default): No line items will be replaced.
  • all: All line items will be replaced.
step
string

Where this upsell falls in position within the upsell funnel – can be one of initial, accepted, or declined.

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.

price

Expandable – The associated price ID.

upsell_funnel

Expandable – The associated upsell funnel ID.

discarded_at
integer | null

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

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.