The stores your API key can act in, and your role in each.
All paths are relative to the base URL https://api.store.link/v1. Every request needs your API key; see Overview.
Endpoints
| Endpoint | What it does |
|---|---|
GET /stores | List stores |
GET /stores/{storeId} | Get a store |
List stores
GET /stores
The stores this key can act in, with your role in each.
Example request
curl 'https://api.store.link/v1/stores' \
-H 'Authorization: Bearer YOUR_API_KEY'Response
| Field | Type | Description |
|---|---|---|
data | array of object | |
data[].id | string | |
data[].name | string, nullable | |
data[].url | string (URL) | The storefront. |
data[].role | string | Your role in this store, which decides what the key can do in it. One of: owner, manager, designer, orders. |
Example response
{
"data": [
{
"id": "665f1c2ab4e8a90012ab34cd",
"name": "Bean & Brew",
"url": "https://beanandbrew.store.link",
"role": "owner"
}
]
}Errors
The common errors: 401 unauthorized, 429 rate_limited, 500 internal_error. See Errors in the Overview.
Get a store
GET /stores/{storeId}
The store with its plan and limits, currency, language, status, SEO, categories, variant options, and the payment and shipping methods that are on. Any role can read it.
Path parameters
| Name | Type | Description |
|---|---|---|
storeId | string required | A store id from GET /stores. |
Example request
curl 'https://api.store.link/v1/stores/665f1c2ab4e8a90012ab34cd' \
-H 'Authorization: Bearer YOUR_API_KEY'Response
| Field | Type | Description |
|---|---|---|
id | string | |
name | string, nullable | |
url | string (URL) | The storefront. |
role | string | Your role in this store, which decides what the key can do in it. One of: owner, manager, designer, orders. |
plan | string | free, lite, standard or unlimited; older stores can have pro or plus. |
plan_limits | object | |
plan_limits.monthly_orders | integer, nullable | Orders a month the dashboard and this API show; null for unlimited. |
plan_limits.discount_coupons | boolean | |
plan_limits.custom_pages | boolean | |
plan_limits.analytics | boolean | |
plan_limits.custom_domain | boolean | |
plan_limits.max_team_members | integer, nullable | Team members besides the owner; null for unlimited. |
currency | string | ISO 4217 code. |
language | string | The storefront's language code. |
status | string | testing: password protected, and orders are test orders. One of: open, closed, testing. |
password_protected | boolean | |
seo | object | |
seo.title | string, nullable | |
seo.description | string, nullable | |
seo.image_url | string, nullable | |
seo.favicon_url | string, nullable | |
product_type | string, nullable | What the store sells, e.g. physical or digital. |
categories | array of object | In storefront order. |
categories[].slug | string | |
categories[].name | string | |
categories[].image_url | string, nullable | |
variant_options | array of string | The Product Sheet columns a product's variants differ by, e.g. Size or Color. |
payments | object | |
payments.methods | array of string | The payment methods that are on. |
payments.editable | boolean | Always false: payment settings change in the dashboard only. |
shipping_methods | array of object | The methods that are on. |
shipping_methods[].label | string | What POST /orders takes as shipping_method. |
shipping_methods[].pickup | boolean | |
shipping_methods[].fee_type | string, nullable | collect_later: the fee is agreed after the order. null for pickup. One of: fixed, collect_later. |
shipping_methods[].rate | number, nullable | |
shipping_methods[].free_delivery_above | number, nullable | |
shipping_methods[].min_order_amount | number, nullable | |
shipping_methods[].pickup_locations | array of string | For pickup, the addresses POST /orders takes as the order's address. |
Example response
{
"id": "665f1c2ab4e8a90012ab34cd",
"name": "Bean & Brew",
"url": "https://beanandbrew.store.link",
"role": "owner",
"plan": "standard",
"plan_limits": {
"monthly_orders": 500,
"discount_coupons": true,
"custom_pages": true,
"analytics": true,
"custom_domain": true,
"max_team_members": 3
},
"currency": "USD",
"language": "en",
"status": "open",
"password_protected": false,
"seo": {
"title": "Bean & Brew",
"description": "Small-batch coffee, roasted weekly.",
"image_url": "https://cdn.store.link/images/classic-tee.jpg",
"favicon_url": "https://cdn.store.link/images/favicon.png"
},
"product_type": "physical",
"categories": [
{
"slug": "t-shirts",
"name": "T-shirts",
"image_url": "https://cdn.store.link/images/classic-tee.jpg"
}
],
"variant_options": [
"Size"
],
"payments": {
"methods": [
"Cash on delivery"
],
"editable": false
},
"shipping_methods": [
{
"label": "Standard delivery",
"pickup": false,
"fee_type": "fixed",
"rate": 5,
"free_delivery_above": 100,
"min_order_amount": 30,
"pickup_locations": [
"221 Market St, San Francisco, CA"
]
}
]
}Errors
The common errors: 400 invalid_request, 401 unauthorized, 404 store_not_found, 429 rate_limited, 500 internal_error. See Errors in the Overview.
