#506 — Facade statuses and /merchant/submit API adjustments

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2025-08-19 · Updated: 2025-09-15

Description

Request

Continuation of https://github.com/Twill-AI/facade/issues/500

In order to make “submit application” more permissive for users and show more “we take care” statuses for them list of statuses, their triggers and “sync with PE” logic was updated in “Statuses” sheet - see details in the 2nd (bottom) table.

For “submit application” API new behavior is required - it shouldn’t fail due to PE verification (including problems caused by bank accounts) - even if PE doesn’t allow to submit application we should set “in_review” status and report submission in the same way as “force submit (as a Lead)” do.

Partial diagram of submitting logic Image

See relevant Slack thread https://twill-network.slack.com/archives/C078KS0R05B/p1755536857270169

Acceptance criteria

  • Facade have “submit”/“update” merchant API logic updated to be more permissive.
  • Facade supports new statuses and new triggers for them.
  • Facade allows to save officers with “position” provided.
  • Logic above is covered with unit tests.
  • Front-end ticket with explanation of API changes. - https://github.com/Twill-AI/twill-ai-ui/issues/609

Implementation details

API should provide errors anywa

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets