campaigns_write
Store must have one of: EMAIL_SMS
Arguments
Returns
Errors
Besides the errors any request can return, this operation fails with these codes inextensions.code.
Add shoppers to back-in-stock lists, as the back-in-stock CSV upload on the marketing analytics page does, such as subscribers moved from another tool. Each waits on one product variant and is notified by the store’s back-in-stock flow when it restocks. Nothing is sent now and email consent doesn’t change. Returns one result per input: OK with the new subscription; SKIPPED with ALREADY_SUBSCRIBED and the existing subscription when the email is already waiting on that product, so running an import again adds only what’s new; SKIPPED with NOT_FOUND when the store has no such product; SKIPPED with UNSUPPORTED_PRODUCT_SOURCE for a product not from Shopify. A shopper already notified about that product is added again. Runs while the request waits, for 1 to 100 subscriptions. BAD_USER_INPUT for no inputs or too many, an invalid email, or an input naming neither or both of productId and sourceId; nothing is imported then. Needs the campaigns_write scope, as productBackInStockNotify does and as the app’s upload needs Manage campaigns, though an import may also create customers.
campaigns_write
Store must have one of: EMAIL_SMS
extensions.code.