List discounts
Changed onList all discounts
Request
- Base URLhttp://localhost/app4legal/api/v2/money
- AuthOAuth 2PasswordToken URLhttp://localhost/app4legal/api/v2/core/login
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Search discounts by name
Filter discounts by the above query parameters. <br /> <b>Example:</b> { "name[eq]" : "My Discount" } which will search for discounts with name = "My Discount".
Sort discounts in ascending order
Sort discounts in descending order
The particular page to return
The number of items to return per page Default: 50 Limit: 200
Response
Successful operation
Example response
{
"message": "success",
"discounts": [
{
"id": 1,
"user_id": 5,
"name": "ADICompany Annual Retainer Discount",
"fl1name": "Réduction sur l’abonnement annuel d’ADICompany",
"fl2name": "خصم سنوي لشركة ADI",
"description": "10% discount on ADICompany annual retainer",
"percentage": 10,
"created_by": 2,
"created_by_name": "Sarah Johnson",
"created_on": "2025-10-09T10:30:02.000000Z",
"modified_by": 2,
"modified_on": null
},
{
"id": 2,
"user_id": 6,
"name": "Corporate Retainer Discount",
"fl1name": "Réduction sur l’abonnement de service juridique d’entreprise",
"fl2name": "خصم على الاشتراك القانوني للشركات",
"description": "10% discount on annual corporate legal retainer services",
"percentage": 10,
"created_by": 3,
"created_by_name": "Joe Johnson",
"created_on": "2025-10-09T10:30:02.000000Z",
"modified_by": null,
"modified_on": null
}
]
}Changes
- info
api operation id
getListremoved and replaced with8a7522da8d0dce71e662a064b768d32c - info
the endpoint scheme security
passportwas added to the API - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info