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

ShopCurrency

Private Shop Currency API endpoints

Endpoints
  • GET/shop/currencies
  • POST/shop/currencies
  • GET/shop/currencies/{currency_code}
  • PATCH/shop/currencies/{currency_code}
  • DELETE/shop/currencies/{currency_code}
  • POST/shop/currencies/{currency_code}/publish
  • POST/shop/currencies/{currency_code}/unpublish

Get the shop currencies

GET /shop/currencies

A page of the currencies the shop sells in, unpublished ones included: the base currency first, then the extra currencies in the order they were added.

Query parameters

pageoptionalinteger

Page number

Defaults to 1.

per_pageoptionalinteger

Items per page

Defaults to 50.

Returnsobject

Shop currencies list response

Error responses

400object

The shop has no base currency (base_currency_missing).

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/currencies \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" } ] }

Add a shop currency

POST /shop/currencies

Add an extra currency with the gateway that takes card payments in it. Customers can pick the new currency unless published is false, and it comes last in the list. A currency removed earlier comes back with none of its old rate, price ending or gateways.

Request body

currency_codeRequiredstring

A code from GET /currencies, in any letter case. It cannot be the base currency or a currency the shop already sells in.

card_gateway_idRequiredinteger

The gateway, one of GET /gateways, that takes card payments in this currency: a Stripe, Braintree or Authorize.Net gateway. A Braintree gateway that another currency of the shop uses is refused.

paypal_gateway_idoptionalinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency: a PayPal gateway or a Braintree gateway with PayPal turned on, which may also be the card gateway. A Braintree gateway that another currency of the shop uses is refused.

custom_exchange_rateoptionalnumber | null

The shop's own rate, with at most 4 decimals: a base currency price multiplied by it gives the price in this currency. Leave it out or send null to use automatic_exchange_rate.

price_endingoptionalinteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers. Leave it out or send null to keep converted prices to the cent.

publishedoptionalboolean

Whether customers can pick the currency.

Defaults to true.

ReturnsShopCurrency

The added shop currency

Error responses

400object

Multiple currencies are not available for the shop (feature_not_available), or the shop has no base currency (base_currency_missing).

422object

Validation failed: currency_code is not in GET /currencies, is the base currency or is a currency the shop already sells in; a gateway id is not one of the shop's connected gateways, is the wrong kind of gateway or is a Braintree gateway another currency of the shop uses; or a value has the wrong type or is out of range.

curl -X POST https://api.subbly.co/private/v1/shop/currencies \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "currency_code": "EUR", "card_gateway_id": 12, "price_ending": 99 }'
Response
{ "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" }

Get a shop currency

GET /shop/currencies/{currency_code}

One of the currencies the shop sells in, the base currency included.

Path parameters

currency_codeRequiredstring

Currency code, in any letter case

ReturnsShopCurrency

Shop currency object response

Error responses

400object

The shop has no base currency (base_currency_missing).

404object

The shop does not sell in this currency.

curl https://api.subbly.co/private/v1/shop/currencies/{currency_code} \ -H 'X-API-KEY: <api-key>'
Response
{ "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" }

Update a shop currency

PATCH /shop/currencies/{currency_code}

Change an extra currency's rate, price ending or gateways: send only the keys you want to change; every other value stays as it is. The currency code cannot change: remove the currency and add it again instead.

Path parameters

currency_codeRequiredstring

Currency code, in any letter case

Request body

card_gateway_idoptionalinteger

The gateway, one of GET /gateways, that takes card payments in this currency: a Stripe, Braintree or Authorize.Net gateway. It cannot be null. A Braintree gateway that another currency of the shop uses is refused.

paypal_gateway_idoptionalinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency: a PayPal gateway or a Braintree gateway with PayPal turned on, which may also be the card gateway. null unlinks PayPal. A Braintree gateway that another currency of the shop uses is refused.

custom_exchange_rateoptionalnumber | null

The shop's own rate, with at most 4 decimals: a base currency price multiplied by it gives the price in this currency. null goes back to automatic_exchange_rate.

price_endingoptionalinteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers. null keeps converted prices to the cent.

ReturnsShopCurrency

The updated shop currency

Error responses

400object

Multiple currencies are not available for the shop (feature_not_available), the currency is the base currency (base_currency_not_editable), or the shop has no base currency (base_currency_missing).

404object

The shop does not sell in this currency.

422object

Validation failed: card_gateway_id is null; a gateway id is not one of the shop's connected gateways, is the wrong kind of gateway or is a Braintree gateway another currency of the shop uses; or a value has the wrong type or is out of range.

curl -X PATCH https://api.subbly.co/private/v1/shop/currencies/{currency_code} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "custom_exchange_rate": 0.95, "price_ending": 99 }'
Response
{ "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" }

Remove a shop currency

DELETE /shop/currencies/{currency_code}

Remove an extra currency and return it as it was. Customers can no longer pick it, and it is gone from the list. Open carts in the currency move to the base currency shortly after. Adding it again later starts fresh, without its old rate, price ending or gateways.

Path parameters

currency_codeRequiredstring

Currency code, in any letter case

ReturnsShopCurrency

The removed shop currency, serialised as it was just before the removal.

Error responses

400object

Multiple currencies are not available for the shop (feature_not_available), the currency is the base currency (base_currency_not_editable), or a subscription in the currency is active, trial, pre_order or gift_waiting_to_start (currency_has_active_subscriptions). Paused subscriptions and subscriptions set to cancel are active. A shop with no base currency gets base_currency_missing.

404object

The shop does not sell in this currency.

curl -X DELETE https://api.subbly.co/private/v1/shop/currencies/{currency_code} \ -H 'X-API-KEY: <api-key>'
Response
{ "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" }

Publish a shop currency

POST /shop/currencies/{currency_code}/publish

Let customers pick an extra currency. The currency needs a card gateway. Publishing a currency that is already published changes nothing.

Path parameters

currency_codeRequiredstring

Currency code, in any letter case

ReturnsShopCurrency

The published shop currency

Error responses

400object

Multiple currencies are not available for the shop (feature_not_available), the currency is the base currency (base_currency_not_editable), or it has no card gateway (currency_has_no_card_gateway). A shop with no base currency gets base_currency_missing.

404object

The shop does not sell in this currency.

curl -X POST https://api.subbly.co/private/v1/shop/currencies/{currency_code}/publish \ -H 'X-API-KEY: <api-key>'
Response
{ "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" }

Unpublish a shop currency

POST /shop/currencies/{currency_code}/unpublish

Stop customers picking an extra currency. Open carts in the currency move to the base currency shortly after. Its rates, price ending and gateways stay, so it can be published again. Unpublishing a currency that is already unpublished changes nothing.

Path parameters

currency_codeRequiredstring

Currency code, in any letter case

ReturnsShopCurrency

The unpublished shop currency

Error responses

400object

Multiple currencies are not available for the shop (feature_not_available), the currency is the base currency (base_currency_not_editable), or a subscription in the currency is active, trial, pre_order or gift_waiting_to_start (currency_has_active_subscriptions). Paused subscriptions and subscriptions set to cancel are active. A shop with no base currency gets base_currency_missing.

404object

The shop does not sell in this currency.

curl -X POST https://api.subbly.co/private/v1/shop/currencies/{currency_code}/unpublish \ -H 'X-API-KEY: <api-key>'
Response
{ "code": "EUR", "name": "Euro", "symbol": "โ‚ฌ", "base": false, "published": true, "custom_exchange_rate": null, "automatic_exchange_rate": 0.9213, "price_ending": 99, "card_gateway_id": 12, "paypal_gateway_id": null, "created_at": "2026-11-19T10:00:00.000000Z", "updated_at": "2026-11-19T10:00:00.000000Z" }
paginationobject
dataShopCurrency[]
codestring

Currency code, in upper case.

namestring
symbolstring
baseboolean

true for the base currency, the one the shop's prices are set in. It follows localization.trade_country_code in the shop settings.

publishedboolean

Whether customers can pick the currency. Always true for the base currency.

custom_exchange_ratenumber | null

The shop's own rate: a base currency price multiplied by it gives the price in this currency. When set, prices use it instead of automatic_exchange_rate; null means they use the automatic rate.

automatic_exchange_ratenumber

Today's market rate from the base currency, to 4 decimals, shown even while custom_exchange_rate is set. 1 for the base currency.

price_endinginteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers and null keeps converted prices to the cent. localization.currency_rounding in the shop settings says whether a price moves up to the ending or to the nearer one.

card_gateway_idinteger | null

The gateway, one of GET /gateways, that takes card payments in this currency. null when none is linked, for example after the gateway was disconnected.

paypal_gateway_idinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency, or null.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

codestring

Currency code, in upper case.

namestring
symbolstring
baseboolean

true for the base currency, the one the shop's prices are set in. It follows localization.trade_country_code in the shop settings.

publishedboolean

Whether customers can pick the currency. Always true for the base currency.

custom_exchange_ratenumber | null

