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

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer
    • name string
    • currencyId integer
    • countryCode2 string
    • regionId integer
    • startDate string(date-time)
    • stockStrategy string

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

    • defaultPaymentTerms integer(int32)
    • mainLanguage object
      Hide mainLanguage attributes Show mainLanguage attributes object
      • id integer
      • code string
      • name string
      • isMain boolean
    • useTimesheets boolean
    • isCustomEmailServerConfigured boolean
    • employeeGroups array[object]
      Hide employeeGroups attributes Show employeeGroups attributes object
      • id integer
      • name string Required
      • code string

        Format should match the following pattern: ^[0-9]{2}$.

    • plannedPaymentDateOffset integer(int32)
    • purchasePaymentAccountId integer
    • salesPaymentAccountId integer
    • usePurchaseAccrualAccounting boolean
    • useSalesAccrualAccounting boolean
    • validatePurchaseInvoicesByDefaultType string

      Values are NONE, SINGLE, or DOUBLE.

    • validateSalesInvoicesByDefaultType string

      Values are NONE, SINGLE, or DOUBLE.

    • validateOrdersByDefaultType string

      Values are NONE, SINGLE, or DOUBLE.

    • useUnsentPayrollStatus boolean
    • useUnsentSalesStatus boolean
    • useUnsentOrdersStatus boolean
    • automaticSynchronizationOfContacts boolean
    • isConsolidated boolean
  • 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 "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42"
Response examples (200)
{
  "id": 42,
  "name": "string",
  "currencyId": 42,
  "countryCode2": "string",
  "regionId": 42,
  "startDate": "2026-05-04T09:42:00Z",
  "stockStrategy": "FIFO",
  "defaultPaymentTerms": 42,
  "mainLanguage": {
    "id": 42,
    "code": "string",
    "name": "string",
    "isMain": true
  },
  "useTimesheets": true,
  "isCustomEmailServerConfigured": true,
  "employeeGroups": [
    {
      "id": 42,
      "name": "string",
      "code": "string"
    }
  ],
  "plannedPaymentDateOffset": 42,
  "purchasePaymentAccountId": 42,
  "salesPaymentAccountId": 42,
  "usePurchaseAccrualAccounting": true,
  "useSalesAccrualAccounting": true,
  "validatePurchaseInvoicesByDefaultType": "NONE",
  "validateSalesInvoicesByDefaultType": "NONE",
  "validateOrdersByDefaultType": "NONE",
  "useUnsentPayrollStatus": true,
  "useUnsentSalesStatus": true,
  "useUnsentOrdersStatus": true,
  "automaticSynchronizationOfContacts": true,
  "isConsolidated": true
}