---
title: "Update Transaction"
method: PUT
path: "/transactions"
---

# Update Transaction

`PUT /transactions`

Lets you update deliveryStatus, custom fields, and extended fields of a transaction. Supports REGULAR, RETURN, NOT_INTERESTED, and NOT_INTERESTED_RETURN transaction types.

## Query parameters

- `identifierName` 'mobile' | 'email' | 'externalId' | 'id' | 'wechat' | 'martjackId' | 'fbId' | 'cardnumber' | 'cardExternalId'
- `identifierValue` string
- `source` 'INSTORE' | 'WECHAT' | 'MARTJACK' | 'WEB_ENGAGE' | 'ECOMMERCE' | 'JD' | 'TAOBAO' | 'TMALL' | 'FACEBOOK' | 'WEBSITE' | 'OTHERS'
- `accountId` string

## Headers

- `X-CAP-DIRECT-REPLAY` boolean

## Request body

- object
  - `id` integer — Unique ID of the transaction generated internally.
  - `number` string — Unique transaction number that needs to be updated.
  - `extendedFields` object — Valid transaction level extended field details in name and value pairs.
  - `deliveryStatus` 'PLACED' | 'PROCESSED' | 'SHIPPED' | 'DELIVERED' | 'RETURNED'

## Response `200`

200

- object
  - `warnings` unknown[]
    - unknown
  - `errors` unknown[]
    - unknown
  - `loyaltyDetails` object[]
    - `redeemed` integer
    - `expired` integer
    - `returned` integer
    - `adjusted` integer
    - `lifetimePoints` integer
    - `loyaltyPoints` integer
    - `cumulativePurchases` integer
    - `loyaltyId` integer
    - `currentSlab` string
    - `nextSlab` string
    - `nextSlabSerialNumber` integer
    - `nextSlabDescription` string
    - `slabSNo` integer
    - `slabExpiryDate` string
    - `programId` integer
    - `delayedPoints` integer
    - `delayedReturnedPoints` integer
    - `totalAvailablePoints` integer
    - `totalReturnedPoints` integer
    - `programTitle` string
    - `programDescription` string
    - `programPointsToCurrencyRatio` number

## Other responses

- `400` — 400

---

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