---
title: "List discounts"
method: GET
path: "/discounts"
tags: ["Discounts"]
---

# List discounts

`GET /discounts`

## Request

- Base URL: `http://localhost/app4legal/api/v2/money`
- URL: `http://localhost/app4legal/api/v2/money/discounts`
- Auth: OAuth 2
  - Password
  - Token URL: `http://localhost/app4legal/api/v2/core/login`
- TypeScript: <https://skmtc.dev/app4legal/apis/a4l-money-api/docs/discounts/get.ts> (a function with typed inputs; its response is checked against the schema)

List all discounts

## Query parameters

- `name` string
- `filters` object
- `sort[asc]` 'name' | 'percentage'
- `sort[desc]` 'name' | 'percentage'
- `page` integer
- `per_page` integer

## Response `200`

Successful operation

- object
  - `message` string
  - `discounts` object[]
    - `id` integer
    - `user_id` integer
    - `name` string
    - `fl1name` string
    - `fl2name` string
    - `description` string
    - `percentage` number, float
    - `created_by` integer
    - `created_by_name` string
    - `created_on` string, date-time
    - `modified_by` integer
    - `modified_on` string, date-time

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2026-08-06** `e0d144609998`: 6 info
  - api operation id `getList` removed and replaced with `8a7522da8d0dce71e662a064b768d32c`
  - the endpoint scheme security `passport` was added to the API
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `401`
  - …2 more

[Operation history](https://skmtc.dev/app4legal/apis/a4l-money-api/changes/discounts/get.md)

---

[API](https://skmtc.dev/app4legal/apis/a4l-money-api.md) - [All operations](https://skmtc.dev/app4legal/apis/a4l-money-api/llms.txt) - [OpenAPI document](https://skmtc.dev/app4legal/apis/a4l-money-api/revisions/e0d144609998?raw)
