Change Win-Back
Changes the settings named and keeps the rest. Win-Back writes only to subscribers: buyers who ticked “Email me news and offers” at checkout on an order they paid, and have not said no since. The first email goes the set number of days after a buyer’s last completed order, if they have not ordered since; the second, days after the first, carries a coupon made for that buyer, good for 7 days. A buyer with a dispute on record is not written to. Switching it on also switches on asking at checkout, and meta.askingTurnedOn says so. An empty subject is the email’s own.
Needs the marketing.write permission (Change Email Marketing).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Headers
A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
Body
Whether Win-Back writes to anybody.
Whether the first email is sent.
Days after a buyer's last order. One of 14, 21, 30, 45, 60, 90.
30
Its subject, up to 150 characters.
Whether the second email is sent.
Days after the first. One of 3, 7, 14, 21, 30.
14
Its subject, up to 150 characters.
The percent off its coupon. One of 0, 5, 10, 15, 20, 25. 0 sends it with no coupon.
15
Who is written to: empty for every subscriber, vip, or the ID of one of the store's tags.

