SubblySubbly
Log inGet started
  • Get started
  • Developer resources
Private API reference
Docs
Information
    Base URLAuthenticationPaginationErrors
Customer
    Get list of customersCreate a customerGet customer by IDUpdate a customerDelete a customerChange a customer's store credit balanceCreate a customer noteUpdate a customer noteDelete a customer note
Address
    Create an addressUpdate an addressDelete an address
Pickup Info
    Get list of pickup infoCreate pickup infoUpdate pickup infoDelete pickup info
Subscription
    Get list of subscriptionsCreate a subscriptionGet subscription by IDUpdate a subscriptionCancel a subscriptionUndo cancellationPause a subscriptionResume a subscriptionSkip renewals until a dateReactivate a cancelled or expired subscriptionSwitch the subscription to another plan by starting overChange the plans of the subscription's itemsUpdate a subscription's shipping address and methodUpdate a subscription's payment methodUpdate a subscription's survey preferencesCreate a subscription itemShow a subscription itemUpdate a subscription itemRemove a subscription itemUpdate a subscription item's preferencesUpdate a subscription item's bundleChange the plan of a subscription itemChange the variant of a one-time itemApply a discount to a subscription itemRemove a subscription item discountApply a discount to a subscriptionRemove a subscription discount
Invoice
    Get list of invoicesGet invoice by IDSchedule the next payment for invoiceVoid an invoiceForgive an invoiceMark an invoice as paid
Order
    Get list of ordersGet order by IDUpdate an orderShip an orderCancel an orderMark an order as pendingArchive an orderMark an order as a future shipmentSync order shipping items
Payment Method
    Create a payment methodGet payment method by IDDelete a payment method
Transaction
    Get list of transactionsGet transaction by ID
Cancellation
    Get shop cancellation reasonsAdd a cancellation reasonRename a cancellation reasonDelete a cancellation reason
Product
    Get list of productsGet product by IDGet variant by IDUpdate variantGet plan by IDUpdate planCreate subscription productUpdate subscription productPublish subscription productUnpublish subscription productArchive subscription productSync subscription product metadataCreate one-time productUpdate one-time productPublish one-time productUnpublish one-time productArchive one-time productSync one-time product metadataCreate variantArchive variantBatch create/update/archive variantsCreate planArchive plan
Survey
    Get survey by IDGet list of surveys
Bundle
    Get list of bundlesCreate a new bundleGet bundle by IDUpdate a bundleGet list of bundle itemsCreate a bundle itemBatch create bundle itemsGet bundle item by IDUpdate a bundle itemDelete a bundle itemGet list of bundle groupsPublish a bundleUnpublish a bundleArchive a bundleSync bundle metadataCreate a bundle planGet bundle plan by IDUpdate a bundle planArchive a bundle plan
Tag
    Get list of tags
Metafield
    Get shop's metafieldsCreate a new metadataUpdate the metadataDelete a metafield
Metaobject
    List metaobjectsCreate a metaobjectGet a metaobjectUpdate a metaobjectDelete a metaobjectList the entries of a metaobjectCreate a metaobject entryGet a metaobject entryUpdate a metaobject entryDelete a metaobject entry
Funnel
    Get list of funnelsGet funnel by ID
Option
    Get list of options
Country
    Get list of countries
Currency
    Get list of currencies
Inventory
    Get list of inventory itemsCreate a new inventory itemGet inventory item by IDUpdate an inventory itemArchive an inventory itemGet list of inventory groupsCreate a new inventory groupGet inventory group by IDUpdate an inventory group
Coupon
    Get list of couponsCreate a couponGet coupon by IDUpdate a couponArchive a coupon
Custom Tax
    Get list of custom taxesCreate a custom taxGet a custom taxUpdate a custom taxDelete a custom taxPublish a custom taxUnpublish a custom taxGet list of custom tax groupsCreate a custom tax groupGet a custom tax groupUpdate a custom tax groupDelete a custom tax group
Product Collection
    Get list of product collectionsCreate a product collectionGet product collection by IDUpdate a product collectionPublish a product collectionUnpublish a product collectionArchive a product collectionGet list of collection groups with itemsSync collection items
