Get details of current organization

GET /api-v1/myaccount/current-organization-details

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • automaticSynchronizationOfContacts boolean
    • countryCode2 string
    • currencyId integer
    • defaultPaymentTerms integer(int32)
    • employeeGroups array[object]
      Hide employeeGroups attributes Show employeeGroups attributes object
      • code string
      • id integer
      • name string
    • id integer
    • isConsolidated boolean
    • isCustomEmailServerConfigured boolean
    • mainLanguage object
      Hide mainLanguage attributes Show mainLanguage attributes object
      • code string
      • id integer
      • isMain boolean
      • name string
    • name string
    • plannedPaymentDateOffset integer(int32)
    • purchasePaymentAccountId integer
    • regionId integer
    • salesPaymentAccountId integer
    • startDate string(date-time)
    • stockStrategy string

      Values are FIFO, LIFO, AVERAGE, UNIT, or TRADING.

    • usePurchaseAccrualAccounting boolean
    • useSalesAccrualAccounting boolean
    • useTimesheets boolean
    • useUnsentOrdersStatus boolean
    • useUnsentPayrollStatus boolean
    • useUnsentSalesStatus boolean
    • validateOrdersByDefaultType string

      Values are NONE, SINGLE, or DOUBLE.

    • validatePurchaseInvoicesByDefaultType string

      Values are NONE, SINGLE, or DOUBLE.

    • validateSalesInvoicesByDefaultType string

      Values are NONE, SINGLE, or DOUBLE.

  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/myaccount/current-organization-details
curl \
 --request GET 'https://wyzio.app/api-v1/myaccount/current-organization-details' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
{
  "automaticSynchronizationOfContacts": true,
  "countryCode2": "string",
  "currencyId": 42,
  "defaultPaymentTerms": 42,
  "employeeGroups": [
    {
      "code": "string",
      "id": 42,
      "name": "string"
    }
  ],
  "id": 42,
  "isConsolidated": true,
  "isCustomEmailServerConfigured": true,
  "mainLanguage": {
    "code": "string",
    "id": 42,
    "isMain": true,
    "name": "string"
  },
  "name": "string",
  "plannedPaymentDateOffset": 42,
  "purchasePaymentAccountId": 42,
  "regionId": 42,
  "salesPaymentAccountId": 42,
  "startDate": "2025-05-04T09:42:00Z",
  "stockStrategy": "FIFO",
  "usePurchaseAccrualAccounting": true,
  "useSalesAccrualAccounting": true,
  "useTimesheets": true,
  "useUnsentOrdersStatus": true,
  "useUnsentPayrollStatus": true,
  "useUnsentSalesStatus": true,
  "validateOrdersByDefaultType": "NONE",
  "validatePurchaseInvoicesByDefaultType": "NONE",
  "validateSalesInvoicesByDefaultType": "NONE"
}