#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}/invite API is corrected to make “name” input value optional (set it to merchant.dba_name || merchant.name if not provided) and to return MerchantPersisted object as response (with sub-entities).
  • Logic above is covered by unit tests.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets