Skip to main content
PUT
Add product with custom price to subscription

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
integer<int64>
required

Subscription contract ID to add product to

api_key
string

API Key (Deprecated - Use X-API-Key header instead)

quantity
integer<int32>
required

Quantity of product to add

variantId
string
required

Shopify variant ID of the product to add

price
number<double>
required

Price of one unit, in the contract's currency. It replaces the product's own price and selling plan pricing. Discounts on the contract, and the store's subscription discount when applySubscriptionDiscount is on in the customer portal settings, apply on top of it.

Required range: 0.01 <= x <= 999999.99
isOneTimeProduct
boolean
default:false

When true, product will only be included in the next order; when false, in all future orders

Response

Product successfully added to subscription with custom price

billingAttempts
object
billingPolicy
object
createdAt
object
customAttributes
object[]
customer
object
customerPaymentMethod
object
deliveryMethod
object
deliveryPolicy
object
deliveryPrice
object
discounts
object
get__typename
string
id
string
lastPaymentStatus
enum<string>
Available options:
SUCCEEDED,
FAILED,
$UNKNOWN
lines
object
nextBillingDate
object
note
string
originOrder
object
revisionId
object
status
enum<string>
Available options:
ACTIVE,
PAUSED,
CANCELLED,
EXPIRED,
FAILED,
$UNKNOWN
updatedAt
object