Webhook
    Get list of webhook endpointsCreate a webhook endpointGet webhook delivery statisticsGet a webhook endpointUpdate a webhook endpointDelete a webhook endpointRotate the signing secretSend a test eventGet webhook deliveriesGet a delivery with its attemptsRetry a delivery manuallyGet the webhook event logGet one event with its deliveries across endpointsGet the catalogue of subscribable event types
Email Unsubscribe
    Unsubscribe an email address from marketing mail
Shipping
    Get list of shipping rulesCreate a shipping ruleGet shipping rule by IDUpdate a shipping ruleDelete a shipping rulePublish a shipping ruleUnpublish a shipping ruleGet list of shipping optionsCreate a shipping optionGet shipping option by IDUpdate a shipping optionDelete a shipping optionPublish a shipping optionUnpublish a shipping optionGet list of local pickupsCreate a local pickupGet local pickup by IDUpdate a local pickupDelete a local pickupPublish a local pickupUnpublish a local pickupGet list of local deliveriesCreate a local deliveryGet local delivery by IDUpdate a local deliveryDelete a local deliveryPublish a local deliveryUnpublish a local deliveryGet list of shipping methodsGet a shipping method
Team Member
    Get list of team membersAdd a team memberGet team member by IDUpdate a team memberRemove a team member
Shop
    Get the shop
Shop Settings
    Update the shop settings
Shop Owner
    Update the shop owner
Gateway
    Get list of gatewaysGet gateway by ID
Referral Program
    Update the referral program
ShopCurrency
    Get the shop currenciesAdd a shop currencyGet a shop currencyUpdate a shop currencyRemove a shop currencyPublish a shop currencyUnpublish a shop currency
StorefrontTranslation
    Get the storefront translationsAdd a storefront translationGet a storefront translationUpdate a storefront translationRemove a storefront translationPublish a storefront translationUnpublish a storefront translationMake a storefront translation primaryGet a storefront translation's textsUpdate a storefront translation's texts
Gift Card
    Get list of gift cardsIssue a gift cardGet gift card by IDUpdate a gift cardCancel a gift card
Metric
    Get list of metricsGet a metric

StorefrontTranslation

Private Storefront Translation API endpoints

Endpoints
  • GET/shop/translations
  • POST/shop/translations
  • GET/shop/translations/{translation_id}
  • PATCH/shop/translations/{translation_id}
  • DELETE/shop/translations/{translation_id}
  • POST/shop/translations/{translation_id}/publish
  • POST/shop/translations/{translation_id}/unpublish
  • POST/shop/translations/{translation_id}/primary
  • GET/shop/translations/{translation_id}/texts
  • PATCH/shop/translations/{translation_id}/texts

Get the storefront translations

GET /shop/translations

A page of the shop's storefront translations, the languages checkout and the customer portal can be shown in, unpublished ones included, oldest first.

Query parameters

pageoptionalinteger

Page number

Defaults to 1.

per_pageoptionalinteger

Items per page

Defaults to 50.

Returnsobject

Storefront translations list response

Error responses

422object

page is not an integer of at least 1, or per_page is not an integer from 1 to 500.

curl https://api.subbly.co/private/v1/shop/translations \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" } ] }

Add a storefront translation

POST /shop/translations

Add a language checkout and the customer portal can be shown in. It starts unpublished, so customers cannot pick it until it is published. Send template to start it with a full set of texts; without one it has no texts and customers see the built-in English.

Request body

nameRequiredstring

The name customers see for it in the language switcher. It cannot contain emoji or other characters beyond U+FFFF.

codeRequiredstring

A two-letter ISO 639-1 language code, in any letter case, returned in lower case. The shop cannot already have a translation with this code.

currency_symbol_positionoptionalstring | null

Whether the currency symbol is shown before ("$10") or after ("10 $") amounts. Leave it out or send null for the template's position, or before without a template.

Possible values: before, after.

templateoptionalstring | null

