Update the coupon pop-up
Saves the pop-up whole. Switched off, it is saved as it is, finished or not. Switched on, it needs a title and a coupon buyers can use today.
Needs the coupons.write permission (Change Coupons).
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 the storefront shows it.
The coupon it hands out.
Its heading, up to 80 characters.
The line under the heading, up to 240 characters.
What its button says, up to 30 characters.
After a wait, or when the visitor looks like leaving.
delay, leave How long the wait is when opens is delay: 0 to 120 seconds.
How often one visitor sees it: on every page, once a visit, or once in that browser.
page, visit, browser 
