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

Shipping

Private Shipping API endpoints: shipping rules (zones with countries, regions and excluded zip patterns), the shipping options priced inside them, local pickups, local deliveries, and a read-only list of shipping methods. Money is in cents, in the shop base currency. Each option, pickup and delivery has one shipping method, whose id is the shipping_method_id used by subscriptions, orders and carts. Everything is created unpublished and is offered at checkout once published; an option only once its rule is published.

Endpoints
  • GET/shipping_rules
  • POST/shipping_rules
  • GET/shipping_rules/{shipping_rule_id}
  • PATCH/shipping_rules/{shipping_rule_id}
  • DELETE/shipping_rules/{shipping_rule_id}
  • POST/shipping_rules/{shipping_rule_id}/publish
  • POST/shipping_rules/{shipping_rule_id}/unpublish
  • GET/shipping_rules/{shipping_rule_id}/options
  • POST/shipping_rules/{shipping_rule_id}/options
  • GET/shipping_rules/{shipping_rule_id}/options/{option_id}
  • PATCH/shipping_rules/{shipping_rule_id}/options/{option_id}
  • DELETE/shipping_rules/{shipping_rule_id}/options/{option_id}
  • POST/shipping_rules/{shipping_rule_id}/options/{option_id}/publish
  • POST/shipping_rules/{shipping_rule_id}/options/{option_id}/unpublish
  • GET/local_pickups
  • POST/local_pickups
  • GET/local_pickups/{local_pickup_id}
  • PATCH/local_pickups/{local_pickup_id}
  • DELETE/local_pickups/{local_pickup_id}
  • POST/local_pickups/{local_pickup_id}/publish
  • POST/local_pickups/{local_pickup_id}/unpublish
  • GET/local_deliveries
  • POST/local_deliveries
  • GET/local_deliveries/{local_delivery_id}
  • PATCH/local_deliveries/{local_delivery_id}
  • DELETE/local_deliveries/{local_delivery_id}
  • POST/local_deliveries/{local_delivery_id}/publish
  • POST/local_deliveries/{local_delivery_id}/unpublish
  • GET/shipping_methods
  • GET/shipping_methods/{shipping_method_id}

Get list of shipping rules

GET /shipping_rules

A paginated list of the shop's shipping rules (zones), published or not.

Query parameters

ids[]optionalinteger[]

Filter by shipping rule IDs. Values must be unique.

queryoptionalstring

Case-insensitive substring match on the rule name

publishedoptionalinteger

Filter by published status (0 or 1)

Possible values: 0, 1.

country_idoptionalinteger

Only the rules that cover this shipping country (see GET /countries), whole or by some of its regions

sort[field]optionalstring

Sort field; name ignores letter case. Without sort the list is newest first (id desc), with it the direction defaults to asc and id breaks ties

Possible values: id, name, created_at.

sort[direction]optionalstring

Sort direction; defaults to asc.

Possible values: asc, desc.

Defaults to "asc".

pageoptionalinteger

Page number

per_pageoptionalinteger

Items per page

Defaults to 10.

Returnsobject

Shipping rules list response

Error responses

422object

A query parameter is invalid: a wrong type, a repeated ID, a value outside its enum or range, an unknown shipping country, or sort without sort[field]. errors lists the messages per parameter.

curl https://api.subbly.co/private/v1/shipping_rules \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" } ] }

Create a shipping rule

POST /shipping_rules

Create a shipping zone: a name, the countries it covers and optional zip patterns to exclude. Options are added separately through POST /shipping_rules/{shipping_rule_id}/options. The rule is created unpublished; publish it through POST /shipping_rules/{shipping_rule_id}/publish.

Request body

nameRequiredstring
countriesRequiredobject

The countries of the zone, as { create: [...] }.

excluded_zip_patternsoptionalobject

Zip patterns to exclude, as { create: [...] }; each matches ^([A-Za-z\s\d])+([\*]+)?$. Each * matches exactly one character and the pattern covers the whole zip, ignoring case. A pattern may be sent once, in any letter case.

createoptionalstring[]

ReturnsShippingRule

The created shipping rule

Error responses

422object

A field is missing or invalid: a malformed countries or excluded_zip_patterns set, an unknown or repeated country or region, regions that do not fit the country, a country or region another rule of the shop already has, or a zip pattern that is malformed or repeated. errors lists the messages per field.

curl -X POST https://api.subbly.co/private/v1/shipping_rules \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "countries": { "create": [ { "id": 230, "regions": { "create": [ 1209, 1242 ] } } ] }, "excluded_zip_patterns": { "create": [ "90***" ] } }'
Response
{ "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" }

Get shipping rule by ID

GET /shipping_rules/{shipping_rule_id}

Get a single shipping rule by its ID.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

ReturnsShippingRule

Shipping rule object response

Error responses

404object

No shipping rule exists with this ID in the shop, or the rule is deleted.

curl https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" }

Update a shipping rule

PATCH /shipping_rules/{shipping_rule_id}

Partial update: only the keys present in the body are applied. countries and excluded_zip_patterns are change sets; a set left out, or sent as an empty object, changes nothing. published changes only through the publish and unpublish endpoints.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

Request body

nameoptionalstring
countriesoptionalShippingRuleCountriesChangeSet

Countries keyed by country id: create countries must not be on the rule yet, update and delete countries must be, an id may appear in only one of create, update and delete, and at least one country must remain.

excluded_zip_patternsoptionalZipPatternsChangeSet

Zip patterns keyed by the pattern itself, compared ignoring letter case: create patterns must not be listed yet, delete patterns must be (deleting ab1 removes a stored AB1), and a pattern may appear only once, in one of create and delete. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

ReturnsShippingRule

The updated shipping rule

Error responses

404object

No shipping rule exists with this ID in the shop, or the rule is deleted.

422object

A field fails the create rules, or a change set is malformed, lists an entry in two operations, creates an entry already on the rule, updates or deletes one that is not, or would leave the rule without a country or a country with regions without a region. errors lists the messages per field.

