Add a product to an existing membership contract
Adds a new product/variant line item to an existing active membership contract. This allows customers or merchants to add additional products to their recurring membership orders.
Key Features:
- Add any product variant to an existing membership
- Specify custom quantity and price per line item
- Product will be included in all future billing cycles
- Price is per-item, total line price = price × quantity
Important Notes:
- Immediate Effect: Product is added immediately and will appear in the next billing cycle
- Price Override: The price parameter allows setting a custom price (e.g., member discount)
- Activity Logging: Addition is logged for audit trail
- Validation: System validates that the variant exists and is available
Common Use Cases:
- Customer wants to add more products to their monthly membership box
- Merchant adds a complimentary product to a membership
- Upgrading membership with additional items
- Adding seasonal or limited-time products to existing memberships
Price Considerations:
- Price is specified in shop’s currency
- Can be set to member-only pricing (different from regular product price)
- Zero price is allowed for free add-ons
Variant ID Format:
- Accepts both numeric ID (e.g., ‘987654321’) and Shopify GID format
- System will convert to proper Shopify GraphQL format internally
Authentication: Requires authenticated shop user or customer portal token
Query Parameters
Membership contract ID to add product to
Shop domain (will be auto-populated from authentication)
Quantity of the product to add
Shopify variant ID of the product to add (numeric or GID format)
Price per unit in shop currency (allows custom/member pricing)
Response
Product successfully added to membership contract
SUCCEEDED, FAILED, $UNKNOWN ACTIVE, PAUSED, CANCELLED, EXPIRED, FAILED, $UNKNOWN