Skip to content

Retrieve a template

API v2 is in public beta: endpoints and fields can change before general availability. See the changelog

GET/back_in_stock/templates/{key}

Costs 1 rate-limit point · Rate limits

Read one back-in-stock notification's email and SMS copy. key is "signup_thank_you" (sent right after a customer signs up), "restock_alert" (sent when the product restocks) or "reminder" (the follow-up). ?locale= picks the language of the copy (omit it for the shop default); the response names it in locale. Whether it sends, and when, is GET /back_in_stock/notification_settings.

Also searched asget back in stock templateshow restock emailback in stock email copyrestock reminder templatelocalized back in stock templatesignup thank you emailthank you for signing up template

Path parameters

  • keystringRequired

Query parameters

  • localestring

Errors

401

Missing or invalid X-Auth-Token.

404

The resource does not exist for this shop, or the action path is not registered.

422

The request failed validation.

429

Rate limited: cost-weighted per token (read 1, write 2; 360 points / 60s). Check Retry-After.

Every error has the same shape: see Errors.

GET/back_in_stock/templates/{key}
curl "https://app.stoqapp.com/api/v2/external/back_in_stock/templates/{key}" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
No body