SubblySubbly
Log inGet started
  • Get started
  • Developer resources
Subbly.js SDK reference
Docs
Information
    CookiesAmounts and datesCurrencyExpand parametersErrors
Setup
    Start the SDKSet the currencySet the languageVersionConfiguration
Addresses
    List the addressesAdd an addressDelete an address
Authentication
    Authentication stateCheck the authenticationLog in with a passwordRegister a customerCheck if an email is registeredSend a one-time passwordLog in with a one-time passwordLog in with single sign-onLog outGet the access token
Bundles
    List the bundlesLoad a bundleLoad the bundle itemsLoad the bundle groupsQuote a bundle
Cart
    Create a cartLoad a cartUpdate the cartAdd an itemUpdate an itemRemove an itemGet the start datesGet the gifting datesGet the shipping methodsGet the pick-up pointsAttach the customer
Checkout
    Purchase the cart
Countries
    List the countries
Customers
    Get the customer profileUpdate the customerGet the referral link
Funnels
    Get a pre-purchase offerAccept a pre-purchase offerSkip a pre-purchase offerReset the pre-purchase offersGet a mid-purchase offerAccept a mid-purchase offerSkip a mid-purchase offerGet a post-purchase offerAccept a post-purchase offerSkip a post-purchase offer
Leads
    Capture a lead
Metafields
    List the metafields
Payment intents
    Get a payment intentConfirm a payment intent
Pick-up info
    List the pick-up infosAdd a pick-up infoDelete a pick-up info
Products
    List the productsLoad a productLoad a variantLoad a plan
Shop
    Load the shop
Stock notifications
    Get a back-in-stock alert
Subscriptions
    List the subscriptionsLoad a subscriptionUpdate a subscriptionUpdate the survey preferencesUpdate the bundleLoad a subscription itemUpdate a subscription itemUpdate an item bundleUpdate the item survey preferences
Surveys
    Load a survey
Wallet
    List the payment methodsStart a payment setupAdd a payment methodStart a 3-D Secure setup

Pick-up info

Read, create, and delete the pick-up contact records of the customer.

subbly.pickupInfo.list(params)

Gets the pick-up contact records the signed-in customer saved. A record says who collects the parcel, and which point they collect it from. Needs an authenticated customer.

Method parameters

paramsRequiredPickupInfoFetchParams

Which records to return. The argument is required by position, so pass an empty object for all of them.

shippingMethodIdoptionalnumber

Keep only the records that work with this pick-up shipping method. In practice this filters by country.

ReturnsPromise<CustomerPickupInfo[]>

The saved records.

List every record
const pickupInfos = await subbly.pickupInfo.list({})
List the records for one pick-up method
const [method] = await subbly.cart.getLocalPickups() const pickupInfos = await subbly.pickupInfo.list({ shippingMethodId: method.id })

subbly.pickupInfo.store(payload)

Creates a pick-up contact record for the signed-in customer. Put its id on the cart as shippingAddressId once the customer chose a pick-up point. Needs an authenticated customer.

Method parameters

payloadRequiredPickupInfoStorePayload

The record to create.

ReturnsPromise<CustomerPickupInfo>

The record created.

Add a record
const pickupInfo = await subbly.pickupInfo.store({ firstName: 'Ada', lastName: 'Lovelace', phone: '+15551234567' }) await subbly.cart.update({ shippingAddressId: pickupInfo.id })
Add a record for a Mondial Relay point
await subbly.pickupInfo.store({ firstName: 'Ada', lastName: 'Lovelace', phone: '+33123456789', pickupPointType: 'mondial_relay', pickupPointId: '005670' })

subbly.pickupInfo.delete(pickupInfoId)

Deletes a pick-up contact record. Needs an authenticated customer. The request fails while a subscription still uses the record.

Method parameters

pickupInfoIdRequirednumber

ID of the record to delete.

ReturnsPromise<void>

Nothing. The response body is empty.

Delete a record
await subbly.pickupInfo.delete(123)
Last modified on September 15, 2026
idnumber

ID of the record. Pass it to subbly.pickupInfo.delete, or as shippingAddressId on the cart.

firstNamestring

Given name of the person who collects the parcel.

lastNamestring

Family name of the person who collects the parcel.

phonestring

Phone number of that person.

pickupPointExternalPickupPoint | null

The point in an external pick-up network. null for a shop-run pick-up point.

idnumber

ID of the point in Subbly.

externalIdstring

ID of the point in the carrier's network.

type'mondial_relay'

The network the point belongs to.

address1string

First address line of the point.

address2string

Second address line of the point.

citystring

City of the point.

zipstring

Postal code of the point.

countryCodestring

Country of the point, as an ISO two-letter code.

countryIdnumber

Country ID of the point.

createdAtstring

When the point was added.

updatedAtstring

When the point last changed.

Javascript
Javascript
firstNameRequiredstring

Given name of the person who collects the parcel.

lastNameRequiredstring

Family name of that person.

phoneRequiredstring

Phone number of that person.

pickupPointTypeoptional'mondial_relay'

Set this only for a point in an external network. mondial_relay is the one value the field takes.

pickupPointIdoptionalstring

ID of the point in that external network.

idnumber

ID of the record. Pass it to subbly.pickupInfo.delete, or as shippingAddressId on the cart.

firstNamestring

Given name of the person who collects the parcel.

lastNamestring

Family name of the person who collects the parcel.

phonestring

Phone number of that person.

pickupPointExternalPickupPoint | null

The point in an external pick-up network. null for a shop-run pick-up point.

idnumber

ID of the point in Subbly.

externalIdstring

ID of the point in the carrier's network.

type'mondial_relay'

The network the point belongs to.

address1string

First address line of the point.

address2string

Second address line of the point.

citystring

City of the point.

zipstring

Postal code of the point.

countryCodestring

Country of the point, as an ISO two-letter code.

countryIdnumber

Country ID of the point.

createdAtstring

When the point was added.

updatedAtstring

When the point last changed.

Javascript
Javascript
Javascript