Unsubscribe from back-in-stock notifications
DELETE/api/v1/sdk/cart/store/:storeId/back-in-stock-subscription
This endpoint unsubscribes the authenticated customer from back-in-stock notifications for a specific product variant.
Authentication: Requires customer authentication (JWT token with verified phone). Optional API key for additional store validation.
Use Cases:
- Allowing customers to cancel back-in-stock notifications
- Managing notification preferences
- Cleanup of no-longer-wanted notifications
Error Scenarios:
- 404 NOT FOUND - Product variant or subscription not found (Error code: VARIANT_NOT_FOUND or SUBSCRIPTION_NOT_FOUND)
- 400 BAD REQUEST - Invalid request format (Error code: INVALID_REQUEST)
- 401 UNAUTHORIZED - Customer not authenticated (Error code: UNAUTHORIZED)
- 403 FORBIDDEN - API key doesn't have access to this store (Error code: NO_STORE_ACCESS)
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- 500
Unsubscribed successfully - customer will no longer receive notifications
Invalid request format
Unauthorized - Customer authentication required
Forbidden - No access to this store
Product variant or subscription not found
Internal server error