Change currently selected organization
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
POST /api-v1/organization/switch/{id}
curl \
-X POST http://10.10.10.132/api-v1/organization/switch/{id} \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string"
Response examples (200)
{
"automaticSynchronizationOfContacts": true,
"countryCode2": "string",
"currencyId": 42,
"defaultPaymentTerms": 42,
"employeeGroups": [
{
"id": 42,
"name": "string"
}
],
"id": 42,
"isCustomEmailServerConfigured": true,
"mainLanguage": {
"code": "string",
"id": 42,
"isMain": true,
"name": "string"
},
"name": "string",
"plannedPaymentDateOffset": 42,
"purchasePaymentAccountId": 42,
"regionId": 42,
"salesPaymentAccountId": 42,
"startDate": "2024-05-04T09:42:00+00:00",
"stockStrategy": "FIFO",
"usePurchaseAccrualAccounting": true,
"useSalesAccrualAccounting": true,
"useTimesheets": true,
"useUnsentOrdersStatus": true,
"useUnsentPayrollStatus": true,
"useUnsentSalesStatus": true,
"validateOrdersByDefaultType": "NONE",
"validatePurchaseInvoicesByDefaultType": "NONE",
"validateSalesInvoicesByDefaultType": "NONE"
}