> This page is for API, version 2026-01-01 (Stable) (default).
> For other versions, use one of these documentation indexes:
> - 2026-01-01 (Stable) (default): https://developer.deel.com/api/stable/llms.txt
> - Beta: https://developer.deel.com/api/beta/llms.txt
> - Deprecated: https://developer.deel.com/api/deprecated/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.deel.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.deel.com/_mcp/server.

# Correct a processed shift

> Add or subtract time on a Global Payroll shift after its payroll cycle has closed, by submitting a correction shift.

Submit a correction shift to add or subtract time on a Global Payroll (GP) shift whose payroll cycle has closed. For the rules corrections follow, see [Correction shifts](/api/global-payroll/shift-pay-and-payroll-cycles#correction-shifts).

## Prerequisites

* An organization token with the `contracts:read`, `time-tracking:read`, and `time-tracking:write` scopes. See [Authentication](/api/authentication).
* The ID of the worker's GP contract. Get it from [`GET /contracts`](/api/reference/endpoints/contracts/get-contracts) with `types=global_payroll`.
* The `external_id` of the processed categorized shift: the ID you chose at submission, or find it with [`GET /v2/time_tracking/shifts`](/api/reference/endpoints/time-tracking-shifts/get-time-tracking-shifts).

## Correct the shift

#### Check the original shift

Retrieve the shift and confirm its amount and shift rate. See [`GET /time_tracking/shifts/{external_id}`](/api/reference/endpoints/time-tracking-shifts/get-time-tracking-shift-by-external-id).

**`Request`**

```bash Request
curl --request GET 'https://api.letsdeel.com/rest/time_tracking/shifts/{external_id}' \
  --header 'Authorization: Bearer YOUR_API_TOKEN'
```

**`Response (200 OK, abbreviated)`**

```json Response (200 OK, abbreviated)
{
  "data": {
    "external_id": "shift-jane-2026-10-05",
    "contract_id": "3j5z2e6",
    "description": "Overtime: warehouse inventory count",
    "date_of_work": "2026-10-05",
    "shift_type": "REGULAR",
    "summary": {
      "shift_rate_external_id": "overtime-150",
      "time_unit": "HOUR",
      "time_amount": 8
    }
  }
}
```

If the shift's payroll cycle hasn't closed, update it with [`PATCH /time_tracking/shifts/{external_id}`](/api/reference/endpoints/time-tracking-shifts/update-time-tracking-shift-by-external-id) instead.

#### Submit the correction

> **Warning**
>
> A correction changes the worker's pay in the next payroll cycle.

Submit a shift with its own `external_id`, `shift_type` set to `CORRECTION_DELTA`, `shift_reference_id` set to the original shift's `external_id`, and one entry in `corrections`. See [`POST /v2/time_tracking/shifts`](/api/reference/endpoints/time-tracking-shifts/create-time-tracking-shifts) for every field.

**`Request`**

```bash Request
curl --request POST 'https://api.letsdeel.com/rest/v2/time_tracking/shifts' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "data": {
      "contract_id": "3j5z2e6",
      "shifts": [
        {
          "external_id": "correction-jane-2026-10-05-1",
          "description": "Correction: 2.5 fewer overtime hours than reported",
          "shift_type": "CORRECTION_DELTA",
          "shift_reference_id": "shift-jane-2026-10-05",
          "corrections": [
            {
              "type": "SUBTRACTION",
              "time_amount": 2.5
            }
          ]
        }
      ]
    }
  }'
```

**`Response (201 Created, abbreviated)`**

```json Response (201 Created, abbreviated)
{
  "data": [
    {
      "external_id": "correction-jane-2026-10-05-1",
      "contract_id": "3j5z2e6",
      "description": "Correction: 2.5 fewer overtime hours than reported",
      "date_of_work": "2026-10-05",
      "shift_type": "CORRECTION_DELTA",
      "shift_reference_id": "shift-jane-2026-10-05",
      "summary": {
        "time_amount": -2.5,
        "total_payable_hours": -2.5
      },
      "created_at": "2026-11-03T10:21:05.000Z",
      "updated_at": "2026-11-03T10:21:05.000Z"
    }
  ]
}
```

A `corrections` entry also takes the hours fields, such as `total_payable_hours`, to add or subtract hours. To state the corrected total instead of the difference, set `shift_type` to `CORRECTION_ABSOLUTE` and send the new total in `summary`.

> **Tip**
>
> Save the correction's `external_id`. You need it to verify or delete the correction.

## Verify the result

Retrieve the correction by its `external_id`.

**`Request`**

```bash Request
curl --request GET 'https://api.letsdeel.com/rest/time_tracking/shifts/{external_id}' \
  --header 'Authorization: Bearer YOUR_API_TOKEN'
```

**`Response (200 OK, abbreviated)`**

```json Response (200 OK, abbreviated)
{
  "data": {
    "external_id": "correction-jane-2026-10-05-1",
    "contract_id": "3j5z2e6",
    "date_of_work": "2026-10-05",
    "shift_type": "CORRECTION_DELTA",
    "shift_reference_id": "shift-jane-2026-10-05",
    "summary": {
      "time_amount": -2.5,
      "total_payable_hours": -2.5
    }
  }
}
```

> **Check**
>
> `shift_type` is `CORRECTION_DELTA`, `shift_reference_id` is the original shift's `external_id`, and `summary.time_amount` is `-2.5`.

## Handle errors

| Status                                                                                                                    | Cause                                                                      | Fix                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`: `Cannot apply correction to shift {id}. Correction can only be applied to a regular shift that has been exported.` | The original shift hasn't been processed yet, or it's a correction itself. | Before the cutoff, update the original shift. To undo a correction, delete it.                                                                                             |
| `400`: `Cannot apply correction to shift {id}. Only summary shifts can be corrected.`                                     | The original shift is an uncategorized (raw) shift.                        | Submit categorized shifts. See [Your integration submits uncategorized (raw) shifts](/api/global-payroll/time-tracking#your-integration-submits-uncategorized-raw-shifts). |
| `400`: `Cannot apply {type} correction to shift {id}. {otherType} corrections have already been applied to this shift.`   | The shift already has a correction in the other direction.                 | Keep all corrections to one shift in the same direction.                                                                                                                   |
| `400`: `Cannot apply correction to shift {id}. Subtraction correction would result in an overall negative value`          | The `SUBTRACTION` is larger than the shift's total.                        | Subtract at most the shift's total.                                                                                                                                        |
| `400`: `Cannot submit multiple corrections for the same shift reference ID: {ids}`                                        | The request holds two corrections for the same original shift.             | Combine them into one correction.                                                                                                                                          |
| `403 Forbidden`                                                                                                           | The token is missing the `time-tracking:write` scope.                      | Create a token with that scope. See [Authentication](/api/authentication).                                                                                                 |

A missing required field returns a validation error that names it:

**`Response (400 Bad Request)`**

```json Response (400 Bad Request)
{
  "errors": [
    {
      "code": "bad_request",
      "path": "data.shifts.0.external_id",
      "message": "Required"
    }
  ]
}
```

## Next steps

#### [Pay Global Payroll workers for tracked shifts](/api/global-payroll/time-tracking)

Create shift rates, submit shifts, and verify them before the cutoff.

#### [Shift pay and payroll cycles](/api/global-payroll/shift-pay-and-payroll-cycles)

Understand rate types, cutoffs, and the rules corrections follow.