> For the complete documentation index, see [llms.txt](https://api-docs.myhappyforce.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.myhappyforce.com/docs/api-reference/terms-and-conditions.md).

# Terms And Conditions

## POST /api/v1/employee/terms/accept

> Accepts terms and conditions by providing a list of term IDs

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"employeeAPISessionId":[]}],"components":{"securitySchemes":{},"schemas":{"TermsAcceptanceRequest":{"type":"object","properties":{"termsIds":{"type":"array","items":{"type":"string"}}}}}},"paths":{"/api/v1/employee/terms/accept":{"post":{"tags":["Terms and Conditions"],"description":"Accepts terms and conditions by providing a list of term IDs","operationId":"acceptTerms","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsAcceptanceRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}}}}
```

## GET /api/v1/employee/terms/pending

> Retrieves pending terms and conditions that the employee needs to accept

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"employeeAPISessionId":[]}],"components":{"securitySchemes":{},"schemas":{"EmployeeTermsAndConditionsDTO":{"type":"object","description":"Terms and conditions: id, title, detail, and full content.","properties":{"id":{"type":"string","description":"Terms document identifier"},"title":{"type":"string","description":"Title"},"detail":{"type":"string","description":"Short detail or summary"},"content":{"type":"string","description":"Full content (e.g. HTML)"}}}}},"paths":{"/api/v1/employee/terms/pending":{"get":{"tags":["Terms and Conditions"],"description":"Retrieves pending terms and conditions that the employee needs to accept","operationId":"getPendingTerms","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeTermsAndConditionsDTO"}}}}}}}}}}
```

## GET /api/v1/employee/terms/active

> Lists all active terms and conditions for the employee's company

```json
{"openapi":"3.1.0","info":{"title":"Happyforce API","version":"v1"},"tags":[],"servers":[{"url":"{url}","description":"API URL","variables":{"url":{"description":"API Environment","enum":["https://api.happyforce.com","https://staging.happyforce.com","http://localhost:9000"],"default":"https://api.happyforce.com"}}}],"security":[{"employeeAPISessionId":[]}],"components":{"securitySchemes":{},"schemas":{"EmployeeTermsAndConditionsDTO":{"type":"object","description":"Terms and conditions: id, title, detail, and full content.","properties":{"id":{"type":"string","description":"Terms document identifier"},"title":{"type":"string","description":"Title"},"detail":{"type":"string","description":"Short detail or summary"},"content":{"type":"string","description":"Full content (e.g. HTML)"}}}}},"paths":{"/api/v1/employee/terms/active":{"get":{"tags":["Terms and Conditions"],"description":"Lists all active terms and conditions for the employee's company","operationId":"getActiveTerms","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeTermsAndConditionsDTO"}}}}}}}}}}
```
