---
title: "Update Transaction"
method: POST
path: "/transactions/{transaction_id}"
tags: ["Transactions API"]
---

# Update Transaction

`POST /transactions/{transaction_id}`

Updates a transaction by specifying the values of the parameters passed. Any parameters that you don't provide won't change.

## Path parameters

- `transaction_id` string, required

## Request body

- UpdateRequest
  - `order_id` string — Identifies the order within the merchant's order management system that this transaction corresponds to. It is only returned in the response if included in the request.
  - `reference_id` string, nullable — An optional, unique identifier that may be associated with each transaction event and reconciled with the system of record used by the merchant.
  - `shipping_carrier` string, nullable — The shipping carrier used to ship the items.
  - `shipping_confirmation` string, nullable — The tracking number of the shipment.
  - `shipping` UpdateRequestShipping, nullable
    - `address` UpdateRequestShippingAddress
      - `street1` string — Address line 1 (e.g., street, PO Box, or company name).
      - `street2` string — Address line 2 (The apartment#, floor or suite that complements the street address).
      - `city` string — City of the shipping address.
      - `region1_code` string — The 2-letter postal abbreviation or two character state code such as CA for California.
      - `postal_code` string — The postal code or zipcode of the address.
      - `country_code` string — Two-letter country code (ISO 3166-1 alpha-2) such as US for United States or CA for Canada."
    - `email` string — The email address of the customer.
    - `name` UpdateRequestShippingName
      - `first` string — The first name of the customer.
      - `full` string — The full name of the customer, which must contain at least two words.
      - `last` string — The last name of the customer.
    - `phone_number` string, nullable — The phone number of the customer.

## Response `200`

HTTP 200 OK

## Other responses

- `400` — HTTP 400 Bad Request
- `401` — HTTP 401 Unauthorized
- `404` — HTTP 404 Not Found

---

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