Benefits
Create a new Benefit
A POST to the benefits endpoint is used to create a new benefit to enable a benefit features for an organisation.
Each of these entries relates to a particular benefit type and relates to a particular organisation and a particular time period.
post/api/v2/partner/organisations/{organisation_id}/benefits
Request
- Base URL: http://localhost:5100
- URL: http://localhost:5100/api/v2/partner/organisations/{organisation_id}/benefits
- Auth: API key in header Authorization
Path parameters
organisation_idinteger required
ID of the organisation to which we are adding a benefit
Request body
Example request
{
"relative_url": "home_and_electronics",
"quote_type": "NHS",
"start_date": "2025-01-01",
"end_date": "2025-01-31",
"first_payroll_reduction_month": "2025-01-01",
"limit_value": 1000,
"limit_percentage": 10,
"income_generation_percentage": 3,
"sso_company_name": "Acme Ltd",
"faq_url": "https://example.com/faq",
"terms_n_conds_url": "https://example.com/terms",
"monthly_terms": [
12,
18
]
}Response
Benefit created
Example response
{
"success": true,
"message": "Benefit created successfully",
"benefit": {
"start_date": "2025-06-01",
"end_date": "2026-06-01",
"relative_url": "home_and_electronics",
"quote_type": "NHS",
"sso_company_name": "ACME Ltd"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.