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.
Storefront
Public storefront bootstrap and read APIs.
- Retrieve storefront configurationGET
/storefront-config - List storefront productsGET
/store/products - Retrieve a storefront productGET
/store/products/{id} - List storefront categoriesGET
/store/categories - List storefront collectionsGET
/store/collections - List regionsGET
/store/regions - Create a cartPOST
/store/carts - Retrieve a cartGET
/store/carts/{id} - Update a cartPOST
/store/carts/{id} - Add a line itemPOST
/store/carts/{id}/line-items - Update a line item quantityPOST
/store/carts/{id}/line-items/{line_id} - Remove a line itemDEL
/store/carts/{id}/line-items/{line_id} - Add a shipping methodPOST
/store/carts/{id}/shipping-methods - Remove a shipping methodDEL
/store/carts/{id}/shipping-methods/{method_id} - Apply a promotion codePOST
/store/carts/{id}/promotions - Remove a promotionDEL
/store/carts/{id}/promotions/{promotion_id} - List shipping optionsGET
/store/shipping-options - Create a payment collectionPOST
/store/payment-collections - Create a payment sessionPOST
/store/payment-collections/{id}/sessions - Authorize a payment sessionPOST
/store/payment-sessions/{id}/authorize - List payment providersGET
/store/payment-providers - Complete a cartPOST
/store/carts/{id}/complete - Retrieve an orderGET
/store/orders/{id}