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 customerCredit 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 IDCancel a subscriptionUndo cancellationCreate a subscription itemShow a subscription itemUpdate a subscription itemRemove a subscription itemUpdate a subscription item's preferencesUpdate a subscription item's bundleApply 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 reasons
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 metadata
Funnel
    Get list of funnelsGet funnel by ID
Option
    Get list of options
Country
    Get list of countries
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
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

Pickup Info

Private Pickup Info API endpoints

Endpoints
  • GET/pickup_info
  • POST/pickup_info
  • PATCH/pickup_info/{pickup_info_id}
  • DELETE/pickup_info/{pickup_info_id}

Get list of pickup info

GET /pickup_info

List a customer's local pickup contacts. Without shipping_method_id, and for a pickup-point shipping method, only entries with no linked pickup point are returned. For a custom local pickup method, only entries whose pickup point is in that method's country are returned. The response is not paginated.

Query parameters

customer_idRequiredinteger

ID of a customer of your shop whose pickup info is listed.

shipping_method_idoptionalinteger | null

A published local pickup shipping method of your shop, used to narrow the list.

Returnsobject

Pickup info list response

Error responses

422object

customer_id is not a customer of your shop, or shipping_method_id is not a published local pickup method of your shop.

curl https://api.subbly.co/private/v1/pickup_info \ -H 'X-API-KEY: <api-key>'
Response
{ "data": [ { "id": 3487, "pickup_point": { "id": 45, "external_id": "FR-012345", "country_id": 74, "country_code": "FR", "country_name": "France", "type": "mondial_relay", "city": "Paris", "address_one": "address_one", "address_two": "address_two", "zip": "75001" }, "phone": "+13232380656", "first_name": "John", "last_name": "Smith" } ] }

Create pickup info

POST /pickup_info

Add a local pickup contact to a customer of your shop. Sending pickup_point_id together with pickup_point_type links an external pickup point, which is looked up at the provider and must sit in a country covered by one of the shop's published local pickup methods. Omit both to store a plain pickup contact.

Request body

customer_idRequiredinteger

ID of the customer the pickup info belongs to.

first_nameRequiredstring
last_nameRequiredstring
phoneoptionalstring | null

Required unless the shop has optional phone numbers enabled. Must be a valid international phone number.

pickup_point_idoptionalstring

External pickup point reference, prefixed with the ISO country code. Required as soon as pickup_point_type is sent. The country must be covered by one of the shop's published local pickup methods and the point must exist at the provider.

pickup_point_typeoptionalstring

Required as soon as pickup_point_id is sent.

Possible values: mondial_relay.

ReturnsPickupInfo

Pickup info object response

Error responses

422object

Validation failed, for example a customer_id that is not a customer of your shop, a missing name, an invalid phone number, a pickup_point_id that does not match the CC-123456 format or is unknown at the provider, or only one of pickup_point_id/pickup_point_type being sent.

curl -X POST https://api.subbly.co/private/v1/pickup_info \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": 1, "first_name": "John", "last_name": "Smith", "phone": "+13232380656", "pickup_point_id": "FR-012345", "pickup_point_type": "mondial_relay" }'
Response
{ "id": 3487, "pickup_point": { "id": 45, "external_id": "FR-012345", "country_id": 74, "country_code": "FR", "country_name": "France", "type": "mondial_relay", "city": "Paris", "address_one": "address_one", "address_two": "address_two", "zip": "75001" }, "phone": "+13232380656", "first_name": "John", "last_name": "Smith" }

Update pickup info

PATCH /pickup_info/{pickup_info_id}

Update the contact details of a local pickup entry. Only the name and phone number can be changed; the linked pickup point is fixed at creation time. Unlike an address, this payload is not merged - a phone left out is cleared when the shop makes phone numbers optional. The entry must belong to a customer of your shop.

Path parameters

pickup_info_idRequiredinteger

Pickup info ID

Format: integer.

Request body

first_nameRequiredstring
last_nameRequiredstring
phoneoptionalstring | null

Required unless the shop has optional phone numbers enabled. Must be a valid international phone number.

ReturnsPickupInfo

Pickup info object response

Error responses

404object

The pickup info does not exist or does not belong to a customer of your shop.

422object

Validation failed, for example a missing first_name/last_name or an invalid phone number.

curl -X PATCH https://api.subbly.co/private/v1/pickup_info/{pickup_info_id} \ -H 'X-API-KEY: <api-key>' \ -H 'Content-Type: application/json' \ -d '{ "first_name": "first_name", "last_name": "last_name", "phone": "phone" }'
Response
{ "id": 3487, "pickup_point": { "id": 45, "external_id": "FR-012345", "country_id": 74, "country_code": "FR", "country_name": "France", "type": "mondial_relay", "city": "Paris", "address_one": "address_one", "address_two": "address_two", "zip": "75001" }, "phone": "+13232380656", "first_name": "John", "last_name": "Smith" }

Delete pickup info

DELETE /pickup_info/{pickup_info_id}

Delete a local pickup entry. An entry that is still linked to a subscription, or to an order awaiting delivery or a future shipment, cannot be deleted.

Path parameters

pickup_info_idRequiredinteger

Pickup info ID

Format: integer.

ReturnsPickupInfo

The deleted pickup info

Error responses

404object

The pickup info does not exist or does not belong to a customer of your shop.

422object

The pickup info is in use: it is the shipping address of a subscription, or of an order awaiting delivery or a future shipment.

curl -X DELETE https://api.subbly.co/private/v1/pickup_info/{pickup_info_id} \ -H 'X-API-KEY: <api-key>'
Response
{ "id": 3487, "pickup_point": { "id": 45, "external_id": "FR-012345", "country_id": 74, "country_code": "FR", "country_name": "France", "type": "mondial_relay", "city": "Paris", "address_one": "address_one", "address_two": "address_two", "zip": "75001" }, "phone": "+13232380656", "first_name": "John", "last_name": "Smith" }
dataPickupInfo[]
idinteger
pickup_pointPickupPoint | null

The linked external pickup point, or null for a plain local pickup contact.

phonestring | null
first_namestring
last_namestring
idinteger
pickup_pointPickupPoint | null

The linked external pickup point, or null for a plain local pickup contact.

phonestring | null
first_namestring
last_namestring
idinteger
pickup_pointPickupPoint | null

The linked external pickup point, or null for a plain local pickup contact.

phonestring | null
first_namestring
last_namestring