#473 — [Bug]: partner update user’s assigned_merchant_ids doesn’t update cache
Repo: Twill-AI/facade State: closed | Status: done Assignee: sparsh-twillpayments
Created: 2025-08-11 · Updated: 2025-08-27
Description
Steps to reproduce
- In staging open OpenAPI UI and login under partner owner
- Call PATCH
/api/v1/partner/users/{user_id}“Update user” for some rep with adding new merchant to “assigned_merchant_ids” field. - Re-login under this rep (without restarting “facade”) and try to get merchant information, update/submit it.
FYI: workaround is to call POST /api/v1/master/partners/cached/update “Update partners and users cache” API.
Expected behavior
Rep has access to the merchant.
Actual behavior
404
{
"detail": "Merchant 742f9384-b62a-43be-a067-ce093731407a not found for user 61896a2b-9c8e-4c25-ab4b-3d976ce9a093."
}
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets