Remove one-time product from upcoming order
Removes a previously added one-time product (one-off) from a specific upcoming billing attempt. This allows customers or merchants to cancel add-on items before the order is processed.
Full behavior, validation rules, and side effects
Key Features:
- Flexible Cancellation: Remove add-ons before order processes
- Targeted Removal: Remove specific variant from specific order
- No Subscription Impact: Doesn’t affect recurring items
- Customer Control: Let members manage their add-ons
- Activity Logging: Tracks removal for audit trail
Required Parameters:
- Contract ID: Target subscription contract
- Billing Attempt ID: Order to remove item from
- Variant ID: Product variant to remove
How It Works:
- Validates contract exists and belongs to shop
- Finds one-off matching contract, billing attempt, and variant
- Deletes the one-off record
- Returns updated list of remaining one-offs
- Logs removal activity for audit trail
Use Cases:
- Customer changes mind about add-on product
- Remove out-of-stock items from upcoming orders
- Cancel promotional items no longer available
- Customer wants to reduce order total
- Merchant corrects mistakenly added items
- Manage add-ons in customer portal
Business Rules:
- Can only remove from upcoming (unprocessed) orders
- Must match exact contract, billing attempt, and variant
- Returns remaining one-offs after deletion
- Cannot remove from past/completed orders
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
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
Query Parameters
API Key (Deprecated - Use Header X-API-Key instead)
Subscription contract ID
Billing attempt ID to remove the item from
Product variant ID to remove
Response
One-off product successfully removed, returns updated list of remaining one-offs
Shop domain identifier
"my-store.myshopify.com"
Unique identifier of the one-off item
789
Associated billing attempt ID
Associated subscription contract ID
Shopify product variant ID of the one-off item
Product variant handle for the one-off item