Add hours
/v1/runs/{runId}/hoursSets the hours people worked in a run that is still open, as if typed in Enter hours. Paie splits each week into basic and overtime itself. A calculated run is worked out again for the people sent.
Path
Its id, like run_3m9q0dXbA.
Headers
A key you make for this change, like a UUID, up to 255 characters. Send the same key when you retry it: Paie answers what it answered the first time, for 24 hours, and does nothing again.
Body
Up to 500 people in one call.
Show 2 fields
Starts "emp_".
Every stretch they worked in the run: one day each, or a week at a time. An empty list clears their hours.
Show 3 fields
The first day of the stretch.
The last day. The same as from for one day.
Hours worked in the stretch, to two decimals: 7.5.
Answer
The run is still open. A calculated run was worked out again.
One of entry, calculated. Read any other value as "other".
Show 3 fields
Show 3 fields
The first day of the stretch.
The last day. The same as from for one day.
Hours worked in the stretch, to two decimals: 7.5.
The hours in every stretch, added up.
Refusals
400 | bad_request | The request isn't right: the message says which part. |
401 | unauthorized | No key, a key Paie doesn't know, or one that was revoked. |
403 | forbidden | The key can't do this (its areas), or the workspace isn't in the API beta. |
403 | plan_required | The workspace's plan has no API, or, for a change, none that changes things (Scale). |
404 | not_found | Not there, or not a company this key reaches. The two read the same. |
409 | run_not_open | The run is paid or closed, so it can't change. Send to the next open run. |
409 | idempotency_mismatch | This Idempotency-Key was sent before with a different request. Use a new key for a new request. |
409 | in_progress | A call with this Idempotency-Key is still running. Try again in a moment. |
429 | rate_limited | Over the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says. |
500 | server_error | Something went wrong at Paie. Send support the requestId. |
curl -X POST https://api.paieday.com/v1/runs/run_3m9q0dXbA/hours \ -H "Authorization: Bearer $PAIE_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "hours": [ { "employeeId": "emp_8f2k1xH3vNpa", "worked": [ { "from": "2026-11-02", "to": "2026-11-06", "hours": 40 } ] } ]}'const res = await fetch("https://api.paieday.com/v1/runs/run_3m9q0dXbA/hours", { method: "POST", headers: { Authorization: `Bearer ${process.env.PAIE_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "hours": [ { "employeeId": "emp_8f2k1xH3vNpa", "worked": [ { "from": "2026-11-02", "to": "2026-11-06", "hours": 40 } ] } ] }),});const body = await res.json();import os, uuid, requests
res = requests.post( "https://api.paieday.com/v1/runs/run_3m9q0dXbA/hours", headers={ "Authorization": f"Bearer {os.environ['PAIE_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "hours": [ { "employeeId": "emp_8f2k1xH3vNpa", "worked": [ { "from": "2026-11-02", "to": "2026-11-06", "hours": 40 } ] } ] },)body = res.json(){ "runId": "run_3m9q0dXbA", "status": "entry", "hours": [ { "employeeId": "emp_8f2k1xH3vNpa", "worked": [ { "from": "2026-11-02", "to": "2026-11-06", "hours": 40 } ], "total": 40 } ]}{ "error": { "code": "bad_request", "message": "The request isn't right: the message says which part.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "unauthorized", "message": "No key, a key Paie doesn't know, or one that was revoked.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "forbidden", "message": "The key can't do this (its areas), or the workspace isn't in the API beta.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "not_found", "message": "Not there, or not a company this key reaches. The two read the same.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "run_not_open", "message": "The run is paid or closed, so it can't change. Send to the next open run.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "rate_limited", "message": "Over the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "server_error", "message": "Something went wrong at Paie. Send support the requestId.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}