The shop's own rate: a base currency price multiplied by it gives the price in this currency. When set, prices use it instead of automatic_exchange_rate; null means they use the automatic rate.

automatic_exchange_ratenumber

Today's market rate from the base currency, to 4 decimals, shown even while custom_exchange_rate is set. 1 for the base currency.

price_endinginteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers and null keeps converted prices to the cent. localization.currency_rounding in the shop settings says whether a price moves up to the ending or to the nearer one.

card_gateway_idinteger | null

The gateway, one of GET /gateways, that takes card payments in this currency. null when none is linked, for example after the gateway was disconnected.

paypal_gateway_idinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency, or null.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

codestring

Currency code, in upper case.

namestring
symbolstring
baseboolean

true for the base currency, the one the shop's prices are set in. It follows localization.trade_country_code in the shop settings.

publishedboolean

Whether customers can pick the currency. Always true for the base currency.

custom_exchange_ratenumber | null

The shop's own rate: a base currency price multiplied by it gives the price in this currency. When set, prices use it instead of automatic_exchange_rate; null means they use the automatic rate.

automatic_exchange_ratenumber

Today's market rate from the base currency, to 4 decimals, shown even while custom_exchange_rate is set. 1 for the base currency.

price_endinginteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers and null keeps converted prices to the cent. localization.currency_rounding in the shop settings says whether a price moves up to the ending or to the nearer one.

card_gateway_idinteger | null

The gateway, one of GET /gateways, that takes card payments in this currency. null when none is linked, for example after the gateway was disconnected.

paypal_gateway_idinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency, or null.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

codestring

Currency code, in upper case.

namestring
symbolstring
baseboolean

true for the base currency, the one the shop's prices are set in. It follows localization.trade_country_code in the shop settings.

publishedboolean

Whether customers can pick the currency. Always true for the base currency.

custom_exchange_ratenumber | null

The shop's own rate: a base currency price multiplied by it gives the price in this currency. When set, prices use it instead of automatic_exchange_rate; null means they use the automatic rate.

automatic_exchange_ratenumber

Today's market rate from the base currency, to 4 decimals, shown even while custom_exchange_rate is set. 1 for the base currency.

price_endinginteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers and null keeps converted prices to the cent. localization.currency_rounding in the shop settings says whether a price moves up to the ending or to the nearer one.

card_gateway_idinteger | null

The gateway, one of GET /gateways, that takes card payments in this currency. null when none is linked, for example after the gateway was disconnected.

paypal_gateway_idinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency, or null.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

codestring

Currency code, in upper case.

namestring
symbolstring
baseboolean

true for the base currency, the one the shop's prices are set in. It follows localization.trade_country_code in the shop settings.

publishedboolean

Whether customers can pick the currency. Always true for the base currency.

custom_exchange_ratenumber | null

The shop's own rate: a base currency price multiplied by it gives the price in this currency. When set, prices use it instead of automatic_exchange_rate; null means they use the automatic rate.

automatic_exchange_ratenumber

Today's market rate from the base currency, to 4 decimals, shown even while custom_exchange_rate is set. 1 for the base currency.

price_endinginteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers and null keeps converted prices to the cent. localization.currency_rounding in the shop settings says whether a price moves up to the ending or to the nearer one.

card_gateway_idinteger | null

The gateway, one of GET /gateways, that takes card payments in this currency. null when none is linked, for example after the gateway was disconnected.

paypal_gateway_idinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency, or null.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.

codestring

Currency code, in upper case.

namestring
symbolstring
baseboolean

true for the base currency, the one the shop's prices are set in. It follows localization.trade_country_code in the shop settings.

publishedboolean

Whether customers can pick the currency. Always true for the base currency.

custom_exchange_ratenumber | null

The shop's own rate: a base currency price multiplied by it gives the price in this currency. When set, prices use it instead of automatic_exchange_rate; null means they use the automatic rate.

automatic_exchange_ratenumber

Today's market rate from the base currency, to 4 decimals, shown even while custom_exchange_rate is set. 1 for the base currency.

price_endinginteger | null

The cents every converted price ends in: 99 gives 11.99, 0 gives whole numbers and null keeps converted prices to the cent. localization.currency_rounding in the shop settings says whether a price moves up to the ending or to the nearer one.

card_gateway_idinteger | null

The gateway, one of GET /gateways, that takes card payments in this currency. null when none is linked, for example after the gateway was disconnected.

paypal_gateway_idinteger | null

The gateway, one of GET /gateways, that takes PayPal payments in this currency, or null.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.