Update subscription line item quantity and pricing
Updates an existing line item in a subscription contract, modifying quantity, variant, or price. This endpoint allows comprehensive updates to subscription products.
Full behavior, validation rules, and side effects
Line Item Update Process:
- Line Item Identification: Locates line item using GraphQL line ID
- Quantity Update: Changes product quantity for recurring orders
- Variant Change: Can switch to different variant of same product
- Price Override: Optional custom pricing override
- Contract Sync: Updates Shopify subscription contract
- Activity Logging: Records line item modification event
Update Capabilities:
- Quantity Adjustment: Increase or decrease product quantity
- Variant Switching: Change product variant (size, color, flavor, etc.)
- Custom Pricing: Override standard pricing per line item
- Combined Updates: Change multiple properties in single request
Parameters:
- lineId: GraphQL ID of line item to update
- quantity: New quantity (must be positive integer)
- variantId: Product variant ID (can change to different variant)
- price: Custom price override (optional, overrides default pricing)
Price Override:
- Allows custom per-line pricing
- Useful for special pricing arrangements
- Overrides default product pricing
- Price in shop’s base currency
Use Cases:
- Customer increases/decreases product quantity
- Switch product variant (e.g., Medium → Large roast)
- Special pricing for VIP customers
- Seasonal variant changes (Summer → Winter flavor)
- Customer portal quantity adjustments
- Wholesale pricing overrides
- Build-a-box quantity modifications
Important Notes:
- Quantity must be positive (use remove-line-item to delete)
- Variant must be valid and available
- Price updates don’t affect existing discount percentages
- Changes apply to next billing cycle
Returns: Updated subscription contract object with modified line item
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Query Parameters
Subscription contract ID
API Key (Deprecated - Use Header X-API-Key instead)
New quantity for the line item
Product variant ID (can be different variant)
Line item GraphQL ID to update
Custom price override (optional)
Response
Line item successfully updated
ACTIVE, PAUSED, CANCELLED, EXPIRED, FAILED, $UNKNOWN SUCCEEDED, FAILED, $UNKNOWN