Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Recharge Discounts API

Discount codes applied to checkouts, addresses, and charges.

Recharge Discounts API is one of 10 APIs that Recharge publishes on the 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, API documentation, and an API reference.

This API exposes 5 operations across 2 paths, and defines 1 schema. It is described by OpenAPI 3.0.3, at version 2021-11.

Requests are made against a single base URL, https://api.rechargeapps.com.

5 operations 2 paths 1 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2021-11
Base URL
https://api.rechargeapps.com
Authentication
API Key
Contact
Terms of Service
Resource Areas
1

Authentication & Security 1

Recharge Discounts API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-Recharge-Access-Token (apiToken). By default, every request must be authenticated.

  • apiToken — Store API token generated in the Recharge merchant portal under Apps and integrations.

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Discounts 5

Discount codes applied to checkouts, addresses, and charges.

GET
/discounts
List discounts
listDiscounts → 200
POST
/discounts
Create a discount
createDiscount → 201
GET
/discounts/{id}
Retrieve a discount
getDiscount 1 param → 200
PUT
/discounts/{id}
Update a discount
updateDiscount 1 param → 200
DELETE
/discounts/{id}
Delete a discount
deleteDiscount 1 param → 204

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is Discount (5 properties). Each schema is shown below with its type and property counts.

Discount
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

recharge-payments-discounts-api-openapi.yml Raw ↑

Other APIs Recharge publishes across the network.

Recharge Addresses API
Recharge Charges API
Recharge Customers API
Recharge Onetimes API
Recharge Orders API
Recharge Payment Methods API
Recharge Products API
Recharge Subscriptions API
Recharge Webhooks API