PUT
/
api
/
transactions
/
{heron_id}
/
feedback
curl --request PUT \
  --url https://app.herondata.io/api/transactions/{heron_id}/feedback \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "transaction": {
    "category": {
      "heron_id": "ctg_CrhKeEy5sM3grvtnSLCCGv",
      "label": "Insurance"
    },
    "merchant": {
      "heron_id": "mrc_J7mEMddphsKiuJTgm83kLi",
      "is_correct": false,
      "name": "Spotify"
    },
    "source": null
  }
}'

Authorizations

x-api-key
string
header
required

Path Parameters

heron_id
string
required

Transaction heron_id

Body

application/json

A partial Transaction object with the suggested Category and/or Merchant. If you provide a heron_id for Category or Merchant, you don't need to provide other fields. If you don't know the Merchant heron_id nor name, you can just send the is_correct boolean. If heron_id is provided, we disregard name and label. If is_correct is set to true, we disregard all other Merchant fields.

The body is of type object.

Response

200

OK