List Discounts
Use this API to fetch discount codes supported for student fee configuration.
Endpoint
Section titled “Endpoint”GET /api/v1/integrations/erp/discountsRequest
Section titled “Request”curl -X GET 'https://[base_url]/api/v1/integrations/erp/discounts?collector_code=ed3ef2db524f' \ -H 'Content-Type: application/json' \ -H 'Authorization: Basic <token>'Query Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
collector_code | string | Conditional | Required when the institute is part of a group or has branch-specific configuration. |
Response
Section titled “Response”HTTP 200
{ "status": "success", "data": [ { "discount_type": "SIBLINGS", "name": "Siblings" }, { "discount_type": "MANAGEMENT", "name": "Management" } ]}Response Data
Section titled “Response Data”| Attribute | Type | Description |
|---|---|---|
data[].discount_type | string | Discount code to send in fee payloads. |
data[].name | string | Discount display name. |