---
title: "Get discount"
method: GET
path: "/discounts/{id}"
tags: ["Discounts"]
---

# Get discount

`GET /discounts/{id}`

## Request

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

View all discounts

## Path parameters

- `id` integer, required

## Response `200`

Successful operation

- object
  - `message` string
  - `discount` 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

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

## Changes

- **2026-08-06** `e0d144609998`: 6 info
  - api operation id `view` removed and replaced with `5e024424a0ac67e3c53efca2bd795cc7`
  - 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 `403`
  - …2 more

[Operation history](https://skmtc.dev/app4legal/apis/a4l-money-api/changes/discounts/:id/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)
