Download OpenAPI specification:Download
{- "token": "ade4564acd7da9186980929f1c10f759"
}{- "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": "WCkwUKbqnwG0hHwO7AFuj1ZYH8bKgeSFmo1-qf8WC6Q",
- "token_type": "Bearer",
- "expires_in": 43200,
- "refresh_token": "UG76z226V0vY5UTZXFZBraKdQK4S818j3-1VlIH7BV4",
- "created_at": 1788988132,
- "user_id": 23
}[- {
- "id": 3,
- "name": "shared/2025_03.pdf",
- "created_at": "2026-09-09T21:08:52.664509Z",
}, - {
- "id": 2,
- "name": "shared/2025_02.pdf",
- "created_at": "2026-09-09T21:08:52.662966Z",
}, - {
- "id": 1,
- "name": "shared/2025_01.pdf",
- "created_at": "2026-09-09T21:08:52.660337Z",
}
][- {
- "id": 1,
- "name": "Thiel-Emard",
- "description": "Quia sint qui. Omnis enim sed. Aut voluptatem ipsum.",
- "bonus": 88,
- "currency": "KZT",
- "points_target": 2,
- "requested_withdrawal": false,
- "months_duration": 25,
- "join_date": null,
- "start_date": null,
- "end_date": null,
- "realization_date": null,
- "failed": false,
- "regulations": null,
- "resigned": false,
- "monthly_points": [
- {
- "month": "2026-09-04",
- "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": "Klein Group",
- "body": "Sunt a quia. Ut quis error. Dolores eligendi voluptas.",
- "read": true,
- "loyalty_program_id": null,
- "created_at": "2026-09-10T00:08:53.363+02:00",
- "notification_type": "referred_user_unrealised"
}, - {
- "id": 3,
- "title": "Trantow-Ankunding",
- "body": "Quam dolore atque. Velit voluptatibus voluptas. Ad consequatur expedita.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-09-09T23:08:53.363+02:00",
- "notification_type": "loyalty_program_resigned"
}, - {
- "id": 6,
- "title": "Schroeder LLC",
- "body": "Pariatur ab et. Optio nihil officia. Soluta hic facere.",
- "read": true,
- "loyalty_program_id": null,
- "created_at": "2026-09-09T23:08:53.363+02:00",
- "notification_type": "loyalty_program_joined"
}, - {
- "id": 4,
- "title": "Wolff Group",
- "body": "Quidem voluptatem autem. Adipisci temporibus odio. Sit fugiat cupiditate.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-09-09T22:08:53.363+02:00",
- "notification_type": "referred_user_realised"
}
]{- "id": 15,
- "title": "Jacobson, Abshire and Homenick",
- "body": "Et aut commodi. Blanditiis reprehenderit commodi. Eius saepe exercitationem.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-09-09T23:08:53.448+02:00",
- "notification_type": "loyalty_program_new"
}| 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-09-09T21:08:53.660913Z",
}, - {
- "id": 2,
- "name": "case_27_2025_02.pdf",
- "created_at": "2026-09-09T21:08:53.659247Z",
}, - {
- "id": 1,
- "name": "case_27_2025_01.pdf",
- "created_at": "2026-09-09T21:08:53.656242Z",
}
]| 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."
}
]
}
}