Skip to main content
POST
Node.js

Authorizations

Authorization
string
header
required

A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...

Headers

Idempotency-Key
string

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

storeId
string
required

The store's ID. A key reaches the store it was made in: GET /key answers which.

kind
string
required

Which email: receipt, invoice, reward, panel-code, balance-code, site-code, ticket-reply, sub-renewal, sub-charged, sub-due, sub-declined, sub-paused, sub-ended, recovery-first, recovery-declined, recovery-second, winback-first, winback-second.

Body

application/json
html
string

HTML to preview in place of what is saved; null for the original.

css
string

CSS to preview in place of what is saved.

subject
string

A subject to preview in place of what is saved.

shared
string

The CSS every email gets, in place of what is saved.

Response

It worked.

success
boolean
message
unknown
code
unknown
data
object