For the complete documentation index, see llms.txt. This page is also available as Markdown.

Store API

The Stock Reminder plugin provides two Store API endpoints that can be used for headless projects or custom storefront implementations.

Create Subscription

Creates a new notification subscription for a product.

Endpoint: POST /store-api/prems/stock-reminder/subscribe

Login required: No

Parameters:

Parameter
Type
Required
Description

productId

string

Yes

The UUID of the product.

email

string

Yes

The subscriber's email address. Must be a valid email address.

quantity

int

No

The desired order quantity. Default: 1. Ignored when the quantity field is hidden in the configuration — in that case, the product's minimum order quantity is used instead.

Response: 204 No Content on success.

Errors:

  • 403 Forbidden – The plugin is not active for the sales channel or the subscription limit of the free version has been reached.

  • 400 Bad Request – Invalid input data (missing product ID, invalid email).

Confirm Subscription

Confirms a subscription via the double opt-in hash.

Endpoint: POST /store-api/prems/stock-reminder/confirm/{hash}

Login required: No

Parameters:

Parameter
Type
Required
Description

hash

string

Yes

The unique confirmation hash from the confirmation email (URL parameter).

Response: 204 No Content on success.

Errors:

  • 404 Not Found – Invalid or already confirmed hash.

Was this helpful?