This endpoint retrieves the list of active reason codes available in the system.
Endpoint
GET {{url}}/api/resource/Reason Code Master?filters=[["is_active","=","1"]]&limit_page_length=0Query Parameters
| Name | Type | Default | Description |
|---|---|---|---|
filters | string | [["is_active","=","1"]] | Returns only active reason codes. |
limit_page_length | string | 0 | Number of records to return. 0 returns all records. |
Response
The response returns a collection of reason code records wrapped inside a data array. Each record represents an active reason code.
name– Reason code name. Pass it to Get Individual Reason Code Master Details to fetch the full details of the reason code.
Example Response
{
"data": [
{ "name": "Abandoned" },
{ "name": "Abandoned at Shop" },
{ "name": "Abandonment" },
{ "name": "Accident" },
{ "name": "Account Brought Current" }
]
}Status Codes
| Code | Meaning |
|---|---|
200 | OK |