curl -X PATCH https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "countries": { "create": [ {} ], "update": [ {} ], "delete": [ { "id": 230 } ] }, "excluded_zip_patterns": { "create": [ "90***" ], "delete": [ "946**" ] } }'
Response
{ "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" }

Delete a shipping rule

DELETE /shipping_rules/{shipping_rule_id}

Delete the rule with its options and their shipping methods, and return the rule as it was.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

ReturnsShippingRule

The deleted shipping rule, serialised as it was just before the delete.

Error responses

400object

A subscription, whatever its status, or a cart in checkout still uses one of the rule's options (shipping_rule_in_use).

404object

No shipping rule exists with this ID in the shop, or the rule is already deleted.

curl -X DELETE https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" }

Publish a shipping rule

POST /shipping_rules/{shipping_rule_id}/publish

Sets the rule's published flag. Its options keep their own flag: an option unpublished earlier stays unpublished. Publishing a published rule answers 200 and changes nothing.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

ReturnsShippingRule

The published shipping rule

Error responses

400object

The rule stays unpublished: the publish is refused with no_active_plan or shipping_plan_limit_exceeded.

404object

No shipping rule exists with this ID in the shop, or the rule is deleted.

curl -X POST https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/publish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" }

Unpublish a shipping rule

POST /shipping_rules/{shipping_rule_id}/unpublish

Clears the rule's published flag and unpublishes every option of the rule, so none of them is offered at checkout any more. Unpublishing an unpublished rule answers 200 and changes nothing.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

ReturnsShippingRule

The unpublished shipping rule

Error responses

404object

No shipping rule exists with this ID in the shop, or the rule is deleted.

curl -X POST https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/unpublish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 22, "name": "Domestic shipments", "published": true, "countries": [ { "id": 230, "code": "US", "name": "United States", "regions": [ {} ] } ], "excluded_zip_patterns": [ "90***", "ABC 123" ], "options": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ {} ], "product_groups": [ {} ], "collections": [ {} ], "carriers": [ {} ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ], "created_at": "2024-03-26T14:49:01.000000Z", "updated_at": "2024-03-26T14:49:01.000000Z" }

Get list of shipping options

GET /shipping_rules/{shipping_rule_id}/options

A paginated list of the rule's shipping options, published or not.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

Query parameters

ids[]optionalinteger[]

Filter by shipping option IDs. Values must be unique.

types[]optionalstring[]

Filter by option types, e.g. types[]=price&types[]=weight

publishedoptionalinteger

Filter by published status (0 or 1)

Possible values: 0, 1.

queryoptionalstring

Case-insensitive substring match on the option name

sort[field]optionalstring

Sort field; name ignores letter case. Without sort the list is newest first (id desc), with it the direction defaults to asc and id breaks ties

Possible values: id, name, created_at.

sort[direction]optionalstring

Sort direction; defaults to asc.

Possible values: asc, desc.

Defaults to "asc".

pageoptionalinteger

Page number

per_pageoptionalinteger

Items per page

Defaults to 10.

Returnsobject

Shipping options list response

Error responses

404object

No shipping rule exists with this ID in the shop, or the rule is deleted.

422object

A query parameter is invalid: a wrong type, a repeated ID, or a value outside its enum or range. errors lists the messages per parameter.

curl https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ] }

Create a shipping option

POST /shipping_rules/{shipping_rule_id}/options

Create an option under the rule; the fields each type takes are listed on the request schema. The option gets its own shipping method and starts unpublished; publish it through POST /shipping_rules/{shipping_rule_id}/options/{option_id}/publish once its rule is published.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

Request body

nameRequiredstring
typeRequiredstring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationoptionalstring | null
priceoptionalinteger | null

Cents: the fee of a flat_price option, or the price per product of a product or collection option for products outside its product_groups or collections. null is the same as leaving it out.

rangesoptionalShippingOptionRange[]
product_groupsoptionalShippingOptionProductGroup[]
collectionsoptionalShippingOptionCollection[]
aggregated_price_typeoptionalstring | null

Required for product and collection options; refused for other types. null is the same as leaving it out.

Possible values: min, max, sum.

max_shipping_feeoptionalinteger | null

Cents; null or 0 means no cap.

free_shipping_fee_amountoptionalinteger | null

Cents; null turns free shipping off, 0 makes shipping always free. Not used by dynamic options.

multiply_price_by_shipment_numberoptionalboolean

Used by flat_price, price and weight options only.

Defaults to false.

handling_feeoptionalinteger

Cents, added once per shipment. dynamic only; refused on other types, null included.

Defaults to 0.

provideroptionalstring | null

null is the same as leaving it out.

Possible values: flavorcloud.

carriersoptionalShippingOptionCarrierInput[]

ReturnsShippingOption

The created shipping option

Error responses

404object

No shipping rule exists with this ID in the shop, or the rule is deleted.

422object

A field is missing or invalid for the option's type: a field the type does not take or needs, a negative or non-integer amount, a malformed or repeated list entry, an unknown, archived or parent product, an unknown collection, carrier or service code, or a second option of the provider in the rule. errors lists the messages per field.

