Remove one-time product from subscription order
Removes a previously added one-time product from a specific subscription order. This permanently deletes the one-time product from the specified billing attempt. The operation is idempotent - attempting to delete a non-existent product will succeed without error.
Full behavior, validation rules, and side effects
Important Notes:
- Only removes the product from the specified billing attempt
- Cannot remove products from billing attempts that are already processed
- Activity logs are created for audit trails
- Returns the updated list of all one-time products for the contract
Use Cases:
- Allow customers to remove unwanted add-ons before order processing
- Clean up cart-like functionality in customer portals
- Programmatically manage one-time product selections
- Implement “undo” functionality for product additions
Business Rules:
- Contract must belong to the authenticated shop
- The specific combination of contractId + billingAttemptId + variantId identifies the product to remove
- No error is thrown if the product doesn’t exist (idempotent operation)
Authentication: Requires valid X-API-Key header that identifies the shop
Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Headers
API Key for authentication. This key identifies your shop and must be included in the X-API-Key header.
Query Parameters
API Key (Deprecated - Use X-API-Key header instead)
The unique identifier of the subscription contract
x >= 1The billing attempt ID that contains the product to remove
x >= 1The Shopify product variant ID to remove from the one-time purchases
x >= 1Response
One-time product successfully removed
The Shopify store domain that owns this subscription
^[a-zA-Z0-9][a-zA-Z0-9-]*\.myshopify\.com$"example-store.myshopify.com"
Unique identifier of the one-time product record
12345
The billing attempt ID this one-time product is associated with. This determines which upcoming order will include this product.
x >= 154321
The subscription contract ID this one-time product belongs to
x >= 198765
The Shopify product variant ID for this one-time product
x >= 142549172011164
The handle/slug of the product variant for URL-friendly identification
^[a-z0-9]+(?:-[a-z0-9]+)*$"premium-coffee-blend-500g"
The quantity of this product to include in the order
1 <= x <= 9992
The price per unit of this product in the shop's base currency. This may include any applicable discounts.
0 <= x <= 999999.9919.99