# ocapi-shop Discounts API

**Canonical:** https://apis.io/apis/ocapi-shop/ocapi-shop-discounts-api/  
**Provider:** ocapi-shop — https://apis.io/providers/ocapi-shop/  
**Base URL:** https://dashboard.ocapi.shop  
**Documentation:** https://dashboard.ocapi.shop/docs

ocapi-shop Discounts API is one of 16 APIs that [ocapi-shop](https://apis.io/providers/ocapi-shop/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Discounts. The published artifact set on APIs.io includes an OpenAPI specification.

Discount codes customers type at checkout or open as a link (`https://<store>/d/CODE`, or any storefront page with `?discount=CODE`), and automatic discounts (`automatic: true`) that apply without a code when a cart meets their conditions: a minimum subtotal or number of units, some products or categories, buy X get Y, a date range. How they stack: a cart gets at most one automatic discount that changes prices (the one that takes the most off) plus one automatic free shipping. A code and an automatic discount don't add up: the customer gets the better of the two, unless the automatic one has `combines_with_codes`; then it applies first and the code takes its share of what's left. Free shipping combines with anything, and gift cards always pay what's left. Checkout enforces all of it, so the total charged, the order, its emails and its WhatsApp message agree.

## Operations (5)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/v1/stores/{store_id}/discounts` | List discounts |
| POST | `/api/v1/stores/{store_id}/discounts` | Create a discount |
| GET | `/api/v1/stores/{store_id}/discounts/{discount_id}` | Get a discount |
| PATCH | `/api/v1/stores/{store_id}/discounts/{discount_id}` | Update a discount |
| DELETE | `/api/v1/stores/{store_id}/discounts/{discount_id}` | Delete a discount |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/ocapi-shop/openapi/ocapi-shop-discounts-api-openapi.yml

## Other ocapi-shop APIs (12)

- [ocapi-shop Account API](https://apis.io/apis/ocapi-shop/ocapi-shop-account-api/)
- [ocapi-shop Categories API](https://apis.io/apis/ocapi-shop/ocapi-shop-categories-api/)
- [ocapi-shop Domains API](https://apis.io/apis/ocapi-shop/ocapi-shop-domains-api/)
- [ocapi-shop Drivers API](https://apis.io/apis/ocapi-shop/ocapi-shop-drivers-api/)
- [ocapi-shop Images API](https://apis.io/apis/ocapi-shop/ocapi-shop-images-api/)
- [ocapi-shop Insights API](https://apis.io/apis/ocapi-shop/ocapi-shop-insights-api/)
- [ocapi-shop Orders API](https://apis.io/apis/ocapi-shop/ocapi-shop-orders-api/)
- [ocapi-shop Partners API](https://apis.io/apis/ocapi-shop/ocapi-shop-partners-api/)
- [ocapi-shop Products API](https://apis.io/apis/ocapi-shop/ocapi-shop-products-api/)
- [ocapi-shop Settings API](https://apis.io/apis/ocapi-shop/ocapi-shop-settings-api/)
- [ocapi-shop Storefront API](https://apis.io/apis/ocapi-shop/ocapi-shop-storefront-api/)
- [ocapi-shop Stores API](https://apis.io/apis/ocapi-shop/ocapi-shop-stores-api/)

## Tags

Discounts

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/ocapi-shop` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/ocapi-shop/ocapi-shop-discounts-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/ocapi-shop/.
