Yapily Data Plus is available as a BETA version.
The Categorisation Feedback API is currently available in the following countries: UK, France, Germany, Austria, Ireland, Italy, Spain, Denmark, Finland, and Norway.
Background
Yapily’s Categorisation Feedback API is a complementary Data Plus service that lets you flag issues with categorised transactions and track the status of that feedback over time. This closes the loop between the Categorisation engine and your application, helping improve the accuracy of categorisation results over time.- Report incorrect or missing fields on a categorised transaction
- Retrieve previously submitted feedback, either by Categorisation ID or by Feedback ID
- Track the review status of each piece of feedback you submit, and get notified when it changes
How it works
1
Complete prerequisites
Before submitting feedback on a categorised transaction, you will first need to:
- Have a Categorisation result, including the Categorisation ID and Transaction Hash you want to submit feedback for
- Register a Webhook for notification events when a feedback’s status changes
Webhook Registration
Please follow our Webhook Registration Guide in order to register a webhook for your application.Webhook Event
In order to get notified when a categorisation feedback request has changed status you will have to subscriber to the following webhook event:- categorisation.feedback_status.updated.v1 - is the event triggered when the status of a categorisation feedback is updated.
2
Submit feedback on a categorised transaction
Submitting feedback on a transaction
Once you have a categorised transaction, you can submit feedback against it using its Categorisation ID and Transaction Hash.- Call
POST /transactions/categorisation/{categorisationId}/feedback- Provide the
transactionHashof the transaction you’re submitting feedback for - Provide one or more
suggestions, each describing what’s wrong with the categorisation - Optionally, provide free-form
notesfor anything the suggestions don’t cover - See the endpoint’s API specification for details
- Provide the
status of RECEIVED:3
Get notified once feedback status changes
Feedback Status Change Event
An event is triggered on the topiccategorisation.feedback_status.updated.v1 whenever the status of a categorisation feedback is updated.4
Retrieve feedback status
Once feedback has been submitted, you can retrieve it either by the Categorisation ID it was submitted against, or directly by its Feedback ID.
- Call
GET /transactions/categorisation/{categorisationId}/feedbackto retrieve all feedback submitted against a Categorisation ID- Optionally filter results by
status - See the endpoint’s API specification for details
- Optionally filter results by
- Or call
GET /transactions/categorisation/feedback/{feedbackId}to retrieve a single piece of feedback by its Feedback ID- See the endpoint’s API specification for details