Start the translation with every text of a template: en English, es Spanish, fr French or nl Dutch. English puts the currency symbol before amounts, the others after. Leave it out or send null to start with no texts.

Possible values: en, es, fr, nl.

ReturnsStorefrontTranslation

The added storefront translation

Error responses

400object

Storefront translations are not available for the shop, or template is sent and custom translation texts are not available for it (feature_not_available).

422object

Validation failed: name is missing, longer than 255 characters or contains emoji; code is missing, is not an ISO 639-1 code or is a language the shop already has a translation for; or currency_symbol_position or template is not one of its values.

curl -X POST https://api.subbly.co/private/v1/shop/translations \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "Deutsch", "code": "de", "template": "en" }'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Get a storefront translation

GET /shop/translations/{translation_id}

One of the shop's storefront translations, published or not.

Path parameters

translation_idRequiredinteger

Storefront translation ID

ReturnsStorefrontTranslation

Storefront translation object response

Error responses

404object

The translation does not exist or belongs to another shop.

curl https://api.subbly.co/private/v1/shop/translations/{translation_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Update a storefront translation

PATCH /shop/translations/{translation_id}

Rename a storefront translation or change its code or currency symbol position: send only the keys you want to change; every other value stays as it is. Its texts are kept.

Path parameters

translation_idRequiredinteger

Storefront translation ID

Request body

nameoptionalstring

The name customers see for it in the language switcher. It cannot be null or contain emoji or other characters beyond U+FFFF.

codeoptionalstring

A two-letter ISO 639-1 language code, in any letter case, returned in lower case. It cannot be null, and no other translation of the shop can have it; resending the translation's own code passes.

currency_symbol_positionoptionalstring

Whether the currency symbol is shown before ("$10") or after ("10 $") amounts. It cannot be null.

Possible values: before, after.

ReturnsStorefrontTranslation

The updated storefront translation

Error responses

400object

Storefront translations are not available for the shop (feature_not_available).

404object

The translation does not exist or belongs to another shop.

422object

Validation failed: a sent key is null; name is longer than 255 characters or contains emoji; code is not an ISO 639-1 code or is a language another translation of the shop has; or currency_symbol_position is not one of its values.

curl -X PATCH https://api.subbly.co/private/v1/shop/translations/{translation_id} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "Espaรฑol (Espaรฑa)", "currency_symbol_position": "after" }'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Remove a storefront translation

DELETE /shop/translations/{translation_id}

Remove a storefront translation and its texts, and return it as it was. Customers can no longer pick it, and it is gone from the list. When it is the primary translation, the shop then has no primary translation, and checkout shows the published translation the customer asks for, else the first published one.

Path parameters

translation_idRequiredinteger

Storefront translation ID

ReturnsStorefrontTranslation

The removed storefront translation, serialised as it was just before the removal.

Error responses

404object

The translation does not exist or belongs to another shop.

curl -X DELETE https://api.subbly.co/private/v1/shop/translations/{translation_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Publish a storefront translation

POST /shop/translations/{translation_id}/publish

Let customers pick a storefront translation in checkout and the customer portal. When the shop has no primary translation, this one becomes it. Publishing a translation that is already published changes nothing.

Path parameters

translation_idRequiredinteger

Storefront translation ID

ReturnsStorefrontTranslation

The published storefront translation

Error responses

400object

Storefront translations are not available for the shop (feature_not_available), or the shop already has as many published translations as it can have (translation_limit_reached).

404object

The translation does not exist or belongs to another shop.

curl -X POST https://api.subbly.co/private/v1/shop/translations/{translation_id}/publish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Unpublish a storefront translation

POST /shop/translations/{translation_id}/unpublish

Stop customers picking a storefront translation. When it is the primary translation, the shop then has no primary translation, and checkout shows the published translation the customer asks for, else the first published one. Its texts stay, so it can be published again. Unpublishing a translation that is already unpublished changes nothing.

Path parameters

translation_idRequiredinteger

Storefront translation ID

ReturnsStorefrontTranslation

The unpublished storefront translation

Error responses

404object

The translation does not exist or belongs to another shop.

