---
title: "PATCH /contracts/{uuid}/receivables/bulk-edit"
method: PATCH
path: "/contracts/{uuid}/receivables/bulk-edit"
tags: ["Contracts"]
---

# PATCH /contracts/{uuid}/receivables/bulk-edit

`PATCH /contracts/{uuid}/receivables/bulk-edit`

## Request

- Base URL: `https://api.kolek.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolek.com.br/contracts/{uuid}/receivables/bulk-edit`
- Auth: HTTP bearer

## Path parameters

- `uuid` string, required

## Request body

- BulkEditReceivablesDto
  - `filter_type` 'all_pending' | 'to_be_due', required: Filter type to select which receivables to edit
  - `receivable_ids` string[]: Specific receivable UUIDs to edit. If provided, filter_type is ignored.
  - `issued_day` number: Day of the month for issued date (1-31)
  - `due_day` number: Day of the month for due date (1-31)
  - `discount` number: Discount value (percentage or absolute based on discount_code)
  - `discount_code` number: Discount type: 0 = percentage, 1 = absolute value
  - `late_fee` number: Late fee value (percentage or absolute based on late_fee_code)
  - `late_fee_code` number: Late fee type: 0 = percentage, 1 = absolute value
  - `interest` number: Interest value (percentage per month or absolute per day based on interest_code)
  - `interest_code` number: Interest type: 0 = percentage per month, 1 = absolute value per day
  - `line_items` LineItemDto[]: Line items (services) to update
    - `description` string, required: Description of the service
    - `quantity` number, required: Quantity
    - `price` number, required: Price per unit
  - `replace_line_items` boolean: If true, replaces all line items. If false, appends to existing.
  - `edited_by` string, required: User ID who is making the edit

## Response `200`

Successfully updated receivables in bulk.

## Other responses

- `401`: Unauthorized - User not authorized to edit receivables.
- `404`: Contract not found.
- `500`: Internal server error.

---

[API](https://skmtc.dev/kolek/apis/kolek-api.md) - [All operations](https://skmtc.dev/kolek/apis/kolek-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kolek/apis/kolek-api/revisions/b10a60bfcfa4?raw)
