Responses

GET /user
curl \
 -X GET https://api.zooza.app/v1/user
Response examples (200)
{
  "user": {
    "id": 42,
    "first_name": "string",
    "last_name": "string",
    "email": "hello@example.com",
    "phone": "string",
    "role": "customer",
    "company_id": "string",
    "user_fields": {
      "id": 42,
      "marketing_messages": true,
      "3rd_party": true,
      "nick": "string",
      "show_only_nick": true
    },
    "billing_periods": [
      42
    ],
    "permissions": [
      {
        "permission": "string",
        "name": "string",
        "description": "string",
        "user_can": true
      }
    ],
    "companies": [
      {
        "id": 42,
        "name": "string",
        "email": "string",
        "role": "owner"
      }
    ]
  },
  "agreements": [
    {
      "id": 42,
      "agreement_id": 42,
      "company_id": "string",
      "order": 42,
      "name": "string",
      "title": "string",
      "description": "string",
      "mandatory": true,
      "valid_from": "2024-05-04T09:42:00+00:00",
      "type": "none",
      "for": "registration",
      "created": "2024-05-04T09:42:00+00:00",
      "updated": "2024-05-04T09:42:00+00:00",
      "apply_for": "everyone",
      "region": "string",
      "courses": [
        42
      ]
    }
  ],
  "app": {},
  "branding": "string",
  "company": {},
  "widgets": [
    {
      "id": 42,
      "application_id": 42,
      "url": "string",
      "options": {}
    }
  ],
  "msg": {},
  "discounts": [
    {
      "id": 42,
      "type": "replacement",
      "active": true,
      "origin_user_id": 42,
      "origin_company_id": 42,
      "origin_order_id": 42,
      "origin_event_id": 42,
      "origin_attendance_id": 42,
      "used_on_user_id": 42,
      "used_on_company_id": 42,
      "used_on_order_id": 42,
      "used_on_event_id": 42,
      "used_on_attendance_id": 42,
      "value": 42,
      "code": "string",
      "settings": "string",
      "expiration": "2024-05-04T09:42:00+00:00",
      "used": "2024-05-04T09:42:00+00:00",
      "used_by": 42,
      "usage": "used",
      "created": "2024-05-04T09:42:00+00:00",
      "created_by": "string",
      "updated": "2024-05-04T09:42:00+00:00",
      "expired": true,
      "events": [
        {
          "id": 42,
          "name": "string",
          "status": "scheduled",
          "date": "2024-05-04T09:42:00+00:00",
          "happened": true,
          "live_stream": 42,
          "has_live_stream": true,
          "replacement": true,
          "end": "2024-05-04T09:42:00+00:00",
          "duration": 42,
          "cancellation_limit": "2024-05-04T09:42:00+00:00",
          "can_cancel": true,
          "has_video": true,
          "has_files": true,
          "places": {},
          "courses": {},
          "trainers": {},
          "additional_trainers": [
            {
              "role": "string",
              "full_name": "string"
            }
          ]
        }
      ],
      "attendance": [
        {
          "id": 42,
          "event_id": 42,
          "registration_id": 42,
          "attendance": "going",
          "replacement_for": 42,
          "resolution": "string",
          "created": "2024-05-04T09:42:00+00:00",
          "modified": "2024-05-04T09:42:00+00:00",
          "cancellation_reason": "string",
          "credit_id": 42
        }
      ]
    }
  ],
  "free_events": [
    {
      "id": 42,
      "type": "replacement",
      "active": true,
      "origin_user_id": 42,
      "origin_company_id": 42,
      "origin_order_id": 42,
      "origin_event_id": 42,
      "origin_attendance_id": 42,
      "used_on_user_id": 42,
      "used_on_company_id": 42,
      "used_on_order_id": 42,
      "used_on_event_id": 42,
      "used_on_attendance_id": 42,
      "value": 42,
      "code": "string",
      "settings": "string",
      "expiration": "2024-05-04T09:42:00+00:00",
      "used": "2024-05-04T09:42:00+00:00",
      "used_by": 42,
      "usage": "used",
      "created": "2024-05-04T09:42:00+00:00",
      "created_by": "string",
      "updated": "2024-05-04T09:42:00+00:00",
      "expired": true,
      "events": [
        {
          "id": 42,
          "name": "string",
          "status": "scheduled",
          "date": "2024-05-04T09:42:00+00:00",
          "happened": true,
          "live_stream": 42,
          "has_live_stream": true,
          "replacement": true,
          "end": "2024-05-04T09:42:00+00:00",
          "duration": 42,
          "cancellation_limit": "2024-05-04T09:42:00+00:00",
          "can_cancel": true,
          "has_video": true,
          "has_files": true,
          "places": {},
          "courses": {},
          "trainers": {},
          "additional_trainers": [
            {
              "role": "string",
              "full_name": "string"
            }
          ]
        }
      ],
      "attendance": [
        {
          "id": 42,
          "event_id": 42,
          "registration_id": 42,
          "attendance": "going",
          "replacement_for": 42,
          "resolution": "string",
          "created": "2024-05-04T09:42:00+00:00",
          "modified": "2024-05-04T09:42:00+00:00",
          "cancellation_reason": "string",
          "credit_id": 42
        }
      ]
    }
  ],
  "credit_balance": {}
}