novinzodevelopers
API referenceCore for pluginsEmails

Send Email To Sellers

POST/api/emails/sellers

Queues 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.

audience?string

Value in

  • "owner"
  • "team"
idempotencyKey?string
subject*string
preheader?string
heading*string
paragraphs*array<string>
Items1 <= items <= 20
action?
footer?string

Response 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}