Read Discount
Intent
Reads the discount without changing it.
When to call it
Call this after your application has received or stored the identifier for the discount.
Access boundary
Authorize the request with a token that carries discounts:read or discounts:write.
Successful result
A successful request returns 200. The response schema below defines the body your integration receives.
Operational notes
Get a discount by ID.
Scopes: discounts:read discounts:write
Authorizations
You can generate an Organization Access Token from your organization's settings.
Path Parameters
The discount ID.
Response
Successful Response
- DiscountFixedOnceForeverDuration
- DiscountFixedRepeatDuration
- DiscountPercentageOnceForeverDuration
- DiscountPercentageRepeatDuration
Schema for a fixed amount discount that is applied once or forever.
once, forever, repeating fixed, percentage 1000
"usd"
Map of currency to fixed amount to discount from the total.
The time Ruba created this record.
The time this record last changed.
The stable identifier for this record.
Name of the discount. Will be displayed to the customer when the discount is applied.
Code customers can use to apply the discount during checkout.
Timestamp after which the discount is redeemable.
Timestamp after which the discount is no longer redeemable.
Maximum number of times the discount can be redeemed.
Number of times the discount has been redeemed.
The organization ID.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"