Skip to main content

Overview

Tesouro’s organization settings are a way to customize the behavior of certain functionality for your organizations. The organization settings API provides functionality for managing and configuring settings specific to organizations within the Tesouro platform. They allow you to personalize and customize certain aspects of your organizations’ integration. Some of these customizations include enabling payment and overdue reminders, customizing document number formatting, setting default currencies and currency exchange rates, and other organization-specific configurations.

Roles and permissions

To get or update organization settings using an organization user token, this organization user must have a role with the read and update permissions for the entity resource. If using a partner-level token, no special permissions are needed.

Get organization settings

To retrieve settings for an organization, send a GET request to the /organizations/{organization_id}/settings endpoint:
A successful request returns the current settings for the organization provided.

Update organization settings

To update the details of an organization, make a PATCH request to the /organizations/{organization_id}/settings endpoint. The following snippet shows an example of the payload for the PATCH /organizations/{organization_id}/settings endpoint that enables payment reminders for organization invoices and updates the document ID format for invoices and quotes.
The successful request returns the complete organization settings object with the updated fields. The language field on the organization settings object determines the language of the organization’s PDFs.

Document rendering

documentRendering controls what appears on the PDF documents an organization generates. displayOrganizationBankAccount controls the payment block that carries the organization’s bank account details. It exists at the top level and once per document type, and both must be true for the block to render. Each defaults to true.
The per-document-type flag is read from the organization settings, so setting it on an individual document has no effect. Paid invoices never show the payment block, whatever the setting. To learn which fields the block contains, see What appears on the invoice PDF.

Default bank account

defaultBankAccount holds the account an organization is paid into by default, as a type and id pair. See Set a default bank account.