# SureCart API Documentation

This is the complete API documentation for connecting to the SureCart API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **SureCart connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/sureCart/actions/{actionSlug}/run
```

## SureCart actions

- PUT `cancel-pause-subscription` Cancel/Pause Subscription
- POST `create-checkout` Create Checkout
- POST `create-customer` Create Customer
- POST `create-price` Create Price
- POST `create-product` Create Product
- POST `create-refund` Create Refund
- POST `create-subscription` Create Subscription
- POST `create-webhook-endpoint` Create Webhook Endpoint
- DELETE `delete-customer` Delete Customer
- DELETE `delete-price` Delete Price
- DELETE `delete-product` Delete Product
- GET `list-checkouts` List Checkouts
- GET `list-customers` List Customers
- GET `list-orders` List Orders
- GET `list-prices` List Prices
- GET `list-products` List Products
- GET `list-purchases` List Purchases
- GET `list-refunds` List Refunds
- GET `list-subscriptions` List Subscriptions
- GET `list-webhook-endpoints` List Webhook Endpoints
- GET `retrieve-account` Retrieve Account
- GET `retrieve-checkout` Retrieve Checkout
- GET `retrieve-customer` Retrieve Customer
- GET `retrieve-order` Retrieve Order
- GET `retrieve-price` Retrieve Price
- GET `retrieve-product` Retrieve Product
- GET `retrieve-purchase` Retrieve Purchase
- GET `retrieve-refund` Retrieve Refund
- GET `retrieve-subscription` Retrieve Subscription
- GET `retrieve-webhook-endpoint` Retrieve Webhook Endpoint
- PUT `revoke-purchase` Revoke Purchase
- PUT `test-webhook-endpoint` Test Webhook Endpoint
- PUT `update-account` Update Account
- PUT `update-checkout` Update Checkout
- PUT `update-customer` Update Customer
- PUT `update-price` Update Price
- PUT `update-product` Update Product
- PUT `update-purchase` Update Purchase
- PUT `update-subscription` Update Subscription
- PUT `update-webhook-endpoint` Update Webhook Endpoint
