Skip to main content

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​

Unsubscribed successfully - customer will no longer receive notifications