Change currently selected organization

POST /api-v1/organization/switch/{id}

Headers

Path parameters

  • id integer Required

    id

Responses

POST /api-v1/organization/switch/{id}
curl \
 -X POST http://wyzio.app/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"
}