Skip to main content
PUT
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.

Body

application/json
name
string
required

The store's name.

description
string

What the store says about itself.

currencyCode
string

The currency its prices are in, as a three-letter code.

Example:

"USD"

adaptivePricing
boolean

Whether buyers are shown and charged prices in their own currency.

accentColor
string

The store's colour, as #rrggbb.

Example:

"#6a3ce2"

locale
string

The store's language and region, like en-GB or de-DE.

lowStockThreshold
integer

How few license keys a variant has left when the store is alerted.

supportUrl
string

Where buyers get help.

guideUrl
string

Where buyers find instructions.

panelUrl
string

A panel of the store's own that buyers sign in to.

The store's social networks: a network's name and its link. A blank link clears that network.

Example:

Links of the store's own, shown with its socials.

termsOfService
string

The store's terms, as text.

refundPolicy
string

The store's refund policy, as text.

logoUrl
string

The store's logo, as "Get the store" answers it. Empty removes it.

faviconUrl
string

The icon in the browser tab on the store's site. Empty removes it.

storefrontPassword
string

A password visitors have to enter to see the storefront. Empty opens it to everybody.

publishStock
boolean

Whether the storefront shows how many of a variant are left.

autoReviews
boolean

Whether an order nobody reviewed is given five stars after seven days.

publicStats
boolean

Whether the storefront shows items sold and customers.

saleNotifications
boolean

Whether the storefront shows a note when somebody buys.

publicOnline
boolean

Whether the storefront shows how many visitors are on it.

active
boolean

Whether the store is open. Switched off, nothing can be bought.

businessType
enum<string>

What kind of business it is.

Available options:
sole_proprietorship,
partnership,
llc,
corporation,
nonprofit,
other
businessName
string

The business's name, printed on invoices. With businessCountry, it opens Finance.

businessTaxId
string

Its tax number.

businessVatNumber
string

Its VAT number.

businessLine1
string

The first line of its address.

businessLine2
string

The second.

businessCity
string

Its city.

businessRegion
string

Its state or region.

businessPostalCode
string

Its postal code.

businessCountry
string

Its country, as a two-letter code.

Example:

"DE"

A line printed at the foot of every invoice.

expectedVersion
string

The settingsVersion you last read. Sent, the change is refused with stale_write only if something this route saves has changed since; the store's other settings (Support Tickets on or off, its tax, its payment options and the like) changing is not that. Use it rather than expectedUpdatedAt, which every one of them moves.

expectedUpdatedAt
string

The updatedAt you last read. Sent, the change is refused with stale_write if the record has changed since. Left out, it is saved whatever happened in between.

Response

It worked.

success
boolean
message
unknown
code
unknown
data
object