#567 — [Bug]: AOI file type causes error when getting a merchant
Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta
Created: 2025-09-09 · Updated: 2025-09-18
Description
Steps to reproduce
This was reported in prod. We saw it for merchant with id: 0382d3c2-7d75-4e10-832d-187d564fddb7
There is a validation error while returning a persisted merchant:
1 validation error for DocumentPersisted\ntype\n Input should be 'BL', 'BR', 'CH', 'FD', 'FS', 'MM', 'NP', 'OTH', 'PA', 'PB', 'PS', 'PS-1', 'PS-2', 'PS-3', 'PST', 'SMA', 'SS', 'TAX', 'VCA' or 'VSD' [type=enum, input_value='AOI', input_type=str]\nThe reason for this is that the AOI type is missing from: https://github.com/Twill-AI/facade/blob/6185f66ccecccc6adba95e20da415357a57224c5/app/api/dtos.py#L450
Expected behavior
merchant should be returned
Actual behavior
500 error
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets