#488 — [Bug]: “sync fromPayEngine” logic sets officer.birthdate to null, clears cc_enabled and ach_enabled
Repo: Twill-AI/facade State: closed | Status: done Assignee: sparsh-twillpayments
Created: 2025-08-12 · Updated: 2025-08-13
Description
Steps to reproduce
- In staging open OpenAPI UI and login under partner user
- Call “submit merchant” with officer.birthdate set, cc_enabled and ach_enabled set. Other fields can be invalid for submission.
- After few seconds call “Get merchant” API and check officer.birthdate, clears cc_enabled and ach_enabled fields.
Alternative to 2-3 is to set some officer.birthdate via “update merchant” and call “force update merchants” API.
Issue is similar to https://github.com/Twill-AI/facade/issues/484.
Expected behavior
Value which was sent on “submit merchant”.
Actual behavior
officer.birthdate=null, cc_enabled=false, ach_enabled=false
This is because “submit merchant” call synchronization of merchant from PayEngine even after unsuccessful attempt to submit and PayEngine clears officer.birthdate, 2 other flags are not properly updates on our end, see marks in https://github.com/Twill-AI/twill-ai-ui/issues/578
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets