Skip to main content
PUT
/
transactions
/
update
Update transaction
curl --request PUT \
  --url https://api-dev.iclosed.io/transactions/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "syncedDeal": 123,
  "name": "<string>",
  "email": "jsmith@example.com",
  "phoneNumber": "<string>",
  "description": "<string>",
  "value": 123,
  "source": "<string>",
  "updatedBy": "<string>"
}'
{
  "data": {
    "id": 123,
    "value": 123,
    "name": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key required in 'Authorization' header. Format: iclosed-<token>

Body

application/json
id
integer
required

Transaction ID to update

syncedDeal
integer | null

Synced deal ID

name
string | null

Transaction name

email
string<email> | null

Email address

phoneNumber
string | null

Phone number

description
string | null

Transaction description (max 1000 characters)

Maximum length: 1000
value
number | null

Transaction value

source
string | null

Transaction source

updatedBy
string | null

User who updated the transaction

Response

Successfully updated transaction

data
object
I