Edit Transaction Note

Edit an existing transaction's note.

Editing a Transaction Note

Initiate a mutation to edit an existing transaction note according to a Transaction ID.

Existing notes that are empty/null can also be edited and changed.

mutation UpdateTransaction($data: TransactionUpdateInput!, $where: TransactionWhereUniqueInput!) {
  updateTransaction(data: $data, where: $where) {
    id
  }
}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (TransactionUpdateInput) object + (TransactionWhereUniqueInput) object

Name
Type
Description

note*

String

New transaction note

Id*

String

Transaction ID

Example body:

{
  "data": {
    "note": "made by api Admin"
  },
  "where": {
    "id": "clpgvrjb700136g01lr3o0tgv"
  }
}

Response

Return values:

Name
Type
Description

id

String

Updated Transaction ID

{
  "data": {
    "updateTransaction": {
      "id": "clpgvrjb700136g01lr3o0tgv",
    }
  }
}

Try it out!