GET /v1/discount-schemes/{id}

Get Discount Scheme

Path parameters

  • id string Required

    DiscountScheme id

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      id

    • companyId string Required

      Company ID

    • scheme string Required

      Values are course_qty_by_family, course_qty_by_student, or student_qty_by_family.

    • type string Required

      Values are percent or fixed.

    • application string Required

      Values are total_tuition or individual_item.

    • enabled boolean Required

      Enabled

    • deletedAt string(date-time) | null

      Deleted at date

    • createdAt string(date-time) Required

      Created at date

    • updatedAt string(date-time) Required

      Updated at date

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 404 application/json

    Not found

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

GET /v1/discount-schemes/{id}
curl \
 --request GET 'https://localhost/v1/discount-schemes/dsc_xxxxxxxx'
Response examples (200)
{
  "id": "dsc_xxxxxxxxxxx",
  "companyId": "co_123123123123",
  "scheme": "course_qty_by_family",
  "type": "percent",
  "application": "total_tuition",
  "enabled": false,
  "deletedAt": "2023-12-05 14:30:41",
  "createdAt": "2023-12-05 14:30:41",
  "updatedAt": "2023-12-05 14:30:41"
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}