Skip to content

OrganizationTransactionalEmails

ngoumard edited this page Jan 11, 2017 · 1 revision

OrganizationTransactionalEmails

Update an organization transactional email

When an organization is created, four transactional emails are created depends on the locale of the owner.

The types are the following : new-quote accepted-quote first-follow-up second-follow-up.

A member of the organization can just update the email templates to fit their needs. Those templates will be used when transactional emails are sent.

Endpoint

  • URI : /api/v1/transactional-emails/:id
  • Method : PUT
  • Credentials : user member of the organization with role >= author
  • Values
  • subject: Subject of the email
  • body: Body of the email
  • footer: Footer of the email
{
	"subject": "Your quote is ready",
	"body": "*|CUSTOMER-NAME|*, Here's your quote.",
	"footer": ""
}

Action

Will try to update an organization transactional email.

Response

201 The updated organization transactional email.

{
  "type": "new-quote",
  "subject": "Your quote is ready",
  "organization_id": "32e06ed0-cf0e-454b-ac44-ac69b0b02cfb",
  "id": "de09fc32-6bf9-4ccd-869d-21a854ff5662",
  "footer": null,
  "body": "*|CUSTOMER-NAME|*, Here's your quote."
}