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

Rentle Discount Codes API

Discount code-related queries

Rentle Discount Codes API is one of 11 APIs that Rentle publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Discount Codes. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, and authentication docs.

This API exposes 4 operations across 2 paths, and defines 9 schemas. It is described by OpenAPI 3.0.0, at version 2023-02-01.

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

4 operations 2 paths 9 schemas 1 DELETE2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
2023-02-01
Base URL
https://api.twicecommerce.com/admin
Resource Areas
1

Paths & Operations 4

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

Discount Codes 4

Discount code-related queries

GET
/discount-codes/{id}
Get discount code
discountCodes_get 2 params → 200400403404409429500
DELETE
/discount-codes/{id}
Delete discount code
discountCodes_remove 2 params → 200400403404409429500
GET
/discount-codes
Get all discount codes
discountCodes_list 3 params → 200400403404409429500
POST
/discount-codes
Create discount code
discountCodes_create 1 param body → 200400403404409429500

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are DiscountCodeDTO (6 properties), CreateDiscountCodeParameters (4 properties), PagedDiscountCodesDTO (4 properties), ForbiddenExceptionDTO (1 property). Each schema is shown below with its type and property counts.

ConflictExceptionDTO
object
1 property 1 required
CreateDiscountCodeParameters
object
4 properties 2 required
NotFoundExceptionDTO
object
1 property 1 required
QuotaExceededExceptionDTO
object
1 property 1 required
DiscountCodeDTO
object
6 properties 4 required
ForbiddenExceptionDTO
object
1 property 1 required
BadRequestExceptionDTO
object
1 property 1 required
InternalServerErrorExceptionDTO
object
1 property 1 required
PagedDiscountCodesDTO
object
4 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rentle-discount-codes-api-openapi.yml Raw ↑

Other APIs Rentle publishes across the network.

Rentle API Keys API
Rentle Categories API
Rentle Customers API
Rentle Inventory Articles API
Rentle Inventory SKUs API
Rentle Merchant API
Rentle Orders API
Rentle Products API
Rentle Stores API
Rentle Webhooks API