Create a custom earning type
POST {{baseUrl}}/v1/companies/:company_id/earning_types
Create a custom earning type.
If an inactive earning type exists with the same name, this will reactivate it instead of creating a new one.
scope: payrolls:write
Request Body
{"name"=>"<string>"}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
| Content-Type | string | ||
| Accept | string | 
RESPONSES
status: Created
{"name":"Gym Membership Stipend","uuid":"f4dc8972-8830-4c07-b623-349a04b040d7"}