Resolve the email subject for a fiscal document
Returns the subject the service would put on the email, so a UI can seed an editable Subject field from the same resolution the send uses rather than reimplementing it.
Give documentId for a document that exists. The answer is then exactly what a send with no subject override produces: a token the service holds no value for resolves to an empty string, as it would in the delivered email.
Give documentKind, sourceKind and sourceId instead for a document about to be created. A token whose value is only assigned at creation is then returned verbatim, for example Grand Hotel - Invoice #[Invoice Number]. Send the string back, edited or not, on the create request and the service fills those tokens in once the values exist.
Supplying the chosen recipient lets the guest's language win when the property has "use guest language" enabled; without it the subject falls back to the property's language.
Request
- Base URLhttps://api.cloudbeds.com
- URLhttps://api.cloudbeds.com/fiscal-document/v1/fiscal-documents/email-subject
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.cloudbeds.com/auth/oauth/authorizeToken URL: https://api.cloudbeds.com/auth/oauth/token scopes: read:reservation
Query parameters
An existing fiscal document. When given, the document parameters below are ignored - everything is derived from the document itself.
Kind of fiscal document
Required when documentId is absent.
Kind of the source entity
Required when documentId is absent.
Required when documentId is absent.
Which backing record a recipient id points at. Deliberately a separate schema from RecipientRequest.type even though the values match: $ref-ing that one would rename the generated RecipientRequest.TypeEnum and break every creation call site.
The chosen Bill-to recipient. Supply together with recipientId. Optional because a manually entered recipient has no stored record to point at; the subject then resolves in the property's language rather than the guest's.
The chosen Bill-to recipient. Supply together with recipientType.
Headers
Property id
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.