x-api-key: ********************curl --location --globoff --request PATCH 'https://relay.exostack.cloud//api/payroll/temporary-pays/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"salaries": [
{
"function_cp": 311,
"lines": [
{
"code": 102,
"hours_or_percentage": 37.5,
"rate_or_amount": 28.5
}
],
"project_distribution": [
{
"percentage": 100,
"project_number": "P-2026-021"
}
]
}
]
}'{
"id": 6310,
"employee": {
"id": 42,
"code": "118",
"name": "Tremblay Marie"
},
"action": "updated",
"warnings": [],
"readback_warnings": [
{
"field": "salaries[1].lines.102.total",
"sent": 1140,
"persisted": 0
}
],
"resource": {
"id": 6310,
"unique": 19480,
"employee": {
"id": 42,
"code": "118"
},
"period_number": 0,
"year_end_type": 0,
"status": {
"is_temporary": true,
"is_archived": false,
"is_transferred_to_gl": false,
"is_printing_in_progress": false,
"remittance_made": false,
"is_deleted": false
},
"special_payment": {
"use_id": 0,
"use_code": "none",
"use_label": "Aucun",
"remittance_state": 0,
"report_number": 0,
"form_number": 0,
"number_of_entries": 1,
"entries": [
{
"index": 1,
"amount_per_pay": 125,
"percentage_of_pay": 0,
"effective_date": "2026-09-01",
"forecast_amount": 0,
"amount_withheld": 0
}
],
"entries_extended": [
{
"index": 1,
"calculation_mode": 1,
"file_number": "***4821",
"amount_withheld": 0,
"comment": 0,
"modified_by_user": false
}
]
},
"salaries_summary": {
"tp_num_salaries": 1,
"total_net_pay": 0
},
"salaries": [
{
"slot": 1,
"function_cp": 311,
"bonus_amount": 0,
"paid_holidays_comment": "Fête nationale",
"union": "FTQ",
"local": "9",
"ccq": {
"apprentice": "0",
"occupation": 370,
"status": "",
"sector": "",
"annex": "",
"region": 6,
"union": "",
"taxable_social_benefits": 0,
"hours_reserve": 8
},
"project_distribution": [
{
"rank": 1,
"project_cp": 88,
"percentage": 60,
"modified_by_user": true
},
{
"rank": 2,
"project_cp": 93,
"percentage": 40,
"modified_by_user": true
}
],
"lines": [
{
"code": 102,
"hours_or_percentage": 40,
"rate_or_amount": 28.5,
"total": 0,
"manual": false,
"project_cp": 88
},
{
"code": 125,
"hours_or_percentage": 0,
"rate_or_amount": 0,
"total": 250,
"manual": true
}
]
}
],
"metadata": {
"updated_at": "2026-10-06T14:05:12-04:00",
"updated_by_user_id": 7,
"unique_id": 19480,
"sdk_interface": "TransPA"
},
"sync": {
"organisation_id": "construction_exemple",
"extracted_at": "2026-10-06T14:05:13-04:00",
"cursor": {
"modified_at": "2026-10-06T14:05:12-04:00",
"card_pos": 6310
}
},
"_links": {
"self": "/api/payroll/trans-pa/by-id/6310",
"pay": "/api/payroll/pays/by-id/6310",
"employee": "/api/payroll/employees/by-id/42"
}
}
}