add agreement
Testing Env
https://testhr.vodoglobal.com
Testing Env
https://testhr.vodoglobal.com
POST
/api/v1/agreements
Last modified:2025-03-26 12:40:51
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testhr.vodoglobal.com/api/v1/agreements' \
--header 'uuid: 630ca2f4885f8' \
--header 'secure_business_key: 4765066450c0bd66325.48403130' \
--header 'user_token: ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": 2538,
"start_date": "2025/03/16",
"end_date": "2025/03/31",
"nationalities": [
{
"nationality_id": 57,
"qty": "5",
"price": "2000",
"employees": [
{
"index": 0,
"nationality_index": 0,
"nationality": "57",
"nationality_identical": "true",
"employee_name": "Ammar Yasser",
"employee_source": null,
"employee_id": 3327,
"start_data": "",
"end_data": "",
"start_date": "2025/03/16",
"end_date": "2025/03/31"
},
{
"index": 1,
"nationality_index": 0,
"nationality": "57",
"nationality_identical": "true",
"employee_name": "Mariem",
"employee_source": null,
"employee_id": 3317,
"start_data": "",
"end_data": "",
"start_date": "2025/03/16",
"end_date": "2025/03/31"
},
{
"index": 2,
"nationality_index": 0,
"nationality": "57",
"nationality_identical": "true",
"employee_name": "Mahmoud",
"employee_source": null,
"employee_id": 3312,
"start_data": "",
"end_data": "",
"start_date": "2025/03/16",
"end_date": "2025/03/31"
},
{
"index": 3,
"nationality_index": 0,
"nationality": "57",
"nationality_identical": "true",
"employee_name": "Mark Hopkins",
"employee_source": null,
"employee_id": 3277,
"start_data": "",
"end_data": "",
"start_date": "2025/03/16",
"end_date": "2025/03/31"
}
],
"id": 703.3123997961599,
"totalPrice": 10000
}
]
}'
Response Response Example
{}
Request
Header Params
uuid
stringÂ
required
Example:
{{uuid}}
secure_business_key
stringÂ
required
Example:
{{secure_business_key}}
user_token
stringÂ
required
Example:
{{user_token}}
Accept
stringÂ
required
Example:
application/json
Body Params application/json