Send Email To Sellers
/api/emails/sellersQueues a plain transactional notice to the store's own sellers, rendered like SendEmail. Core resolves the recipients from the store's team (audience team, the default) or its owner (audience owner), only verified addresses, and never returns them. The team is the owner and the members who may open the plugin's app; a member kept out of the app, or out of an area its granted permissions reach, such as orders, gets nothing: the answer is one email id per recipient and their count. Each recipient counts against the store's hourly budget, and the whole send is refused if it does not fit. A repeated idempotencyKey with different content is refused. Requires the store to have granted the plugin emails:send.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "owner"
- "team"
1 <= items <= 20Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/emails/sellers" \ -H "Content-Type: application/json" \ -d '{ "subject": "string", "heading": "string", "paragraphs": [ "string" ] }'{ "emailIds": [ "string" ], "recipients": -9007199254740991}Send Email POST
Queues a plain transactional email in the store's name. Core renders the subject, heading, paragraphs, optional https button and footer into its own template, escaping every field; the plugin supplies no markup. Without a reason, the recipient must be the store's customer or team member; with reason invite or account-notice, any address. Rate-limited per store, with a smaller budget shared by emails sent with a reason and refused sends. A repeated idempotencyKey answers the first send's id when the email is the same and is refused when it differs. Delivered by core's outbox, normally within minutes. Requires the store to have granted the plugin emails:send.
Add Note POST
Adds a note in the calling plugin's name to one of the store's orders, which the seller reads in the order's timeline: plain text of 1 to 500 characters, line breaks allowed, at level info, warning, success or error. The buyer never sees it. An order of another store, or one the store removed, is OrderNotInStore. A plugin adds at most 100 notes to one order; past that the call is OrderNotesLimitReached and writes nothing. Requires the store to have granted the plugin orders:annotate.
