OK
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/earning_codes' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "type": "Salaried", "active": true }'
{ "id": "string", "companyId": "string", "type": "Salaried", "name": "string", "active": true }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/earning_codes?active=true&id=string&name=string&page=1&pageSize=10'
{ "hasResources": true, "totalResources": 0, "totalPages": 0, "pageSize": 0, "currentPage": 0, "previousPage": 0, "nextPage": 0, "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/earning_codes/{earningCodeId}'
{ "id": "string", "companyId": "string", "type": "Salaried", "name": "string", "active": true }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/earning_codes/{earningCodeId}' \ -H 'Content-Type: application/json' \ -d '{ "active": true }'
{ "id": "string", "companyId": "string", "type": "Salaried", "name": "string", "active": true }