API reference
For the full interactive endpoint browser, see the API Reference
tab in this docs site, or the legacy Swagger at
apiv3.droplinked.com/v1/public-apis/document.
Setting up — your shop API key (x-shop-id)
To make authenticated API calls you first need to generate a unique x-shop-id from your
Droplinked dashboard. This ID is included in the headers of every API request to identify and
authorize your shop.
Steps to generate your x-shop-id
Log into Droplinked
Go to droplinked.com and sign in.
Register your domain
In the Domain section, enter the domain name from which you plan to make API requests
(e.g.
https://yourstore.com).Base URL and authentication
All Droplinked API requests are made to the following base URL:x-shop-id in the headers of every API call. This value ties each request to
your specific shop.
API flow overview
The Droplinked API flow follows a simple four-step structure:Cart management
Create a cart, add products, update quantities, and attach customer details (email,
shipping address).
Checkout & payment
Use the checkout APIs and integrate the Droplinked Stripe payment component to process
customer payments.
1. Shop and product retrieval
Get shop information
Retrieve metadata about your shop — name, description, logo, and other configuration.- Endpoint:
GET https://apiv3.droplinked.com/v1/shop - API docs: PublicApiController_getShop
List products (paginated)
Returns a paginated list of products. Use query parameters to control pagination and filtering.- Endpoint:
GET https://apiv3.droplinked.com/v1/products - API docs: PublicApiController_findAll
Get product by slug
Useful for SEO-friendly URLs or product pages.- Endpoint:
GET https://apiv3.droplinked.com/v1/products/slug/{slug} - API docs: PublicApiController_getProductBySlug
Get product by ID
Useful for internal lookups or cart operations.- Endpoint:
GET https://apiv3.droplinked.com/v1/products/{id} - API docs: PublicApiController_findOne
2. Cart management
Once a user starts interacting with products, you’ll need to create and manage a shopping cart session.Create a new shopping cart
- Endpoint:
POST https://apiv3.droplinked.com/v1/cart - API docs: PublicApiController_createCart
Retrieve cart information
- Endpoint:
GET https://apiv3.droplinked.com/v1/cart/{cartId} - API docs: PublicApiController_getCart
Add product to cart
- Endpoint:
POST https://apiv3.droplinked.com/v1/cart/{cartId} - API docs: PublicApiController_addProductToCart
Update cart item quantity
- Endpoint:
PUT https://apiv3.droplinked.com/v1/cart/{cartId} - API docs: PublicApiController_update
Remove item from cart
- Endpoint:
DELETE https://apiv3.droplinked.com/v1/cart/{cartId} - API docs: PublicApiController_removeItemFromCart
Attach additional details to cart
Add customer-specific information such as email, shipping address, and optional notes — usually required before checkout.- Endpoint:
PATCH https://apiv3.droplinked.com/v1/cart/{cartId}/details - API docs: PublicApiController_attachCartDetails
3. Customer address (physical products only)
For physical products that require shipping, collect and attach a customer address to the cart.Address creation is only required if the cart contains physical (non-digital) items.
Search available countries
- Endpoint:
GET https://apiv3.droplinked.com/v1/locations/countries - API docs: PublicApiController_getCountries
Search cities by country
- Endpoint:
GET https://apiv3.droplinked.com/v1/locations/cities - API docs: PublicApiController_getCities
Create a new customer address
The returned address ID will be included in the Attach Additional Details to Cart request.- Endpoint:
POST https://apiv3.droplinked.com/v1/customer/address - API docs: PublicApiController_addAddressToCustomer
4. Shipping management (physical products)
If a cart includes physical products, shipping information must be added before payment. Droplinked automatically returns available shipping methods as part of the cart data.Available shipping options
When you retrieve the cart (GET /v1/cart/{cartId}), the response includes a list of available
shipping rates in the shippingOptions (or shipping) section of the payload. These are
dynamically generated based on:
- The customer’s address
- The cart contents (dimensions, weight, etc.)
- Your shop’s shipping configuration
Add shipping rate to cart
Once you’ve selected a shipping option, apply it to the cart.- Endpoint:
POST https://apiv3.droplinked.com/v1/checkout/shipping-rates/{cartId} - API docs: PublicApiController_addAnonShippingRate
5. Checkout and payment
Once the cart has customer info and (if needed) a shipping rate, kick off the payment process. Droplinked uses Stripe under the hood and provides a dedicated package to simplify integration on the frontend.Create Stripe payment session
Generate aclientSecret for the current cart. This secret is required to initiate the Stripe
payment session on the frontend.
- Endpoint:
POST https://apiv3.droplinked.com/v1/checkout/stripe/{cartId} - API docs: PublicApiController_stripeCheckout
Install the Droplinked Stripe UI package
Implement the payment component
Import and use the<DroplinkedPaymentIntent /> component. Pass the clientSecret you got
from the previous step, along with the callbacks.
6. Order retrieval
After a successful payment, retrieve the finalized order using the order ID to show confirmation details or track status.Get order by ID
- Endpoint:
GET https://apiv3.droplinked.com/v1/order/{id} - API docs: PublicApiController_publicGetOrder
Related
- API overview — base URL, auth, core concepts
- API cookbook — build a custom store — full reference implementation in JS + Python
- Use cases — endpoint-by-endpoint walkthroughs
- Stripe integration guide — Connect, webhooks, payouts