curl -X POST https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "type": "flat_price", "duration": "duration", "price": 0, "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "aggregated_price_type": "min", "max_shipping_fee": 0, "free_shipping_fee_amount": 0, "multiply_price_by_shipment_number": false, "handling_fee": 0, "provider": "flavorcloud", "carriers": [ { "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ] }'
Response
{ "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }

Get shipping option by ID

GET /shipping_rules/{shipping_rule_id}/options/{option_id}

Get a single shipping option by its ID.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

option_idRequiredinteger

Shipping option ID

ReturnsShippingOption

Shipping option object response

Error responses

404object

No shipping rule exists with this ID in the shop or the rule is deleted (ShippingRule not found with ID: 22), or the rule has no option with this ID.

curl https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options/{option_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }

Update a shipping option

PATCH /shipping_rules/{shipping_rule_id}/options/{option_id}

Partial update: only the keys present in the body are applied, against the stored type. A list sent replaces the stored one. type and provider are set on create; published changes only through the publish and unpublish endpoints.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

option_idRequiredinteger

Shipping option ID

Request body

nameoptionalstring
durationoptionalstring | null
priceoptionalinteger | null

Not null on flat_price, product and collection options; refused on other types, where null is accepted.

rangesoptionalShippingOptionRange[]

2 to 10 ranges on price and weight options; [] on other types.

product_groupsoptionalShippingOptionProductGroup[]

At least one group on product options; [] on other types.

collectionsoptionalShippingOptionCollection[]

At least one collection on collection options; [] on other types.

aggregated_price_typeoptionalstring | null

Not null on product and collection options; refused on other types, where null is accepted.

Possible values: min, max, sum.

max_shipping_feeoptionalinteger | null
free_shipping_fee_amountoptionalinteger | null
multiply_price_by_shipment_numberoptionalboolean
handling_feeoptionalinteger | null

Not null on dynamic options; refused on other types, where null is accepted.

carriersoptionalShippingOptionCarrierInput[]

At least one carrier on dynamic options; [] on other types.

ReturnsShippingOption

The updated shipping option

Error responses

404object

No shipping rule exists with this ID in the shop or the rule is deleted (ShippingRule not found with ID: 22), or the rule has no option with this ID.

422object

A field fails the create rules for the stored type, or the type's own list is sent as [] or one of its required values as null. errors lists the messages per field.

curl -X PATCH https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options/{option_id} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "duration": "duration", "price": 0, "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "aggregated_price_type": "min", "max_shipping_fee": 0, "free_shipping_fee_amount": 0, "multiply_price_by_shipment_number": true, "handling_fee": 0, "carriers": [ { "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ] }'
Response
{ "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }

Delete a shipping option

DELETE /shipping_rules/{shipping_rule_id}/options/{option_id}

Delete the option with its list and its shipping method, and return the option as it was.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

option_idRequiredinteger

Shipping option ID

ReturnsShippingOption

The deleted shipping option, serialised as it was just before the delete.

Error responses

400object

A subscription, whatever its status, or a cart in checkout still uses the option (shipping_method_in_use).

404object

No shipping rule exists with this ID in the shop or the rule is deleted (ShippingRule not found with ID: 22), or the rule has no option with this ID.

curl -X DELETE https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options/{option_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }

Publish a shipping option

POST /shipping_rules/{shipping_rule_id}/options/{option_id}/publish

Publishes the option, which makes it available at checkout. The rule must be published first. Publishing a published option answers 200 and changes nothing.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

option_idRequiredinteger

Shipping option ID

ReturnsShippingOption

The published shipping option

Error responses

400object

The rule is not published (shipping_rule_not_published), or the publish is refused with no_active_plan or shipping_plan_limit_exceeded.

404object

No shipping rule exists with this ID in the shop or the rule is deleted (ShippingRule not found with ID: 22), or the rule has no option with this ID.

curl -X POST https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options/{option_id}/publish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }

Unpublish a shipping option

POST /shipping_rules/{shipping_rule_id}/options/{option_id}/unpublish

Unpublishes the option, so it is no longer offered at checkout. Unpublishing an unpublished option answers 200 and changes nothing.

Path parameters

shipping_rule_idRequiredinteger

Shipping rule ID

option_idRequiredinteger

Shipping option ID

ReturnsShippingOption

The unpublished shipping option

Error responses

404object

No shipping rule exists with this ID in the shop or the rule is deleted (ShippingRule not found with ID: 22), or the rule has no option with this ID.

curl -X POST https://api.subbly.co/private/v1/shipping_rules/{shipping_rule_id}/options/{option_id}/unpublish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": 1, "max_shipping_fee": 1, "aggregated_price_type": "min", "multiply_price_by_shipment_number": true, "handling_fee": null, "provider": "flavorcloud", "ranges": [ { "from": 2500, "price": 500 } ], "product_groups": [ { "price": 300, "products": [ {} ] } ], "collections": [ { "collection_id": 6, "price": 400 } ], "carriers": [ { "id": 1, "name": "flavorcloud", "service_codes": [ "STANDARD", "EXPRESS" ] } ], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }

Get list of local pickups

GET /local_pickups

A paginated list of the shop's local pickup points (pickup) and Mondial Relay points (mondial_relay), published or not.

Query parameters

ids[]optionalinteger[]

Filter by local pickup IDs. Values must be unique.

types[]optionalstring[]

Filter by pickup types

publishedoptionalinteger

Filter by published status (0 or 1)

Possible values: 0, 1.

country_idoptionalinteger

Only the pickups in this shipping country

queryoptionalstring

Case-insensitive substring match on the pickup name

sort[field]optionalstring

Sort field; name ignores letter case. Without sort the list is newest first (id desc), with it the direction defaults to asc and id breaks ties

Possible values: id, name, created_at.

sort[direction]optionalstring

Sort direction; defaults to asc.

Possible values: asc, desc.

Defaults to "asc".

pageoptionalinteger

Page number

per_pageoptionalinteger

Items per page

Defaults to 10.

Returnsobject

Local pickups list response

Error responses

422object

A query parameter is invalid: a wrong type, a repeated ID, a value outside its enum or range, or an unknown country. errors lists the messages per parameter.

curl https://api.subbly.co/private/v1/local_pickups \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" } ] }

Create a local pickup

POST /local_pickups

Create a pickup point: a pickup carries an address, a mondial_relay point a country and a price (the customer picks the relay at checkout). The pickup gets its own shipping method and starts unpublished; publish it through POST /local_pickups/{local_pickup_id}/publish.

Request body

typeRequiredstring

Possible values: pickup, mondial_relay.

nameRequiredstring
priceRequiredinteger

Cents.

country_idRequiredinteger

Shipping country id (see GET /countries). For mondial_relay, one of FR, ES, BE, NL, LU, DE, AT, PT (local_pickup_type=mondial_relay lists them).

