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

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;name&quot;:&quot;Gym Membership Stipend&quot;,&quot;uuid&quot;:&quot;f4dc8972-8830-4c07-b623-349a04b040d7&quot;}