Download OpenAPI specification:Download
{- "token": "9dc3540a52ca08966a98a11fcad3b530"
}{- "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": "QxQHpkWVhdL_mVrmnfYrPwuK0UEKyfsrsp--q_9C71k",
- "token_type": "Bearer",
- "expires_in": 43200,
- "refresh_token": "37YY3RZKWv-DfIhis7y3q2-B-B-5wD56uXtfihhGT5Q",
- "created_at": 1782677007,
- "user_id": 19
}[- {
- "id": 3,
- "name": "shared/2025_03.pdf",
- "created_at": "2026-06-28T20:03:27.389329Z",
}, - {
- "id": 2,
- "name": "shared/2025_02.pdf",
- "created_at": "2026-06-28T20:03:27.388087Z",
}, - {
- "id": 1,
- "name": "shared/2025_01.pdf",
- "created_at": "2026-06-28T20:03:27.386010Z",
}
][- {
- "id": 1,
- "name": "Toy-Labadie",
- "description": "Repudiandae est omnis. Necessitatibus consequuntur earum. Enim id occaecati.",
- "bonus": 64,
- "currency": "ZAR",
- "points_target": 53,
- "requested_withdrawal": false,
- "months_duration": 89,
- "join_date": null,
- "start_date": null,
- "end_date": null,
- "realization_date": null,
- "failed": false,
- "regulations": null,
- "resigned": false,
- "monthly_points": [
- {
- "month": "2026-06-23",
- "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": "Harris and Sons",
- "body": "Recusandae est laborum. Voluptatum molestiae mollitia. Rerum officiis nesciunt.",
- "read": true,
- "loyalty_program_id": null,
- "created_at": "2026-06-28T23:03:27.899+02:00",
- "notification_type": "referred_user_unrealised"
}, - {
- "id": 3,
- "title": "Block, Fahey and Rolfson",
- "body": "Sed repellat voluptatem. Laboriosam repellat ea. Velit ut consectetur.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-06-28T22:03:27.899+02:00",
- "notification_type": "referred_user_hired"
}, - {
- "id": 6,
- "title": "Haag Inc",
- "body": "Provident voluptatibus quaerat. Illo quam voluptas. Temporibus ab ipsum.",
- "read": true,
- "loyalty_program_id": null,
- "created_at": "2026-06-28T22:03:27.899+02:00",
- "notification_type": "referred_user_realised"
}, - {
- "id": 4,
- "title": "Schamberger, Carter and Ledner",
- "body": "Velit tenetur hic. Repellendus eaque et. Nemo voluptates reiciendis.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-06-28T21:03:27.899+02:00",
- "notification_type": "loyalty_program_realised"
}
]{- "id": 15,
- "title": "Kiehn-Brekke",
- "body": "Alias nihil minus. Natus nemo in. Beatae dolorum commodi.",
- "read": false,
- "loyalty_program_id": null,
- "created_at": "2026-06-28T22:03:27.966+02:00",
- "notification_type": "referred_user_unrealised"
}| 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_23_2025_03.pdf",
- "created_at": "2026-06-28T20:03:28.148942Z",
}, - {
- "id": 2,
- "name": "case_23_2025_02.pdf",
- "created_at": "2026-06-28T20:03:28.147311Z",
}, - {
- "id": 1,
- "name": "case_23_2025_01.pdf",
- "created_at": "2026-06-28T20:03:28.144330Z",
}
]| 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": 81,
- "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."
}
]
}
}