Discounts

Retrieve discount

Retrieves a discount by ID.

GET
/discounts/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

curl -X GET "https://api.sandbox.billingrails.com/v1/discounts/disc_IhMUl3rrZ3"
{
  "discount": {
    "type": "percentage",
    "object": "discount",
    "id": "disc_IhMUl3rrZ3",
    "account_id": null,
    "status": "active",
    "name": "Spring Sale",
    "code": "SPRING2024",
    "description": "15% off for spring season.",
    "percent_off": 15,
    "created_at": "2024-02-14T17:33:40.843Z"
  },
  "meta": {
    "request_id": "req_IhMUl3rrZ3"
  }
}