region_idoptionalinteger

A region of country_id, for a country with regions (see GET /countries).

regionoptionalstring

The region as free text, for a country without regions.

working_hoursoptionalstring
commentoptionalstring | null

At most 65535 bytes in UTF-8.

cityoptionalstring
address_oneoptionalstring
address_twooptionalstring | null
zipoptionalstring
phoneoptionalstring

A valid international phone number, e.g. +14155552671.

multiply_price_by_shipment_numberoptionalboolean

Defaults to false.

ReturnsLocalPickup

The created local pickup

Error responses

422object

A field is missing or invalid for the pickup's type: a field the type does not take or needs, a country Mondial Relay does not serve, a region that does not fit the country, an invalid phone number, or a value of the wrong type, too long or out of range. errors lists the messages per field.

curl -X POST https://api.subbly.co/private/v1/local_pickups \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "type": "pickup", "name": "name", "price": 0, "country_id": 1, "region_id": 1, "region": "region", "working_hours": "working_hours", "comment": "comment", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "phone", "multiply_price_by_shipment_number": false }'
Response
{ "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" }

Get local pickup by ID

GET /local_pickups/{local_pickup_id}

Get a single local pickup by its ID.

Path parameters

local_pickup_idRequiredinteger

Local pickup ID

ReturnsLocalPickup

Local pickup object response

Error responses

404object

No local pickup exists with this ID in the shop.

curl https://api.subbly.co/private/v1/local_pickups/{local_pickup_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" }

Update a local pickup

PATCH /local_pickups/{local_pickup_id}

Partial update: only the keys present in the body are applied, against the stored type. type is set on create; published changes only through the publish and unpublish endpoints.

Path parameters

local_pickup_idRequiredinteger

Local pickup ID

Request body

nameoptionalstring
priceoptionalinteger
country_idoptionalinteger
region_idoptionalinteger
regionoptionalstring
working_hoursoptionalstring
commentoptionalstring | null

At most 65535 bytes in UTF-8.

cityoptionalstring
address_oneoptionalstring
address_twooptionalstring | null
zipoptionalstring
phoneoptionalstring
multiply_price_by_shipment_numberoptionalboolean

ReturnsLocalPickup

The updated local pickup

Error responses

404object

No local pickup exists with this ID in the shop.

422object

A field fails the create rules for the stored type. errors lists the messages per field.

curl -X PATCH https://api.subbly.co/private/v1/local_pickups/{local_pickup_id} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "price": 0, "country_id": 1, "region_id": 1, "region": "region", "working_hours": "working_hours", "comment": "comment", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "phone", "multiply_price_by_shipment_number": true }'
Response
{ "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" }

Delete a local pickup

DELETE /local_pickups/{local_pickup_id}

Delete the pickup and its shipping method, and return the pickup as it was.

Path parameters

local_pickup_idRequiredinteger

Local pickup ID

ReturnsLocalPickup

The deleted local pickup, serialised as it was just before the delete.

Error responses

400object

A subscription, whatever its status, or a cart in checkout still uses the pickup (shipping_method_in_use).

404object

No local pickup exists with this ID in the shop.

curl -X DELETE https://api.subbly.co/private/v1/local_pickups/{local_pickup_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" }

Publish a local pickup

POST /local_pickups/{local_pickup_id}/publish

Publishes the pickup, which makes it available at checkout. Publishing a published pickup answers 200 and changes nothing.

Path parameters

local_pickup_idRequiredinteger

Local pickup ID

ReturnsLocalPickup

The published local pickup

Error responses

400object

The pickup stays unpublished: the publish is refused with no_active_plan or shipping_plan_limit_exceeded.

404object

No local pickup exists with this ID in the shop.

curl -X POST https://api.subbly.co/private/v1/local_pickups/{local_pickup_id}/publish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" }

Unpublish a local pickup

POST /local_pickups/{local_pickup_id}/unpublish

Unpublishes the pickup, so it is no longer offered at checkout. Unpublishing an unpublished pickup answers 200 and changes nothing.

Path parameters

local_pickup_idRequiredinteger

Local pickup ID

ReturnsLocalPickup

The unpublished local pickup

Error responses

404object

No local pickup exists with this ID in the shop.

curl -X POST https://api.subbly.co/private/v1/local_pickups/{local_pickup_id}/unpublish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 24, "shipping_method_id": 71, "name": "Acme Store local pickup #1", "type": "pickup", "price": 1000, "working_hours": "Mon-Fri 9-17", "comment": "comment", "country": "Albania", "country_id": 2, "country_code": "AL", "region": "Tirana", "region_id": 1, "region_code": "region_code", "city": "city", "address_one": "address_one", "address_two": "address_two", "zip": "zip", "phone": "+380730737185", "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-01-19T12:50:07.000000Z", "updated_at": "2026-01-19T12:50:07.000000Z" }

Get list of local deliveries

GET /local_deliveries

A paginated list of the shop's local deliveries (own-courier delivery to a set of zip patterns), published or not. Each entry embeds its areas.

Query parameters

ids[]optionalinteger[]

Filter by local delivery IDs. Values must be unique.

publishedoptionalinteger

Filter by published status (0 or 1)

Possible values: 0, 1.

queryoptionalstring

Case-insensitive substring match on the delivery name

sort[field]optionalstring

Sort field; name ignores letter case. Without sort the list is newest first (id desc), with it the direction defaults to asc and id breaks ties

Possible values: id, name, created_at.

sort[direction]optionalstring

Sort direction; defaults to asc.

Possible values: asc, desc.

Defaults to "asc".

pageoptionalinteger

Page number

per_pageoptionalinteger

Items per page

Defaults to 10.

Returnsobject

Local deliveries list response

Error responses

422object

A query parameter is invalid: a wrong type, a repeated ID, or a value outside its enum or range. errors lists the messages per parameter.

curl https://api.subbly.co/private/v1/local_deliveries \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" } ] }

Create a local delivery

