#609 — Update to new statuses and submit/update merchant API changes

Repo: Twill-AI/twill-ai-ui State: closed | Status: done Assignee: raymondehizoba

Created: 2025-08-20 · Updated: 2025-08-21

Description

Caused by https://github.com/Twill-AI/facade/issues/506

Need to update UI logic to:

  • Support new set of statuses - currently supports “action_required”, “cancelled”, “approved”, “active”, “declined”, “sent_to_merchant”, “lead”, “in_review”, “editing”.
  • PUT /api/v1/partner/merchants/{merchant_id} (Update existing merchant) now returns {"merchant": MerchantPersisted, "errors": {}} body where “errors” is a potentially nested dictionary with back-end errors. And it now passes with all officer and bank account entities set to null (note that response would contain these entities with ID attached so need to show them in form anyway).
  • POST /api/v1/partner/merchants/{merchant_id}/submit (Submit merchant) now almost always passes with switching merchant status to “in_review”.
  • Both POST /api/v1/partner/merchants/{merchant_id}/submit and /api/v1/partner/merchants/{merchant_id}/submit/force have name “submitted” renamed to “fully_submitted” and meaning “Whether the merchant was fully submitted, i.e. with all back-end validations passed.”

AC:

  • UI uses updated API-s and back-end entities, there are no 422 errors from back-end and other integration problems.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets