---
title: "Update a transaction"
method: PUT
path: "/tracker/transaction/{order_id}"
tags: ["Transactions"]
---

# Update a transaction

`PUT /tracker/transaction/{order_id}`

Overwrite an existing transaction with new data.

## Path parameters

- `order_id` string, required

## Request body

- object
  - `transaction` object, required — Transaction details. Same structure as the [Create a transaction](/api-reference/transactions/create) endpoint.
    - `order_id` string, required — Your unique transaction ID.
    - `email` string, required — Subscriber's email address.
    - `shop` string — Name of your shop.
    - `amount` number — Total amount including tax and shipping.
    - `tax` number — Tax amount only.
    - `shipping` number — Shipping amount only.
    - `city` string — Delivery city.
    - `county` string — Delivery county.
    - `country` string — Delivery country.
    - `timestamp` integer — Unix timestamp of the transaction.
    - `props` union — Optional properties, used in conditionals.
      - string
      - object
    - `status` string — Transaction status. Accepted values: `processing`, `canceled`, `pending`, `completed`, `null`.
  - `transaction_items` object[], required — Array of transaction items. Same structure as the [Create a transaction](/api-reference/transactions/create) endpoint.
    - `code` string — Product code.
    - `title` string — Product name.
    - `category` string — Deprecated. Use `categories` instead.
    - `categories` unknown[] — List of product categories.
      - unknown
    - `price` number — Total price for the given quantity.
    - `amount` number — Quantity of the product.
    - `tags` unknown[] — Optional item tags.
      - unknown

## Response `200`

OK

- object

---

[API](https://skmtc.dev/ecomail/apis/ecomail-api.md) · [All operations](https://skmtc.dev/ecomail/apis/ecomail-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ecomail/ecomail-api/revisions/31b5789931fe/schema)
