Added

Turn off every customer email with send_customer_comms

You can now stop every email Mamo sends to your customers, not only the payment receipt. A new optional boolean, send_customer_comms, defaults to true. When it is false, Mamo sends no emails to the customer: no receipts, pre-authorization notices, refund confirmations or subscription updates. Emails to your business are not affected.

  • POST /links, PATCH /links/{id} and POST /marketplace/links accept send_customer_comms. On update, leaving it out keeps the link's current value.
  • Every payment link response, GET /links, GET /links/{id} and the payment_link.create webhook payload now include send_customer_comms. It is always true or false; links created before this change return true.
  • POST /payments with a saved card (card_id) accepts send_customer_comms for that payment only. When it is left out, the payment follows the setting of the link the card was saved on. It isn't returned in the payment response.
  • send_customer_comms is the master switch: send_customer_receipt only applies while it is true. See Customer emails on Create payment link.
  • Sending null returns 422 VALIDATION_ERROR.

The change is backward compatible: if you don't send send_customer_comms, nothing changes, and send_customer_receipt works as before.