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_XVQCX6o39oNmen5JZamW8v",
"label": "Insurance"
},
"merchant": {
"heron_id": "mrc_N83rCfCNfiGgi77BS8XoHL",
"is_correct": false,
"name": "Spotify"
},
"source": null
}
}'
Provide feedback on a Transaction’s Categories and Merchants
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_XVQCX6o39oNmen5JZamW8v",
"label": "Insurance"
},
"merchant": {
"heron_id": "mrc_N83rCfCNfiGgi77BS8XoHL",
"is_correct": false,
"name": "Spotify"
},
"source": null
}
}'
Transaction heron_id
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
.
OK
Was this page helpful?