#535 — Update Merchant Invite API Response (Add MerchantPersisted)
Repo: Twill-AI/facade State: closed | Status: done Assignee: sparsh-twillpayments
Created: 2025-08-28 · Updated: 2025-09-02
Description
Currently, the Invite Merchant API does not return the MerchantPersisted object in the response. Including this will help the client confirm that the merchant entity has been persisted successfully, even if the invite email sending fails or is delayed.
and make name field optional in the invite API
current response:
{ “message”:“Invitation to merchanttwilpmail successfully sent”, “data”:{ “id”:“e99b1a1a-fc54-441e-bf52-7f3b342fb96e”, “email”:“email”, “invite_url”:“url” } }
AC
- Facede’s POST
/api/v1/partner/merchants/{merchant_id}/inviteAPI is corrected to make “name” input value optional (set it tomerchant.dba_name || merchant.nameif not provided) and to returnMerchantPersistedobject as response (with sub-entities). - Logic above is covered by unit tests.
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets