Discounts

List discounts

Retrieve a list of discounts.

GET
/discounts

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

search?string

Response Body

application/json

curl -X GET "https://api.sandbox.billingrails.com/v1/discounts"
{
  "discounts": [
    {
      "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",
    "current_page": 1,
    "per_page": 20,
    "total_count": 100
  }
}