latestOpenAPI 3.0.0Apache 2.02026-08-06199181.1 MB

e0d144609998

Discounts

Update Discount

Update an existing discount record

put/discounts/{id}

Path parameters

idinteger required

Discount Id

Request body

namestring

Discount Name

fl1namestring

Discount Name(french)

fl2namestring

Discount Name(العربية)

descriptionstring

Description of the Discount

percentagenumber float

Discount Percentage Value

Example request

{
  "name": "Startup Legal Boost Discount",
  "fl1name": "Réduction Lancement Juridique pour Startups",
  "fl2name": "خصم دعم الشركات الناشئة القانونية",
  "description": "20% off all LegalTech plans for new startups during their first year.",
  "percentage": 20
}

Response

Discount has been updated successfully.

Example response

{
  "discount": {
    "id": 1,
    "user_id": 12,
    "name": "Startup Legal Boost Discount",
    "fl1name": "Réduction Lancement Juridique pour Startups",
    "fl2name": "خصم دعم الشركات الناشئة القانونية",
    "description": "20% off all LegalTech plans for new startups during their first year.",
    "percentage": 20,
    "created_by": 2,
    "created_by_name": "Sarah Johnson",
    "created_on": "2025-10-09T10:30:02.000000Z",
    "modified_by": 12,
    "modified_on": "2025-10-09T11:00:00.000000Z"
  }
}