curl --request PATCH \
--url https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accounting": {
"ledgerAccountIds": {
"payments": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"products": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"taxIds": {
"deductions": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"allowPurchaseOrderAutolinking": true,
"currency": {
"default": "<string>",
"exchangeRates": [
{
"base": "<string>",
"rate": 123,
"to": "<string>"
}
]
},
"defaultBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"documentIds": {
"documentTypePrefix": {
"creditNote": "<string>",
"deliveryNote": "<string>",
"invoice": "<string>",
"purchaseOrder": "<string>",
"quote": "<string>"
},
"includeDate": true,
"minDigits": 123,
"nextNumber": {
"creditNote": 123,
"deliveryNote": 123,
"invoice": 123,
"purchaseOrder": 123,
"quote": 123
},
"prefix": "<string>"
},
"documentRendering": {
"creditNote": {
"displayOrganizationBankAccount": true
},
"displayLineItems": true,
"displayOrganizationBankAccount": true,
"invoice": {
"displayOrganizationBankAccount": true
},
"lineItems": {
"discount": {
"display": true,
"label": "<string>"
},
"measureUnit": {
"display": true,
"label": "<string>"
},
"name": {
"display": true,
"label": "<string>"
},
"price": {
"display": true,
"label": "<string>",
"precision": 123
},
"priceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"quantity": {
"display": true,
"label": "<string>"
},
"taxRate": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPrice": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPriceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"vatAmount": {
"display": true,
"label": "<string>",
"precision": 123
}
},
"quote": {
"displayOrganizationBankAccount": true,
"displaySignature": true
}
},
"generatePaidInvoicePdf": true,
"language": "<string>",
"mail": {
"replyTo": [
"jsmith@example.com"
]
},
"payablesOcrAutoTagging": [
{
"enabled": true,
"keywords": [
"<string>"
],
"tagId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"payablesSkipApprovalFlow": true,
"quoteSignatureRequired": true,
"reminder": {
"enabled": true
}
}
'import requests
url = "https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings"
payload = {
"accounting": {
"ledgerAccountIds": {
"payments": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"products": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"taxIds": { "deductions": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
},
"allowPurchaseOrderAutolinking": True,
"currency": {
"default": "<string>",
"exchangeRates": [
{
"base": "<string>",
"rate": 123,
"to": "<string>"
}
]
},
"defaultBankAccount": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" },
"documentIds": {
"documentTypePrefix": {
"creditNote": "<string>",
"deliveryNote": "<string>",
"invoice": "<string>",
"purchaseOrder": "<string>",
"quote": "<string>"
},
"includeDate": True,
"minDigits": 123,
"nextNumber": {
"creditNote": 123,
"deliveryNote": 123,
"invoice": 123,
"purchaseOrder": 123,
"quote": 123
},
"prefix": "<string>"
},
"documentRendering": {
"creditNote": { "displayOrganizationBankAccount": True },
"displayLineItems": True,
"displayOrganizationBankAccount": True,
"invoice": { "displayOrganizationBankAccount": True },
"lineItems": {
"discount": {
"display": True,
"label": "<string>"
},
"measureUnit": {
"display": True,
"label": "<string>"
},
"name": {
"display": True,
"label": "<string>"
},
"price": {
"display": True,
"label": "<string>",
"precision": 123
},
"priceAfterTax": {
"display": True,
"label": "<string>",
"precision": 123
},
"quantity": {
"display": True,
"label": "<string>"
},
"taxRate": {
"display": True,
"label": "<string>",
"precision": 123
},
"totalPrice": {
"display": True,
"label": "<string>",
"precision": 123
},
"totalPriceAfterTax": {
"display": True,
"label": "<string>",
"precision": 123
},
"vatAmount": {
"display": True,
"label": "<string>",
"precision": 123
}
},
"quote": {
"displayOrganizationBankAccount": True,
"displaySignature": True
}
},
"generatePaidInvoicePdf": True,
"language": "<string>",
"mail": { "replyTo": ["jsmith@example.com"] },
"payablesOcrAutoTagging": [
{
"enabled": True,
"keywords": ["<string>"],
"tagId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"payablesSkipApprovalFlow": True,
"quoteSignatureRequired": True,
"reminder": { "enabled": True }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accounting: {
ledgerAccountIds: {
payments: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
products: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
taxIds: {deductions: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
},
allowPurchaseOrderAutolinking: true,
currency: {
default: '<string>',
exchangeRates: [{base: '<string>', rate: 123, to: '<string>'}]
},
defaultBankAccount: {id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'},
documentIds: {
documentTypePrefix: {
creditNote: '<string>',
deliveryNote: '<string>',
invoice: '<string>',
purchaseOrder: '<string>',
quote: '<string>'
},
includeDate: true,
minDigits: 123,
nextNumber: {
creditNote: 123,
deliveryNote: 123,
invoice: 123,
purchaseOrder: 123,
quote: 123
},
prefix: '<string>'
},
documentRendering: {
creditNote: {displayOrganizationBankAccount: true},
displayLineItems: true,
displayOrganizationBankAccount: true,
invoice: {displayOrganizationBankAccount: true},
lineItems: {
discount: {display: true, label: '<string>'},
measureUnit: {display: true, label: '<string>'},
name: {display: true, label: '<string>'},
price: {display: true, label: '<string>', precision: 123},
priceAfterTax: {display: true, label: '<string>', precision: 123},
quantity: {display: true, label: '<string>'},
taxRate: {display: true, label: '<string>', precision: 123},
totalPrice: {display: true, label: '<string>', precision: 123},
totalPriceAfterTax: {display: true, label: '<string>', precision: 123},
vatAmount: {display: true, label: '<string>', precision: 123}
},
quote: {displayOrganizationBankAccount: true, displaySignature: true}
},
generatePaidInvoicePdf: true,
language: '<string>',
mail: {replyTo: ['jsmith@example.com']},
payablesOcrAutoTagging: [
{
enabled: true,
keywords: ['<string>'],
tagId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
payablesSkipApprovalFlow: true,
quoteSignatureRequired: true,
reminder: {enabled: true}
})
};
fetch('https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'accounting' => [
'ledgerAccountIds' => [
'payments' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'products' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taxIds' => [
'deductions' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'allowPurchaseOrderAutolinking' => true,
'currency' => [
'default' => '<string>',
'exchangeRates' => [
[
'base' => '<string>',
'rate' => 123,
'to' => '<string>'
]
]
],
'defaultBankAccount' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'documentIds' => [
'documentTypePrefix' => [
'creditNote' => '<string>',
'deliveryNote' => '<string>',
'invoice' => '<string>',
'purchaseOrder' => '<string>',
'quote' => '<string>'
],
'includeDate' => true,
'minDigits' => 123,
'nextNumber' => [
'creditNote' => 123,
'deliveryNote' => 123,
'invoice' => 123,
'purchaseOrder' => 123,
'quote' => 123
],
'prefix' => '<string>'
],
'documentRendering' => [
'creditNote' => [
'displayOrganizationBankAccount' => true
],
'displayLineItems' => true,
'displayOrganizationBankAccount' => true,
'invoice' => [
'displayOrganizationBankAccount' => true
],
'lineItems' => [
'discount' => [
'display' => true,
'label' => '<string>'
],
'measureUnit' => [
'display' => true,
'label' => '<string>'
],
'name' => [
'display' => true,
'label' => '<string>'
],
'price' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'priceAfterTax' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'quantity' => [
'display' => true,
'label' => '<string>'
],
'taxRate' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'totalPrice' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'totalPriceAfterTax' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'vatAmount' => [
'display' => true,
'label' => '<string>',
'precision' => 123
]
],
'quote' => [
'displayOrganizationBankAccount' => true,
'displaySignature' => true
]
],
'generatePaidInvoicePdf' => true,
'language' => '<string>',
'mail' => [
'replyTo' => [
'jsmith@example.com'
]
],
'payablesOcrAutoTagging' => [
[
'enabled' => true,
'keywords' => [
'<string>'
],
'tagId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'payablesSkipApprovalFlow' => true,
'quoteSignatureRequired' => true,
'reminder' => [
'enabled' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings"
payload := strings.NewReader("{\n \"accounting\": {\n \"ledgerAccountIds\": {\n \"payments\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"products\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"taxIds\": {\n \"deductions\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"allowPurchaseOrderAutolinking\": true,\n \"currency\": {\n \"default\": \"<string>\",\n \"exchangeRates\": [\n {\n \"base\": \"<string>\",\n \"rate\": 123,\n \"to\": \"<string>\"\n }\n ]\n },\n \"defaultBankAccount\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"documentIds\": {\n \"documentTypePrefix\": {\n \"creditNote\": \"<string>\",\n \"deliveryNote\": \"<string>\",\n \"invoice\": \"<string>\",\n \"purchaseOrder\": \"<string>\",\n \"quote\": \"<string>\"\n },\n \"includeDate\": true,\n \"minDigits\": 123,\n \"nextNumber\": {\n \"creditNote\": 123,\n \"deliveryNote\": 123,\n \"invoice\": 123,\n \"purchaseOrder\": 123,\n \"quote\": 123\n },\n \"prefix\": \"<string>\"\n },\n \"documentRendering\": {\n \"creditNote\": {\n \"displayOrganizationBankAccount\": true\n },\n \"displayLineItems\": true,\n \"displayOrganizationBankAccount\": true,\n \"invoice\": {\n \"displayOrganizationBankAccount\": true\n },\n \"lineItems\": {\n \"discount\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"measureUnit\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"name\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"price\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"priceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"quantity\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"taxRate\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPrice\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPriceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"vatAmount\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n }\n },\n \"quote\": {\n \"displayOrganizationBankAccount\": true,\n \"displaySignature\": true\n }\n },\n \"generatePaidInvoicePdf\": true,\n \"language\": \"<string>\",\n \"mail\": {\n \"replyTo\": [\n \"jsmith@example.com\"\n ]\n },\n \"payablesOcrAutoTagging\": [\n {\n \"enabled\": true,\n \"keywords\": [\n \"<string>\"\n ],\n \"tagId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"payablesSkipApprovalFlow\": true,\n \"quoteSignatureRequired\": true,\n \"reminder\": {\n \"enabled\": true\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accounting\": {\n \"ledgerAccountIds\": {\n \"payments\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"products\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"taxIds\": {\n \"deductions\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"allowPurchaseOrderAutolinking\": true,\n \"currency\": {\n \"default\": \"<string>\",\n \"exchangeRates\": [\n {\n \"base\": \"<string>\",\n \"rate\": 123,\n \"to\": \"<string>\"\n }\n ]\n },\n \"defaultBankAccount\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"documentIds\": {\n \"documentTypePrefix\": {\n \"creditNote\": \"<string>\",\n \"deliveryNote\": \"<string>\",\n \"invoice\": \"<string>\",\n \"purchaseOrder\": \"<string>\",\n \"quote\": \"<string>\"\n },\n \"includeDate\": true,\n \"minDigits\": 123,\n \"nextNumber\": {\n \"creditNote\": 123,\n \"deliveryNote\": 123,\n \"invoice\": 123,\n \"purchaseOrder\": 123,\n \"quote\": 123\n },\n \"prefix\": \"<string>\"\n },\n \"documentRendering\": {\n \"creditNote\": {\n \"displayOrganizationBankAccount\": true\n },\n \"displayLineItems\": true,\n \"displayOrganizationBankAccount\": true,\n \"invoice\": {\n \"displayOrganizationBankAccount\": true\n },\n \"lineItems\": {\n \"discount\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"measureUnit\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"name\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"price\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"priceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"quantity\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"taxRate\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPrice\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPriceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"vatAmount\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n }\n },\n \"quote\": {\n \"displayOrganizationBankAccount\": true,\n \"displaySignature\": true\n }\n },\n \"generatePaidInvoicePdf\": true,\n \"language\": \"<string>\",\n \"mail\": {\n \"replyTo\": [\n \"jsmith@example.com\"\n ]\n },\n \"payablesOcrAutoTagging\": [\n {\n \"enabled\": true,\n \"keywords\": [\n \"<string>\"\n ],\n \"tagId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"payablesSkipApprovalFlow\": true,\n \"quoteSignatureRequired\": true,\n \"reminder\": {\n \"enabled\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accounting\": {\n \"ledgerAccountIds\": {\n \"payments\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"products\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"taxIds\": {\n \"deductions\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"allowPurchaseOrderAutolinking\": true,\n \"currency\": {\n \"default\": \"<string>\",\n \"exchangeRates\": [\n {\n \"base\": \"<string>\",\n \"rate\": 123,\n \"to\": \"<string>\"\n }\n ]\n },\n \"defaultBankAccount\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"documentIds\": {\n \"documentTypePrefix\": {\n \"creditNote\": \"<string>\",\n \"deliveryNote\": \"<string>\",\n \"invoice\": \"<string>\",\n \"purchaseOrder\": \"<string>\",\n \"quote\": \"<string>\"\n },\n \"includeDate\": true,\n \"minDigits\": 123,\n \"nextNumber\": {\n \"creditNote\": 123,\n \"deliveryNote\": 123,\n \"invoice\": 123,\n \"purchaseOrder\": 123,\n \"quote\": 123\n },\n \"prefix\": \"<string>\"\n },\n \"documentRendering\": {\n \"creditNote\": {\n \"displayOrganizationBankAccount\": true\n },\n \"displayLineItems\": true,\n \"displayOrganizationBankAccount\": true,\n \"invoice\": {\n \"displayOrganizationBankAccount\": true\n },\n \"lineItems\": {\n \"discount\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"measureUnit\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"name\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"price\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"priceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"quantity\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"taxRate\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPrice\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPriceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"vatAmount\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n }\n },\n \"quote\": {\n \"displayOrganizationBankAccount\": true,\n \"displaySignature\": true\n }\n },\n \"generatePaidInvoicePdf\": true,\n \"language\": \"<string>\",\n \"mail\": {\n \"replyTo\": [\n \"jsmith@example.com\"\n ]\n },\n \"payablesOcrAutoTagging\": [\n {\n \"enabled\": true,\n \"keywords\": [\n \"<string>\"\n ],\n \"tagId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"payablesSkipApprovalFlow\": true,\n \"quoteSignatureRequired\": true,\n \"reminder\": {\n \"enabled\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"accounting": {
"ledgerAccountIds": {
"payments": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"products": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"taxIds": {
"deductions": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"allowPurchaseOrderAutolinking": true,
"currency": {
"default": "<string>",
"exchangeRates": [
{
"base": "<string>",
"rate": 123,
"to": "<string>"
}
]
},
"defaultBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"documentIds": {
"documentTypePrefix": {
"creditNote": "<string>",
"deliveryNote": "<string>",
"invoice": "<string>",
"purchaseOrder": "<string>",
"quote": "<string>"
},
"includeDate": true,
"minDigits": 123,
"prefix": "<string>"
},
"documentRendering": {
"creditNote": {
"displayOrganizationBankAccount": true
},
"displayLineItems": true,
"displayOrganizationBankAccount": true,
"invoice": {
"displayOrganizationBankAccount": true
},
"lineItems": {
"discount": {
"display": true,
"label": "<string>"
},
"measureUnit": {
"display": true,
"label": "<string>"
},
"name": {
"display": true,
"label": "<string>"
},
"price": {
"display": true,
"label": "<string>",
"precision": 123
},
"priceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"quantity": {
"display": true,
"label": "<string>"
},
"taxRate": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPrice": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPriceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"vatAmount": {
"display": true,
"label": "<string>",
"precision": 123
}
},
"quote": {
"displayOrganizationBankAccount": true,
"displaySignature": true
}
},
"generatePaidInvoicePdf": true,
"language": "<string>",
"mail": {
"replyTo": [
"jsmith@example.com"
]
},
"payablesOcrAutoTagging": [
{
"enabled": true,
"keywords": [
"<string>"
],
"tagId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"payablesSkipApprovalFlow": true,
"quoteSignatureRequired": true,
"reminder": {
"enabled": true
}
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Updates settings for an organization.
Requires the org:write:all scope.
Token types: APP, USER | Required scopes: org:write:all
curl --request PATCH \
--url https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accounting": {
"ledgerAccountIds": {
"payments": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"products": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"taxIds": {
"deductions": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"allowPurchaseOrderAutolinking": true,
"currency": {
"default": "<string>",
"exchangeRates": [
{
"base": "<string>",
"rate": 123,
"to": "<string>"
}
]
},
"defaultBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"documentIds": {
"documentTypePrefix": {
"creditNote": "<string>",
"deliveryNote": "<string>",
"invoice": "<string>",
"purchaseOrder": "<string>",
"quote": "<string>"
},
"includeDate": true,
"minDigits": 123,
"nextNumber": {
"creditNote": 123,
"deliveryNote": 123,
"invoice": 123,
"purchaseOrder": 123,
"quote": 123
},
"prefix": "<string>"
},
"documentRendering": {
"creditNote": {
"displayOrganizationBankAccount": true
},
"displayLineItems": true,
"displayOrganizationBankAccount": true,
"invoice": {
"displayOrganizationBankAccount": true
},
"lineItems": {
"discount": {
"display": true,
"label": "<string>"
},
"measureUnit": {
"display": true,
"label": "<string>"
},
"name": {
"display": true,
"label": "<string>"
},
"price": {
"display": true,
"label": "<string>",
"precision": 123
},
"priceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"quantity": {
"display": true,
"label": "<string>"
},
"taxRate": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPrice": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPriceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"vatAmount": {
"display": true,
"label": "<string>",
"precision": 123
}
},
"quote": {
"displayOrganizationBankAccount": true,
"displaySignature": true
}
},
"generatePaidInvoicePdf": true,
"language": "<string>",
"mail": {
"replyTo": [
"jsmith@example.com"
]
},
"payablesOcrAutoTagging": [
{
"enabled": true,
"keywords": [
"<string>"
],
"tagId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"payablesSkipApprovalFlow": true,
"quoteSignatureRequired": true,
"reminder": {
"enabled": true
}
}
'import requests
url = "https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings"
payload = {
"accounting": {
"ledgerAccountIds": {
"payments": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"products": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"taxIds": { "deductions": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
},
"allowPurchaseOrderAutolinking": True,
"currency": {
"default": "<string>",
"exchangeRates": [
{
"base": "<string>",
"rate": 123,
"to": "<string>"
}
]
},
"defaultBankAccount": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" },
"documentIds": {
"documentTypePrefix": {
"creditNote": "<string>",
"deliveryNote": "<string>",
"invoice": "<string>",
"purchaseOrder": "<string>",
"quote": "<string>"
},
"includeDate": True,
"minDigits": 123,
"nextNumber": {
"creditNote": 123,
"deliveryNote": 123,
"invoice": 123,
"purchaseOrder": 123,
"quote": 123
},
"prefix": "<string>"
},
"documentRendering": {
"creditNote": { "displayOrganizationBankAccount": True },
"displayLineItems": True,
"displayOrganizationBankAccount": True,
"invoice": { "displayOrganizationBankAccount": True },
"lineItems": {
"discount": {
"display": True,
"label": "<string>"
},
"measureUnit": {
"display": True,
"label": "<string>"
},
"name": {
"display": True,
"label": "<string>"
},
"price": {
"display": True,
"label": "<string>",
"precision": 123
},
"priceAfterTax": {
"display": True,
"label": "<string>",
"precision": 123
},
"quantity": {
"display": True,
"label": "<string>"
},
"taxRate": {
"display": True,
"label": "<string>",
"precision": 123
},
"totalPrice": {
"display": True,
"label": "<string>",
"precision": 123
},
"totalPriceAfterTax": {
"display": True,
"label": "<string>",
"precision": 123
},
"vatAmount": {
"display": True,
"label": "<string>",
"precision": 123
}
},
"quote": {
"displayOrganizationBankAccount": True,
"displaySignature": True
}
},
"generatePaidInvoicePdf": True,
"language": "<string>",
"mail": { "replyTo": ["jsmith@example.com"] },
"payablesOcrAutoTagging": [
{
"enabled": True,
"keywords": ["<string>"],
"tagId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"payablesSkipApprovalFlow": True,
"quoteSignatureRequired": True,
"reminder": { "enabled": True }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accounting: {
ledgerAccountIds: {
payments: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
products: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
taxIds: {deductions: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
},
allowPurchaseOrderAutolinking: true,
currency: {
default: '<string>',
exchangeRates: [{base: '<string>', rate: 123, to: '<string>'}]
},
defaultBankAccount: {id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'},
documentIds: {
documentTypePrefix: {
creditNote: '<string>',
deliveryNote: '<string>',
invoice: '<string>',
purchaseOrder: '<string>',
quote: '<string>'
},
includeDate: true,
minDigits: 123,
nextNumber: {
creditNote: 123,
deliveryNote: 123,
invoice: 123,
purchaseOrder: 123,
quote: 123
},
prefix: '<string>'
},
documentRendering: {
creditNote: {displayOrganizationBankAccount: true},
displayLineItems: true,
displayOrganizationBankAccount: true,
invoice: {displayOrganizationBankAccount: true},
lineItems: {
discount: {display: true, label: '<string>'},
measureUnit: {display: true, label: '<string>'},
name: {display: true, label: '<string>'},
price: {display: true, label: '<string>', precision: 123},
priceAfterTax: {display: true, label: '<string>', precision: 123},
quantity: {display: true, label: '<string>'},
taxRate: {display: true, label: '<string>', precision: 123},
totalPrice: {display: true, label: '<string>', precision: 123},
totalPriceAfterTax: {display: true, label: '<string>', precision: 123},
vatAmount: {display: true, label: '<string>', precision: 123}
},
quote: {displayOrganizationBankAccount: true, displaySignature: true}
},
generatePaidInvoicePdf: true,
language: '<string>',
mail: {replyTo: ['jsmith@example.com']},
payablesOcrAutoTagging: [
{
enabled: true,
keywords: ['<string>'],
tagId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
payablesSkipApprovalFlow: true,
quoteSignatureRequired: true,
reminder: {enabled: true}
})
};
fetch('https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'accounting' => [
'ledgerAccountIds' => [
'payments' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'products' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'taxIds' => [
'deductions' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'allowPurchaseOrderAutolinking' => true,
'currency' => [
'default' => '<string>',
'exchangeRates' => [
[
'base' => '<string>',
'rate' => 123,
'to' => '<string>'
]
]
],
'defaultBankAccount' => [
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'documentIds' => [
'documentTypePrefix' => [
'creditNote' => '<string>',
'deliveryNote' => '<string>',
'invoice' => '<string>',
'purchaseOrder' => '<string>',
'quote' => '<string>'
],
'includeDate' => true,
'minDigits' => 123,
'nextNumber' => [
'creditNote' => 123,
'deliveryNote' => 123,
'invoice' => 123,
'purchaseOrder' => 123,
'quote' => 123
],
'prefix' => '<string>'
],
'documentRendering' => [
'creditNote' => [
'displayOrganizationBankAccount' => true
],
'displayLineItems' => true,
'displayOrganizationBankAccount' => true,
'invoice' => [
'displayOrganizationBankAccount' => true
],
'lineItems' => [
'discount' => [
'display' => true,
'label' => '<string>'
],
'measureUnit' => [
'display' => true,
'label' => '<string>'
],
'name' => [
'display' => true,
'label' => '<string>'
],
'price' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'priceAfterTax' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'quantity' => [
'display' => true,
'label' => '<string>'
],
'taxRate' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'totalPrice' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'totalPriceAfterTax' => [
'display' => true,
'label' => '<string>',
'precision' => 123
],
'vatAmount' => [
'display' => true,
'label' => '<string>',
'precision' => 123
]
],
'quote' => [
'displayOrganizationBankAccount' => true,
'displaySignature' => true
]
],
'generatePaidInvoicePdf' => true,
'language' => '<string>',
'mail' => [
'replyTo' => [
'jsmith@example.com'
]
],
'payablesOcrAutoTagging' => [
[
'enabled' => true,
'keywords' => [
'<string>'
],
'tagId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'payablesSkipApprovalFlow' => true,
'quoteSignatureRequired' => true,
'reminder' => [
'enabled' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings"
payload := strings.NewReader("{\n \"accounting\": {\n \"ledgerAccountIds\": {\n \"payments\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"products\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"taxIds\": {\n \"deductions\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"allowPurchaseOrderAutolinking\": true,\n \"currency\": {\n \"default\": \"<string>\",\n \"exchangeRates\": [\n {\n \"base\": \"<string>\",\n \"rate\": 123,\n \"to\": \"<string>\"\n }\n ]\n },\n \"defaultBankAccount\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"documentIds\": {\n \"documentTypePrefix\": {\n \"creditNote\": \"<string>\",\n \"deliveryNote\": \"<string>\",\n \"invoice\": \"<string>\",\n \"purchaseOrder\": \"<string>\",\n \"quote\": \"<string>\"\n },\n \"includeDate\": true,\n \"minDigits\": 123,\n \"nextNumber\": {\n \"creditNote\": 123,\n \"deliveryNote\": 123,\n \"invoice\": 123,\n \"purchaseOrder\": 123,\n \"quote\": 123\n },\n \"prefix\": \"<string>\"\n },\n \"documentRendering\": {\n \"creditNote\": {\n \"displayOrganizationBankAccount\": true\n },\n \"displayLineItems\": true,\n \"displayOrganizationBankAccount\": true,\n \"invoice\": {\n \"displayOrganizationBankAccount\": true\n },\n \"lineItems\": {\n \"discount\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"measureUnit\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"name\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"price\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"priceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"quantity\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"taxRate\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPrice\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPriceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"vatAmount\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n }\n },\n \"quote\": {\n \"displayOrganizationBankAccount\": true,\n \"displaySignature\": true\n }\n },\n \"generatePaidInvoicePdf\": true,\n \"language\": \"<string>\",\n \"mail\": {\n \"replyTo\": [\n \"jsmith@example.com\"\n ]\n },\n \"payablesOcrAutoTagging\": [\n {\n \"enabled\": true,\n \"keywords\": [\n \"<string>\"\n ],\n \"tagId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"payablesSkipApprovalFlow\": true,\n \"quoteSignatureRequired\": true,\n \"reminder\": {\n \"enabled\": true\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accounting\": {\n \"ledgerAccountIds\": {\n \"payments\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"products\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"taxIds\": {\n \"deductions\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"allowPurchaseOrderAutolinking\": true,\n \"currency\": {\n \"default\": \"<string>\",\n \"exchangeRates\": [\n {\n \"base\": \"<string>\",\n \"rate\": 123,\n \"to\": \"<string>\"\n }\n ]\n },\n \"defaultBankAccount\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"documentIds\": {\n \"documentTypePrefix\": {\n \"creditNote\": \"<string>\",\n \"deliveryNote\": \"<string>\",\n \"invoice\": \"<string>\",\n \"purchaseOrder\": \"<string>\",\n \"quote\": \"<string>\"\n },\n \"includeDate\": true,\n \"minDigits\": 123,\n \"nextNumber\": {\n \"creditNote\": 123,\n \"deliveryNote\": 123,\n \"invoice\": 123,\n \"purchaseOrder\": 123,\n \"quote\": 123\n },\n \"prefix\": \"<string>\"\n },\n \"documentRendering\": {\n \"creditNote\": {\n \"displayOrganizationBankAccount\": true\n },\n \"displayLineItems\": true,\n \"displayOrganizationBankAccount\": true,\n \"invoice\": {\n \"displayOrganizationBankAccount\": true\n },\n \"lineItems\": {\n \"discount\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"measureUnit\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"name\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"price\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"priceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"quantity\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"taxRate\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPrice\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPriceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"vatAmount\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n }\n },\n \"quote\": {\n \"displayOrganizationBankAccount\": true,\n \"displaySignature\": true\n }\n },\n \"generatePaidInvoicePdf\": true,\n \"language\": \"<string>\",\n \"mail\": {\n \"replyTo\": [\n \"jsmith@example.com\"\n ]\n },\n \"payablesOcrAutoTagging\": [\n {\n \"enabled\": true,\n \"keywords\": [\n \"<string>\"\n ],\n \"tagId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"payablesSkipApprovalFlow\": true,\n \"quoteSignatureRequired\": true,\n \"reminder\": {\n \"enabled\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.tesouro.com/identity/v1/organizations/{organizationId}/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accounting\": {\n \"ledgerAccountIds\": {\n \"payments\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"products\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"taxIds\": {\n \"deductions\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n },\n \"allowPurchaseOrderAutolinking\": true,\n \"currency\": {\n \"default\": \"<string>\",\n \"exchangeRates\": [\n {\n \"base\": \"<string>\",\n \"rate\": 123,\n \"to\": \"<string>\"\n }\n ]\n },\n \"defaultBankAccount\": {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"documentIds\": {\n \"documentTypePrefix\": {\n \"creditNote\": \"<string>\",\n \"deliveryNote\": \"<string>\",\n \"invoice\": \"<string>\",\n \"purchaseOrder\": \"<string>\",\n \"quote\": \"<string>\"\n },\n \"includeDate\": true,\n \"minDigits\": 123,\n \"nextNumber\": {\n \"creditNote\": 123,\n \"deliveryNote\": 123,\n \"invoice\": 123,\n \"purchaseOrder\": 123,\n \"quote\": 123\n },\n \"prefix\": \"<string>\"\n },\n \"documentRendering\": {\n \"creditNote\": {\n \"displayOrganizationBankAccount\": true\n },\n \"displayLineItems\": true,\n \"displayOrganizationBankAccount\": true,\n \"invoice\": {\n \"displayOrganizationBankAccount\": true\n },\n \"lineItems\": {\n \"discount\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"measureUnit\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"name\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"price\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"priceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"quantity\": {\n \"display\": true,\n \"label\": \"<string>\"\n },\n \"taxRate\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPrice\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"totalPriceAfterTax\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n },\n \"vatAmount\": {\n \"display\": true,\n \"label\": \"<string>\",\n \"precision\": 123\n }\n },\n \"quote\": {\n \"displayOrganizationBankAccount\": true,\n \"displaySignature\": true\n }\n },\n \"generatePaidInvoicePdf\": true,\n \"language\": \"<string>\",\n \"mail\": {\n \"replyTo\": [\n \"jsmith@example.com\"\n ]\n },\n \"payablesOcrAutoTagging\": [\n {\n \"enabled\": true,\n \"keywords\": [\n \"<string>\"\n ],\n \"tagId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"payablesSkipApprovalFlow\": true,\n \"quoteSignatureRequired\": true,\n \"reminder\": {\n \"enabled\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"accounting": {
"ledgerAccountIds": {
"payments": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"products": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"taxIds": {
"deductions": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"allowPurchaseOrderAutolinking": true,
"currency": {
"default": "<string>",
"exchangeRates": [
{
"base": "<string>",
"rate": 123,
"to": "<string>"
}
]
},
"defaultBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"documentIds": {
"documentTypePrefix": {
"creditNote": "<string>",
"deliveryNote": "<string>",
"invoice": "<string>",
"purchaseOrder": "<string>",
"quote": "<string>"
},
"includeDate": true,
"minDigits": 123,
"prefix": "<string>"
},
"documentRendering": {
"creditNote": {
"displayOrganizationBankAccount": true
},
"displayLineItems": true,
"displayOrganizationBankAccount": true,
"invoice": {
"displayOrganizationBankAccount": true
},
"lineItems": {
"discount": {
"display": true,
"label": "<string>"
},
"measureUnit": {
"display": true,
"label": "<string>"
},
"name": {
"display": true,
"label": "<string>"
},
"price": {
"display": true,
"label": "<string>",
"precision": 123
},
"priceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"quantity": {
"display": true,
"label": "<string>"
},
"taxRate": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPrice": {
"display": true,
"label": "<string>",
"precision": 123
},
"totalPriceAfterTax": {
"display": true,
"label": "<string>",
"precision": 123
},
"vatAmount": {
"display": true,
"label": "<string>",
"precision": 123
}
},
"quote": {
"displayOrganizationBankAccount": true,
"displaySignature": true
}
},
"generatePaidInvoicePdf": true,
"language": "<string>",
"mail": {
"replyTo": [
"jsmith@example.com"
]
},
"payablesOcrAutoTagging": [
{
"enabled": true,
"keywords": [
"<string>"
],
"tagId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"payablesSkipApprovalFlow": true,
"quoteSignatureRequired": true,
"reminder": {
"enabled": true
}
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Authorizations
Application (M2M) OAuth2 access token (client credentials).
Path Parameters
The organization ID.
Body
Cancellation token.
Optional<T> fields carry three states matching the Citadel entity_settings PATCH semantics: absent = leave unchanged, null = clear, value = set. Plain nullable fields cannot be cleared — the platform does not accept an explicit null for them, so absent and null both mean "leave unchanged".
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
balanced, bottom_line, working_capital, null compliant, non_compliant, partially_compliant, null Show child attributes
Show child attributes
exclusive, inclusive exclusive, inclusive, null Response
Returns the updated organization settings.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
balanced, bottom_line, working_capital compliant, non_compliant, partially_compliant Show child attributes
Show child attributes
exclusive, inclusive exclusive, inclusive Was this page helpful?