Download OpenAPI specification:Download
{- "token": "63f963c44fba44cd1d45779ffa249060"
}{- "error": {
- "code": "validation_error",
- "details": [
- {
- "key": "token",
- "message": "Token must be filled."
}
]
}
}| email required | string |
| refresh_token | string |
| password required | string |
| grant_type required | string |
{- "email": "john.doe@example.com",
- "password": "password",
- "grant_type": "password"
}{- "access_token": "fTPRcrQDOj7-ZXh6dOOSfVkRmRs6i4yc8Qbwv48ATeo",
- "token_type": "Bearer",
- "expires_in": 43200,
- "refresh_token": "0YKg6kQndlnXxXlGKZnGn26ghbbepb1f38xisWvAaDc",
- "created_at": 1787864412,
- "user_id": 23
}[- {
- "id": 3,
- "name": "shared/2025_03.pdf",
- "created_at": "2026-08-27T21:00:12.414210Z",
}, - {
- "id": 2,
- "name": "shared/2025_02.pdf",
- "created_at": "2026-08-27T21:00:12.413088Z",
}, - {
- "id": 1,
- "name": "shared/2025_01.pdf",
- "created_at": "2026-08-27T21:00:12.411422Z",
}
][- {
- "id": 1,
- "name": "Orn, Hettinger and Stark",
- "description": "Ut ipsa nobis. Quis quia sit. Omnis ea architecto.",
- "bonus": 29,
- "currency": "JPY",
- "points_target": 85,
- "requested_withdrawal": false,
- "months_duration": 97,
- "join_date": null,
- "start_date": null,
- "end_date": null,
- "realization_date": null,
- "failed": false,
- "regulations": null,
- "resigned": false,
- "monthly_points": [
- {
- "month": "2026-08-22",
- "points": 10
}
], - "is_withdrawal_visible": false
}
]{- "error": {
- "code": "validate_no_active_program",
- "details": [
- {
- "key": "_base",
- "message": "You already have an active loyalty program. You cannot join another program until you complete, resign from, or the current program expires."
}
]
}
}| program_id required | integer |
{- "program_id": 123
}{- "error": {
- "code": "find_program",
- "details": [
- {
- "key": "_base",
- "message": "No avaiable loyalty program"
}
]
}
}[- {
- "id": 5,
- "title": "Marks, Macejkovic and Frami",
- "body": "Laborum voluptatem quasi. Quos consectetur aut. Non nesciunt enim.",
- "read": true,
- "loyalty_program_id": null,
- "created_at": "2026-08-28T00:00:13.038+02:00",
- "notification_type": "referred_user_unrealised"
}, - {
- "id": 3,
- "title": "Kassulke, Quitzon and Carter",
- "body": "Officiis facilis sed. Enim nostrum quia. Iure aut est.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-08-27T23:00:13.038+02:00",
- "notification_type": "loyalty_program_joined"
}, - {
- "id": 6,
- "title": "Greenholt-Jaskolski",
- "body": "Eligendi quo dicta. At voluptas aliquam. Sunt qui distinctio.",
- "read": true,
- "loyalty_program_id": null,
- "created_at": "2026-08-27T23:00:13.038+02:00",
- "notification_type": "loyalty_program_update"
}, - {
- "id": 4,
- "title": "Kirlin, Brekke and Schoen",
- "body": "Nostrum placeat sed. Amet molestiae exercitationem. Neque unde ut.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-08-27T22:00:13.038+02:00",
- "notification_type": "loyalty_program_new"
}
]{- "id": 15,
- "title": "Tillman-VonRueden",
- "body": "Molestiae esse sit. Corporis et earum. Voluptatum dolores reprehenderit.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-08-27T23:00:13.113+02:00",
- "notification_type": "loyalty_program_update"
}| referred_user_id required | integer |
| treshold_number required | integer Enum: 1 2 |
{- "referred_user_id": 123,
- "treshold_number": 1
}{- "error": {
- "code": "validate_achived_treshold",
- "details": [
- {
- "key": "_base",
- "message": "Requested threshold is not achieved yet."
}
]
}
}[- {
- "id": 3,
- "name": "case_27_2025_03.pdf",
- "created_at": "2026-08-27T21:00:13.323251Z",
}, - {
- "id": 2,
- "name": "case_27_2025_02.pdf",
- "created_at": "2026-08-27T21:00:13.321532Z",
}, - {
- "id": 1,
- "name": "case_27_2025_01.pdf",
- "created_at": "2026-08-27T21:00:13.318472Z",
}
]| email required | string |
| first_name required | string |
| last_name required | string |
| description | string |
| phone_number | string |
| city_or_region | string |
| referrer_case_id | string |
{- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "description": "string",
- "phone_number": "string",
- "city_or_region": "string",
- "referrer_case_id": "string"
}{- "error": {
- "code": "validate_referrer_case_id",
- "details": [
- {
- "key": "_base",
- "message": "Referrer not found."
}
]
}
}{- "id": 85,
- "employer": null,
- "place_of_work": null,
- "work_address": null,
- "workplace_information": null,
- "employment_type": null,
- "employment_period": null,
- "payroll_email": null,
- "unpaid_leave_days": null,
- "unpaid_leave_updated_at": null,
- "absence_reports_phone_number": null,
- "helpdesk_phone_number": null,
- "job_coordinator_name": null,
- "job_coordinator_email": null,
- "job_coordinator_phone_number": null,
- "accommodation_coordinator_name": null,
- "accommodation_coordinator_email": null,
- "accommodation_coordinator_phone_number": null,
- "accommodation_address": null
}| locale required | string Enum: "en" "pl" "uk" "ru" |
{- "locale": "en"
}{- "error": {
- "code": "validation_error",
- "details": [
- {
- "key": "locale",
- "message": "Language must be filled."
}
]
}
}| period_from required | string <date> Okres od |
| period_to required | string <date> Okres do |
{- "period_from": "2019-08-24",
- "period_to": "2019-08-24"
}{- "error": {
- "code": "validation_error",
- "details": [
- {
- "key": "period_from",
- "message": "period_from must be filled."
}, - {
- "key": "period_to",
- "message": "period_to must be filled."
}
]
}
}| period_from required | string <date> Okres od |
| period_to required | string <date> Okres do |
{- "period_from": "2019-08-24",
- "period_to": "2019-08-24"
}{- "error": {
- "code": "validation_error",
- "details": [
- {
- "key": "period_from",
- "message": "period_from must be filled."
}, - {
- "key": "period_to",
- "message": "period_to must be filled."
}
]
}
}{- "email": "john.doe@example.com"
}{- "error": {
- "code": "validate_onboarding",
- "details": [
- {
- "key": "_base",
- "message": "To reset your password you have to pass onboarding. Contact Niden to get your welcome e-mail."
}
]
}
}| token required | string |
| password required | string |
| password_confirmation required | string |
{- "token": "3zttghdxh6yzp7tv1bh1w9hy",
- "password": "Password100!",
- "password_confirmation": "Password100!"
}{- "error": {
- "code": "validation_error",
- "details": [
- {
- "key": "token",
- "message": "Token must be filled."
}, - {
- "key": "password",
- "message": "Password must be filled."
}, - {
- "key": "password_confirmation",
- "message": "Password confirmation must be filled."
}
]
}
}