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_kEBddyniUVxmrUuboicvNB",
"label": "Insurance"
},
"merchant": {
"heron_id": "mrc_iMBiSirVbVafB5YoBXBMLu",
"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_kEBddyniUVxmrUuboicvNB",
"label": "Insurance"
},
"merchant": {
"heron_id": "mrc_iMBiSirVbVafB5YoBXBMLu",
"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.
Show child attributes
{
"heron_id": "mrc_iMBiSirVbVafB5YoBXBMLu",
"is_correct": false,
"name": "Spotify"
}your identifier for where the feedback comes from e.g. bob_the_underwriter
120OK
Was this page helpful?