curl -X POST https://api.subbly.co/private/v1/shop/translations/{translation_id}/unpublish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Make a storefront translation primary

POST /shop/translations/{translation_id}/primary

Make a published storefront translation the shop's primary translation, the one checkout and the customer portal show first. The previous primary translation stays published. Making the primary translation primary again changes nothing.

Path parameters

translation_idRequiredinteger

Storefront translation ID

ReturnsStorefrontTranslation

The primary storefront translation

Error responses

400object

Storefront translations are not available for the shop (feature_not_available), or the translation is not published (translation_not_published).

404object

The translation does not exist or belongs to another shop.

curl -X POST https://api.subbly.co/private/v1/shop/translations/{translation_id}/primary \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 381, "name": "English", "code": "en", "currency_symbol_position": "before", "published": true, "primary": true, "created_at": "2026-01-05T09:00:00.000000Z", "updated_at": "2026-01-06T09:00:00.000000Z" }

Get a storefront translation's texts

GET /shop/translations/{translation_id}/texts

The texts checkout and the customer portal show in this translation, as plain text: every key of every section, with null where the translation sets no text of its own.

Path parameters

translation_idRequiredinteger

Storefront translation ID

ReturnsStorefrontTranslationTexts

Storefront translation texts response

Error responses

404object

The translation does not exist or belongs to another shop.

curl https://api.subbly.co/private/v1/shop/translations/{translation_id}/texts \ -H 'X-API-KEY: <api-key>'
Response
{ "cart": { "addToCart": "Add to box", "addToSubscription": null }, "common": { "day": [ "days", "day", "days" ], "emailPlaceholder": "example@mail.com" }, "summary": { "autoRenewalsCount": [ "No auto-renewals", "Up to 1 auto-renewal", "Up to {count} auto-renewals" ] } }

Update a storefront translation's texts

PATCH /shop/translations/{translation_id}/texts

Change a storefront translation's texts: send only the sections and keys to change, each as customers should see it, and every other text stays as it is. null removes the translation's own text, so customers see the built-in English one again. Leading and trailing spaces are removed, and emoji are not accepted. The reply lists every text, as GET does.

Path parameters

translation_idRequiredinteger

Storefront translation ID

Request body

[key]optionalobject

The section's texts by key.

ReturnsStorefrontTranslationTexts

Every text of the storefront translation, after the change

Error responses

400object

Storefront translations, or custom translation texts, are not available for the shop (feature_not_available).

404object

The translation does not exist or belongs to another shop.

422object

Validation failed, on the text's path such as cart.addToCart: the section or key does not exist; a text is not a string of 1 to 1000 characters once leading and trailing spaces are removed (so a text of spaces only is refused), or contains emoji; a plural text is not a list of 1 to 3 such forms; a { or } is not around a placeholder name; or a text with @ or | also holds a placeholder, an apostrophe, a backslash or a line break.

curl -X PATCH https://api.subbly.co/private/v1/shop/translations/{translation_id}/texts \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "cart": { "addToCart": "Add to box", "addToSubscription": null, "onlyCountLeft": "Only {stockCountLeft} left" }, "common": { "day": [ "dagen", "dag", "dagen" ], "emailPlaceholder": "help@shop.com" }, "payment": { "zeroChargeNotification": "You'll see $0.00: we only save your card now." } }'
Response
{ "cart": { "addToCart": "Add to box", "addToSubscription": null }, "common": { "day": [ "days", "day", "days" ], "emailPlaceholder": "example@mail.com" }, "summary": { "autoRenewalsCount": [ "No auto-renewals", "Up to 1 auto-renewal", "Up to {count} auto-renewals" ] } }
paginationobject
dataStorefrontTranslation[]
idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

idinteger
namestring
codestring

The language code, such as en.

currency_symbol_positionstring

Whether the currency symbol is shown before or after amounts.

Possible values: before, after.

publishedboolean

Whether checkout and the customer portal can be shown in it.

primaryboolean

Whether it is the shop's primary translation, the one checkout and the customer portal show first.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

[key]object

The section's texts by key.

[key]optionalstring | string[] | null
[key]object

The section's texts by key.