Authorization: Bearer ********************
{
"componentGroupId": "string",
"amount": {
"gross": 0,
"ctc": 0
},
"currency": {
"name": "string",
"symbol": "string"
},
"customData": [
{
"value": 0,
"key": "string"
}
],
"specialSchemes": [
{
"enabled": true,
"name": "ESI"
}
]
}
curl --location --request POST 'https://api.upbooks.io/api/v1/employee/prepare-salary-components' \
--header 'ORGANIZATION-ID: 000000' \
--header 'Content-Type: application/json' \
--data-raw '{
"componentGroupId": "string",
"amount": {
"gross": 0,
"ctc": 0
},
"currency": {
"name": "string",
"symbol": "string"
},
"customData": [
{
"value": 0,
"key": "string"
}
],
"specialSchemes": [
{
"enabled": true,
"name": "ESI"
}
]
}'
{
"data": {
"components": [
{
"name": "string",
"code": "BASIC",
"type": "EARNINGS",
"isTaxable": true,
"isAttendanceBased": true,
"isIncludedInCTC": true,
"isActive": true,
"_id": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"formula": "string",
"custom": true,
"salaryComponentId": "string",
"amount": 0
}
],
"final": {
"net": 0,
"gross": 0,
"ctc": 0
}
},
"message": "string"
}