Preview a receivable's email message

You can preview emails only for documents in the following statuses: * Invoices: `draft`, `issued`, `overdue`, `partially_paid`, `paid`. In the [non-compliant mode](https://docs.monite.com/accounts-receivable/regulatory-compliance/invoice-compliance): also `canceled`. * Quotes: `draft`, `issued`. * Credit notes: `draft`, `issued`.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

receivable_idstringRequired
ID of an existing invoice, quote, or credit note.

Headers

x-monite-versionstringRequired
x-monite-entity-idstringRequired
The ID of the entity that owns the requested resource.

Request

This endpoint expects an object.
body_textstringRequired>=1 character
Body text of the content
subject_textstringRequired>=1 character
Subject text of the content
languageenumOptional
Language code for localization purposes
typeenumOptional
The type of the preview document.
Allowed values:

Response

Successful Response
body_previewstring
subject_previewstring

Errors

400
Post Receivables ID Preview Request Bad Request Error
401
Post Receivables ID Preview Request Unauthorized Error
403
Post Receivables ID Preview Request Forbidden Error
404
Post Receivables ID Preview Request Not Found Error
422
Post Receivables ID Preview Request Unprocessable Entity Error
429
Post Receivables ID Preview Request Too Many Requests Error