---
title: "EdgeCart API"
---

> Documentation Index
> Fetch the complete documentation index at: https://edgecart.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EdgeCart API

Public Storefront API for an EdgeCart deployment.

Storefront requests use the publishable API key in
`x-publishable-api-key`. Money values are integer minor units. Admin
operations use a member session cookie and the `x-store-id` header; they
are documented in the Admin API guide rather than this Storefront spec.

Version: 0.1.0

## Servers

- `https://{store_domain}/api`

## [Storefront](https://edgecart.dev/api/tags/storefront/)

Public storefront bootstrap and read APIs.

- [Retrieve storefront configuration](https://edgecart.dev/api/storefront-config/) — `GET /storefront-config`
- [List storefront products](https://edgecart.dev/api/store/products/) — `GET /store/products`
- [Retrieve a storefront product](https://edgecart.dev/api/store/products/retrieve/) — `GET /store/products/{id}`
- [List storefront categories](https://edgecart.dev/api/store/categories/) — `GET /store/categories`
- [List storefront collections](https://edgecart.dev/api/store/collections/) — `GET /store/collections`
- [List regions](https://edgecart.dev/api/store/regions/) — `GET /store/regions`
- [Create a cart](https://edgecart.dev/api/store/carts/) — `POST /store/carts`
- [Retrieve a cart](https://edgecart.dev/api/store/carts/retrieve/) — `GET /store/carts/{id}`
- [Update a cart](https://edgecart.dev/api/store/carts/update/) — `POST /store/carts/{id}`
- [Add a line item](https://edgecart.dev/api/store/carts/line-items/add/) — `POST /store/carts/{id}/line-items`
- [Update a line item quantity](https://edgecart.dev/api/store/carts/line-items/update/) — `POST /store/carts/{id}/line-items/{line_id}`
- [Remove a line item](https://edgecart.dev/api/store/carts/line-items/remove/) — `DELETE /store/carts/{id}/line-items/{line_id}`
- [Add a shipping method](https://edgecart.dev/api/store/carts/shipping-methods/add/) — `POST /store/carts/{id}/shipping-methods`
- [Remove a shipping method](https://edgecart.dev/api/store/carts/shipping-methods/remove/) — `DELETE /store/carts/{id}/shipping-methods/{method_id}`
- [Apply a promotion code](https://edgecart.dev/api/store/carts/promotions/apply/) — `POST /store/carts/{id}/promotions`
- [Remove a promotion](https://edgecart.dev/api/store/carts/promotions/remove/) — `DELETE /store/carts/{id}/promotions/{promotion_id}`
- [List shipping options](https://edgecart.dev/api/store/shipping-options/) — `GET /store/shipping-options`
- [Create a payment collection](https://edgecart.dev/api/store/payment-collections/) — `POST /store/payment-collections`
- [Create a payment session](https://edgecart.dev/api/store/payment-sessions/create/) — `POST /store/payment-collections/{id}/sessions`
- [Authorize a payment session](https://edgecart.dev/api/store/payment-sessions/authorize/) — `POST /store/payment-sessions/{id}/authorize`
- [List payment providers](https://edgecart.dev/api/store/payment-providers/) — `GET /store/payment-providers`
- [Complete a cart](https://edgecart.dev/api/store/carts/complete/) — `POST /store/carts/{id}/complete`
- [Retrieve an order](https://edgecart.dev/api/store/orders/retrieve/) — `GET /store/orders/{id}`


Source: https://edgecart.dev/api/index.md
