Skip to main content
PUT
/
deals
/
Update deal
curl --request PUT \
  --url https://api-dev.iclosed.io/deals/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "value": 123,
  "recurring": true,
  "transactionType": "WON",
  "productId": 123,
  "closerId": 123,
  "time": "2023-11-07T05:31:56Z",
  "transactionIds": [
    123
  ],
  "type": "DEAL",
  "transactionEmail": "jsmith@example.com"
}'
{
  "data": {
    "id": 123,
    "value": 123,
    "transactionType": "<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

Deal ID to update

value
number | null

Deal value

recurring
boolean | null

Whether the deal is recurring

transactionType
enum<string> | null

Type of transaction

Available options:
WON,
DEPOSIT,
RECURRING
productId
integer | null

Product ID

closerId
integer | null

Closer ID

time
string<date-time> | null

Deal date and time

transactionIds
integer[]

Array of transaction IDs

type
enum<string> | null

Type of record

Available options:
DEAL,
TRANSACTION
transactionEmail
string<email> | null

Transaction email

Response

Successfully updated deal

data
object
I