# Stores

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
[https://store.link/help/developer/article/1165].


ENDPOINTS

EndpointWhat it doesGET /storesList storesGET /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

FieldTypeDescriptiondataarray of objectdata[].idstringdata[].namestring,
nullabledata[].urlstring (URL)The storefront.data[].rolestringYour 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 [https://store.link/help/developer/article/1165].


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

NameTypeDescriptionstoreIdstring
requiredA store id from GET /stores.


EXAMPLE REQUEST

curl 'https://api.store.link/v1/stores/665f1c2ab4e8a90012ab34cd' \
  -H 'Authorization: Bearer YOUR_API_KEY'


RESPONSE

FieldTypeDescriptionidstringnamestring, nullableurlstring (URL)The
storefront.rolestringYour role in this store, which decides what the key can do
in it. One of: owner, manager, designer, orders.planstringfree, lite, standard
or unlimited; older stores can have pro or
plus.plan_limitsobjectplan_limits.monthly_ordersinteger, nullableOrders a month
the dashboard and this API show; null for
unlimited.plan_limits.discount_couponsbooleanplan_limits.custom_pagesbooleanplan_limits.analyticsbooleanplan_limits.custom_domainbooleanplan_limits.max_team_membersinteger,
nullableTeam members besides the owner; null for unlimited.currencystringISO
4217 code.languagestringThe storefront's language code.statusstringtesting:
password protected, and orders are test orders. One of: open, closed,
testing.password_protectedbooleanseoobjectseo.titlestring,
nullableseo.descriptionstring, nullableseo.image_urlstring,
nullableseo.favicon_urlstring, nullableproduct_typestring, nullableWhat the
store sells, e.g. physical or digital.categoriesarray of objectIn storefront
order.categories[].slugstringcategories[].namestringcategories[].image_urlstring,
nullablevariant_optionsarray of stringThe Product Sheet columns a product's
variants differ by, e.g. Size or Color.paymentsobjectpayments.methodsarray of
stringThe payment methods that are on.payments.editablebooleanAlways false:
payment settings change in the dashboard only.shipping_methodsarray of objectThe
methods that are on.shipping_methods[].labelstringWhat POST /orders takes as
shipping_method.shipping_methods[].pickupbooleanshipping_methods[].fee_typestring,
nullablecollect_later: the fee is agreed after the order. null for pickup. One
of: fixed, collect_later.shipping_methods[].ratenumber,
nullableshipping_methods[].free_delivery_abovenumber,
nullableshipping_methods[].min_order_amountnumber,
nullableshipping_methods[].pickup_locationsarray of stringFor 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
[https://store.link/help/developer/article/1165].