Skip to main content
PUT
Update selling plan for a subscription line item

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
integer<int64>
required

The unique identifier of the subscription contract

Required range: x >= 1
lineId
string
required

The unique identifier of the line item in the subscription contract. Must be in full GraphQL ID format

sellingPlanId
integer<int64>

The unique identifier of the new selling plan. Provide the numeric ID without gid:// prefix. Required if sellingPlanName is not provided. The plan must be:

  • Active in your Shopify store
  • Associated with the product variant
  • Part of an active selling plan group
Required range: x >= 1
sellingPlanName
string

The customer-facing name of the new selling plan. Required if sellingPlanId is not provided. This is the name shown to customers like 'Deliver every 2 weeks' or 'Monthly subscription'. Must match exactly as configured in Shopify

Maximum string length: 255

Response

Selling plan updated successfully

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