# Routes

> Every endpoint Merx registers, with its parameters and an example response.

- Source: `api/routes` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/api/routes>

## Pages

- [GET shop/cart](https://merx2.wagnerwagner.de/reference/api/routes/shop-cart-get.md): Returns the visitor’s cart.
- [POST shop/cart](https://merx2.wagnerwagner.de/reference/api/routes/shop-cart-post.md): Adds an item to the cart.
- [PATCH shop/cart](https://merx2.wagnerwagner.de/reference/api/routes/shop-cart-patch.md): Changes the quantity or data of an item in the cart.
- [DELETE shop/cart](https://merx2.wagnerwagner.de/reference/api/routes/shop-cart-delete.md): Removes an item from the cart.
- [POST shop/checkout](https://merx2.wagnerwagner.de/reference/api/routes/shop-checkout-post.md): Validates the submitted data and starts the payment.
- [POST shop/hooks/stripe](https://merx2.wagnerwagner.de/reference/api/routes/shop-hooks-stripe-post.md): Receives Stripe webhooks and marks delayed payments as paid.
- [GET shop/stripe-client-secret](https://merx2.wagnerwagner.de/reference/api/routes/shop-stripe-client-secret-get.md): Creates a Stripe payment intent for the current cart and returns its client secret.
- [GET shop/success](https://merx2.wagnerwagner.de/reference/api/routes/shop-success-get.md): Completes the payment after the provider sends the customer back, and writes the order page.
