## List Reason Codes `reason_codes.list_reason_codes(ReasonCodeListReasonCodesParams**kwargs) -> ReasonCodeListReasonCodesResponse` **get** `/api/v2/public/reasoncodes` Retrieves a list of reason codes, optionally filtered by search text. ### Parameters - `code: Optional[str]` Filter by reason code. - `code_description: Optional[str]` Filter by reason code description. - `function_key: Optional[str]` Filter by function key. - `is_gain: Optional[bool]` Filter by gain-type reason codes. - `is_loss: Optional[bool]` Filter by loss-type reason codes. - `is_store: Optional[bool]` Filter by store-level reason codes. ### Returns - `List[ReasonCodeListReasonCodesResponseItem]` - `code: Optional[int]` - `code_description: Optional[str]` - `description: Optional[str]` - `function_key: Optional[str]` - `is_comment_mandatory: Optional[bool]` - `is_gain: Optional[bool]` - `is_image_mandatory: Optional[bool]` - `is_loss: Optional[bool]` - `is_order_number_mandatory: Optional[bool]` - `is_picking_list: Optional[bool]` - `is_rollback_allowed: Optional[bool]` - `is_sales_order_discsount: Optional[bool]` - `is_store: Optional[bool]` - `reason_code_type: Optional[int]` - `review_status: Optional[int]` - `store_type: Optional[str]` ### Example ```python import os from colleqtive_sdk import Colleqtive client = Colleqtive( bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"), # This is the default and can be omitted ) response = client.reason_codes.list_reason_codes() print(response) ```