POST /local_deliveries

Create a local delivery: a name, a price and the zip patterns it serves. The delivery gets its own shipping method and starts unpublished; publish it through POST /local_deliveries/{local_delivery_id}/publish.

Request body

nameRequiredstring
durationoptionalstring | null
priceRequiredinteger

Cents.

commentoptionalstring | null

At most 65535 bytes in UTF-8.

areasRequiredobject

Zip patterns as { create: [...] }, each matching ^([A-Za-z\s\d])+([\*]+)?$ (letters, digits and spaces with optional trailing *s), e.g. 946** or SW1A 1AA. Each * matches exactly one character and the pattern covers the whole zip, ignoring case. A pattern may be sent once, in any letter case.

createRequiredstring[]
multiply_price_by_shipment_numberoptionalboolean

Defaults to false.

ReturnsLocalDelivery

The created local delivery

Error responses

422object

A field is missing or invalid: a value of the wrong type, too long or out of range, a malformed areas set, or a zip pattern that is malformed or repeated. errors lists the messages per field.

curl -X POST https://api.subbly.co/private/v1/local_deliveries \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "duration": "duration", "price": 0, "comment": "comment", "areas": { "create": [ "create" ] }, "multiply_price_by_shipment_number": false }'
Response
{ "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" }

Get local delivery by ID

GET /local_deliveries/{local_delivery_id}

Get a single local delivery by its ID.

Path parameters

local_delivery_idRequiredinteger

Local delivery ID

ReturnsLocalDelivery

Local delivery object response

Error responses

404object

No local delivery exists with this ID in the shop.

curl https://api.subbly.co/private/v1/local_deliveries/{local_delivery_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" }

Update a local delivery

PATCH /local_deliveries/{local_delivery_id}

Partial update: only the keys present in the body are applied. areas is a { create, delete } change set on the stored patterns. published changes only through the publish and unpublish endpoints.

Path parameters

local_delivery_idRequiredinteger

Local delivery ID

Request body

nameoptionalstring
durationoptionalstring | null
priceoptionalinteger
commentoptionalstring | null

At most 65535 bytes in UTF-8.

areasoptionalZipPatternsChangeSet

Zip patterns keyed by the pattern itself, compared ignoring letter case: create patterns must not be listed yet, delete patterns must be (deleting ab1 removes a stored AB1), and a pattern may appear only once, in one of create and delete. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberoptionalboolean

ReturnsLocalDelivery

The updated local delivery

Error responses

404object

No local delivery exists with this ID in the shop.

422object

A field fails the create rules, or areas is malformed, lists a pattern in both operations, creates a pattern already listed, deletes one that is not, or would leave the delivery without a pattern. errors lists the messages per field.

curl -X PATCH https://api.subbly.co/private/v1/local_deliveries/{local_delivery_id} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "name": "name", "duration": "duration", "price": 0, "comment": "comment", "areas": { "create": [ "90***" ], "delete": [ "946**" ] }, "multiply_price_by_shipment_number": true }'
Response
{ "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" }

Delete a local delivery

DELETE /local_deliveries/{local_delivery_id}

Delete the delivery with its areas and its shipping method, and return the delivery as it was.

Path parameters

local_delivery_idRequiredinteger

Local delivery ID

ReturnsLocalDelivery

The deleted local delivery, serialised as it was just before the delete.

Error responses

400object

A subscription, whatever its status, or a cart in checkout still uses the delivery (shipping_method_in_use).

404object

No local delivery exists with this ID in the shop.

curl -X DELETE https://api.subbly.co/private/v1/local_deliveries/{local_delivery_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" }

Publish a local delivery

POST /local_deliveries/{local_delivery_id}/publish

Publishes the delivery, which makes it available at checkout. Publishing a published delivery answers 200 and changes nothing.

Path parameters

local_delivery_idRequiredinteger

Local delivery ID

ReturnsLocalDelivery

The published local delivery

Error responses

400object

The delivery stays unpublished: the publish is refused with no_active_plan or shipping_plan_limit_exceeded.

404object

No local delivery exists with this ID in the shop.

curl -X POST https://api.subbly.co/private/v1/local_deliveries/{local_delivery_id}/publish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" }

Unpublish a local delivery

POST /local_deliveries/{local_delivery_id}/unpublish

Unpublishes the delivery, so it is no longer offered at checkout. Unpublishing an unpublished delivery answers 200 and changes nothing.

Path parameters

local_delivery_idRequiredinteger

Local delivery ID

ReturnsLocalDelivery

The unpublished local delivery

Error responses

404object

No local delivery exists with this ID in the shop.

curl -X POST https://api.subbly.co/private/v1/local_deliveries/{local_delivery_id}/unpublish \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 11, "shipping_method_id": 281, "name": "API delivery", "duration": "same day", "price": 1250, "comment": "leave at door", "areas": [ "946**", "94601", "SW1A 1AA" ], "multiply_price_by_shipment_number": true, "published": true, "created_at": "2026-10-29T15:08:57.000000Z", "updated_at": "2026-10-29T15:08:57.000000Z" }

Get list of shipping methods

GET /shipping_methods

A paginated, read-only list of the shop's shipping methods, published or not, each with its shipping option, local pickup or local delivery embedded as method.

Query parameters

ids[]optionalinteger[]

Filter by shipping method IDs. Values must be unique.

types[]optionalstring[]

Filter by kind; several values are combined with OR.

publishedoptionalinteger

Filter by published status (0 or 1)

Possible values: 0, 1.

queryoptionalstring

Search by the method name across the three kinds, case-insensitive.

product_idoptionalinteger

Only the methods this plan or variant can use: the methods linked to it, or every method of the shop when it has no links. Plan or variant ID, not the parent product ID.

sort[field]optionalstring

Sort field; without sort the list is newest first (id desc), with it the direction defaults to asc and id breaks ties

Possible values: id, created_at.

sort[direction]optionalstring

Sort direction; defaults to asc.

Possible values: asc, desc.

Defaults to "asc".

