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 theread 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 aGET request to the /organizations/{organization_id}/settings endpoint:
Update organization settings
To update the details of an organization, make aPATCH 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.
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.
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.