Skip to main content
PUT
Remove product from subscription

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
string
required

Subscription contract ID to remove product from. Provide the numeric ID without the gid:// prefix

Pattern: ^[0-9]+$
api_key
string

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

lineId
string
required

Line item ID of the product to remove. Must be the full GraphQL ID including the gid:// prefix

removeDiscount
boolean
default:true

Controls whether to remove discounts that apply only to this line item. When true (default), line-specific discounts are removed. When false, attempts to retain discounts where possible. Note: Discounts that apply to multiple lines are always retained regardless of this setting

Response

Product successfully removed from subscription

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
status
enum<string>
Available options:
ACTIVE,
PAUSED,
CANCELLED,
EXPIRED,
FAILED,
$UNKNOWN
updatedAt
object