pageoptionalinteger

Page number

per_pageoptionalinteger

Items per page

Defaults to 10.

Returnsobject

Shipping methods list response

Error responses

422object

A query parameter is invalid: a wrong type, a repeated ID, a value outside its enum or range, or a product_id that is not a plan or variant of the shop. errors lists the messages per parameter.

curl https://api.subbly.co/private/v1/shipping_methods \ -H 'X-API-KEY: <api-key>'
Response
{ "pagination": { "current_page": 1, "last_page": 2, "from": 1, "to": 1, "total": 20 }, "data": [ { "id": 58, "type": "shipping_option", "published": true, "method": { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": null, "max_shipping_fee": null, "aggregated_price_type": null, "multiply_price_by_shipment_number": false, "handling_fee": null, "provider": null, "ranges": [], "product_groups": [], "collections": [], "carriers": [], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" } ] }

Get a shipping method

GET /shipping_methods/{shipping_method_id}

A single shipping method of the shop, published or not, with its shipping option, local pickup or local delivery embedded as method.

Path parameters

shipping_method_idRequiredinteger

Shipping method ID

ReturnsShippingMethod

The shipping method

Error responses

404object

No shipping method exists with this ID in the shop.

curl https://api.subbly.co/private/v1/shipping_methods/{shipping_method_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 58, "type": "shipping_option", "published": true, "method": { "id": 32, "shipping_rule_id": 22, "shipping_method_id": 58, "name": "By flat price", "type": "flat_price", "duration": "1-2", "price": 1000, "free_shipping_fee_amount": null, "max_shipping_fee": null, "aggregated_price_type": null, "multiply_price_by_shipment_number": false, "handling_fee": null, "provider": null, "ranges": [], "product_groups": [], "collections": [], "carriers": [], "published": true, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }, "created_at": "2024-03-07T13:01:04.000000Z", "updated_at": "2024-05-06T13:00:18.000000Z" }
paginationobject
dataShippingRule[]
createRequiredShippingRuleCountryInput[]
idinteger
namestring
publishedboolean
countriesShippingRuleCountry[]

Always present.

excluded_zip_patternsstring[]

Zip patterns excluded from the zone; always present, [] when none. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 90*** excludes every zip from 90000 to 90999.

optionsShippingOption[]

Always present; [] when the rule has no options.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
namestring
publishedboolean
countriesShippingRuleCountry[]

Always present.

excluded_zip_patternsstring[]

Zip patterns excluded from the zone; always present, [] when none. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 90*** excludes every zip from 90000 to 90999.

optionsShippingOption[]

Always present; [] when the rule has no options.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

createoptionalShippingRuleCountryInput[]
updateoptionalShippingRuleCountryUpdateInput[]
deleteoptionalobject[]
createoptionalstring[]
deleteoptionalstring[]
idinteger
namestring
publishedboolean
countriesShippingRuleCountry[]

Always present.

excluded_zip_patternsstring[]

Zip patterns excluded from the zone; always present, [] when none. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 90*** excludes every zip from 90000 to 90999.

optionsShippingOption[]

Always present; [] when the rule has no options.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
namestring
publishedboolean
countriesShippingRuleCountry[]

Always present.

excluded_zip_patternsstring[]

Zip patterns excluded from the zone; always present, [] when none. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 90*** excludes every zip from 90000 to 90999.

optionsShippingOption[]

Always present; [] when the rule has no options.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
namestring
publishedboolean
countriesShippingRuleCountry[]

Always present.

excluded_zip_patternsstring[]

Zip patterns excluded from the zone; always present, [] when none. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 90*** excludes every zip from 90000 to 90999.

optionsShippingOption[]

Always present; [] when the rule has no options.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
namestring
publishedboolean
countriesShippingRuleCountry[]

Always present.

excluded_zip_patternsstring[]

Zip patterns excluded from the zone; always present, [] when none. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 90*** excludes every zip from 90000 to 90999.

optionsShippingOption[]

Always present; [] when the rule has no options.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

paginationobject
dataShippingOption[]
fromRequirednumber

Lower bound: integer cents of cart subtotal for price options, a weight in the shop's unit with up to two decimals for weight options. Each from appears once in the list.

priceRequiredinteger

Cents charged from this bound up.

priceRequiredinteger

Cents charged for each product of the group.

productsRequiredShippingOptionProductGroupProduct[]

A product may appear in one group of the option only.

collection_idRequiredinteger

A product collection of the shop. A collection may appear once in the list.

priceRequiredinteger

Cents charged for each product of the collection.

nameRequiredstring

A carrier of the provider (flavorcloud โ†’ flavorcloud). A carrier may appear once in the list; a carrier already on the option keeps its id.

service_codesRequiredstring[]

Service codes of that carrier; for flavorcloud they are STANDARD, EXPRESS, STANDARD-ECONOMY and EXPRESS-ECONOMY.

idinteger
shipping_rule_idinteger
shipping_method_idinteger
namestring
typestring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationstring | null
priceinteger | null

The fee of a flat_price option, and the price per product of a product or collection option for products outside its product_groups or collections. null on other types.

free_shipping_fee_amountinteger | null

The cart subtotal from which shipping is free: null turns it off, 0 makes shipping always free. Not used by dynamic options.

max_shipping_feeinteger | null

Cap on the aggregated fee; null or 0 means no cap. product and collection only.

aggregated_price_typestring | null

product and collection only.

Possible values: min, max, sum.

multiply_price_by_shipment_numberboolean

Whether the fee is charged once per shipment when one charge covers several shipments. Used by flat_price, price and weight options only.

handling_feeinteger | null

Added to the carrier's price once per shipment. dynamic only; null on other types.

providerstring | null

dynamic only.

Possible values: flavorcloud.

rangesShippingOptionRange[]

price and weight only, sorted by from.

product_groupsShippingOptionProductGroup[]

product only, in list order.

collectionsShippingOptionCollection[]

collection only, in list order.

carriersShippingCarrier[]

dynamic only. A carrier keeps its id while it stays on the option.

publishedboolean

Whether the option is offered at checkout. It can be published only while its rule is, and unpublishing the rule unpublishes it.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_rule_idinteger
shipping_method_idinteger
namestring
typestring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationstring | null
priceinteger | null

The fee of a flat_price option, and the price per product of a product or collection option for products outside its product_groups or collections. null on other types.

free_shipping_fee_amountinteger | null

The cart subtotal from which shipping is free: null turns it off, 0 makes shipping always free. Not used by dynamic options.

max_shipping_feeinteger | null

Cap on the aggregated fee; null or 0 means no cap. product and collection only.

aggregated_price_typestring | null

product and collection only.

Possible values: min, max, sum.

multiply_price_by_shipment_numberboolean

Whether the fee is charged once per shipment when one charge covers several shipments. Used by flat_price, price and weight options only.

handling_feeinteger | null

Added to the carrier's price once per shipment. dynamic only; null on other types.

providerstring | null

dynamic only.

Possible values: flavorcloud.

rangesShippingOptionRange[]

price and weight only, sorted by from.

product_groupsShippingOptionProductGroup[]

product only, in list order.

collectionsShippingOptionCollection[]

collection only, in list order.

carriersShippingCarrier[]

dynamic only. A carrier keeps its id while it stays on the option.

publishedboolean

Whether the option is offered at checkout. It can be published only while its rule is, and unpublishing the rule unpublishes it.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

fromRequirednumber

Lower bound: integer cents of cart subtotal for price options, a weight in the shop's unit with up to two decimals for weight options. Each from appears once in the list.

priceRequiredinteger

Cents charged from this bound up.

priceRequiredinteger

Cents charged for each product of the group.

productsRequiredShippingOptionProductGroupProduct[]

A product may appear in one group of the option only.

collection_idRequiredinteger

A product collection of the shop. A collection may appear once in the list.

priceRequiredinteger

Cents charged for each product of the collection.

nameRequiredstring

A carrier of the provider (flavorcloud โ†’ flavorcloud). A carrier may appear once in the list; a carrier already on the option keeps its id.

service_codesRequiredstring[]

Service codes of that carrier; for flavorcloud they are STANDARD, EXPRESS, STANDARD-ECONOMY and EXPRESS-ECONOMY.

idinteger
shipping_rule_idinteger
shipping_method_idinteger
namestring
typestring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationstring | null
priceinteger | null

The fee of a flat_price option, and the price per product of a product or collection option for products outside its product_groups or collections. null on other types.

free_shipping_fee_amountinteger | null

The cart subtotal from which shipping is free: null turns it off, 0 makes shipping always free. Not used by dynamic options.

max_shipping_feeinteger | null

Cap on the aggregated fee; null or 0 means no cap. product and collection only.

aggregated_price_typestring | null

product and collection only.

Possible values: min, max, sum.

multiply_price_by_shipment_numberboolean

Whether the fee is charged once per shipment when one charge covers several shipments. Used by flat_price, price and weight options only.

handling_feeinteger | null

Added to the carrier's price once per shipment. dynamic only; null on other types.

providerstring | null

dynamic only.

Possible values: flavorcloud.

rangesShippingOptionRange[]

price and weight only, sorted by from.

product_groupsShippingOptionProductGroup[]

product only, in list order.

collectionsShippingOptionCollection[]

collection only, in list order.

carriersShippingCarrier[]

dynamic only. A carrier keeps its id while it stays on the option.

publishedboolean

Whether the option is offered at checkout. It can be published only while its rule is, and unpublishing the rule unpublishes it.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_rule_idinteger
shipping_method_idinteger
namestring
typestring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationstring | null
priceinteger | null

The fee of a flat_price option, and the price per product of a product or collection option for products outside its product_groups or collections. null on other types.

free_shipping_fee_amountinteger | null

The cart subtotal from which shipping is free: null turns it off, 0 makes shipping always free. Not used by dynamic options.

max_shipping_feeinteger | null

Cap on the aggregated fee; null or 0 means no cap. product and collection only.

aggregated_price_typestring | null

product and collection only.

Possible values: min, max, sum.

multiply_price_by_shipment_numberboolean

Whether the fee is charged once per shipment when one charge covers several shipments. Used by flat_price, price and weight options only.

handling_feeinteger | null

Added to the carrier's price once per shipment. dynamic only; null on other types.

providerstring | null

dynamic only.

Possible values: flavorcloud.

rangesShippingOptionRange[]

price and weight only, sorted by from.

product_groupsShippingOptionProductGroup[]

product only, in list order.

collectionsShippingOptionCollection[]

collection only, in list order.

carriersShippingCarrier[]

dynamic only. A carrier keeps its id while it stays on the option.

publishedboolean

Whether the option is offered at checkout. It can be published only while its rule is, and unpublishing the rule unpublishes it.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_rule_idinteger
shipping_method_idinteger
namestring
typestring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationstring | null
priceinteger | null

The fee of a flat_price option, and the price per product of a product or collection option for products outside its product_groups or collections. null on other types.

free_shipping_fee_amountinteger | null

The cart subtotal from which shipping is free: null turns it off, 0 makes shipping always free. Not used by dynamic options.

max_shipping_feeinteger | null

Cap on the aggregated fee; null or 0 means no cap. product and collection only.

aggregated_price_typestring | null

product and collection only.

Possible values: min, max, sum.

multiply_price_by_shipment_numberboolean

Whether the fee is charged once per shipment when one charge covers several shipments. Used by flat_price, price and weight options only.

handling_feeinteger | null

Added to the carrier's price once per shipment. dynamic only; null on other types.

providerstring | null

dynamic only.

Possible values: flavorcloud.

rangesShippingOptionRange[]

price and weight only, sorted by from.

product_groupsShippingOptionProductGroup[]

product only, in list order.

collectionsShippingOptionCollection[]

collection only, in list order.

carriersShippingCarrier[]

dynamic only. A carrier keeps its id while it stays on the option.

publishedboolean

Whether the option is offered at checkout. It can be published only while its rule is, and unpublishing the rule unpublishes it.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_rule_idinteger
shipping_method_idinteger
namestring
typestring

Possible values: flat_price, price, weight, product, collection, dynamic.

durationstring | null
priceinteger | null

The fee of a flat_price option, and the price per product of a product or collection option for products outside its product_groups or collections. null on other types.

free_shipping_fee_amountinteger | null

The cart subtotal from which shipping is free: null turns it off, 0 makes shipping always free. Not used by dynamic options.

max_shipping_feeinteger | null

Cap on the aggregated fee; null or 0 means no cap. product and collection only.

aggregated_price_typestring | null

product and collection only.

Possible values: min, max, sum.

multiply_price_by_shipment_numberboolean

Whether the fee is charged once per shipment when one charge covers several shipments. Used by flat_price, price and weight options only.

handling_feeinteger | null

Added to the carrier's price once per shipment. dynamic only; null on other types.

providerstring | null

dynamic only.

Possible values: flavorcloud.

rangesShippingOptionRange[]

price and weight only, sorted by from.

product_groupsShippingOptionProductGroup[]

product only, in list order.

collectionsShippingOptionCollection[]

collection only, in list order.

carriersShippingCarrier[]

dynamic only. A carrier keeps its id while it stays on the option.

publishedboolean

Whether the option is offered at checkout. It can be published only while its rule is, and unpublishing the rule unpublishes it.

created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

paginationobject
dataLocalPickup[]
idinteger
shipping_method_idinteger
namestring
typestring

Possible values: pickup, mondial_relay.

priceinteger

Cents.

working_hoursstring | null
commentstring | null
countrystring

The country's display name.

country_idinteger
country_codestring
regionstring | null

The region's display name when region_id is set, otherwise the given region.

region_idinteger | null

Set when the country has regions.

region_codestring | null

The code of the region_id region.

citystring | null
address_onestring | null
address_twostring | null
zipstring | null
phonestring | null
multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
typestring

Possible values: pickup, mondial_relay.

priceinteger

Cents.

working_hoursstring | null
commentstring | null
countrystring

The country's display name.

country_idinteger
country_codestring
regionstring | null

The region's display name when region_id is set, otherwise the given region.

region_idinteger | null

Set when the country has regions.

region_codestring | null

The code of the region_id region.

citystring | null
address_onestring | null
address_twostring | null
zipstring | null
phonestring | null
multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
typestring

Possible values: pickup, mondial_relay.

priceinteger

Cents.

working_hoursstring | null
commentstring | null
countrystring

The country's display name.

country_idinteger
country_codestring
regionstring | null

The region's display name when region_id is set, otherwise the given region.

region_idinteger | null

Set when the country has regions.

region_codestring | null

The code of the region_id region.

citystring | null
address_onestring | null
address_twostring | null
zipstring | null
phonestring | null
multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
typestring

Possible values: pickup, mondial_relay.

priceinteger

Cents.

working_hoursstring | null
commentstring | null
countrystring

The country's display name.

country_idinteger
country_codestring
regionstring | null

The region's display name when region_id is set, otherwise the given region.

region_idinteger | null

Set when the country has regions.

region_codestring | null

The code of the region_id region.

citystring | null
address_onestring | null
address_twostring | null
zipstring | null
phonestring | null
multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
typestring

Possible values: pickup, mondial_relay.

priceinteger

Cents.

working_hoursstring | null
commentstring | null
countrystring

The country's display name.

country_idinteger
country_codestring
regionstring | null

The region's display name when region_id is set, otherwise the given region.

region_idinteger | null

Set when the country has regions.

region_codestring | null

The code of the region_id region.

citystring | null
address_onestring | null
address_twostring | null
zipstring | null
phonestring | null
multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
typestring

Possible values: pickup, mondial_relay.

priceinteger

Cents.

working_hoursstring | null
commentstring | null
countrystring

The country's display name.

country_idinteger
country_codestring
regionstring | null

The region's display name when region_id is set, otherwise the given region.

region_idinteger | null

Set when the country has regions.

region_codestring | null

The code of the region_id region.

citystring | null
address_onestring | null
address_twostring | null
zipstring | null
phonestring | null
multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

paginationobject
dataLocalDelivery[]
idinteger
shipping_method_idinteger
namestring
durationstring | null
priceinteger

Cents.

commentstring | null
areasstring[]

Zip patterns the delivery serves; at least one. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
durationstring | null
priceinteger

Cents.

commentstring | null
areasstring[]

Zip patterns the delivery serves; at least one. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

createoptionalstring[]
deleteoptionalstring[]
idinteger
shipping_method_idinteger
namestring
durationstring | null
priceinteger

Cents.

commentstring | null
areasstring[]

Zip patterns the delivery serves; at least one. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
durationstring | null
priceinteger

Cents.

commentstring | null
areasstring[]

Zip patterns the delivery serves; at least one. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
durationstring | null
priceinteger

Cents.

commentstring | null
areasstring[]

Zip patterns the delivery serves; at least one. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

idinteger
shipping_method_idinteger
namestring
durationstring | null
priceinteger

Cents.

commentstring | null
areasstring[]

Zip patterns the delivery serves; at least one. Each * matches exactly one character and the pattern covers the whole zip, ignoring case: 946** matches every zip from 94600 to 94699.

multiply_price_by_shipment_numberboolean
publishedboolean
created_atstring

Format: date-time.

updated_atstring | null

Format: date-time.

paginationobject
dataShippingMethod[]
idinteger
typestring

The kind of record embedded in method.

Possible values: shipping_option, local_pickup, local_delivery.

publishedboolean

Whether the method is offered at checkout.

methodShippingOption | LocalPickup | LocalDelivery

The shipping option, local pickup or local delivery, discriminated by type.

created_atstring

Format: date-time.

updated_atstring

Format: date-time.