---
title: "Update transactions in bulk"
method: PATCH
path: "/transactions/{companyId}"
tags: ["Transactions"]
---

# Update transactions in bulk

`PATCH /transactions/{companyId}`

Updates the synchronization status, additional info or custom attribute values of several transactions in a single call, identified by `id`. Only the fields you send are changed. Entries whose `id` does not match any transaction are silently skipped — the call still returns `200` for the whole batch.

## Path parameters

- `companyId` string, required

## Request body

- BulkPatchTransactionsRequestSchema
  - `data` AuxBulkPatchTransactionsRequestSchema[], required — Transactions to update, identified by `id`.
    - `additionalInfo` object — Free-form key/value metadata to attach to the transaction.
    - `attributes` AttributeValueRequestSchema[], nullable — Custom attribute values to attach to the transaction.
      - `customId` string, required — Custom ID of the attribute (see the Attributes endpoints) being set.
      - `value` string, required — Display text of the value being set on this entity.
      - `valueCustomId` string, nullable — Custom ID of one of the attribute's predefined `values`, when the attribute is of type `list`. Leave unset for free-form `string`/`number` attributes.
      - `parentCustomId` string, nullable — Not used when attaching an attribute value to an entity.
    - `sync` boolean, nullable — Marks the transaction as synchronized with your ERP.
    - `id` string, required — Embat transaction ID

## Response `200`

Successful Response

- BulkModifyTransactionsResponseSchema
  - `data` ModifyTransactionsResponseSchema[], required — Result of the bulk operation, one entry per transaction.
    - `id` string, required — Embat transaction ID

## Other responses

- `401` — Unauthorized. The bearer token is missing, invalid or expired.
- `404` — Not found. The requested resource or `companyId` does not exist.
- `422` — Validation Error
- `500` — Unexpected error. Contact support if it persists.

---

[API](https://skmtc.net/embat/apis/embat-api.md) · [All operations](https://skmtc.net/embat/apis/embat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/embat/embat-api/versions/36ca48bf4489/schema)
