Elastic Path Custom Discounts API
With custom discounts, you can allow your shoppers to apply discounts from external services to their purchases. To apply custom discounts to carts and cart items, you need to set `custom_discounts_enabled` field to `true` in your [Cart Settings](/docs/api/carts/put-v-2-settings-cart).You cannot add custom discounts to an empty cart.:::caution- You can apply up to five custom discounts to cart and cart item.- The stores that use [simple calculation method](/guides/How-To/Carts/calculate-totals) do not support custom discounts.:::
Elastic Path Custom Discounts API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Custom Discounts. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 7 operations across 4 paths, and defines 13 schemas. It is described by OpenAPI 3.2.0, at version 26.0313.7324347.
Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Elastic Path Custom Discounts API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (bearerAuth).
By default, every request must be authenticated.
Paths & Operations 7
Across 4 paths, the API surfaces 7 operations — 3 DELETE, 2 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.
With custom discounts, you can allow your shoppers to apply discounts from external services to their purchases. To apply custom discounts to carts and cart items, you need to set…
Schemas 13
The contract defines 13 schemas that model the data the API accepts and returns. The most detailed are CartsCustomDiscountsObject (8 properties), CartsCustomDiscountsResponseObject (8 properties), Response.ErrorItem (5 properties), CartsBulkCustomDiscounts (2 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Elastic Path 12
Other APIs Elastic Path publishes across the network.
This is an independent, third-party profile of Elastic Path Custom Discounts API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.