{"openapi":"3.1.0","info":{"version":"1.0.1","title":"Root","description":"Root is an end-to-end digital insurance platform that enables you to launch new products and digital engagement channels fast.","termsOfService":"https://rootplatform.com/about","contact":{"name":"Root support team","url":"https://rootplatform.com/contact","email":"support@root.co.za"}},"servers":[{"url":"https://sandbox.uk.rootplatform.com/v1/insurance","description":"United Kingdom multi-tenant - sandbox"},{"url":"https://api.uk.rootplatform.com/v1/insurance","description":"United Kingdom multi-tenant - production"},{"url":"https://sandbox.rootplatform.com/v1/insurance","description":"South Africa multi-tenant - sandbox"},{"url":"https://api.rootplatform.com/v1/insurance","description":"South Africa multi-tenant - production"}],"security":[{"basicAuth":[]}],"components":{"schemas":{"alteration-package":{"type":"object","required":["alteration_package_id","product_module_definition_id","module","created_at","created_by"],"properties":{"alteration_package_id":{"type":"string","description":"Must be a UUID. Unique identifier of the alteration package."},"product_module_definition_id":{"type":"string","description":"Must be a UUID. Unique identifier of the product module definition."},"module":{"type":"object","description":"Custom module-specific fields stored against the alteration package. See [product modules](#product-modules) for more details.","additionalProperties":true},"created_at":{"type":"string","format":"date-time","description":"The date/time at which the alteration package was created."},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the alteration package. See [Authentication](#client-apps)."}},"example":{"alteration_package_id":"f4397823-db4a-4d6a-a06b-08e1a2a3172c","product_module_id":"5d8c8c63-e2f1-43e0-94f1-c467545f182d","created_at":"2017-10-12T15:47:34.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"},"monthly_premium":11200,"currency":"ZAR","sum_assured":329900,"billing_frequency":"monthly","status":"pending","change_description":"Updating device","product_module_definition_id":"9b7b43f4-9ab8-4e37-b42b-59d5595f3983","input_data":{},"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","product_module_definition_alteration_hook_id":"2cbbc377-e142-4986-8871-29b0a4c23353"}},"alteration-packages":{"type":"array","items":{"$ref":"#/components/schemas/alteration-package"}},"application-alteration-package":{"type":"object","required":["alteration_package_application_id","organization_id","created_at","created_by","module","application_id","alteration_hook_key"],"properties":{"alteration_package_application_id":{"type":"string","description":"Must be a UUID. Unique identifier of the application alteration package."},"organization_id":{"type":"string","description":"Must be a UUID. Unique identifier of the organization."},"created_at":{"type":"string","format":"date-time","description":"The date/time at which the application alteration package was created."},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the application alteration package. See [Authentication](#client-apps)."},"module":{"type":"object","description":"Custom module-specific fields stored against the application alteration package. See [product modules](doc:product-modules-overview) for more details.","additionalProperties":true},"monthly_premium":{"type":["integer","null"],"description":"Null is allowed. The monthly premium amount in cents."},"currency":{"type":["string","null"],"description":"Null is allowed. The currency code for premium values."},"sum_assured":{"type":["integer","null"],"description":"Null is allowed. The sum assured amount in cents."},"billing_frequency":{"type":["string","null"],"description":"Null is allowed. The billing frequency to be applied."},"status":{"type":["string","null"],"description":"Null is allowed. The status of the application alteration package."},"change_description":{"type":["string","null"],"description":"Null is allowed. Description of the change being applied."},"input_data":{"type":"object","description":"The input data received when creating the alteration package.","additionalProperties":true},"application_id":{"type":"string","description":"Must be a UUID. Unique identifier of the related application."},"alteration_hook_key":{"type":"string","description":"The identifier of the alteration hook used to create this package."}},"example":{"alteration_package_application_id":"2d200d5c-477c-4c90-b305-e8f445f4d8e5","organization_id":"00000000-0000-0000-0000-000000000001","created_at":"2026-01-28T09:17:05.101Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"module":{"package_name":"Funeral Cover","suggested_premium":17500,"base_premium":16000,"cover_amount":25000000},"monthly_premium":17500,"currency":"ZAR","sum_assured":25000000,"billing_frequency":"monthly","status":"pending","change_description":"Updating cover amount before issuing policy","input_data":{"cover_amount":25000000,"spouse_cover":true},"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","alteration_hook_key":"update_cover_amount"}},"application-alteration-packages":{"type":"array","items":{"$ref":"#/components/schemas/application-alteration-package"}},"application-alteration-hook":{"type":"object","required":["product_module_definition_alteration_hook_id","product_module_definition_id","schema_id","key","name","type","created_at","created_by"],"properties":{"product_module_definition_alteration_hook_id":{"type":"string","description":"Must be a UUID. Unique identifier of the alteration hook definition."},"product_module_definition_id":{"type":"string","description":"Must be a UUID. Unique identifier of the product module definition."},"schema_id":{"type":"string","description":"Must be a UUID. Unique identifier of the schema linked to this alteration hook."},"key":{"type":"string","description":"The unique key of the alteration hook."},"name":{"type":"string","description":"The display name of the alteration hook."},"type":{"type":"string","description":"The alteration hook type."},"created_at":{"type":"string","format":"date-time","description":"The date/time at which the alteration hook was created."},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the alteration hook definition."},"productModuleDefinitionSchema":{"type":["object","null"],"description":"Optional schema metadata for the alteration hook.","properties":{"product_module_definition_schema_id":{"type":"string"},"json":{"type":"object","additionalProperties":true},"created_at":{"type":"string","format":"date-time"},"created_by":{"type":["object","null"]},"type":{"type":["string","null"]}},"additionalProperties":true}},"example":{"product_module_definition_alteration_hook_id":"2cbbc377-e142-4986-8871-29b0a4c23353","product_module_definition_id":"9b7b43f4-9ab8-4e37-b42b-59d5595f3983","schema_id":"18f7e13a-f4f4-4b10-86ec-2973dfe77732","key":"update_cover_amount","name":"Update cover amount","type":"application","created_at":"2026-01-28T09:17:05.101Z","created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"productModuleDefinitionSchema":{"product_module_definition_schema_id":"18f7e13a-f4f4-4b10-86ec-2973dfe77732","json":{"type":"object","properties":{"cover_amount":{"type":"integer"}}},"created_at":"2026-01-28T09:15:45.100Z","created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"type":"application_alteration"}}},"application-alteration-hooks":{"type":"array","items":{"$ref":"#/components/schemas/application-alteration-hook"}},"application":{"type":"object","description":"An application represents a \"draft\" policy, with all information captured and validated. Applications persist on Root (they do not expire), and can be reviewed and managed on the Root management dashboard. <br/><br/> See the [issing policies](https://docs.rootplatform.com/docs/policy-issuing) guide and the [application hook](https://docs.rootplatform.com/docs/application-hook) guide for more details.","required":["application_id","policyholder_id","product_module_definition_id","status","package_name","sum_assured","base_premium","monthly_premium","module","created_at","created_by","billing_day"],"properties":{"application_id":{"type":"string","description":"Must be a UUID. Unique identifier of the application."},"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of the policyholder linked to the application."},"product_module_definition_id":{"type":"string","description":"Must be a UUID. Unique identifier of the product module definition associated with the application. Determined by the product module definition associated with the quote from which the application was created."},"status":{"description":"The status of the application. One of `pending`, `issued`, or `cancelled`.","type":"string","enum":["pending","issued","cancelled"]},"package_name":{"type":"string","description":"The package name."},"sum_assured":{"type":"integer","description":"The maximum insured value in cents."},"base_premium":{"type":"integer","description":"The combined risk and platform fee in cents. `monthly_premium` is calculated from this."},"monthly_premium":{"type":"integer","description":"The total monthly premium, in cents, of the application. This is the total premium that will be billed to the policyholder after the policy is issued."},"module":{"type":"object","description":"Custom, product-specific information saved to the application for later reference. These parameters are set in the [application hook](https://docs.rootplatform.com/docs/application-hook) in the product module code.","additionalProperties":true},"restricted_data":{"type":"object","description":"Optional restricted product-specific information saved to the application. This field is only returned when the requestee has access to restricted application module data.","additionalProperties":true},"created_at":{"type":"string","format":"date-time","description":"The date at which the quote package was created.."},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the application."},"billing_day":{"type":["integer","null"],"description":"`null` is allowed. The day of month on which the policy to write will be billed on. Should be between 1 and 31, or `null`. If it falls on a day that does not exist in the month (for example, 31 in February) the policy to be written will be billed on the last day of that month. Setting this value to 31 will ensure that the policy to be written will be billed on the last day of every month."},"currency":{"type":"string","description":"The currency used for the quote package, in [ISO 4217] (https://en.wikipedia.org/wiki/ISO_4217) format."},"billing_frequency":{"type":"string","enum":["monthly","yearly","once_off"],"description":"The frequency at which the policy will be billed. See the [billing settings](https://docs.rootplatform.com/docs/billing-settings#billing-frequency) guide for more details on the billing frequency."},"beneficiaries":{"$ref":"#/components/schemas/beneficiaries"},"input_data":{"type":["object","null"],"description":"Application input parameters as received over the [create an application](https://docs.rootplatform.com/reference/create-an-application) endpoint.","additionalProperties":true},"payment_method_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment method linked to the application."},"type":{"type":"string","description":"The type of the application. One of `requote` or `new_policy`.","enum":["requote","new_policy"]},"quote_package_id":{"type":"string","description":"Must be a UUID. The unique identifier of the quote package from which the application was created."},"policy":{"$ref":"#/components/schemas/policy","description":"The policy object linked to the application. Only included when `?include=policy` is specified."},"policyholder":{"$ref":"#/components/schemas/policyholder","description":"The policyholder object linked to the application. Only included when `?include=policyholder` is specified."},"quote_package":{"$ref":"#/components/schemas/quote-package","description":"The quote package object from which the application was created. Only included when `?include=quote_package` is specified."},"cancelled_at":{"type":["string","null"],"format":"date-time","description":"When the application was cancelled, if applicable."},"reason_cancelled":{"type":["string","null"],"description":"Reason the application was cancelled."},"cancellation_requestor":{"type":["string","null"],"description":"Whether the customer (`client`) or insurer (`insurer`) initiated cancellation."},"cancellation_type":{"type":["string","null"],"description":"Cancellation reason code. Defaults are platform-defined; a product module may override allowed values when configured."}},"example":{"application_id":"02e2ce3b-a235-48ea-8415-c58440f631bd","policyholder_id":"246ee082-9f88-44b7-b51c-22a1f1a9a19e","payment_method_id":"7c3e8f2a-1d4b-5e6f-9a0b-c1d2e3f4a5b6","package_name":"Theft + comprehensive","sum_assured":1199900,"monthly_premium":16999,"base_premium":16999,"module":{"make":"Apple","type":"root_gadgets","model":"iPhone 6S 64GB LTE","serial_number":"0123456789"},"restricted_data":{"underwriting_score":85},"created_at":"2023-02-03T11:17:49.009Z","created_by":{"type":"api_key","id":"b6565862-cc6e-4563-85d3-659894338cda","owner_id":"e17f06ce-2a6a-4864-b826-19a83270eab4"},"currency":"ZAR","product_module_definition_id":"4889a9e0-d5f9-4971-8ac2-2175a9d15477","billing_frequency":"monthly","billing_day":1,"status":"pending","type":"new_policy","beneficiaries":[{"beneficiary_id":"cd444567-10d5-47f5-a0cc-34e262266359","policyholder_id":"246ee082-9f88-44b7-b51c-22a1f1a9a19e","percentage":100,"relationship":"policyholder"}],"quote_package_id":"3822b8fb-43e7-43f7-94ad-63e94e6ce1e3"}},"applications":{"type":"array","items":{"$ref":"#/components/schemas/application"}},"attachment":{"type":"object","required":["file_name","description","file_type","file_url","created_at","requested_by"],"properties":{"file_name":{"type":"string","description":"The name of the file (with file extension)."},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)."},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)."},"file_url":{"type":"string","format":"uri","description":"The URL to download the attachment file."},"created_at":{"type":"string","format":"date-time","description":"Time at which the attachment was created."},"requested_by":{"type":"object","description":"An object indicating the user or API key that created the attachment. See [Authentication](#client-apps).","properties":{"type":{"type":"string","description":"The type of the creator (e.g., user, api_key)."},"id":{"type":"string","description":"The identifier of the creator."},"owner_id":{"type":"string","description":"The identifier of the owner (only present for API key requests)."}},"required":["type"]},"type":{"type":"string","description":"The event type associated with the attachment (e.g., attachment_created). This field is only present when the attachment is returned as part of an event."}},"example":{"file_name":"report.pdf","file_type":"application/pdf","file_url":"https://sandbox.rootplatform.com/v1/files/download/00000000-0000-0000-0000-000000000001","description":"quote","type":"attachment_created","created_at":"2025-11-10T14:33:50.095Z","requested_by":{"type":"api_key","id":"00000000-0000-0000-0000-000000000001","owner_id":"00000000-0000-0000-0000-000000000001"}}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/attachment"}},"call":{"type":"object","required":["call_id","created_at","call_status","direction","from_number","topic"],"properties":{"call_id":{"type":"string","description":"Must be a UUID. The unique identifier of the call."},"policyholder_id":{"type":["string","null"],"description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder) associated with the call. `null` if no policyholder is linked."},"policyholder":{"type":["object","null"],"description":"The [policyholder](ref:policyholder) object associated with this call. Only included when `include=policyholder` query parameter is specified."},"claim_id":{"type":["string","null"],"description":"Must be a UUID. The unique identifier of the [claim](ref:claim) associated with the call. `null` if no claim is linked."},"created_at":{"type":"string","format":"date-time","description":"The timestamp at which the call was logged."},"call_status":{"type":"string","description":"The current status of the call.","enum":["initiated","ringing","in-progress","completed","busy","no-answer"]},"direction":{"type":"string","description":"The direction of the call.","enum":["inbound","outbound"]},"from_number":{"type":"string","description":"The initiating phone number of the call."},"to_number":{"type":["string","null"],"description":"The receiving phone number of the call. `null` if not available."},"topic":{"type":"string","description":"The topic category of the call.","enum":["claims","complaints","general"]},"recording_url":{"type":["string","null"],"description":"The URL of the call recording. This is available if the call successfully connected and only once the call is completed. `null` if no recording exists."},"call_duration":{"type":["string","null"],"description":"The duration of the call in seconds. May be `null` if not recorded."}},"example":{"call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","policyholder_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","claim_id":"673b8081-9668-4136-97cc-6ae0debda083","created_at":"2017-10-16T10:12:02.872Z","call_status":"completed","direction":"outbound","from_number":"0721234567","to_number":"0821234567","topic":"general","recording_url":"https://sandbox.root.co.za/v1/files/download/ccbd249e-a404-11ea-8f4a-47e769474b83/Recording0001.mp3","call_duration":"72"}},"calls":{"type":"array","items":{"$ref":"#/components/schemas/call"}},"claim":{"type":"object","required":["claim_id","created_at","claim_status","approval_status","created_by"],"properties":{"claim_id":{"type":"string","description":"Must be a UUID. The unique identifier of the claim."},"claim_number":{"type":"string","description":"A human-readable claim reference number."},"created_at":{"type":"string","format":"date-time","description":"The timestamp at which the claim was opened."},"updated_at":{"type":"string","format":"date-time","description":"The timestamp at which the claim was last updated."},"policy_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the [policy](ref:policy) attached to this claim. May be `null` if no policy is linked yet."},"policyholder_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the [policyholder](ref:policyholder) for this claim. May be `null` if no policyholder is linked yet."},"member_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the member for this claim. Only used for group scheme policies. May be `null`."},"covered_item_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the covered item that this claim is against. Required if the policy supports covered items."},"claim_status":{"type":"string","description":"The current status of the claim.","enum":["open","in_review","acknowledged","pending_payout","paid_out","closed"]},"approval_status":{"type":"string","description":"The approval decision status of the claim.","enum":["pending","approved","repudiated","no_claim","goodwill"]},"claimant":{"type":["object","null"],"description":"An object containing the claimant's details. `null` if no claimant is specified.","properties":{"first_name":{"type":"string","description":"The first name of the claimant."},"last_name":{"type":"string","description":"The last name of the claimant."},"id_number":{"type":"string","description":"The ID number of the claimant."},"cellphone":{"type":"string","description":"The cellphone number of the claimant."},"email":{"type":"string","description":"The email address of the claimant."},"relationship":{"type":"string","description":"The relationship of the claimant to the policyholder."}}},"incident_type":{"type":["string","null"],"description":"A description of the incident type."},"incident_cause":{"type":["string","null"],"description":"A description of the cause of the incident."},"incident_date":{"type":["string","null"],"format":"date-time","description":"The date on which the incident occurred."},"assigned_to":{"type":["string","null"],"description":"Must be a UUID. The identifier of the user to whom this claim is assigned."},"app_data":{"type":["object","null"],"description":"An object containing additional custom data for the claim.","additionalProperties":true},"module_data":{"type":["object","null"],"description":"An object containing data populated by the product module.","additionalProperties":true},"requested_amount":{"type":["integer","null"],"description":"The requested payout amount (in cents) for the claim."},"granted_amount":{"type":["integer","null"],"description":"The granted payout amount (in cents) for the claim."},"rejection_reason":{"type":["string","null"],"description":"The reason for claim rejection, if applicable."},"currency":{"type":"string","description":"The currency code for monetary amounts (e.g., `ZAR`, `USD`)."},"created_by":{"type":["object","null"],"description":"An object indicating the user or API key that created the claim. See [Authentication](https://docs.rootplatform.com/reference/getting-started-1#created_by-field)."},"policyholder":{"type":["object","null"],"description":"The [policyholder](ref:policyholder) object. Only included when `include=policyholder` query parameter is specified."},"policy":{"type":["object","null"],"description":"The [policy](ref:policy) object. Only included when `include=policy` query parameter is specified."},"member":{"type":["object","null"],"description":"The member object for group scheme policies. Only included when available."},"user_group":{"type":["object","null"],"description":"The user group object. Only included when `include=user_group` query parameter is specified."},"block_states":{"type":["object","null"],"description":"An object containing the current state of claim blocks (dynamic form fields).","additionalProperties":true}},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","claim_status":"open","approval_status":"pending","claimant":{"first_name":"Erlich","last_name":"Aviato","email":"erlich@aviato.com","cellphone":"0821234567","relationship":"main_member"},"incident_type":"Theft","incident_cause":"Device stolen during burglary","incident_date":"2017-10-15T08:00:00.000Z","app_data":{"key1":"value 1","key2":"value 2"},"requested_amount":13000000,"granted_amount":null,"currency":"ZAR","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}},"claims":{"type":"array","items":{"$ref":"#/components/schemas/claim"}},"complaint":{"type":"object","required":["complaint_id","created_at","complaint_status","app_data","created_by"],"properties":{"complaint_id":{"type":"string","description":"The identifier of the complaint."},"complaint_number":{"type":"string","description":"A human-readable complaint number."},"created_at":{"type":"string","format":"date-time","description":"Time at which the complaint was opened."},"policy_id":{"type":"string","description":"The identifier of the policy attached to this complaint. May initially be omitted."},"policyholder_id":{"type":"string","description":"The identifier of the policyholder for this complaint. May initially be omitted."},"member_id":{"type":"string","description":"The identifier of the member for this complaint. Only used for group scheme policies. May initially be omitted."},"complaint_status":{"type":"string","enum":["open","closed"],"description":"Whether the complaint is 'open' or 'closed'."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the complaint.","additionalProperties":true},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the complaint. See [Authentication](#client-apps)."},"complainant":{"type":["object","null"],"description":"Object containing complainant's first name, last name, email and/or cellphone. All fields are optional and can be null.","properties":{"first_name":{"type":["string","null"],"description":"The first name of the complainant."},"last_name":{"type":["string","null"],"description":"The last name of the complainant."},"id_number":{"type":["string","null"],"description":"The ID number of the complainant."},"email":{"type":["string","null"],"description":"The complainant's email address."},"cellphone":{"type":["string","null"],"description":"The complainant's cellphone number."}}},"policy":{"type":"object","description":"The policy object. Included when `include=policy` is specified."},"policyholder":{"type":"object","description":"The policyholder object. Included when `include=policyholder` is specified."},"member":{"type":"object","description":"The member object. Included when `include=member` is specified."}},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","complainant":{"first_name":"Erlich","last_name":"Bachman","id_number":"9001015000000","cellphone":"+27821234567","email":"erlich@aviato.com"},"app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}},"complaints":{"type":"array","items":{"$ref":"#/components/schemas/complaint"}},"daily-frequency":{"type":"object","required":["time_of_day"],"properties":{"time_of_day":{"type":"string","description":"The time of day to run the export, in `HH:mm` format."}}},"data-export-run-log-item":{"type":"object","required":["data_export_run_id","created_at","level","content"],"properties":{"data_export_run_id":{"type":"string","description":"Must be a UUID. The unique identifier of the data export run."},"created_at":{"type":"string","format":"date-time","description":"The time at which the data export run was created."},"level":{"type":"string","description":"The level of the log item. One of `info`, `warn`, or `error`."},"content":{"type":"string","description":"The log item text."}},"example":{"data_export_run_id":"34233912-c91f-4dc9-bfed-c10d16be26af","created_at":"2019-03-09T08:07:59.075Z","level":"info","content":"Creating policy export file"}},"data-export-run-log-items":{"type":"array","items":{"$ref":"#/components/schemas/data-export-run-log-item"}},"data-export-run":{"type":"object","required":["data_export_run_id","scheduled_data_export_id","created_at","status"],"properties":{"data_export_run_id":{"type":"string","description":"Must be a UUID. The unique identifier of the data export run."},"scheduled_data_export_id":{"type":"string","description":"Must be a UUID. The unique identifier of the scheduled data export that the run belongs to."},"created_at":{"type":"string","format":"date-time","description":"The time at which the data export run was created."},"completed_at":{"type":"string","format":"date-time","description":"The time at which the data export run completed."},"status":{"type":"string","description":"The current status of the data export run. One of `in_progress`, `failed`, or `complete`."},"file_id":{"type":["string","null"],"description":"The file created during the run, if successful."}},"example":{"data_export_run_id":"34233912-c91f-4dc9-bfed-c10d16be26af","scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","created_at":"2019-03-09T08:07:59.044Z","completed_at":"2019-03-09T08:08:02.178Z","status":"complete","file_id":"74ce9562-4242-11e9-904a-7b14ba20f082"}},"data-export-runs":{"type":"array","items":{"$ref":"#/components/schemas/data-export-run"}},"data-store-entity":{"type":"object","required":["data_store_entity_id","organization_id","data","created_by","created_at","updated_at","updated_by","data_store"],"properties":{"data_store_entity_id":{"type":"string","description":"Must be a UUID. The unique identifier of the data store entity."},"organization_id":{"type":"string","description":"Must be a UUID. The unique identifier of the organization the data store belongs to."},"data":{"type":"object","description":"The data store data."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the data store entity."},"created_at":{"type":"string","format":"date-time","description":"The time at which the data entity store entity was created."},"updated_at":{"type":"string","format":"date-time","description":"The time at which the data store entity was last updated."},"updated_by":{"type":"object","description":"An object indicating the user or API key that last updated the data store entity."},"data_store":{"$ref":"#/components/schemas/data-store"}},"example":{"data_store_entity_id":"424312b7-6d8f-424f-bf3e-af1384444424","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","data":{"name":"Apple iPhone X","price":1000000},"created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-01-28T10:00:24.809Z","updated_at":"2021-01-28T10:00:24.809Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"data_store":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T10:00:17.773Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}},"data-store-entities":{"type":"array","items":{"$ref":"#/components/schemas/data-store-entity"}},"data-store":{"type":"object","required":["data_store_id","key","name","created_at","created_by","updated_at","updated_by","schema"],"properties":{"data_store_id":{"type":"string","description":"Must be a UUID. The unique identifier of the data store."},"organization_id":{"type":"string","description":"Must be a UUID. The unique identifier of the organization the data store belongs to."},"key":{"type":"string","description":"The unique key of the data store."},"name":{"type":"string","description":"The name of the data store."},"description":{"type":"string","description":"The description of the data store."},"created_at":{"type":"string","format":"date-time","description":"The time at which the data store was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the data store. See [Authentication](#client-apps)."},"updated_at":{"type":"string","format":"date-time","description":"The time at which the data store was last updated."},"updated_by":{"type":"object","description":"An object indicating the user or API key that last updated the data store. See [Authentication](#client-apps)."},"schema":{"type":"object","description":"An object for which the the schema for data store entities will be base off of.","properties":{"required":{"type":"array","items":{"type":"string"},"description":"The keys from the data store properties that are mandatory, when creating data store entities."},"properties":{"type":"object","description":"The data to which the data store columns are created from. See below for more details."}},"required":["required","properties"]}},"example":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","key":"devices","name":"Devices","description":"Devices data store","schema":{"async":true,"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"}},"required":["name","price"]},"created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"created_at":"2021-01-29T13:12:00.968Z","updated_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"updated_at":"2021-01-29T13:12:00.968Z"}},"data-stores":{"type":"array","items":{"$ref":"#/components/schemas/data-store"}},"fulfillment-request":{"type":"object","required":["fulfillment_request_id","fulfillment_type_id","policy_id","claim_id","status","fulfillment_data","created_at","created_by","environment"],"properties":{"fulfillment_request_id":{"type":"string","description":"Must be a UUID. The fulfillment request ID."},"fulfillment_type_id":{"type":"string","description":"Must be a UUID. The fulfillment type ID."},"fulfillment_type":{"type":"object","description":"The fulfillment type object containing type details.","properties":{"fulfillment_type_id":{"type":"string","format":"uuid","description":"The unique identifier of the fulfillment type."},"key":{"type":"string","description":"The key identifier of the fulfillment type."},"name":{"type":"string","description":"The name of the fulfillment type."},"description":{"type":"string","description":"A description of the fulfillment type."}}},"policy_id":{"type":"string","description":"Must be a UUID. The ID of the policy linked to the claim."},"claim_id":{"type":"string","description":"Must be a UUID. The ID of the claim linked to the fulfillment request."},"status":{"type":"string","enum":["pending","rejected","successful"],"description":"A string indicating the status of the fulfillment request."},"fulfillment_data":{"type":"object","description":"The fulfillment data as specified in the fulfillment type."},"created_at":{"type":"string","format":"date-time","description":"The time at which the fulfillment request was created."},"created_by":{"type":["object","null"],"description":"An object indicating the user or API key that created the fulfillment request. See [Authentication](https://docs.rootplatform.com/reference/getting-started-1#created_by-field)."},"environment":{"type":"string","enum":["sandbox","production"],"description":"Whether the payout request was created in Root's sandbox or production environment."},"finalized_at":{"type":"string","format":"date-time","description":"The time at which the fulfillment request was finalized."},"finalized_by":{"type":"object","description":"An object indicating the user or API key that finalized the fulfillment request. See [Authentication](https://docs.rootplatform.com/reference/getting-started-1#created_by-field)."}},"example":{"fulfillment_request_id":"8f8b3469-82e9-4d5b-bcc5-f200af095a79","fulfillment_type_id":"ad044686-6b6f-4ce6-878f-143039243f11","fulfillment_type":{"fulfillment_type_id":"ad044686-6b6f-4ce6-878f-143039243f11","key":"repatriation","name":"Repatriation","description":"Cover for repatriation of remains"},"policy_id":"2800a20b-ce92-4463-a0de-75cd76d8bf22","claim_id":"80f8e67a-15e5-417c-9d29-dfc31a5b92bb","status":"pending","fulfillment_data":{"amount":"100000","customer_account_number":"02870611321"},"created_at":"2022-06-07T12:52:55.014Z","created_by":{"type":"user","id":"99ff4c56-577c-11e9-b47c-a3d0f3abd20c"},"environment":"sandbox"}},"https-adapter":{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","description":"The type of adapter. In this case, `https`."},"url":{"type":"string","description":"The HTTPS URL to send the export file to."},"headers":{"type":"string","description":"The HTTP headers for the request."},"batch_size":{"type":"integer","description":"The number of entities to include per request, if streaming is disabled. Defaults to `10000` if not provided."},"stream_request":{"type":"boolean","description":"Indicates whether the request should be batched (`false`) or streamed in one request (`true`)."}}},"lead":{"type":"object","required":["lead_id","type","first_name","last_name","created_at","created_by"],"properties":{"lead_id":{"type":"string","description":"Must be a UUID. The unique identifier of the lead."},"type":{"type":"string","description":"The lead's entity type, either `individual` or `company`."},"id":{"type":["object","null"],"description":"`null` is allowed. Object containing the lead's identification number, type and country.","properties":{"type":{"type":"string","description":"Either `id` or `passport`."},"number":{"type":"string","description":"The ID or passport number."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the country of the id/passport number."},"expiration_date":{"type":["string","null"],"format":"date-time","description":"`null` is allowed. The expiration date of the lead's passport."}},"required":["type","number","country"]},"date_of_birth":{"type":["string","null"],"format":"date","description":"`null` is allowed. The lead's date of birth."},"gender":{"type":["string","null"],"description":"`null` is allowed. The lead's gender (`male` or `female`)."},"first_name":{"type":"string","description":"The lead's legal first name."},"middle_name":{"type":["string","null"],"description":"`null` is allowed. The lead's legal middle name."},"last_name":{"type":"string","description":"The lead's legal last name."},"email":{"type":["string","null"],"description":"`null` is allowed. The lead's contact email address."},"cellphone":{"type":["string","null"],"description":"`null` is allowed. The lead's contact cellphone number."},"phone_other":{"type":["string","null"],"description":"`null` is allowed. The lead's alternative phone number."},"created_at":{"type":"string","format":"date-time","description":"The time at which the lead was created."},"updated_at":{"type":"string","format":"date-time","description":"The time at which the lead was updated."},"updated_by":{"type":"object","description":"An object indicating the user or API key that updated the lead. See [Authentication](#client-apps)."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the lead.","additionalProperties":true},"created_by":{"type":"object","description":"An object indicating the user or API key that created the lead. See [Authentication](#client-apps)."},"address":{"type":["object","null"],"description":"`null` is allowed. The lead's physical address. See below for more details.","properties":{"line_1":{"type":"string","description":"First line of the lead's address."},"line_2":{"type":["string","null"],"description":"`null` is allowed. Optional second line of the lead's address."},"suburb":{"type":"string","description":"The lead's suburb."},"city":{"type":"string","description":"The lead's city."},"country":{"type":"string","description":"The lead's country code, in the [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) format."},"area_code":{"type":"string","description":"The lead's area code, must be 4 characters long."}},"required":["line_1","suburb","city","country","area_code"]}},"example":{"lead_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","first_name":"Erlich","middle_name":"Aviato","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"1968-01-01","gender":"male","email":"erlich@aviato.com","cellphone":null,"phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}}},"leads":{"type":"array","items":{"$ref":"#/components/schemas/lead"}},"monthly-frequency":{"type":"object","required":["time_of_day","day_of_month"],"properties":{"time_of_day":{"type":"string","description":"The time of day to run the export, in `HH:mm` format."},"day_of_month":{"type":"integer","description":"The day of month to run the export on, from `1` to `31`. *Note:* if the day of month falls after month end (i.e., on the 31st in a month with only 30 days), the export will be run on the last day of the month."}}},"note":{"type":"object","required":["text","created_at"],"properties":{"text":{"type":"string","description":"A string of text for the note."},"created_at":{"type":"string","format":"date-time","description":"Time at which the attachment was created."}},"example":{"text":"Customer spoke to Erlich previously","created_at":"2022-10-16T10:12:02.872Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}},"notes":{"type":"array","items":{"$ref":"#/components/schemas/note"}},"notification-data":{"type":"object","description":"An object containing additional data depending on whether the notification channel is `email`, `sms`, or `other`.","oneOf":[{"$ref":"#/components/schemas/notification-email-data"},{"$ref":"#/components/schemas/notification-sms-data"},{"$ref":"#/components/schemas/notification-other-data"}]},"notification-email-data":{"type":"object","required":["subject","html","attachments","to"],"properties":{"from_email":{"type":"string","description":"Email address of who sent the email notification."},"from_name":{"type":"string","description":"Name of who sent the email notification."},"reply_to_email":{"type":"string","description":"Recipient of who to respond to for the email notification."},"subject":{"type":"string","description":"Email subject."},"html":{"type":"string","description":"The HTML structure of the email body."},"attachments":{"type":"array","description":"An array of objects containing a list of `type` and `name` pairs for the attachments on the email notification.","items":{"type":"object","properties":{"type":{"type":"string","description":"Whether the file is a document or image."},"name":{"type":"string","description":"The name of the file"}}}},"to":{"type":"array","description":"An array of objects containing a list of `email` and `name` pairs of the recipients of the email notification.","items":{"type":"object","properties":{"email":{"type":"string","description":"The desired recipient's email."},"name":{"type":"string","description":"The recipient's name."}}}}}},"notification":{"type":"object","required":["notification_id","notification_type","linked_entities","channel","provider","created_at","created_by","status","status_updates"],"properties":{"notification_id":{"type":"string","description":"The identifier of the notification."},"organization_id":{"type":"string","description":"The identifier of the organization."},"notification_type":{"type":"string","description":"Indicates the type of notification (e.g., policy_issued)."},"linked_entities":{"type":"object","description":"Indicates which entities the notification is linked to.","properties":{"policy_id":{"type":"string","description":"The identifier of the policy."}}},"channel":{"type":"string","description":"The channel used for the notification. Channels available include `email`, `sms` or `other`."},"provider":{"type":"string","description":"Indicates how the notification was generated. Whether it was `external`, `root_standard` or `root_webhooks`."},"created_at":{"type":"string","format":"date-time","description":"Time at which the notification was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the notification. See [Authentication](#client-apps)."},"status":{"type":"string","description":"The current status of the notification.","enum":["queued","sent","delivered","rejected","opened","unknown_error"]},"status_updates":{"type":"array","description":"An array of status update information for the notification.","items":{"type":"object","properties":{"status":{"type":"string","description":"The status that the notification was updated to.","enum":["queued","sent","delivered","rejected","opened","unknown_error"]},"createdAt":{"type":"string","format":"date-time","description":"Time at which the status update was created."},"description":{"type":"string","description":"An optional detailed description of the status update."}},"required":["status","createdAt"]}},"data":{"$ref":"#/components/schemas/notification-data"}},"example":{"notification_id":"43c13dc8-2c19-402c-bb70-a7deb56b9f38","organization_id":"4ce6ad99-9576-4d28-84ba-c30d2d536cbe","channel":"sms","notification_type":"policy_issued","provider":"root_clickatell","created_at":"2022-06-23T07:59:53.261Z","created_by":{"type":"user","id":"6f852057-b381-4ab0-a53d-93a6c2ec6f26"},"status":"delivered","status_updates":[{"status":"queued","createdAt":"2022-06-23T07:59:53.261Z"},{"status":"sent","createdAt":"2022-06-23T07:59:54.000Z","description":"Delivered to gateway (003)"},{"status":"delivered","createdAt":"2022-06-23T07:59:57.000Z","description":"Received by recipient (004)"}],"linked_entities":{"policy_id":"b338a75b-207e-4b6c-8649-4c0ebfe39d8b","policyholder_id":"b5b10383-0b50-4965-8bff-addb2001c5d1"},"data":{"to":["+27811231234"],"content":"Congratulations! Your  Cover has been activated from 01/06/2022."}}},"notifications":{"type":"array","items":{"$ref":"#/components/schemas/notification"}},"notification-other-data":{"type":"object","required":["to","content","content_type"],"properties":{"to":{"type":"string","description":"An array containing phone numbers that the notification was sent to."},"content":{"type":"string","description":"Content for the SMS notification."},"content_type":{"type":"string","description":"Whether it was `text` or `html`."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the SMS notification.","additionalProperties":true}}},"notification-sms-data":{"type":"object","required":["to","content"],"properties":{"to":{"type":"array","items":{"type":"string"},"description":"An array containing phone numbers that the notification was sent to."},"content":{"type":"string","description":"Content for the SMS notification."},"content_type":{"type":"string","description":"Whether it was `text` or `html`."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the SMS notification.","additionalProperties":true}}},"custom-event-type":{"type":"string","description":"The type of custom event. Must match the type on the Root management dashboard.","enum":["policy","payment_method","payment","claim"]},"payment":{"type":"object","required":["payment_id","policy_id","payment_method_id","status","amount","created_at","created_by","updated_at","payment_date","action_date","billing_date","policy","policyholder","payment_method","payment_type","currency","retry_number","app_data","raw_response"],"properties":{"payment_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment."},"policy_id":{"type":"string","description":"Must be a UUID. The unique identified of the policy the payment is linked to."},"payment_method_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment method used to make the payment."},"status":{"$ref":"#/components/schemas/payment-status"},"amount":{"type":["number","null"],"description":"The payment amount as an integer in cents."},"description":{"type":"string","description":"Description of the payment."},"external_ref":{"type":["string","null"],"description":"Unique external reference of the payment."},"customer_ref":{"type":["string","null"],"description":"Customer reference for the payment."},"created_at":{"type":"string","format":"date-time","description":"The time at which the payment was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the policyholder.","required":["type"],"properties":{"id":{"type":"string","description":"Unique identifier for the actor."},"type":{"$ref":"#/components/schemas/actor-type"},"owner_id":{"type":"string","description":"The related organisation's UUID."}}},"updated_at":{"type":"string","format":"date-time","description":"Date the payment was last updated."},"billing_date":{"type":"string","format":"date-time","description":"The customer's chosen payment date, as specified using the `billing_day` property on the policy."},"payment_date":{"type":"string","format":"date-time","description":"The target date for the payment to go off the customer’s card or bank account. Typically the same as `billing_date`, but may be earlier or later if `billing_date` falls on a bank holiday or Sunday."},"action_date":{"type":"string","format":"date-time","description":"The date that the system first attempts to collect the payment from the customer's card or bank account. Typically the same as the `payment_date`, but can be earlier for certain payment methods."},"payment_method":{"oneOf":[{"$ref":"#/components/schemas/payment-method"},{"type":"null"}]},"payment_type":{"$ref":"#/components/schemas/payment-type"},"premium_type":{"$ref":"#/components/schemas/premium-type"},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the payment.","additionalProperties":true},"failure_reason":{"type":["string","null"],"description":"The reason the payment failed.\n"},"currency":{"type":"string","description":"Three-digit currency code for the payment. E.g. `ZAR` or `GBP`"},"retry_of":{"type":"string","description":"Must be a UUID. Only relevant for retry payments. Original payment id of the payment being retried."},"retry_number":{"type":["number","null"],"description":"`null` is allowed. Only relevant for retry payments. The number of times the payment has been retried (including the current retry payment).\n"},"net_amount":{"type":"number","description":"Integer in cents. The payment amount net of any charges."},"finalized_at":{"type":"string","format":"date-time","description":"The date the payment update was finalized."},"finalized_by":{"type":"object","description":"`null` is allowed. An object indicating the user or API key that finalized the payment.","required":["type"],"properties":{"id":{"type":"string","description":"Unique identifier for the actor e.g. user"},"type":{"$ref":"#/components/schemas/actor-type"},"owner_id":{"type":"string","description":"The related organisation's UUID"}}},"collection_type":{"$ref":"#/components/schemas/collection-type"},"policyholder":{"description":"`null` is allowed. The policyholder linked to the payment.","anyOf":[{"type":"null"},{"$ref":"#/components/schemas/policyholder"}]},"policy":{"description":"`null` is allowed. The policy the payment is linked to.","anyOf":[{"type":"null"},{"$ref":"#/components/schemas/policy"}]},"charges":{"type":"array","description":"Whenever a premium payment is created (including reversals), a breakdown of the payment amount is calculated according to the charges stored on the policy.","items":{"type":"object","required":["type","name","description","amount","calculated"],"properties":{"type":{"$ref":"#/components/schemas/payment-charge-type"},"name":{"type":"string","description":"The name of the charge."},"description":{"type":"string","description":"The description of the charge."},"amount":{"type":"integer","description":"The charged amount. Required when type is `fixed` or `variable`. Either a proportion of the total premium (if `type` is `variable`), or a currency amount in cents (if `type` is `fixed`)."},"calculated":{"type":"integer","description":"The final calculated charge amount."}}}},"raw_response":{"type":["string","null"],"description":"The raw response from upstream providers."}},"example":[{"payment_id":"c9625104-c8da-45e2-972f-baf3037bce6b","policy_id":"07f9b73e-d16d-4a5a-8463-44ee62de4da3","payment_method_id":"ff80fa5b-6daf-4c3c-9ca1-bb442a796aa6","status":"failed","amount":100,"description":"monthly_premium","external_ref":"ExternalSystem00001","customer_ref":null,"created_at":"2022-10-28T14:17:21.441Z","created_by":{"type":"api_key","id":"312d8c45-eb3a-4f18-a952-c358fb94abdc","owner_id":"cb8a0648-9186-454d-bf1f-6d82b3b82894"},"updated_at":"2022-10-28T14:17:38.798Z","payment_date":"2022-10-26T00:00:00.000Z","action_date":"2022-10-26T00:00:00.000Z","billing_date":"2022-10-26T00:00:00.000Z","policy":null,"policyholder":null,"payment_method":null,"payment_type":"premium","premium_type":"recurring","failure_reason":"Account Closed","currency":"ZAR","retry_number":0,"finalized_at":"2022-10-28T14:17:38.798Z","finalized_by":{"type":"api_key","id":"312d8c45-eb3a-4f18-a952-c358fb94abdc","owner_id":"cb8a0648-9186-454d-bf1f-6d82b3b82894"},"collection_type":"debit_order_two_day","app_data":{},"charges":[],"raw_response":null}]},"payment-response":{"type":"object","properties":{"payment_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment."},"policy_id":{"type":"string","description":"Must be a UUID. The unique identifier of the policy linked to the payment."},"payment_method_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment method used to make the payment."},"status":{"$ref":"#/components/schemas/payment-status"},"amount":{"type":"number","description":"The payment amount as an integer in cents."},"description":{"type":"string","description":"Description of the payment."},"external_ref":{"type":"string","description":"Unique external reference of the payment."},"created_at":{"type":"string","format":"date-time","description":"The time at which the payment was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the policyholder.","properties":{"id":{"type":"string","description":"Unique identifier for the actor."},"type":{"$ref":"#/components/schemas/actor-type"},"owner_id":{"type":"string","description":"The related organisation's UUID."}}},"updated_at":{"type":"string","format":"date-time","description":"Date the payment was last updated."},"payment_date":{"type":"string","format":"date-time","description":"The target date for the payment to go off the customer’s card or bank account. Typically the same as `billing_date`, but may be earlier or later if `billing_date` falls on a bank holiday or Sunday."},"action_date":{"type":"string","format":"date-time","description":"The date that the system first attempts to collect the payment from the customer's card or bank account. Typically the same as the `payment_date`, but can be earlier for certain payment methods."},"billing_date":{"type":"string","format":"date-time","description":"Date the payment should be processed."},"payment_method":{"description":"`null` is allowed. The payment method used for the payment.","anyOf":[{"type":"null"},{"$ref":"#/components/schemas/payment-method"}]},"payment_type":{"$ref":"#/components/schemas/payment-type"},"premium_type":{"$ref":"#/components/schemas/premium-type"},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the payment.","additionalProperties":true},"failure_reason":{"type":"string","description":"The reason the payment failed.\n"},"currency":{"type":"string","description":"Three-digit currency code for the payment. E.g. `ZAR` or `GBP`"},"retry_of":{"type":"string","description":"Must be a UUID. Only relevant for retry payments. Original payment id of the payment being retried."},"finalized_at":{"type":"string","format":"date-time","description":"The date the payment update was finalized."},"collection_type":{"$ref":"#/components/schemas/collection-type"},"policyholder":{"description":"`null` is allowed. The policyholder the payment is linked to.","anyOf":[{"type":"null"},{"$ref":"#/components/schemas/policyholder"}]},"policy":{"description":"`null` is allowed. The policy the payment is linked to.","anyOf":[{"type":"null"},{"$ref":"#/components/schemas/policy"}]},"charges":{"type":"array","description":"Whenever a premium payment is created (including reversals), a breakdown of the payment amount is calculated according to the charges stored on the policy.","items":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/payment-charge-type"},"name":{"type":"string","description":"The name of the charge."},"description":{"type":"string","description":"The description of the charge."},"amount":{"type":"integer","description":"The charged amount. Required when type is `fixed` or `variable`. Either a proportion of the total premium (if `type` is `variable`), or a currency amount in cents (if `type` is `fixed`)."},"calculated":{"type":"integer","description":"The final calculated charge amount."}}}},"raw_response":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the payment."}}},"payment-batch":{"type":"object","required":["organization_id","payment_batch_id","status","action_date","process_date","payment_type","payment_method_type","billing_config_id","submitted_at","submitted_by","created_at","failure_reason","num_payments","num_reviewed","total_value","external_reference","updated_at","updated_by"],"properties":{"organization_id":{"type":"string","description":"Must be a UUID. The unique identifier of the organization."},"payment_batch_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment batch."},"status":{"type":"string","description":"The payment batch status, one of [`pending`, `submitting`, `submitted`, 'accepted', `failed`, `archived`]."},"action_date":{"type":"string","format":"date-time","description":"The time at which the payments in the batch will strike the accounts."},"process_date":{"type":"string","format":"date-time","description":"The time at which the batch should be processed & submitted by."},"payment_type":{"type":"string","description":"The payment collection type, one of [`debit_order_same_day`, `debit_order_two_day`, `debit_order_naedo` (deprecated), `debit_order_debicheck`, `card`, `external`, `other`]."},"payment_method_type":{"type":"string","description":"The payment method type, one of [`debit_order`, `card`, `eft`, `external`]."},"billing_config_id":{"type":"string","description":"Must be a UUID. The unique identifier of the billing config to be used when processing this batch."},"submitted_at":{"type":"string","format":"date-time","description":"The time at which the batch was submitted."},"submitted_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that submitted the batch. See [Authentication](#client-apps)."},"created_at":{"type":"string","format":"date-time","description":"The time at which the batch was created."},"failure_reason":{"type":"string","description":"A description of the reason the payment batch failed."},"num_payments":{"type":"integer","description":"The number of payments included in this batch."},"num_reviewed":{"type":"integer","description":"The number of payments in this batch that have been reviewed."},"total_value":{"type":"integer","description":"The total amount of premium, in cents, of the all the payments in this batch."},"external_reference":{"type":["string","null"],"description":"External reference used for identifying the batch."},"updated_at":{"type":"string","format":"date-time","description":"The time at which the batch was updated."},"updated_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that updated the batch. See [Authentication](#client-apps)."}},"example":{"payment_batch_id":"00000000-0000-0000-0000-000000000001","organization_id":"00000000-0000-0000-0000-000000000001","status":"submitted","action_date":"2021-09-29T09:36:43.560Z","process_date":"2021-09-29T09:36:43.560Z","payment_type":"debit_order_same_day","payment_method_type":"debit_order","billing_config_id":"00000000-0000-0000-0000-000000000003","submitted_at":"2021-10-07T07:38:00.117Z","submitted_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-09-29T09:36:43.560Z","failure_reason":null,"num_payments":10,"num_reviewed":0,"total_value":1000000,"external_reference":"ABCDE12345","updated_at":"2021-10-07T07:38:00.117Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}},"payment-batches":{"type":"array","items":{"$ref":"#/components/schemas/payment-batch"}},"payment-create":{"type":"object","required":["amount","status","description","payment_type","payment_date","collection_type","payment_method_id"],"properties":{"status":{"$ref":"#/components/schemas/payment-status"},"payment_method_id":{"type":"string","description":"Payment method id of the payment being created. Must be a UUID."},"payment_type":{"$ref":"#/components/schemas/payment-type"},"premium_type":{"$ref":"#/components/schemas/premium-type"},"amount":{"type":"number","description":"The payment amount. Required when `retry_of` is not provided; otherwise forbidden."},"description":{"type":"string","description":"Description of the payment being submitted. Required when `retry_of` is not provided; otherwise forbidden."},"payment_date":{"type":"string","format":"date-time","description":"Date the payment was created."},"finalized_at":{"type":"string","format":"date-time","description":"Date the payment was finalized. Required when `status` is `failed` or `successful`."},"collection_type":{"$ref":"#/components/schemas/collection-type"},"billing_date":{"type":"string","format":"date-time","description":"Date the payment should be processed."},"external_reference":{"type":"string","description":"Unique external reference of the payment."},"retry_of":{"type":"string","description":"Original payment id of the payment being retried. Must be a UUID."},"failure_reason":{"type":"string","description":"A description of the reason the payment failed. Required if `status` is `failed`, forbidden otherwise."},"failure_action":{"$ref":"#/components/schemas/failure-action"},"failure_code":{"type":"string","description":"Optional if `status` is `failed`, forbidden otherwise. The failure error code."}},"example":{"status":"successful","description":"Monthly premium","payment_type":"premium","premium_type":"pro_rata","amount":1800,"payment_date":"2022-09-08T00:00:00Z","external_reference":"B23423","collection_type":"debit_order_same_day","finalized_at":"2022-09-08T00:00:00Z","billing_date":"2022-09-08T00:00:00Z"}},"payment-create-async":{"allOf":[{"$ref":"#/components/schemas/payment-create"},{"type":"object","required":["policy_id"],"properties":{"policy_id":{"type":"string","description":"Id of the policy the payment is for. Must be UUID."}},"example":{"status":"successful","description":"Monthly premium","payment_type":"premium","amount":1800,"payment_date":"2022-09-08T00:00:00Z","external_reference":"B","collection_type":"debit_order_same_day","policy_id":"6ae5329f-d286-4d64-9345-af93eb03520c"}}]},"payment-creates-async-array":{"type":"array","items":{"$ref":"#/components/schemas/payment-create-async"},"example":[{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"successful","amount":6000,"description":"Monthly premium","payment_date":"2022-09-08T00:00:00Z","payment_type":"premium","external_reference":202209086000,"collection_type":"debit_order_same_day","premium_type":"recurring"},{"policy_id":"2b012979-e2a2-45d3-b5fe-729f825d96ce","status":"processing","amount":4500,"description":"Monthly premium","payment_date":"2022-09-08T00:00:00Z","payment_type":"premium","external_reference":202209084500,"collection_type":"debit_order_same_day","premium_type":"recurring"}]},"payment-coupon":{"type":"object","required":["payment_coupon_id","policy_id","status","type","created_at","created_by"],"properties":{"payment_coupon_id":{"type":"string","description":"Must be a UUID. Object ID of the payment coupon."},"policy_id":{"type":"string","description":"Must be a UUID. Object ID of the policy."},"status":{"type":"string","description":"A string indicating the status of the payment coupon. Possible values include `pending`, `redeemed`, or `cancelled`."},"type":{"type":"string","enum":["ad_hoc","payment_holiday"],"description":"The type of the payment coupon."},"redeemable_from":{"type":"string","format":"date-time","description":"The date from which the coupon can be redeemed. Required when creating `payment_holiday` coupons."},"redeemable_to":{"type":"string","format":"date-time","description":"The date by which the coupon must be redeemed. Required when creating `payment_holiday` coupons."},"amount":{"type":"integer","description":"The amount, in cents, that represents the value of the coupon once redeemed. Required when creating `ad_hoc` coupons."},"reason":{"type":"string","description":"The reason for the payment coupon being granted."},"payment_date":{"type":"string","format":"date-time","description":"The date the payment coupon was redeemed."},"billing_date":{"type":"string","format":"date-time","description":"The billing date of the payment the payment coupon repalces."},"created_at":{"type":"string","format":"date-time","description":"The time at which the policy was created."},"created_by":{"type":["object","null"],"description":"An object indicating the user or API key that created the policy. See [Authentication](#client-apps)."}},"example":{"payment_coupon_id":"307286b9-bbaa-4096-9ccf-fcbe596ea0a8","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"pending","type":"payment_holiday","redeemable_from":"2022-06-01T00:00:00.000Z","redeemable_to":"2022-06-30T00:00:00.000Z","reason":"Customer retrenched","created_at":"2020-08-04T09:14:21.451Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}},"payment-coupons":{"type":"array","items":{"$ref":"#/components/schemas/payment-coupon"},"example":[{"payment_coupon_id":"307286b9-bbaa-4096-9ccf-fcbe596ea0a8","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"pending","type":"payment_holiday","redeemable_from":"2022-06-01T00:00:00.000Z","redeemable_to":"2022-06-30T00:00:00.000Z","reason":"Customer retrenched","created_at":"2020-08-04T09:14:21.451Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}},{"payment_coupon_id":"de07f9a8-f818-4fbe-9d19-b46ba8d98758","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"pending","type":"ad_hoc","amount":2000,"reason":"Customer retrenched","created_at":"2020-08-04T09:14:21.451Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}]},"payment-update":{"type":"object","required":["payment_id","status"],"properties":{"payment_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment."},"status":{"$ref":"#/components/schemas/payment-status"},"failure_reason":{"type":"string","description":"Required if `status` is `failed`. A description of the reason the payment failed."},"failure_action":{"$ref":"#/components/schemas/failure-action"},"failure_code":{"type":"string","description":"The failure error code. Required if `status` is `failed`."}},"example":{"payment_id":"96e06845-6d37-4dca-8859-9d8ed27dcf58","status":"failed","failure_code":"08","failure_reason":"Account closed","failure_action":"block_payment_method"}},"payment-updates":{"type":"array","items":{"$ref":"#/components/schemas/payment-update"},"example":[{"payment_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"successful"},{"payment_id":"bd0c2ab2-4bf9-4786-9d90-0588fdff2600","status":"processing"},{"payment_id":"0463e674-ff1b-475d-901b-c37b01ab1ef6","status":"failed","failure_reason":"Not provided for","failure_action":"block_retry"},{"payment_id":"96e06845-6d37-4dca-8859-9d8ed27dcf58","status":"failed","failure_reason":"Account closed","failure_action":"block_payment_method"}]},"payment-charge-type":{"type":"string","description":"Variable charges are applied as a proportion of the total payment amount. Fixed charges are applied as an absolute currency value in cents. The `balance` is the balance of the payment total after all charges have been applied.","enum":["fixed","variable","balance"]},"payment-status":{"type":"string","enum":["submitted","pending","processing","successful","failed","cancelled"],"description":"The status to which to create the payment."},"payment-type":{"type":"string","description":"The type of the payment being created.","enum":["premium","reversal","claim_payout","premium_refund","other"]},"premium-type":{"type":"string","description":"The type of the payment being created.Required when `payment_type` is premium or reversal, optional when `payment_type` is premium_refund, forbidden otherwise.","enum":["recurring","arrears","ad_hoc","pro_rata","cover_period","collection_request","manual_eft","premium_refund"]},"collection-type":{"type":"string","description":"The collection type of the payment being created.","enum":["debit_order_same_day","debit_order_two_day","debit_order_one_day","debit_order_debicheck","card","external","collection_module","other"]},"failure-action":{"type":"string","enum":["block_payment_method","block_retry","allow_retry"],"description":"The additional action to perform when processing a failed payment. `block_payment_method`: Set the payment method's verification status to `blocked`, and do not generate a retry. `block_retry`: Do not generate a retry payment (even if enabled in the [product module settings](doc:billing-settings)). `allow_retry`: Generate a retry payment (if enabled in the [product module settings](doc:billing-settings)). **Note:** The payment method will be blocked after 4 consecutive failed payments regardless. See the [billing settings](https://docs.rootplatform.com/docs/billing-settings#consecutive-failed-payments-allowed) guide for more details on the number of consecutive payments allowed. This field will be required if `status` is `failed`, forbidden otherwise.\n"},"actor-type":{"type":"string","description":"The actor who created the record.","enum":["api_key","system","user"]},"policy":{"type":"object","description":"Policies are issued from applications, and represent binding insurance agreements. Parameters stored on the policy can be referenced in custom notifications, policy documents, data exports and external integrations. <br/><br/> See the [issuing policies](https://docs.rootplatform.com/docs/policy-issuing) guide and the [policy issue hook](https://docs.rootplatform.com/docs/policy-issue-hook) guide for more details.","required":["policy_id","policy_number","status","policyholder_id","package_name","monthly_premium","billing_amount","balance","currency","billing_day","billing_frequency","next_billing_date","covered_people","base_premium","claim_ids","complaint_ids","start_date","end_date","policy_schedule_uri","terms_uri","schedule_versions","created_at","module","app_data","created_by","scheme_type","charges","supplementary_terms_files"],"properties":{"policy_id":{"type":"string","description":"Must be a UUID. Object ID of the policy."},"policy_number":{"type":"string","description":"A shorter, human-readable policy identifier. This typically used in policy documents and customer notifications for ease of reference."},"status":{"$ref":"#/components/schemas/policy-status"},"policyholder_id":{"type":"string","description":"Must be a UUID. The system identifier of the policy's policyholder."},"package_name":{"type":"string","description":"The insurance package name."},"sum_assured":{"type":"integer","description":"The amount, in cents, of the maximum value insured."},"monthly_premium":{"type":"integer","description":"The total monthly premium, in cents, that will be billed to the policyholder."},"billing_amount":{"type":"integer","description":"The amount, in cents, that will be billed on the next billing run."},"balance":{"type":"integer","description":"The amount, in cents, that is owed on the policy. If the policyholder makes an adhoc payment to the policy, the amount is credited to this balance. If the policyholder defaults on a payment, it is subtracted from the balance. If the balance is found negative during the next billing run, the amount is added to the monthly premium, else the monthly premium is subtracted from the balance and the remainder is charged."},"billing_day":{"type":["integer","null"],"description":"`null` is allowed. The day of month on which the policy is billed. Should be between 1 and 31, or `null`. If it falls on a day that does not exist in the month (for example, 31 in February) the policy will be billed on the last day of the month. Setting this value to 31 will ensure that the policy is billed on the last day of every month."},"billing_frequency":{"type":"string","description":"The frequency at which the policy is billed. One of [`monthly`, `yearly`, `once_off`]. See the [billing settings](https://docs.rootplatform.com/docs/billing-settings#billing-frequency) guide for more details on the billing frequency."},"next_billing_date":{"type":"string","format":"date-time","description":"The next date the policy is due to be billed."},"currency":{"type":"string","description":"The currency code of the policy."},"beneficiaries":{"description":"An array of beneficiaries, or \"null\".","oneOf":[{"$ref":"#/components/schemas/beneficiaries"},{"type":"null"}]},"covered_people":{"type":["array","null"],"items":{"type":"object"},"description":"`null` is allowed. An array of covered people added to the policy."},"base_premium":{"type":"integer","description":"The amount, in cents, of the minimum allowed monthly premium fee. This includes risk pricing and platform fees."},"claim_ids":{"type":"array","items":{"type":"string"},"description":"An array of claim ids of the claims linked to the policy."},"complaint_ids":{"type":"array","items":{"type":"string"},"description":"An array of complaint ids of the complaints linked to the policy."},"start_date":{"type":"string","format":"date-time","description":"Once the policy reaches its start date, cover commences and regular collection attempts can run against the policy (provided it has an `active` status). See the [Managing policies](https://docs.rootplatform.com/docs/policy-administration#policy-lifecycle) guide for more details on the policy lifecycle."},"end_date":{"type":"string","format":"date-time","description":"When the policy reaches its end date, its status will change to `expired`. Cover and collections will cease. Policies with no end date do not expire."},"current_version":{"type":["integer","null"],"description":"`null` is allowed. The current policy schedule version."},"schedule_file_id":{"type":["string","null"],"description":"`null` is allowed. Object ID of the policy document."},"policy_schedule_uri":{"type":["string","null"],"description":"URI to the policy document in PDF format."},"terms_file_id":{"type":["string","null"],"description":"`null` is allowed. Attachment ID of the policy terms document."},"terms_uri":{"type":["string","null"],"description":"URI to the terms document in PDF format."},"supplementary_terms_files":{"type":"array","description":"Supplementary terms files associated with the policy.","items":{"type":"object","properties":{"supplementary_terms_file_id":{"type":"string","description":"Attachment ID of the supplementary terms document."},"type":{"type":"string","description":"The supplementary terms file type, as specified in the product module settings."},"uri":{"type":"string","description":"URI to the supplementary terms document in PDF format."}}}},"policy_welcome_letter_file_id":{"type":["string","null"],"description":"`null` is allowed. Object ID of the welcome letter."},"policy_welcome_letter_uri":{"type":["string","null"],"description":"`null` is allowed. URI to the welcome letter in PDF format."},"policy_certificate_file_id":{"type":["string","null"],"description":"`null` is allowed. Object ID of the policy certificate."},"policy_certificate_uri":{"type":["string","null"],"description":"`null` is allowed. URI to the certificate in PDF format."},"policy_anniversary_file_id":{"type":["string","null"],"description":"`null` is allowed. Object ID of the policy anniversary document."},"schedule_versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","description":"The policy schedule version number."},"created_at":{"type":"string","format":"date-time","description":"The date the policy schedule version was created."}}},"description":"The policy schedule versions for the policy. A new policy schedule version is typically created when the policy is updated."},"created_at":{"type":"string","format":"date-time","description":"The time at which the policy was created."},"module":{"type":"object","description":"Custom, product-specific fields stored against the policy. These parameters are set in the [policy issue hook](https://docs.rootplatform.com/docs/policy-issue-hook) in the product module code. They can be referenced in policy documents, data exports and external integrations.","additionalProperties":true},"restricted_data":{"type":"object","description":"Optional restricted product-specific information saved to the policy. This field is only returned when the requestee has access to restricted policy module data.","additionalProperties":true},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policy.","additionalProperties":true},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the policy."},"scheme_type":{"type":"string","description":"Indicates the policy scheme type, being either `individual` or `group`."},"payment_method_id":{"type":"string","description":"Must be a UUID. The ID of the policy's payment method, if set."},"status_updated_at":{"type":"string","format":"date-time","description":"Date indicating when the policy status was last updated."},"charges":{"type":"array","description":"Whenever a premium payment is created (including reversals), a breakdown of the payment amount is calculated according to the charges stored on the policy. This allows the premium breakdown to be referenced in policy documents and disclosures, and in the policy's payment data. See the [policy issue hook](https://docs.rootplatform.com/docs/policy-issue-hook#charges-and-commissions) guide for more details on charges and commissions.","items":{"type":"object","required":["type","name"],"properties":{"type":{"$ref":"#/components/schemas/payment-charge-type"},"name":{"type":"string","description":"The name of the charge."},"description":{"type":"string","description":"The description of the charge."},"amount":{"type":"integer","description":"The charged amount. Required when type is `fixed` or `variable`. Either a proportion of the total premium (if `type` is `variable`), or a currency amount in cents (if `type` is `fixed`)."}}}}},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"balance":0,"currency":"ZAR","billing_amount":50000,"billing_day":1,"billing_frequency":"monthly","covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","current_version":1,"schedule_file_id":"c85f1d4e-f09b-11ed-a05b-0242ac120003","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_file_id":"68c8b6e6-f484-11ed-a05b-0242ac120003","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","supplementary_terms_files":[{"supplementary_terms_file_id":"c414342a-7ea4-4a16-be68-d152aa5fce68","type":"client-conduct","uri":"https://sandbox.root.co.za/v1/files/download/a7bc326f-640e-4b43-9909-7a6c8be17e37"}],"policy_welcome_letter_file_id":"d0864e70-f09b-11ed-a05b-0242ac120003","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","policy_certificate_file_id":"1e527606-f09c-11ed-a05b-0242ac120003","policy_certificate_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/certificate/certificate.pdf","policy_anniversary_file_id":"7e6d32c4-f484-11ed-a05b-0242ac120003","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"restricted_data":{"internal_commission_bps":1500},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[],"beneficiaries":[{"first_name":"Jared","last_name":"Dunn","id":{"type":"id","number":"8704094800082","country":"ZA"},"percentage":100,"relationship":"cousin_or_relative"}]}},"policy-status":{"type":"string","description":"The policy status. See the [managing policies](https://docs.rootplatform.com/docs/policy-administration#policy-lifecycle) guide for more details on the policy lifecycle.","enum":["pending_initial_payment","active","cancelled","expired","lapsed","not_taken_up"]},"policies":{"type":"array","items":{"$ref":"#/components/schemas/policy"}},"policyholder":{"type":"object","required":["policyholder_id","type","id","first_name","last_name","policy_ids","created_at","app_data","created_by"],"properties":{"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of the policyholder."},"type":{"type":"string","description":"The policyholder type.","enum":["individual","company"]},"id":{"type":"object","description":"(Individual policyholders only) Object containing policyholder's identification information.","properties":{"type":{"type":"string","description":"The id type of the policyholder.","enum":["id","passport","email","cellphone","custom"]},"number":{"type":"string","description":"The ID or passport number."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the country of the id/passport number."},"expiration_date":{"type":"string","format":"date-time","description":"(Individual policyholders only) The expiration date of the policyholder's passport."}},"required":["type","number","country"]},"title":{"type":"string","description":"The policyholders's title.","enum":["mr","mrs","miss","mx","sir","dr","adv","ms","prof"]},"date_of_birth":{"type":"string","description":"(Individual policyholders only) The policyholder's date of birth in the format YYYYMMDD."},"gender":{"type":"string","description":"Null is allowed. (Individual policyholders only) The policyholder's gender.","enum":["male","female"]},"initials":{"type":["string","null"],"description":"`null` is allowed. The policyholder or primary contact's initials."},"first_name":{"type":"string","description":"The policyholder or primary contact's legal first name."},"middle_name":{"type":["string","null"],"description":"`null` is allowed. The policyholder or primary contact's legal middle name."},"last_name":{"type":"string","description":"The policyholder or primary contact's legal last name."},"company_name":{"type":"string","description":"(Company policyholders only) The name of the company that the policyholder represents."},"registration_number":{"type":"string","description":"(Company policyholders only) The company's registration number."},"date_of_establishment":{"type":"string","description":"(Company policyholders only) The company's date of establishment in the format YYYYMMDD."},"company_website_url":{"type":"string","description":"(Company policyholders only) The company's website URL."},"contact_position":{"type":"string","description":"(Company policyholders only) The position or role of the primary contact at the company."},"subsidiary_companies":{"type":"array","items":{"type":"string"},"description":"(Company policyholders only) An array of subsidiary company names."},"email":{"type":["string","null"],"description":"`null` is allowed. The policyholder or primary contact's contact email address."},"cellphone":{"$ref":"#/components/schemas/cellphone-string"},"phone_other":{"$ref":"#/components/schemas/cellphone-string"},"policy_ids":{"type":"array","items":{"type":"string"},"description":"An array of ids of the policies linked to this policyholder."},"policies":{"type":"array","items":{"$ref":"#/components/schemas/policy"},"description":"An array of full [policy objects](#policy) owned by the policyholder. This is currently only included when [fetching all policyholders](#list-all-policyholders) or [fetching an individual policyholder](#retrieve-a-policyholder) with `?include=policies`."},"created_at":{"type":"string","format":"date-time","description":"The time at which the policyholder was created."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policy holder.","additionalProperties":true},"created_by":{"type":["object","null"],"description":"`null` is allowed. An object indicating the user or API key that created the policyholder. See [Authentication](#client-apps)."},"updated_at":{"type":"string","format":"date-time","description":"The time at which the policyholder was last updated."},"address":{"type":["object","null"],"description":"`null` is allowed. The policyholder's physical address. See below for more details.","properties":{"line_1":{"type":"string","description":"First line of the policyholder's address."},"line_2":{"type":["string","null"],"description":"`null` is allowed. Optional second line of the policyholder's address."},"suburb":{"type":"string","description":"The policyholder's suburb."},"city":{"type":"string","description":"The policyholder's city."},"country":{"type":"string","description":"The policyholder's country code, in the [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) format."},"area_code":{"type":"string","description":"The policyholder's area code must be 4 characters long for South African addresses."}},"required":["line_1","city","country","area_code"]}},"example":{"policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","initials":"E","first_name":"Erlich","middle_name":"Aviato","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"19680101","gender":"male","email":"erlich@aviato.com","cellphone":"+27821234567","phone_other":"+27124101337","created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"policy_ids":[],"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}}},"policyholders":{"type":"array","items":{"$ref":"#/components/schemas/policyholder"}},"quote-package":{"type":"object","description":"Quote packages are designed to be low-fidelity and fast to generate,  and are used to generate and display new quotes rapidly on a customer-facing front-end.  They expire after one week. <br/><br/> See the [issing policies](https://docs.rootplatform.com/docs/policy-issuing) guide  and the [quote hook](https://docs.rootplatform.com/docs/quote-hook) guide for more details.","required":["quote_package_id","package_name","sum_assured","base_premium","suggested_premium","module","created_at","currency","billing_frequency","product_module_definition_id"],"properties":{"quote_package_id":{"type":"string","description":"Must be a UUID. Unique identifier of the quote package."},"package_name":{"type":"string","description":"The package name."},"sum_assured":{"type":"integer","description":"The maximum insured value in cents."},"base_premium":{"type":"integer","description":"The combined risk and platform fee in cents. `monthly_premium` should be calculated from this."},"suggested_premium":{"type":"integer","description":"The suggested `monthly_premium` amount in cents. This is the total premium for display to the customer."},"module":{"type":"object","description":"Custom, product-specific information saved to the quote for later reference.  These parameters are set in the [quote hook](https://docs.rootplatform.com/docs/quote-hook) in the product module code.","additionalProperties":true},"restricted_data":{"type":"object","description":"Optional restricted product-specific information saved to the quote. This field is only returned when the requestee has access to restricted quote module data.","additionalProperties":true},"input_data":{"type":"object","description":"Quote input parameters as received over the [create a quote](https://docs.rootplatform.com/reference/getting-a-quote-2) endpoint.","additionalProperties":true},"created_at":{"type":"string","format":"date-time","description":"The date/time at which the quote package was created."},"currency":{"type":"string","description":"The currency used for the quote package, in [ISO 4217] (https://en.wikipedia.org/wiki/ISO_4217) format."},"billing_frequency":{"type":"string","enum":["monthly","yearly","once_off"],"description":"The frequency at which the policy will be billed. See the [billing settings](https://docs.rootplatform.com/docs/billing-settings#billing-frequency) guide for more details on the billing frequency."},"product_module_definition_id":{"type":"string","description":"Must be a UUID. Unique identifier of the product module definition associated with this quote package. If a policy is issued from this quote, this product module definition will be associated with the policy."}},"example":{"quote_package_id":"3822b8fb-43e7-43f7-94ad-63e94e6ce1e3","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"suggested_premium":18749,"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"},"restricted_data":{"internal_commission_bps":2500},"created_at":"2023-02-03T11:17:09.747Z","currency":"ZAR","billing_frequency":"monthly","product_module_definition_id":"4889a9e0-d5f9-4971-8ac2-2175a9d15477"}},"quote-packages":{"type":"array","items":{"$ref":"#/components/schemas/quote-package"}},"s3-adapter":{"type":"object","required":["type","region","bucket_name","secret_access_key","access_key_id"],"properties":{"type":{"type":"string","description":"The type of adapter. In this case, `s3`."},"region":{"type":"string","description":"The S3 bucket region."},"bucket_name":{"type":"string","description":"The name of the S3 bucket."},"bucket_path":{"type":"string","description":"The path of the S3 bucket to store the resulting export to, with a trailing slash. This is used to generate a bucket key e.g. `folder/subfolder/`."},"secret_access_key":{"type":"string","description":"An AWS secret access key with permission to read from and write to the bucket."},"access_key_id":{"type":"string","description":"An AWS access key ID with permission to read from and write to the bucket."}}},"scheduled-data-export":{"type":"object","required":["scheduled_data_export_id","environment","created_at","created_by","status","name","frequency","adapter","export_type","data_range"],"properties":{"scheduled_data_export_id":{"type":"string","description":"Must be a UUID. The unique identifier of the scheduled data export."},"environment":{"type":"string","description":"The dataset used by the scheduled data export. Either `sandbox` or `production`."},"created_at":{"type":"string","format":"date-time","description":"The time at which the scheduled data export was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the scheduled data export. See [Authentication](#client-apps)."},"status":{"type":"string","description":"The current status of the scheduled data export. One of `active`, `paused`, or `archived`."},"name":{"type":"string","description":"The name of the scheduled data export."},"frequency":{"type":"object","description":"The frequency at which the scheduled data export runs. See below for more details.","oneOf":[{"$ref":"#/components/schemas/daily-frequency"},{"$ref":"#/components/schemas/weekly-frequency"},{"$ref":"#/components/schemas/monthly-frequency"}]},"adapter":{"type":"object","description":"The adapter used to send the export once it's compiled. See below for more details.","oneOf":[{"$ref":"#/components/schemas/sftp-adapter"},{"$ref":"#/components/schemas/https-adapter"},{"$ref":"#/components/schemas/s3-adapter"}]},"export_type":{"type":"string","description":"The type of scheduled data export. Only `policy_export` is currently supported."},"data_range":{"type":"string","description":"The range used to capture data for the export. One of `today`, `week_to_date`, `month_to_date`, `since_last_run`, or `full`."},"latest_run":{"type":["object","null"],"description":"The latest run for the scheduled data export, if one exists. See below for more details."}},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}},"scheduled-data-exports":{"type":"array","items":{"$ref":"#/components/schemas/scheduled-data-export"}},"sftp-adapter":{"type":"object","required":["type","host","path"],"properties":{"type":{"type":"string","description":"The type of adapter. In this case, `sftp`."},"host":{"type":"string","description":"The SFTP IP address or hostname."},"port":{"type":"number","description":"The port number to connect to on the host. Defaults to `22` if not provided."},"path":{"type":"string","description":"The path on the server to store the resulting export in."},"username":{"type":"string","description":"The username to use when authenticating on the SFTP server. Defaults to anonymous authentication if not provided."},"password":{"type":"string","description":"The password to use when authenticating on the SFTP server. Defaults to anonymous authentication if not provided."}}},"webhook":{"type":"object","required":["webhook_id","name","secret","url","subscriptions","environment","created_at","updated_at"],"properties":{"webhook_id":{"type":"string","description":"The unique identifier of the webhook."},"organization_id":{"type":"string","description":"The unique identifier of the organization the webhook belongs to."},"environment":{"type":"string","description":"The environment associated with the webhook.","enum":["sandbox","production"]},"name":{"type":"string","description":"The webhook name."},"description":{"type":"string","description":"An optional description for the webhook."},"secret":{"type":"string","description":"The auto-generated webhook secret, used to verify the payload (see the [introduction](ref:webhooks) for more details)."},"verification_token":{"type":"string","description":"An optional token to set on the webhook, used as an additional verification step for the payload (see the [introduction](ref:webhooks) for more details)."},"url":{"type":"string","description":"The URL that the webhook will `POST` payloads to."},"subscriptions":{"$ref":"#/components/schemas/webhook-subscription-events"},"priority":{"type":"integer","description":"The priority of the webhook. Attempts for a webhook with lower value will be prioritized over a higher value."},"enabled":{"type":"boolean","description":"Whether the webhook is enabled or not. If `false`, all queue events are marked as `failed` without being attempted."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the webhook was created."},"updated_at":{"type":"string","format":"date-time","description":"The timestamp when the webhook was last updated."},"user_group_id":{"type":"string","format":"uuid","description":"The unique identifier of the user group associated with the webhook. When set, only events from entities belonging to this user group will trigger the webhook."}},"example":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","organization_id":"3f4b2899-7957-464b-a609-49939039cd49","name":"Example webhook","description":"A webhook for receiving various events","secret":"B3a8y1WotX7glI7OxZhX5EAd_6UJ7YEvTJBNQzano4dHjntn9_5AlyPg-dzpX76A","enabled":true,"verification_token":"459106913AF9","url":"http://your.url.here","subscriptions":["policyholder_created"]}},"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/webhook"}},"webhook-queue-event":{"type":"object","required":["webhook_queue_event_id","organization_id","environment","webhook_id","created_at","status","url","subscription","attempts_count"],"properties":{"webhook_queue_event_id":{"type":"string","description":"The identifier of the webhook queue event."},"organization_id":{"type":"string","description":"The identifier of the organization."},"environment":{"type":"string","description":"The environment in which the queue event occurred.","enum":["production","sandbox"]},"webhook_id":{"type":"string","description":"The identifier of the webhook associated with this queue event."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the webhook queue event was created."},"status":{"type":"string","description":"The current status of the webhook queue event.","enum":["queued","successful","failed"]},"subscription":{"description":"The subscription event type for this webhook queue event.","$ref":"#/components/schemas/webhook-subscription-event"},"url":{"type":"string","description":"The URL to which the webhook queue event will be sent via `POST`."},"attempts_count":{"type":"integer","description":"The number of attempts made to process this webhook queue event."},"body":{"type":"object","description":"The payload body of the webhook queue event.","properties":{"webhook_id":{"type":"string","description":"The unique ID of the webhook."},"event":{"type":"object","description":"The event data - see [webhook subscriptions](ref:webhooks#available-subscriptions) for available event types."},"verification_token":{"type":"string","description":"An optional verification token as provided during creating a webhook."},"environment":{"type":"string","enum":["sandbox","production"],"description":"The dataset used by the webhook. Either sandbox or production."}},"required":["webhook_id","event","environment"]},"last_attempt_at":{"type":"string","format":"date-time","description":"The timestamp of the last attempt to process this webhook queue event."},"last_response_code":{"type":"integer","description":"The HTTP response code from the last attempt to process this webhook queue event."},"last_response_time_millis":{"type":"integer","description":"The response time of the last attempt to send the webhook queue event to the URL in milliseconds."}},"example":{"webhook_queue_event_id":"123e4567-e89b-12d3-a456-426614174000","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","environment":"production","webhook_id":"274b2899-7957-464b-a609-49939039cd49","created_at":"2023-04-01T12:00:00Z","status":"queued","subscription":"policy_issued","attempts_count":1,"last_attempt_at":"2023-04-01T12:00:02Z","last_response_code":500,"last_response_time_millis":123,"body":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","event":{"type":"policy_issued","policy_id":"abc123"},"verification_token":"optional_token_123","environment":"production"},"url":"http://yoururlhere.com"}},"webhook-subscription-event":{"type":"string","description":"The key identifying the subscription event.","enum":["policy_issued","policy_cancelled","policy_cancel_failed","policy_activated","policy_lapsed","policy_not_taken_up","policy_expired","policy_lapse_failed","policy_updated","policy_reactivated","policy_requoted","policy_beneficiaries_updated","policy_covered_people_updated","policyholder_created","policyholder_updated","quote_package_created","application_created","application_updated","claim_opened","claim_sent_to_review","claim_approved","claim_repudiated","claim_paid_out","claim_linked_to_policy","claim_approval_acknowledged","claim_goodwill_acknowledged","claim_no_claim_acknowledged","claim_repudiation_acknowledged","text_note_created","attachment_archived","claim_checklist_item_checked","attachment_created","claim_fulfilled","claim_fulfillment_requested","claim_checklist_item_note_created","claim_approval_not_acknowledged","claim_goodwill_not_acknowledged","claim_no_claim_not_acknowledged","claim_repudiation_not_acknowledged","claim_goodwill","claim_no_claim","claim_reopened","claim_updated","claimant_updated","complaint_opened","notification_created","notification_sent","payment_failed","payment_succeeded","payment_reversed","payment_updates_succeeded","payment_updates_failed","payment_method_assigned","policy_alteration_package_applied"]},"webhook-subscription-events":{"type":"array","description":"An array of events that this webhook should subscribe to. If you want to  subscribe to an event not listed here, please submit an idea on  our [product roadmap portal](https://portal.productboard.com/root-platform/) describing your use case.","items":{"$ref":"#/components/schemas/webhook-subscription-event"}},"weekly-frequency":{"type":"object","required":["time_of_day","day_of_week"],"properties":{"time_of_day":{"type":"string","description":"The time of day to run the export, in `HH:mm` format."},"day_of_week":{"type":"string","description":"The day of week to run the export. One of `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, `saturday`, or `sunday`."}}},"cellphone":{"type":["object","null"],"description":"`null` and `\"\"` allowed. Object containing the cellphone number in national format, and the corresponding alpha 2 country code.","properties":{"number":{"type":"string","description":"The cellphone number."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the country of the cellphone number."}},"required":["number","country"],"example":{"number":"0821234567","country":"ZA"}},"cellphone-string":{"type":["string","null"],"description":"`null` and `\"\"` allowed. String containing the cellphone number in international format.","example":"+27821234567"},"beneficiaries-request":{"type":"array","description":"`null` is allowed. An array of beneficiaries. If null, the default beneficiary may be the policyholder if enabled in the product module settings. Some modules may require adding beneficiaries to a policy for claims to be processed.","items":{"type":"object","required":["first_name","last_name","percentage","relationship"],"properties":{"type":{"type":"string","description":"The type of beneficiary to be created.","enum":["individual","company"],"default":"individual"},"first_name":{"type":"string","description":"The beneficiary's first name."},"last_name":{"type":"string","description":"The beneficiary's last name."},"title":{"type":"string","description":"The beneficiary's title.","enum":["mr","mrs","miss","mx","sir","dr","adv","ms","prof"]},"gender":{"type":"string","description":"The beneficiary's gender.","enum":["male","female"]},"id":{"type":"object","description":"(Individual beneficiaries only) Object containing beneficiary's identification number, type and country.","properties":{"type":{"type":"string","description":"The beneficiary's identification type.","enum":["id","passport","custom"]},"number":{"type":"string","description":"Depending on the type selected, either an ID number, passport number or custom identifier."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the `number`."}},"required":["type","number","country"]},"date_of_birth":{"type":["string","null"],"format":"date","description":"`null` is allowed. An optional string containing the beneficiary's date of birth."},"percentage":{"type":"integer","description":"An integer representing the percentage of a claim payout that the beneficiary should receive. Note that the percentages across all beneficiaries should add up to 100%."},"cellphone":{"oneOf":[{"$ref":"#/components/schemas/cellphone"},{"$ref":"#/components/schemas/cellphone-string"}]},"email":{"type":"string","description":"The beneficiary's email address."},"relationship":{"$ref":"#/components/schemas/beneficiary-relationship"},"company_name":{"type":"string","description":"The name of the company that the beneficiary represents. Required when `type = company`."},"registration_number":{"type":"string","description":"The company's registration number. Required when `type = company`."},"payment_details":{"$ref":"#/components/schemas/payment-details"},"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of an existing policyholder to link as a beneficiary."},"address":{"type":"object","description":"The beneficiary's physical address.","properties":{"line_1":{"type":"string","description":"First line of the beneficiary's address."},"line_2":{"type":["string","null"],"description":"`null` is allowed. Optional second line of the beneficiary's address."},"suburb":{"type":"string","description":"The beneficiary's suburb."},"city":{"type":"string","description":"The beneficiary's city."},"country":{"type":"string","description":"The beneficiary's country code, in the [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) format."},"area_code":{"type":"string","description":"The beneficiary's area code."}},"required":["line_1","city","country","area_code"]}},"example":{"first_name":"Jared","last_name":"Dunn","id":{"type":"id","number":"8704094800082","country":"ZA"},"percentage":100,"relationship":"cousin_or_relative","payment_details":{"type":"eft","details":{"bank_name":"absa","branch_code":"632005","account_number":"23234342424","account_type":"cheque_account"}}}},"example":[{"first_name":"Mary","last_name":"Yang","percentage":90,"title":"mrs","gender":"female","id":{"type":"id","number":"9504014800082","country":"ZA"},"email":"mary@piedpiper.com","relationship":"spouse","cellphone":"+27821234567","payment_details":{"type":"eft","details":{"account_number":"01304055557","account_type":"cheque_account","bank_name":"nedbank","branch_code":"20177778"}},"type":"individual"},{"first_name":"Erlich","last_name":"Aviatio","percentage":10,"title":"mr","email":"erlich@aviatio.com","relationship":"other","cellphone":"+27783456578","payment_details":{"type":"eft","details":{"account_number":"546767819","account_type":"cheque_account","bank_name":"investec","branch_code":"201507"}},"company_name":"Pied Piper","registration_number":"CC1234","type":"company"}]},"beneficiaries":{"type":"array","description":"`null` is allowed. An array of beneficiaries. If null, the default beneficiary may be the policyholder if enabled in the product module settings. Some product modules may require adding beneficiaries to a policy for claims to be processed.","items":{"type":"object","description":"Details for a single beneficiary.","required":["beneficiary_id","relationship","percentage"],"properties":{"beneficiary_id":{"type":"string","description":"Must be a UUID. The unique identifier of the beneficiary."},"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of the policyholder. Only relevant if `relationship` is `policyholder`."},"type":{"type":"string","description":"The type of beneficiary.","enum":["individual","company"],"default":"individual"},"first_name":{"type":"string","description":"The beneficiary's first name."},"last_name":{"type":"string","description":"The beneficiary's last name."},"title":{"type":"string","description":"The beneficiary's title.","enum":["mr","mrs","miss","mx","sir","dr","adv","ms","prof"]},"gender":{"type":"string","description":"The beneficiary's gender.","enum":["male","female"]},"id":{"type":"object","description":"(Individual beneficiaries only) The beneficiary's identification number, type and country.","properties":{"type":{"type":"string","description":"The beneficiary's identification type.","enum":["id","passport","custom"]},"number":{"type":"string","description":"Depending on the type selected, either an ID number, passport number or custom identifier."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the `number`."}},"required":["type","number","country"]},"date_of_birth":{"type":["string","null"],"format":"date","description":"`null` is allowed. The beneficiary's date of birth."},"percentage":{"type":"integer","description":"An integer representing the percentage of a claim payout that the beneficiary should receive. Note that the percentages across all beneficiaries should add up to 100%."},"cellphone":{"$ref":"#/components/schemas/cellphone-string"},"email":{"type":"string","description":"The beneficiary's email address."},"relationship":{"$ref":"#/components/schemas/beneficiary-relationship"},"company_name":{"type":"string","description":"The name of the company that the beneficiary represents. Required when `type = company`."},"registration_number":{"type":"string","description":"The company's registration number. Required when `type = company`."},"payment_details":{"$ref":"#/components/schemas/payment-details"}},"example":{"first_name":"Jared","last_name":"Dunn","id":{"type":"id","number":"8704094800082","country":"ZA"},"percentage":100,"relationship":"cousin_or_relative"}},"example":[{"first_name":"Jared","last_name":"Dunn","id":{"type":"id","number":"8704094800082","country":"ZA"},"percentage":100,"relationship":"cousin_or_relative"}]},"policyholder-request":{"type":"object","required":["id","first_name","last_name","company_name","registration_number"],"properties":{"type":{"type":"string","description":"The policyholder type.","enum":["individual","company"]},"id":{"type":"object","description":"(Individual policyholders only) Object containing policyholder's identification information.","properties":{"type":{"type":"string","description":"The id type of the policyholder.","enum":["id","passport","email","cellphone","custom"]},"number":{"type":"string","description":"Depending on the `type` selected, either an ID number, passport number, email address, cellphone number or custom identifier."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the `number`."},"expiration_date":{"type":"string","format":"date-time","description":"(Individual policyholders only) The expiration date of the policyholder's passport or custom identifier."}},"required":["type","number","country"]},"date_of_birth":{"type":"string","description":"(Individual policyholders only) The policyholder's date of birth in the format YYYYMMDD. Forbidden if `id.type` is \"id\" and `id.country` is \"ZA\"."},"gender":{"type":["string","null"],"description":"(Individual policyholders only) The gender of the policyholder.","enum":["male","female"]},"initials":{"type":"string","description":"Policyholder or primary contact's initials."},"title":{"type":"string","description":"The policyholders's title.","enum":["mr","mrs","miss","mx","sir","dr","adv","ms","prof"]},"first_name":{"type":"string","description":"Policyholder or primary contact's legal first name."},"middle_name":{"type":"string","description":"The policyholder or primary contact's legal middle name."},"last_name":{"type":"string","description":"Policyholder or primary contact's legal last name."},"email":{"type":["string","null"],"description":"`null` is allowed. Policyholder or primary contact's contact email address."},"cellphone":{"oneOf":[{"$ref":"#/components/schemas/cellphone"},{"$ref":"#/components/schemas/cellphone-string"}]},"phone_other":{"oneOf":[{"$ref":"#/components/schemas/cellphone"},{"$ref":"#/components/schemas/cellphone-string"}]},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policyholder.","additionalProperties":true},"company_name":{"type":"string","description":"The name of the company that the policyholder represents. Only required when `type = company`."},"registration_number":{"type":"string","description":"The company's registration number. Only required when `type = company`."},"date_of_establishment":{"type":"string","description":"(Company policyholders only) The company's date of establishment in the format YYYYMMDD. Required when `type = company`."},"company_website_url":{"type":"string","description":"(Company policyholders only) The company's website URL. Required when `type = company`."},"subsidiary_companies":{"type":"array","items":{"type":"string"},"description":"(Company policyholders only) An array of subsidiary company names. Required when `type = company`."},"contact_position":{"type":"string","description":"(Company policyholders only) The position or role of the primary contact at the company. Required when `type = company`."},"address":{"type":["object","null"],"description":"`null` is allowed. The policyholder's physical address. See below for more details.","properties":{"line_1":{"type":"string","description":"First line of the policyholder's address."},"line_2":{"type":["string","null"],"description":"`null` is allowed. Optional second line of the policyholder's address."},"suburb":{"type":"string","description":"The policyholder's suburb."},"city":{"type":"string","description":"The policyholder's city."},"country":{"type":"string","description":"The policyholder's country code, in the [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) format."},"area_code":{"type":"string","description":"The policyholder's area code, must be 4 characters long when the policyholder's country code is ZA."}},"required":["line_1","city","country","area_code"]}},"example":{"id":{"type":"id","number":"6801015800084","country":"ZA"},"initials":"E","first_name":"Erlich","middle_name":"Aviato","last_name":"Bachman","email":"erlich@avaito.com","cellphone":"+27821234567","phone_other":"+27124101337","app_data":{"company":"Aviato"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}},"bank-name":{"type":"string","description":"The name of the bank","enum":["absa","access","african_bank","al_baraka","bank_of_china","bank_of_lisbon","bank_zero","bidvest","bidvest_bank_alliances","capitec","discovery_bank","finbond_mutual","fnb","hbz","investec","ithala","mercantile","nedbank","old_mutual","postbank","sasfin","standard_bank","sure","tyme_bank","ubank","vbc_mutual_bank","wizzit"]},"payment-details":{"type":"object","description":"Details of the account into which the payout should be made.","required":["type","details"],"properties":{"type":{"type":"string","description":"The type of account into which the payout should be made.  For a beneficiary, this must be `eft`.","enum":["eft","card"]},"details":{"type":"object","description":"The bank account details.","required":["bank_name","branch_code","account_type","account_number"],"properties":{"bank_name":{"$ref":"#/components/schemas/bank-name"},"branch_code":{"type":"string","description":"The branch code for the account."},"account_type":{"type":"string","description":"The account type.","enum":["cheque_account","savings"]},"account_number":{"type":"string","description":"The account number."}}}}},"beneficiary-relationship":{"type":"string","description":"The beneficiary's relationship to the policyholder.","enum":["main_member","spouse","parent","son","daughter","aunt_or_uncle","grandparent","cousin_or_relative","brother","sister","employer","policyholder","credit_provider","cessionary","estate","trust","guardian_fund","funeral_parlour","son_in_law","daughter_in_law","mother_in_law","father_in_law","grandchild","niece_or_nephew","other"]},"payment-method":{"type":"object","required":["payment_method_id","type","created_at","organization_id","policyholder_id"],"properties":{"payment_method_id":{"type":"string","description":"Must be a UUID. The Unique identifier for the payment method."},"type":{"type":"string","description":"The payment method type. Except for external payment methods, must be one of `debit_order`, `card`, `eft`, `collection_module`. For external payment methods, will correspond to the custom `key` field."},"created_at":{"type":"string","format":"date-time","description":"The date and time at which the payment method was created."},"updated_at":{"type":"string","format":"date-time","description":"The date and time at which the payment method was last updated."},"organization_id":{"type":"string","description":"Must be a UUID. The unique identifier of the related organisation."},"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of the policyholder the payment method is linked to."},"policyholder":{"$ref":"#/components/schemas/policyholder","description":"The policyholder object linked to the payment method. Only included when `?include=policyholder` is specified."},"policies":{"type":"array","items":{"$ref":"#/components/schemas/policy"},"description":"An array of policy objects linked to the payment method. Only included when `?include=policies` is specified."},"bank_details":{"type":"object","description":"Required if `type` is `debit_order`. Bank details for the debit order.","required":["account_holder","bank","branch_code","account_number","account_type"],"properties":{"account_holder":{"type":"string","description":"Name of account holder."},"account_holder_identification":{"type":["object","null"],"description":"`null` is allowed. An object containing the identification details of the account holder.","required":["type","number","country"],"properties":{"type":{"type":"string","description":"The type of identity document.","enum":["id","passport"]},"number":{"type":"string","description":"The identity document number."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the country of the identification document."},"expiration_date":{"type":"string","format":"date-time","description":"The expiration date of the lead's passport."}}},"bank":{"$ref":"#/components/schemas/bank-name"},"branch_code":{"type":"string","description":"Branch code for bank account."},"account_number":{"type":"string","description":"Bank account number."},"account_type":{"type":"string","description":"Bank account type.","enum":["cheque","savings"]},"banv_status":{"type":"string","description":"The [bank account verification status](doc:account-verification-banvavs#reporting-on-payment-methods).","enum":["pending","processing","verified","failed_verification","blocked"]},"blocked_reason":{"type":["string","null"],"description":"The reason the payment method is blocked. Only relevant if `banv_status` is `blocked`."},"banv_response":{"type":["string","null"],"description":"The response received when bank account verification was attempted."},"payment_method_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment method."}}},"card":{"type":"object","description":"Details of the payment card. Required if `type` is `card`.","required":["bin","holder","brand","expiry_month","expiry_year","last_4_digits"],"properties":{"bin":{"type":"string","description":"The bank identification number."},"holder":{"type":"string","description":"The name of the cardholder."},"brand":{"type":"string","description":"The brand of the card."},"expiry_month":{"type":"string","description":"The month of the card's exiry date."},"expiry_year":{"type":"string","description":"The year of the card's exiry date."},"last_4_digits":{"type":"string","description":"The last four digits of the card number."},"registration":{"type":"string","description":"The registration ID of the card."}}},"external_reference":{"type":"string","description":"The external identifier of the payment method. Required if `type` is `external`."},"banv_status":{"type":"string","description":"The [bank account verification status](doc:account-verification-banvavs#reporting-on-payment-methods). Only relevant if `type` is `external`.","enum":["pending","processing","verified","failed_verification","blocked"]},"blocked_reason":{"type":"string","description":"The reason the payment method is blocked. Only relevant if `banv_status` is `blocked` and `type` is `external`."},"collection_module_definition_id":{"type":"string","description":"The unique identifier of the collection module definition that the payment method is linked to. Only relevant if `type` is `collection_module`."},"collection_module_key":{"type":"string","description":"The key of the collection module that the payment method is linked to. Only relevant if `type` is `collection_module`."},"module":{"type":"object","description":"Custom module-specific data for collection module payment methods. Only relevant if `type` is `collection_module`.","additionalProperties":true},"collection_module":{"type":"object","description":"The collection module object linked to the payment method. Only included when `?include=collection_module` is specified and `type` is `collection_module`.","additionalProperties":true},"updated_by":{"type":"object","description":"An object indicating the user or API key that last updated the payment method. Only relevant if `type` is `collection_module`."}},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","policyholder_id":"f91f4ea4-9c6d-459e-998b-a5711cbd8895","created_at":"2021-01-29T13:12:00.968Z","updated_at":"2021-01-29T13:12:00.968Z","bank_details":{"account_holder":"Erlich Bachman","bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque","banv_status":"pending"}}},"secret-keys":{"type":"object","required":["type","key","created_at","created_by","updated_at","updated_by"],"properties":{"secret_key_id":{"type":"string","description":"Must be a UUID. The unique identifier of the secret key."},"organization_id":{"type":"string","description":"The identifier of the organization."},"environment":{"type":"string","description":"The environment associated with the secret key."},"description":{"type":"string","description":"A description of the secret key."},"type":{"type":"string","description":"This field uniquely identifies the secret key.\n"},"key":{"type":"string","description":"The encrypted value of the secret key."},"created_at":{"type":"string","format":"date-time","description":"Time at which the secret key was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the secret key.","properties":{"id":{"type":"string","description":"The identifier of the creator."},"type":{"type":"string","description":"The type of the creator (e.g., user, API)."}}},"updated_at":{"type":"string","format":"date-time","description":"Time at which the secret key was last updated."},"updated_by":{"type":"object","description":"An object indicating the user or API key that last updated the secret key.","properties":{"id":{"type":"string","description":"The identifier of the updater."},"type":{"type":"string","description":"The type of the updater (e.g., user, API)."}}}},"example":{"organization_id":"4ce6ad99-9576-4d28-84ba-c30d2d536cbe","secret_key_id":"43c13dc8-2c19-402c-bb70-a7deb56b9f38","type":"test","key":"your_api_key_value","description":"API Key for Integration X","created_at":"2023-01-10T12:34:56.789Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"updated_at":"2023-01-10T12:34:56.789Z","updated_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}},"secret-keys-list":{"type":"array","items":{"$ref":"#/components/schemas/secret-keys"}}},"parameters":{"fulfillment_request_id":{"name":"fulfillment_request_id","in":"path","description":"Must be a UUID. The unique identifier of the fulfillment request.","required":true,"schema":{"type":"string","example":"f84b3856-1358-4e12-bcf6-6732bc8b9522"}},"webhook_id":{"name":"webhook_id","in":"path","description":"The unique identifier of the [webhook](ref:webhook).","required":true,"schema":{"type":"string","example":"274b2899-7957-464b-a609-49939039cd49"}},"data_store_key":{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}},"page_size":{"name":"page_size","in":"query","description":"The maximum number of items that will be contained in a single page, between 1 and 100 (inclusive).","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"example":30,"default":30}},"page":{"name":"page","in":"query","description":"The page number of the entities to fetch. Must be a minimum of 1.","required":false,"schema":{"type":"integer","minimum":1,"example":1,"default":1}},"idempotency":{"name":"idempotency_key","in":"query","description":"To perform an idempotent request, provide the `idempotency_key` query parameter with the request. An idempotency key is a unique value generated by the client which the platform uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using a V4 UUID, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.","required":false,"schema":{"type":"string","example":"96e06845-6d37-4dca-8859-9d8ed27dcf58"}},"webhook_queue_event_status":{"name":"status","in":"query","description":"Filter queue events by status.","schema":{"type":"string","enum":["queued","successful","failed"]}},"webhook_queue_event_subscriptions":{"name":"subscriptions","in":"query","description":"Filter queue events by subscription (comma-separated list).","schema":{"type":"string"},"example":"policy_issued,claim_opened,complaint_opened"},"webhook_queue_event_from":{"name":"from","in":"query","description":"Filter for queue events created on or after this time (ISO 8601 format).","schema":{"type":"string","format":"date-time"}},"webhook_queue_event_to":{"name":"to","in":"query","description":"Filter for queue events created on or before this time (ISO 8601 format).","schema":{"type":"string","format":"date-time"}}},"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}}},"paths":{"/applications":{"post":{"operationId":"create-application","summary":"Create an application","description":"**Note:** Additional custom fields may be required depending on how the [application hook](https://docs.rootplatform.com/docs/application-hook) is configured for the product module.","tags":["Applications"],"x-additional-tags":["Create"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["quote_package_id","policyholder_id","billing_day"],"properties":{"quote_package_id":{"type":"string","description":"Must be a UUID. Unique identifier of quote package retrieved in [quote generation](ref:getting-a-quote-2)."},"policyholder_id":{"type":"string","description":"Must be a UUID. Unique identifier of the [policyholder](ref:policyholder) that is applying."},"billing_day":{"type":"integer","description":"The day of month on which the policy to write will be billed on. Should be between 1 and 31. If it falls on a day that does not exist in the month (for example, 31 in February) the policy to be written will be billed on the last day of that month. Setting this value to 31 will ensure that the policy to be written will be billed on the last day of every month.","minimum":1,"maximum":31},"monthly_premium":{"type":["number","null"],"description":"`null` is allowed. The monthly premium amount in cents. Minimum value is 0.","minimum":0},"type":{"type":"string","description":"The type of the application. One of `requote` or `new_policy`.","enum":["requote","new_policy"]},"user_group_id":{"type":["string","null"],"description":"`null` is allowed. Must be a UUID. The unique identifier of the user group to assign this application to."}},"additionalProperties":true,"example":{"quote_package_id":"f4551b91-3e3e-4acc-915b-82e1b163cef8","policyholder_id":"00000000-0000-0000-0000-000000000009","billing_day":1,"serial_number":"1234567890"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application"}}}}}},"get":{"operationId":"fetch-applications","summary":"List all applications","tags":["Applications"],"x-additional-tags":["Retrieve"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"search","in":"query","description":"A space seperated list of matching words to search for. e.g. \"richard@aviato.com\"","required":false,"schema":{"type":"string"},"example":"richard@aviato.com"},{"name":"status","in":"query","description":"A comma seperated list of statuses. eg. \"pending,issued\"","required":false,"schema":{"type":"string"},"example":"pending"},{"name":"created_by","in":"query","description":"A valid UUID of the user that created the application.","required":false,"schema":{"type":"string"},"example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"},{"name":"user_group_id","in":"query","description":"A valid UUID of the user group that created the application.","required":false,"schema":{"type":"string"},"example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"},{"name":"created_by_type","in":"query","description":"A semi-colon seperated list of the requestee types. e.g. api_key, user, legacy_api_key, legacy_user_api_key, system, product_module or embed_jwt","required":false,"schema":{"type":"string"}},{"name":"include","in":"query","description":"An optional semicolon-separated list of underlying objects to include, e.g. `?include=policy;policyholder`. Valid options are 'policy', 'policyholder' and 'quote_package'","required":false,"schema":{"type":"string"},"example":"policyholder"},{"name":"product_module_id","in":"query","description":"A valid UUID of the product module to filter applications by.","required":false,"schema":{"type":"string"},"example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/applications"}}}}}}},"/applications/{application_id}":{"get":{"operationId":"retrieve-an-application","summary":"Retrieve an application","tags":["Applications"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string"},"example":"40fb4335-55b2-4f20-951a-cc41097cb213"},{"name":"include","in":"query","description":"An optional semicolon-separated list of underlying objects to include, e.g. `?include=policy;policyholder`. Valid options are 'policy', 'policyholder' and 'quote_package'","required":false,"schema":{"type":"string"},"example":"policyholder"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application"},"example":{"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Theft + comprehensive","sum_assured":1199900,"monthly_premium":50000,"base_premium":14999,"billing_day":1,"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"created_at":"2017-10-12T15:47:34.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}},"put":{"operationId":"requote-application","summary":"Requote an application","description":"Note that additional fields may be required based on the product module type being used. See [product modules](doc:product-modules-overview) for more details.","tags":["Applications"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"quote_package_id":{"type":"string","description":"Must be a UUID. Unique identifier of quote package retrieved in [quote generation](ref:getting-a-quote-2)."},"monthly_premium":{"type":["number","null"],"description":"`null` is allowed. Premium amount, in cents, to write on policy. This can't be changed, only discounted by changing the `billing_amount`. This must be more than the `base_premium`. Minimum value is 0.","minimum":0},"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder)."},"billing_day":{"type":"integer","description":"The day of month on which the policy to write will be billed on. Should be between 1 and 31.","minimum":1,"maximum":31}},"additionalProperties":true,"example":{"monthly_premium":50000,"quote_package_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","billing_day":1,"serial_number":"1234567890"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application"},"example":{"application_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Theft + comprehensive","sum_assured":1199900,"monthly_premium":50000,"base_premium":14999,"billing_day":1,"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"created_at":"2017-10-05T18:28:30.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/applications/{application_id}/alteration-packages":{"post":{"operationId":"create-application-alteration-package","summary":"Create an application alteration package","tags":["Applications"],"x-additional-tags":["Alteration packages"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","data"],"properties":{"key":{"type":"string","description":"The identifier of the application alteration hook."},"data":{"type":"object","description":"Custom module-specific fields stored against the application alteration package. See [product modules](doc:product-modules-overview) for more details.","additionalProperties":true}},"example":{"key":"update_cover_amount","data":{"cover_amount":25000000,"spouse_cover":true}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-alteration-packages"},"example":[{"alteration_package_application_id":"2d200d5c-477c-4c90-b305-e8f445f4d8e5","organization_id":"00000000-0000-0000-0000-000000000001","created_at":"2026-01-28T09:17:05.101Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"module":{"package_name":"Funeral Cover","suggested_premium":17500,"base_premium":16000,"cover_amount":25000000},"monthly_premium":17500,"currency":"ZAR","sum_assured":25000000,"billing_frequency":"monthly","status":"pending","change_description":"Updating cover amount before issuing policy","input_data":{"cover_amount":25000000,"spouse_cover":true},"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","alteration_hook_key":"update_cover_amount"}]}}}}}},"/applications/{application_id}/alteration-packages/{alteration_package_id}":{"get":{"operationId":"retrieve-application-alteration-package","summary":"Retrieve an application alteration package","tags":["Applications"],"x-additional-tags":["Alteration packages"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"alteration_package_id","in":"path","description":"Must be a UUID. The unique identifier of the application alteration package.","required":true,"schema":{"type":"string","example":"2d200d5c-477c-4c90-b305-e8f445f4d8e5"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-alteration-package"},"example":{"alteration_package_application_id":"2d200d5c-477c-4c90-b305-e8f445f4d8e5","organization_id":"00000000-0000-0000-0000-000000000001","created_at":"2026-01-28T09:17:05.101Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"module":{"package_name":"Funeral Cover","suggested_premium":17500,"base_premium":16000,"cover_amount":25000000},"monthly_premium":17500,"currency":"ZAR","sum_assured":25000000,"billing_frequency":"monthly","status":"pending","change_description":"Updating cover amount before issuing policy","input_data":{"cover_amount":25000000,"spouse_cover":true},"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","alteration_hook_key":"update_cover_amount"}}}}}}},"/applications/{application_id}/alteration-packages/{alteration_package_id}/apply":{"post":{"operationId":"apply-application-alteration-package","summary":"Apply application alteration package","tags":["Applications"],"x-additional-tags":["Alteration packages"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"alteration_package_id","in":"path","description":"Must be a UUID. The ID of the application alteration package to apply to the application.","required":true,"schema":{"type":"string","example":"2d200d5c-477c-4c90-b305-e8f445f4d8e5"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-alteration-package"},"example":{"alteration_package_application_id":"2d200d5c-477c-4c90-b305-e8f445f4d8e5","organization_id":"00000000-0000-0000-0000-000000000001","created_at":"2026-01-28T09:17:05.101Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"module":{"package_name":"Funeral Cover","suggested_premium":17500,"base_premium":16000,"cover_amount":25000000},"monthly_premium":17500,"currency":"ZAR","sum_assured":25000000,"billing_frequency":"monthly","status":"applied","change_description":"Updating cover amount before issuing policy","input_data":{"cover_amount":25000000,"spouse_cover":true},"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","alteration_hook_key":"update_cover_amount"}}}}}}},"/applications/{application_id}/attachments":{"get":{"operationId":"retrieve-application-attachments","summary":"Retrieve application attachments","tags":["Applications"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"An object providing details regarding the file attached.","properties":{"attachment_id":{"type":"string","description":"Must be a UUID. Unique identifier of the attachment."},"created_at":{"type":"string","format":"date-time","description":"The time at which the attachment was created."},"file_name":{"type":"string","description":"The name of the file."},"file_type":{"type":"string","description":"The MIME type of the file."},"file_url":{"type":"string","description":"The URL to download the file."},"description":{"type":"string","description":"A description of the attachment."},"is_archived":{"type":"boolean","description":"Whether the attachment has been archived."},"requested_by":{"type":"object","description":"An object indicating the user or API key that created the attachment."},"archived_at":{"type":["string","null"],"format":"date-time","description":"`null` is allowed. The time at which the attachment was archived."},"labels":{"type":"array","items":{"type":"string"},"description":"An array of labels associated with the attachment."}},"example":{"attachment_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2017-10-12T15:47:34.281Z","file_name":"doc.pdf","file_type":"application/pdf","file_url":"https://example.com/1234.pdf","description":"Application PDF","is_archived":false,"requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"labels":[]}}}}}}}},"post":{"operationId":"add-application-attachments","summary":"Add application attachment","tags":["Applications"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file_name","description","file_base64","file_type"],"properties":{"file_name":{"type":"string","description":"The name of the file (filename and extension)"},"description":{"type":"string","description":"A description of the file"},"file_base64":{"type":"string","description":"The file contents, base64 encoded"},"file_type":{"type":"string","description":"The file mime type.","example":"application/pdf"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachment"},"example":{"file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report","type":"attachment_created","application_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","created_at":"2022-01-31T11:25:23.427Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/applications/{application_id}/attachments/{attachment_id}/archive":{"post":{"operationId":"archive-application-attachment","summary":"Archive an attachment","tags":["Applications"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"attachment_id","in":"path","description":"Must be a UUID. The unique identifier of the attachment.","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","description":"An event object indicating the attachment was archived.","properties":{"type":{"type":"string","description":"The type of event."},"application_id":{"type":"string","description":"Must be a UUID. The unique identifier of the application."},"file_name":{"type":"string","description":"The name of the archived file."},"file_type":{"type":"string","description":"The MIME type of the archived file."},"file_url":{"type":"string","description":"The URL of the archived file."},"description":{"type":"string","description":"A description of the archived file."},"created_at":{"type":"string","format":"date-time","description":"The time at which the attachment was archived."},"requested_by":{"type":"object","description":"An object indicating the user or API key that archived the attachment."}}},"example":{"type":"attachment_archived","application_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","file_name":"report.pdf","file_type":"application/pdf","file_url":"https://example.com/report.pdf","description":"Police Report","created_at":"2023-02-03T12:00:00.000Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/applications/{application_id}/beneficiaries":{"get":{"summary":"List beneficiaries","operationId":"fetch-application-beneficiaries","tags":["Applications"],"x-additional-tags":["Beneficiaries"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/beneficiaries"}}}}}},"put":{"operationId":"update-application-beneficiaries","summary":"Update beneficiaries","description":"This endpoint accepts an array of beneficiary objects as the body. The entire array of beneficiaries will be replaced. The number of beneficiaries cannot exceed the max defined in the [general settings](doc:general-settings). The percentages must add up to 100%.","tags":["Applications"],"x-additional-tags":["Beneficiaries"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/beneficiaries-request"},"example":{"$ref":"#/components/schemas/beneficiaries-request/example"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application"},"example":{"application_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Theft + comprehensive","sum_assured":1199900,"monthly_premium":50000,"base_premium":14999,"billing_day":1,"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"created_at":"2017-10-12T15:47:34.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"beneficiaries":[{"first_name":"Jared","last_name":"Dunn","id":{"type":"id","number":"8704094800082","country":"ZA"},"percentage":100,"relationship":"cousin_or_relative"}]}}}}}}},"/applications/{application_id}/notes":{"get":{"operationId":"retrieve-application-notes","summary":"Retrieve application notes","tags":["Applications"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notes"}}}}}},"post":{"operationId":"add-application-notes","summary":"Add application notes","tags":["Applications"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"The string of text to add as a note"}},"required":["text"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/note"}}}}}}},"/applications/{application_id}/events":{"get":{"operationId":"retrieve-application-events","summary":"Retrieve application events","tags":["Applications"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"An event object containing details about an action that occurred on the application. Events include application events, notification events, and user group event logs.","properties":{"type":{"type":"string","description":"The type of event."},"application_id":{"type":"string","description":"Must be a UUID. The unique identifier of the application."},"created_at":{"type":"string","format":"date-time","description":"The time at which the event occurred."},"requested_by":{"type":"object","description":"An object indicating the user or API key that triggered the event."}}}},"example":[{"type":"application_created","application_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","created_at":"2023-02-03T11:17:49.009Z","requested_by":{"type":"api_key","id":"b6565862-cc6e-4563-85d3-659894338cda","owner_id":"e17f06ce-2a6a-4864-b826-19a83270eab4"}},{"type":"attachment_created","application_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","file_name":"report.pdf","file_type":"application/pdf","file_url":"https://example.com/report.pdf","description":"Police Report","created_at":"2023-02-03T12:00:00.000Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}]}}}}}},"/applications/{application_id}/payment-method":{"get":{"operationId":"retrieve-application-payment-method","summary":"Retrieve application payment method","tags":["Applications"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"}}}}}},"post":{"operationId":"assign-application-payment-method","summary":"Assign application payment method","tags":["Applications"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"payment_method_id":{"type":"string","description":"A valid UUID, containing the payment method ID to assign."}},"required":["payment_method_id"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"}}}}}}},"/applications/{application_id}/send-application-pdf-to-policyholder":{"post":{"operationId":"send-application-pdf-to-policyholder","summary":"Send application PDF to policyholder","tags":["Applications"],"x-additional-tags":["Manage"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success"}}}},"/applications/{application_id}/cancellation-reasons":{"get":{"operationId":"get-application-cancellation-reasons","summary":"Get allowed application cancellation reasons","tags":["Applications"],"x-additional-tags":["Manage"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["client","insurer"],"properties":{"client":{"type":"array","items":{"type":"string"},"description":"Allowed `cancellation_type` values when `cancellation_requestor` is `client`."},"insurer":{"type":"array","items":{"type":"string"},"description":"Allowed `cancellation_type` values when `cancellation_requestor` is `insurer`."}}}}}}}}},"/applications/{application_id}/cancel":{"post":{"operationId":"cancel-application","summary":"Cancel an application","tags":["Applications"],"x-additional-tags":["Manage"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Free-text context for the cancellation (for example when `cancellation_type` is `other`). Required if `cancellation_requestor` is not specified."},"cancellation_requestor":{"type":"string","description":"The entity cancelling the application. Either `insurer` or `client`.","enum":["client","insurer"]},"cancellation_type":{"type":"string","description":"Reason code. Must be one of the values returned by [get application cancellation reasons](ref:get-application-cancellation-reasons) for the corresponding `cancellation_requestor`."}},"example":{"cancellation_requestor":"client","cancellation_type":"no_longer_interested","reason":"Customer confirmed they will not proceed"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application"}}}}}}},"/applications/{application_id}/archive":{"post":{"operationId":"archive-application","summary":"Archive an application","tags":["Applications"],"x-additional-tags":["Manage"],"parameters":[{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success"}}}},"/organizations/{client_app_id}/applications/{application_id}/alteration-hooks":{"get":{"operationId":"retrieve-application-alteration-hooks","summary":"Retrieve application alteration hooks","tags":["Applications"],"x-additional-tags":["Manage"],"parameters":[{"name":"client_app_id","in":"path","description":"Must be a UUID. The unique identifier of the organization.","required":true,"schema":{"type":"string","example":"00000000-0000-0000-0000-000000000001"}},{"name":"application_id","in":"path","description":"Must be a UUID. The unique identifier of the [application](ref:application).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-alteration-hooks"},"example":[{"product_module_definition_alteration_hook_id":"2cbbc377-e142-4986-8871-29b0a4c23353","product_module_definition_id":"9b7b43f4-9ab8-4e37-b42b-59d5595f3983","schema_id":"18f7e13a-f4f4-4b10-86ec-2973dfe77732","key":"update_cover_amount","name":"Update cover amount","type":"application","created_at":"2026-01-28T09:17:05.101Z","created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"productModuleDefinitionSchema":{"product_module_definition_schema_id":"18f7e13a-f4f4-4b10-86ec-2973dfe77732","json":{"type":"object","properties":{"cover_amount":{"type":"integer"}}},"created_at":"2026-01-28T09:15:45.100Z","created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"type":"application_alteration"}}]}}}}}},"/calls":{"get":{"operationId":"fetch-calls","summary":"List all calls","description":"Returns a paginated list of calls for the organization. Use the `include` parameter to include the related policyholder object.","tags":["Calls"],"x-additional-tags":["Endpoints"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"call_status","in":"query","description":"Filter by call status. Accepts multiple values.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["initiated","ringing","in-progress","completed","busy","no-answer"]}},"style":"form","explode":false,"example":"completed,busy"},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policyholder`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policyholder"]}},"style":"form","explode":false,"example":"policyholder"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"description":"The total number of calls matching the query.","schema":{"type":"integer","example":42}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/calls"},"example":[{"call_id":"0ac6dffb-bd15-4829-b96d-e2c1abe61d3a","policyholder_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","claim_id":null,"created_at":"2017-11-26T11:14:59.777Z","call_status":"completed","direction":"inbound","from_number":"+27823378000","to_number":"+27821234567","topic":"general","recording_url":"https://recordingurl.com","call_duration":"5"}]}}}}},"post":{"operationId":"create-call","summary":"Create a call","description":"Creates a new call record with an associated recording. The recording must be provided as a base64-encoded string.","tags":["Calls"],"x-additional-tags":["Endpoints"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["recording_file_name","recording_file_type","recording_base64_string"],"properties":{"claim_id":{"type":"string","description":"Must be a UUID. The unique identifier of the [claim](ref:claim) for which the call is being made."},"policyholder_id":{"type":"string","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder) for whom the call is being made."},"direction":{"type":"string","description":"The direction of the call.","enum":["inbound","outbound"]},"from":{"type":"string","description":"The phone number the call was made from."},"to":{"type":"string","description":"The phone number the call was made to."},"topic":{"type":"string","description":"The topic category of the call.","enum":["claims","complaints","general"]},"call_duration":{"type":"integer","minimum":0,"description":"The duration of the call in seconds."},"call_status":{"type":"string","description":"The status of the call.","enum":["initiated","ringing","in-progress","completed","busy","no-answer"]},"recording_file_name":{"type":"string","description":"The filename of the recording (e.g., `Recording0001.mp3`)."},"recording_file_type":{"type":"string","description":"The MIME type of the recording. Must be `audio/mpeg`."},"recording_base64_string":{"type":"string","description":"The base64-encoded string of the call recording."}}},"example":{"policyholder_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","claim_id":"673b8081-9668-4136-97cc-6ae0debda083","direction":"outbound","from":"0721234567","to":"0821234567","topic":"general","call_duration":72,"call_status":"completed","recording_file_name":"Recording0001.mp3","recording_file_type":"audio/mpeg","recording_base64_string":"//uUZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAT"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/call"},"example":{"call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","policyholder_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","claim_id":"673b8081-9668-4136-97cc-6ae0debda083","created_at":"2017-10-16T10:12:02.872Z","call_status":"completed","direction":"outbound","from_number":"0721234567","to_number":"0821234567","topic":"general","recording_url":"https://sandbox.root.co.za/v1/files/download/ccbd249e-a404-11ea-8f4a-47e769474b83/Recording0001.mp3","call_duration":"72"}}}}}}},"/calls/{call_id}":{"get":{"operationId":"retrieve-call","summary":"Retrieve a call","tags":["Calls"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"call_id","in":"path","description":"Must be a UUID. The unique identifier of the [call](ref:call).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/call"},"example":{"call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","policyholder_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","claim_id":"673b8081-9668-4136-97cc-6ae0debda083","created_at":"2017-10-16T10:12:02.872Z","call_status":"completed","direction":"outbound","from_number":"0721234567","to_number":"0821234567","topic":"general","recording_url":"https://sandbox.root.co.za/v1/files/download/ccbd249e-a404-11ea-8f4a-47e769474b83/Recording0001.mp3","call_duration":"72"}}}}}}},"/calls/{call_id}/events":{"get":{"operationId":"retrieve-call-events","summary":"Retrieve call events","description":"Returns a list of events associated with a specific call, sorted by creation time in descending order (most recent first). Events include call status changes, recordings added, and other call-related activities.","tags":["Calls"],"x-additional-tags":["Events"],"parameters":[{"name":"call_id","in":"path","description":"Must be a UUID. The unique identifier of the [call](ref:call).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"An event object containing details about an action that occurred on the call.","properties":{"type":{"type":"string","description":"The type of call event. Possible values include: `inbound_call_started`, `outbound_call_started`, `option_entered`, `recording_added`, `call_initiated`, `call_ringing`, `call_answered`, `call_completed`, `call_not_answered`, `called_busy`, `call_flushed`, `call_created`, `call_updated`, `connect_call_initiated`, `connect_call_ringing`, `connect_call_answered`, `connect_call_completed`, `connect_call_not_answered`, `connect_called_busy`."},"call_id":{"type":"string","description":"Must be a UUID. The unique identifier of the call."},"created_at":{"type":"string","format":"date-time","description":"The timestamp at which the event occurred."},"requested_by":{"type":"object","description":"An object indicating the user or API key that triggered the event.","properties":{"type":{"type":"string","description":"The type of requester (e.g., `user`, `api_key`)."},"id":{"type":"string","description":"The unique identifier of the requester."},"owner_id":{"type":"string","description":"The owner ID associated with the requester."}}},"to_number":{"type":"string","description":"The destination phone number. Only present for `connect_call_initiated` events."},"from":{"type":"string","description":"The originating phone number. Present for `inbound_call_started` and `outbound_call_started` events."},"to":{"type":"string","description":"The destination phone number. Present for `outbound_call_started` events."},"option":{"type":"string","description":"The option entered by the caller. Only present for `option_entered` events."},"recording_url":{"type":"string","description":"The URL of the call recording. Only present for `recording_added` events."}}}},"example":[{"type":"call_completed","call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2023-02-03T12:05:00.000Z","requested_by":{"type":"system","id":"00000000-0000-0000-0000-000000000000"}},{"type":"recording_added","call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2023-02-03T12:04:30.000Z","requested_by":{"type":"system","id":"00000000-0000-0000-0000-000000000000"},"recording_url":"https://sandbox.root.co.za/v1/files/download/ccbd249e-a404-11ea-8f4a-47e769474b83/Recording0001.mp3"},{"type":"call_answered","call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2023-02-03T12:00:15.000Z","requested_by":{"type":"system","id":"00000000-0000-0000-0000-000000000000"}},{"type":"outbound_call_started","call_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2023-02-03T12:00:00.000Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"from":"0721234567","to":"0821234567"}]}}}}}},"/calls/{call_id}/playback-url":{"get":{"operationId":"retrieve-call-playback-url","summary":"Retrieve call playback URL","description":"Returns a signed URL for playing back the recording of a specific call. If the call has an associated attachment, a signed download URL is returned. Otherwise, the legacy recording URL is returned if available. Returns a 404 error if no recording exists for the call.","tags":["Calls"],"x-additional-tags":["Playback"],"parameters":[{"name":"call_id","in":"path","description":"Must be a UUID. The unique identifier of the [call](ref:call).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The URL to play back the call recording. This may be a signed download URL (for newer recordings stored as attachments) or a legacy recording URL."},"file_id":{"type":"string","description":"Must be a UUID. The unique identifier of the attachment file. Only present if the recording is stored as an attachment."},"file_type":{"type":"string","description":"The MIME type of the recording file (e.g., `audio/mpeg`). Only present if the recording is stored as an attachment."},"file_name":{"type":"string","description":"The filename of the recording. Only present if the recording is stored as an attachment."},"file_url":{"type":"string","description":"The permanent download URL for the file. Only present if the recording is stored as an attachment."},"created_at":{"type":"integer","description":"Unix timestamp (seconds) when the attachment was created. Only present if the recording is stored as an attachment."}}},"examples":{"with_attachment":{"summary":"Recording stored as attachment","value":{"url":"https://sandbox.root.co.za/v1/files/download/ccbd249e-a404-11ea-8f4a-47e769474b83/Recording0001.mp3?signature=abc123","file_id":"ccbd249e-a404-11ea-8f4a-47e769474b83","file_type":"audio/mpeg","file_name":"Recording0001.mp3","file_url":"https://sandbox.root.co.za/v1/files/download/ccbd249e-a404-11ea-8f4a-47e769474b83","created_at":1697456522}},"legacy_url":{"summary":"Legacy recording URL","value":{"url":"https://recordings.example.com/Recording0001.mp3"}}}}}},"404":{"description":"Not Found - No recording exists for this call","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error type identifier."},"message":{"type":"string","description":"Human-readable error message."}}},"example":{"error":"not_found","message":"No recording url or attachment found for call with id d3d13c48-4dc3-4816-8d01-de3215878225"}}}}}}},"/claims":{"post":{"operationId":"create-claim","summary":"Create a claim","description":"Creates a new claim. The claim can optionally be linked to a policy, member, or covered item. A claimant can be specified with contact details.","tags":["Claims"],"x-additional-tags":["Create"],"parameters":[{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"policy_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the [policy](ref:policy) on which the claim is being made."},"member_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the member for this claim. Only used for group scheme policies."},"covered_item_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the covered item that this claim is against. Required if the policy supports covered items."},"assigned_to_user_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the user to assign this claim to."},"incident_type":{"type":["string","null"],"description":"A description of the incident type."},"incident_cause":{"type":["string","null"],"description":"A description of the cause of the incident."},"incident_date":{"type":["string","null"],"format":"date-time","description":"The date on which the incident occurred."},"app_data":{"type":["object","null"],"description":"An object containing additional custom data for the claim.","additionalProperties":true},"claimant":{"type":"object","description":"Object containing claimant's details. At least one of `email` or `cellphone` must be provided.","properties":{"first_name":{"type":"string","description":"The first name of the claimant."},"last_name":{"type":"string","description":"The last name of the claimant."},"email":{"type":"string","description":"The claimant's email address. Required if `cellphone` is not provided."},"cellphone":{"oneOf":[{"$ref":"#/components/schemas/cellphone"},{"$ref":"#/components/schemas/cellphone-string"}],"description":"The claimant's cellphone number. Required if `email` is not provided."},"id_number":{"type":"string","description":"The ID number of the claimant."},"relationship":{"type":"string","description":"The relationship of the claimant to the policyholder."}},"required":["first_name","last_name"]},"requested_amount":{"type":"integer","description":"The requested payout amount (in cents) for the claim."}}},"example":{"policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","incident_type":"Theft","incident_cause":"Device stolen during burglary","incident_date":"2017-10-16T10:12:02.872Z","app_data":{"key1":"value 1","key2":"value 2"},"claimant":{"first_name":"Erlich","last_name":"Aviato","email":"erlich@aviato.com","cellphone":"0821234567"},"requested_amount":13000000}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","claim_status":"open","approval_status":"pending","currency":"ZAR","app_data":{"key1":"value 1","key2":"value 2"},"claimant":{"first_name":"Erlich","last_name":"Aviato","email":"erlich@aviato.com","cellphone":"0821234567"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}},"get":{"operationId":"fetch-claims","summary":"List all claims","description":"Returns a paginated list of claims for the organization. Use the query parameters to filter claims by status, policy, policyholder, and more. Use the `include` parameter to include related objects in the response.","tags":["Claims"],"x-additional-tags":["Retrieve"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"claim_status","in":"query","description":"Filter by claim status. Accepts multiple values.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["open","in_review","acknowledged","pending_payout","paid_out","closed"]}},"style":"form","explode":false,"example":"open,in_review"},{"name":"approval_status","in":"query","description":"Filter by approval status. Accepts multiple values.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["pending","approved","repudiated","no_claim","goodwill"]}},"style":"form","explode":false,"example":"pending,approved"},{"name":"search","in":"query","description":"Search claims by claim number, claimant name, or other searchable fields.","required":false,"schema":{"type":"string"},"example":"D33B754"},{"name":"policyholder_id","in":"query","description":"Must be a UUID. Filter claims by policyholder ID.","required":false,"schema":{"type":"string"},"example":"00000000-0000-0000-0000-000000000004"},{"name":"product_module_id","in":"query","description":"Must be a UUID. Filter claims by product module ID.","required":false,"schema":{"type":"string"},"example":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715"},{"name":"policy_id","in":"query","description":"Must be a UUID. Filter claims by policy ID.","required":false,"schema":{"type":"string"},"example":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715"},{"name":"created_by","in":"query","description":"Must be a UUID. Filter claims by the ID of the user or API key that created them.","required":false,"schema":{"type":"string"},"example":"00000000-0000-0000-0000-000000000001"},{"name":"created_by_type","in":"query","description":"Filter claims by the type of entity that created them.","required":false,"schema":{"type":"string","enum":["user","api_key"]},"example":"user"},{"name":"assigned_to","in":"query","description":"Must be a UUID. Filter claims by the user they are assigned to.","required":false,"schema":{"type":"string"},"example":"00000000-0000-0000-0000-000000000001"},{"name":"user_group_id","in":"query","description":"Must be a UUID. Filter claims by user group ID.","required":false,"schema":{"type":"string"},"example":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715"},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false,"example":"policy,policyholder"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"description":"The total number of claims matching the query.","schema":{"type":"integer","example":42}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/claims"},"example":[{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","member_id":"673b8081-9668-4136-97cc-6ae0debda083","claim_status":"open","approval_status":"pending","claimant":{"first_name":"Erlich","last_name":"Aviato","email":"erlich@aviato.com"},"currency":"ZAR","app_data":{"key1":"value 1"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}},{"claim_id":"cf5f074e-e09f-4d85-bc2d-07cfcae63f30","claim_number":"CF5F074EDA8F","created_at":"2017-10-14T11:09:55.332Z","updated_at":"2017-10-14T12:00:00.000Z","policy_id":"76096ff5-f4ed-47e2-8ac0-de16ba095508","policyholder_id":"00000000-0000-0000-0000-000000000005","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","claim_status":"closed","approval_status":"approved","currency":"ZAR","requested_amount":2000000,"granted_amount":1870000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}]}}}}}},"/claims/{claim_id}":{"get":{"operationId":"retrieve-a-claim","summary":"Retrieve a claim","tags":["Claims"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","claim_status":"open","approval_status":"pending","currency":"ZAR","app_data":{"key1":"value 1","key2":"value 2"},"claimant":{"first_name":"Erlich","last_name":"Aviato","email":"erlich@aviato.com"},"requested_amount":13000000,"granted_amount":9400000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}},"patch":{"operationId":"updating-a-claim","summary":"Update a claim","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim)","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"incident_type":{"type":"string","description":"A description of the incident type."},"incident_cause":{"type":"string","description":"A description of the cause of the incident."},"incident_date":{"type":"string","format":"date-time","description":"The date on the which the incident occurred."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the claim.","additionalProperties":true},"requested_amount":{"type":"integer","description":"The requested payout amount (in cents) for the claim."}},"example":{"incident_type":"Theft","incident_cause":"Device stolen during burglary","incident_date":"2017-10-16T10:12:02.872Z","app_data":{"key3":"value3"},"requested_amount":13000000}},"example":{"incident_type":"Theft","incident_cause":"Device stolen during burglary","incident_date":"2017-10-16T10:12:02.872Z","app_data":{"key3":"value3"},"requested_amount":13000000}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","claim_status":"open","approval_status":"pending","app_data":{"key3":"value 3"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/acknowledge-approved":{"post":{"operationId":"acknowledge-approved","summary":"Acknowledge approval","description":"Acknowledges a claim approval decision, transitioning the claim to pending payout.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"A reason for acknowledging the approval."}}},"example":{"reason":"Claim meets approval criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"pending_payout","approval_status":"approved","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/acknowledge-goodwill":{"post":{"operationId":"acknowledge-goodwill","summary":"Acknowledge goodwill","description":"Acknowledges a goodwill claim decision, transitioning the claim to pending payout.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"A reason for acknowledging the goodwill decision."}}},"example":{"reason":"Claim meets goodwill criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"pending_payout","approval_status":"goodwill","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/acknowledge-no-claim":{"post":{"operationId":"acknowledge-no-claim","summary":"Acknowledge no claim","description":"Acknowledges a no-claim decision, finalizing the claim as no-claim.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"A reason for acknowledging the no-claim decision."}}},"example":{"reason":"Claim is inside the waiting period."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"acknowledged","approval_status":"no_claim","rejection_reason":"Claim is within waiting period","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/acknowledge-repudiated":{"post":{"operationId":"acknowledge-repudiated","summary":"Acknowledge repudiation","description":"Acknowledges a claim repudiation decision, finalizing the claim as repudiated.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"A reason for acknowledging the repudiation."}}},"example":{"reason":"Claim is not covered under the terms and conditions of the policy."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"acknowledged","approval_status":"repudiated","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/approve":{"post":{"operationId":"approve-claim","summary":"Approve claim","description":"Approves a claim and optionally specifies payees for the payout. Multiple payees can be specified to split the payout amount.","tags":["Claims"],"x-additional-tags":["Assessor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"A reason for the claim approval decision."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to assign this claim to."},"payee":{"type":"array","description":"An array of payee objects specifying who should receive the payout.","items":{"type":"object","required":["id","amount","type"],"properties":{"id":{"type":"string","description":"Must be a UUID. The ID of the beneficiary or policyholder to be paid out."},"amount":{"type":"integer","description":"The amount in cents to be paid to the beneficiary or policyholder."},"type":{"type":"string","description":"The type of payee.","enum":["policyholder","beneficiary"]}}}}}},"example":{"reason":"Claim meets the approval criteria.","payee":[{"id":"00000000-0000-0000-0000-000000000004","amount":13000000,"type":"policyholder"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"approved","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/attachments":{"get":{"operationId":"retrieve-claim-attachments","summary":"List claim attachments","description":"Returns a paginated list of attachments for a claim.","tags":["Claims"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `embedding`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["embedding"]}},"style":"form","explode":false}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachments"},"example":{"attachment_id":"1dc7b3c6-a921-11ed-bad6-736a4495dd42","file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report","created_at":"2022-01-31T11:25:23.427Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}},"post":{"operationId":"claim-create-attachment","summary":"Create an attachment","tags":["Claims"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file_name","description","file_base64","file_type"],"properties":{"file_name":{"type":"string","description":"The name of the file (with file extension)."},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)."},"file_base64":{"type":"string","description":"The raw file bytes encoded as a base 64 string. Limited to a maximum of 4 MB in size."},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)."},"labels":{"type":"array","items":{"type":"string"},"description":"Optional array of labels to categorize the attachment."},"enable_ai_search":{"type":"boolean","default":false,"description":"Whether to enable AI search indexing for this attachment."}},"example":{"file_name":"report.pdf","file_type":"application/pdf","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","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The event type.","example":"attachment_created"},"claim_id":{"type":"string","format":"uuid","description":"The unique identifier of the claim."},"created_at":{"type":"string","format":"date-time","description":"The date and time when the event was created."},"requested_by":{"type":"object","description":"The user or API key that requested the action.","properties":{"type":{"type":"string","enum":["user","api_key"]},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}},"file_name":{"type":"string","description":"The name of the file."},"file_type":{"type":"string","description":"The mime type of the attachment."},"file_url":{"type":"string","description":"The URL to access the uploaded file."},"description":{"type":"string","description":"A description of the attachment."}}},"example":{"type":"attachment_created","claim_id":"d8e72dda-431a-4834-a1f6-10579de4a796","created_at":"2022-01-31T11:25:23.427Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001","owner_id":"00000000-0000-0000-0000-000000000001"},"file_name":"report.pdf","file_type":"application/pdf","file_url":"https://yoururlhere/report.pdf","description":"Police Report"}}}}}}},"/claims/{claim_id}/attachments/{attachment_id}/archive":{"post":{"operationId":"claim-archive-attachment","summary":"Archive an attachment","tags":["Claims"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"attachment_id","in":"path","description":"The unique identifier of the attachment.","required":true,"schema":{"type":"string","example":"c1cace2a-634a-4848-bde8-d2c60322e7e8"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"event_type":{"type":"string"},"claim_id":{"type":"string"},"created_at":{"type":"string"},"requested_by":{"type":"object"}}},"example":{"event_type":"attachment_archived","claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2017-10-13T09:37:48.947Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/blocks":{"patch":{"operationId":"update-multiple-block-states","summary":"Update multiple block states","description":"**Note:** This endpoint is product module specific and depends on the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference) defined for the product module.","tags":["Claims"],"x-additional-tags":["Blocks"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}}],"requestBody":{"description":"The blocks referenced in the request body must be defined in the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference) for the product module.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["key","block_state"],"properties":{"key":{"type":"string","description":"The unique identifier of the block in the claims blocks schema."},"block_state":{"type":"object","description":"The shape of the block state depends on the type of claims block. Read more [here](doc:claims-blocks-reference).","additionalProperties":true}}},"example":[{"key":"free_text_block_nested_non_collapsible","block_state":{"type":"input.text","value":"Freetext"}},{"key":"example_radio_block","block_state":{"type":"radio","option_key":"single","option_value":"Single"}},{"key":"example_date_block","block_state":{"type":"input.date","value":"2023-03-10T08:51:17.000Z"}}]}}}},"responses":{"200":{"description":"Success </br></br> The complete, updated block states. The keys of this object are product module specific, and will match the keys of the blocks defined in the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"free_text_block_nested_non_collapsible":{"type":"input.text","value":"Freetext"},"example_radio_block":{"type":"radio","option_key":"single","option_value":"Single"},"example_date_block":{"type":"input.date","value":"2023-03-10T08:51:17.000Z"}}}}}}}},"/claims/{claim_id}/block-states/{block_key}":{"get":{"operationId":"retrieve-a-block-state","summary":"Retrieve a block state","description":"**Note:** This endpoint is product module specific and depends on the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference) defined for the product module.","tags":["Claims"],"x-additional-tags":["Blocks"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"block_key","in":"path","description":"The unique identifier of the block defined in the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference).","required":true,"schema":{"type":"string","example":"example_radio_block"}}],"responses":{"200":{"description":"Success </br></br> The updated state of the individual block. The shape of this object depends on the type of claims block. Read more [here](doc:claims-blocks-reference).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"type":"radio","option_key":"married","option_value":"Married"}}}}}}},"/claims/{claim_id}/blocks/{block_key}":{"patch":{"operationId":"updating-a-block-state","summary":"Update a block state","description":"**Note:** This endpoint is product module specific and depends on the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference) defined for the product module.","tags":["Claims"],"x-additional-tags":["Blocks"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"block_key","in":"path","description":"The unique identifier of the block defined in the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference).","required":true,"schema":{"type":"string","example":"example_radio_block"}}],"requestBody":{"description":"The block state. The shape of the block state depends on the claims block type. Read more [here](doc:claims-blocks-reference).","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"enum":["input.text","input.currency","input.paragraph","radio","input.date","checkbox","input.number","input.time","payout_request","fulfillment_request","annuity_request","markdown","dropdown","heading","divider","alert","group"]}},"required":["type"],"additionalProperties":true,"example":{"type":"radio","option_key":"married","option_value":"Married"}},"example":{"type":"radio","option_key":"married","option_value":"Married"}}}},"responses":{"200":{"description":"Success </br></br> The complete, updated block states. The keys of this object are product module specific, and will match the keys of the blocks defined in the [claims blocks schema](https://docs.rootplatform.com/docs/claims-blocks-reference).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"example_radio_block":{"type":"radio","option_key":"married","option_value":"Married"}}}}}}}},"/claims/{claim_id}/do-not-acknowledge-approved":{"post":{"operationId":"do-not-acknowledge-approved","summary":"Do not acknowledge approval","description":"Rejects the claim approval decision, returning the claim to review status.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for not acknowledging the claim approval."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to reassign this claim to."}}},"example":{"reason":"Claim does not meet the approval criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"pending","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/do-not-acknowledge-goodwill":{"post":{"operationId":"do-not-acknowledge-goodwill","summary":"Do not acknowledge goodwill","description":"Rejects the goodwill claim decision, returning the claim to review status.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for not acknowledging the goodwill decision."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to reassign this claim to."}}},"example":{"reason":"Claim does not meet the goodwill criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"pending","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/do-not-acknowledge-no-claim":{"post":{"operationId":"do-not-acknowledge-no-claim","summary":"Do not acknowledge no claim","description":"Rejects the no-claim decision, returning the claim to review status.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for not acknowledging the no-claim decision."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to reassign this claim to."}}},"example":{"reason":"Claim meets approval criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"pending","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/do-not-acknowledge-repudiated":{"post":{"operationId":"do-not-acknowledge-repudiated","summary":"Do not acknowledge repudiation","description":"Rejects the claim repudiation decision, returning the claim to review status.","tags":["Claims"],"x-additional-tags":["Supervisor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for not acknowledging the repudiation."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to reassign this claim to."}}},"example":{"reason":"Claim meets approval criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"pending","claim_number":"D33B754ADA8F","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/goodwill":{"post":{"operationId":"goodwill-claim","summary":"Goodwill claim","description":"Marks a claim as goodwill, indicating a payout will be made even though the claim may not fully meet approval criteria. Multiple payees can be specified.","tags":["Claims"],"x-additional-tags":["Assessor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for the goodwill decision."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to assign this claim to."},"payee":{"type":"array","description":"An array of payee objects specifying who should receive the payout.","items":{"type":"object","required":["id","amount","type"],"properties":{"id":{"type":"string","description":"Must be a UUID. The ID of the beneficiary or policyholder to be paid out."},"amount":{"type":"integer","description":"The amount in cents to be paid to the beneficiary or policyholder."},"type":{"type":"string","description":"The type of payee.","enum":["policyholder","beneficiary"]}}}}}},"example":{"reason":"Claim granted as goodwill gesture.","payee":[{"id":"00000000-0000-0000-0000-000000000004","amount":13000000,"type":"policyholder"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"goodwill","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/no-claim":{"post":{"operationId":"no-claim","summary":"No claim","description":"Marks a claim as \"no claim\", indicating the incident does not warrant a claim or the claim has been withdrawn.","tags":["Claims"],"x-additional-tags":["Assessor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for the no claim decision."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to assign this claim to."}}},"example":{"reason":"Claim does not meet the approval criteria."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"no_claim","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/notes":{"get":{"operationId":"retrieve-claim-notes","summary":"List claim notes","tags":["Claims"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notes"},"example":[{"text":"Customer spoke to Erlich previously","created_at":"2018-05-25T08:51:20.317Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}]}}}}},"post":{"operationId":"claim-add-note","summary":"Add a note","tags":["Claims"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"A string of text for the note."}},"example":{"text":"Customer spoke to Erlich previously"}},"example":{"text":"Customer spoke to Erlich previously"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/note"},"example":{"text":"Customer spoke to Erlich previously","type":"text_note_created","claim_id":"d8e72dda-431a-4834-a1f6-10579de4a796","created_at":"2022-10-16T10:12:02.872Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/claims/{claim_id}/policy":{"post":{"operationId":"claim-link-policy","summary":"Link a policy","description":"Links a claim to a policy. Optionally, a member or covered item can also be specified for group scheme policies or policies with covered items.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["policy_id"],"properties":{"policy_id":{"type":"string","description":"Must be a UUID. The identifier of the [policy](ref:policy) under which the claim is being made."},"member_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the group scheme member under which the claim is being made. Only applicable for group scheme policies."},"covered_item_id":{"type":["string","null"],"description":"Must be a UUID. The identifier of the covered item that this claim is against. Only applicable if the policy supports covered items."}}},"example":{"policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","member_id":"673b8081-9668-4136-97cc-6ae0debda083","covered_item_id":"9dc39b57-cdc7-48f9-a303-d7c4f0421a0c","claim_status":"open","approval_status":"pending","currency":"ZAR","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/fulfillment-requests/{fulfillment_request_id}/approve":{"patch":{"operationId":"approve-fulfillment-request","summary":"Approve a fulfillment request","tags":["Claims"],"x-additional-tags":["Fulfillment requests"],"parameters":[{"$ref":"#/components/parameters/fulfillment_request_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fulfillment-request"},"example":{"fulfillment_request_id":"f84b3856-1358-4e12-bcf6-6732bc8b9522","fulfillment_type_id":"ad044686-6b6f-4ce6-878f-143039243f11","policy_id":"e2eb02eb-632b-4c12-8527-8a3b60212445","claim_id":"25983c09-0913-494f-908b-592d5b2ebd8b","status":"successful","fulfillment_data":{"amount":"10000","customer_account_number":"0122036478871"},"created_at":"2022-05-26T09:31:09.709Z","created_by":{"type":"user","id":"99ff4c56-577c-11e9-b47c-a3d0f3abd20c"},"environment":"sandbox","finalized_at":"2022-05-26T09:33:19.000Z","finalized_by":{"type":"user","id":"99ff4c56-577c-11e9-b47c-a3d0f3abd20c"}}}}}}}},"/claims/fulfillment-requests/{fulfillment_request_id}/reject":{"patch":{"operationId":"reject-a-fulfillment-request","summary":"Reject a fulfillment request","tags":["Claims"],"x-additional-tags":["Fulfillment requests"],"parameters":[{"$ref":"#/components/parameters/fulfillment_request_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/fulfillment-request"},"example":{"fulfillment_request_id":"f84b3856-1358-4e12-bcf6-6732bc8b9522","fulfillment_type_id":"ad044686-6b6f-4ce6-878f-143039243f11","policy_id":"e2eb02eb-632b-4c12-8527-8a3b60212445","claim_id":"25983c09-0913-494f-908b-592d5b2ebd8b","status":"rejected","fulfillment_data":{"amount":"10000","customer_account_number":"0122036478331"},"created_at":"2022-05-26T09:31:09.709Z","created_by":{"type":"user","id":"99ff4c56-577c-11e9-b47c-a3d0f3abd20c"},"environment":"sandbox","finalized_at":"2022-05-26T09:33:19.000Z","finalized_by":{"type":"user","id":"99ff4c56-577c-11e9-b47c-a3d0f3abd20c"}}}}}}}},"/claims/{claim_id}/repudiate":{"post":{"operationId":"repudiate-claim","summary":"Repudiate claim","description":"Repudiates a claim, indicating the claim is not valid and no payout will be made.","tags":["Claims"],"x-additional-tags":["Assessor decision"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for the repudiation decision."},"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to assign this claim to."}}},"example":{"reason":"Claim is not covered under the terms and conditions of the policy."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"repudiated","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"rejection_reason":"Claim is not covered under the terms and conditions of the policy.","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/send-to-review":{"post":{"operationId":"send-to-review","summary":"Send claim to review","description":"Transitions a claim to the review stage. Optionally assign the claim to a specific user for review.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"assigned_to_user_id":{"type":"string","description":"Must be a UUID. The identifier of the user to assign this claim to for review."}}},"example":{"assigned_to_user_id":"00000000-0000-0000-0000-000000000002"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"in_review","approval_status":"pending","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/close":{"post":{"operationId":"close-claim","summary":"Close claim","description":"Closes a claim, indicating the claim process is complete.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for closing the claim."}}},"example":{"reason":"Claim finalized."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"closed","approval_status":"approved","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/reopen":{"post":{"operationId":"reopen-claim","summary":"Reopen claim","description":"Reopens a previously closed claim, returning it to an open state.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"Must be a UUID. The unique identifier of the [claim](ref:claim).","required":true,"schema":{"type":"string","example":"d3d13c48-4dc3-4816-8d01-de3215878225"}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values: `policy`, `policyholder`, `user_group`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}},"style":"form","explode":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A reason for reopening the claim."}}},"example":{"reason":"Claim erroneously closed."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D33B754ADA8F","created_at":"2017-10-16T10:12:02.872Z","updated_at":"2017-10-16T10:15:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_status":"open","approval_status":"approved","currency":"ZAR","claimant":{"email":"erlich@aviato.com","first_name":"Erlich","last_name":"Aviato","relationship":"main_member"},"requested_amount":13000000,"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/claims/{claim_id}/claimant":{"patch":{"operationId":"update-claimant","summary":"Update claimant","description":"Updates the claimant information for a specific claim.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the claim.","required":true,"schema":{"type":"string","format":"uuid","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"include","in":"query","description":"A comma-separated list of related resources to include in the response.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"The first name of the claimant."},"last_name":{"type":"string","description":"The last name of the claimant."},"id_number":{"type":"string","description":"The ID number of the claimant."},"email":{"type":"string","format":"email","description":"The email address of the claimant. At least one of email or cellphone is required."},"cellphone":{"type":"string","description":"The cellphone number of the claimant. At least one of email or cellphone is required."},"relationship":{"type":"string","description":"The relationship of the claimant to the policyholder."}}},"example":{"first_name":"John","last_name":"Doe","id_number":"9001015000000","email":"john.doe@example.com","cellphone":"+27821234567","relationship":"spouse"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","claim_number":"CLM-000001","claim_status":"open","approval_status":"pending","policy_id":"80f8e67a-15e5-417c-9d29-dfc31a5b92bb","policyholder_id":"2800a20b-ce92-4463-a0de-75cd76d8bf22","claimant":{"first_name":"John","last_name":"Doe","id_number":"9001015000000","email":"john.doe@example.com","cellphone":"+27821234567","relationship":"spouse"},"created_at":"2022-01-31T11:25:23.427Z","updated_at":"2022-01-31T12:00:00.000Z"}}}}}}},"/claims/{claim_id}/events":{"get":{"operationId":"get-claim-events","summary":"List claim events","description":"Returns a list of events for a specific claim.","tags":["Claims"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the claim.","required":true,"schema":{"type":"string","format":"uuid","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the claim event.","enum":["claim_opened","sent_to_review","sent_to_capture","claim_approved","claim_repudiated","claim_goodwill","claim_no_claim","claim_acknowledged","claim_not_acknowledged","claim_closed","claim_reopened","claimant_updated","claim_updated","attachment_created","note_created","note_updated","fulfillment_request_created","fulfillment_request_rejected","fulfillment_request_successful","payout_request_created","payout_request_successful","payout_request_failed","payout_request_cancelled","annuity_request_created","annuity_request_updated","annuity_request_cancelled","claim_paid_out","claim_block_state_updated","assignment_created","assignment_removed","linked_to_policy"]},"claim_id":{"type":"string","format":"uuid","description":"The unique identifier of the claim."},"created_at":{"type":"string","format":"date-time","description":"The date and time when the event was created."},"requested_by":{"type":"object","description":"The user or API key that requested the action.","properties":{"type":{"type":"string","enum":["user","api_key"]},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}}}}},"example":[{"type":"claim_opened","claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2022-01-31T11:25:23.427Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001","owner_id":"00000000-0000-0000-0000-000000000001"}},{"type":"sent_to_review","claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2022-01-31T12:30:00.000Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001","owner_id":"00000000-0000-0000-0000-000000000001"}},{"type":"claim_approved","claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2022-02-01T10:00:00.000Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001","owner_id":"00000000-0000-0000-0000-000000000001"}}]}}}}}},"/claims/{claim_id}/paid-out":{"post":{"operationId":"paid-out-claim","summary":"Mark claim as paid out","description":"Marks an approved claim as paid out, indicating that all payments have been made.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the claim.","required":true,"schema":{"type":"string","format":"uuid","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"include","in":"query","description":"A comma-separated list of related resources to include in the response.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","claim_number":"CLM-000001","claim_status":"paid_out","approval_status":"approved","policy_id":"80f8e67a-15e5-417c-9d29-dfc31a5b92bb","policyholder_id":"2800a20b-ce92-4463-a0de-75cd76d8bf22","created_at":"2022-01-31T11:25:23.427Z","updated_at":"2022-02-15T10:00:00.000Z"}}}}}}},"/claims/{claim_id}/send-to-capture":{"post":{"operationId":"send-to-capture","summary":"Send claim to capture","description":"Sends a claim to the capture stage for additional information gathering.","tags":["Claims"],"x-additional-tags":["Manage"],"parameters":[{"name":"claim_id","in":"path","description":"The unique identifier of the claim.","required":true,"schema":{"type":"string","format":"uuid","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"include","in":"query","description":"A comma-separated list of related resources to include in the response.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","user_group"]}}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"assigned_to_user_id":{"type":"string","format":"uuid","description":"The unique identifier of the user to assign the claim to."}}},"example":{"assigned_to_user_id":"00000000-0000-0000-0000-000000000001"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim"},"example":{"claim_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","claim_number":"CLM-000001","claim_status":"open","approval_status":"pending","policy_id":"80f8e67a-15e5-417c-9d29-dfc31a5b92bb","policyholder_id":"2800a20b-ce92-4463-a0de-75cd76d8bf22","assigned_to":"00000000-0000-0000-0000-000000000001","created_at":"2022-01-31T11:25:23.427Z","updated_at":"2022-01-31T12:00:00.000Z"}}}}}}},"/complaints":{"post":{"operationId":"create-a-complaint","summary":"Create a complaint","tags":["Complaints"],"x-additional-tags":["Create"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"policy_id":{"type":"string","description":"The identifier of policy under which the complaint is being made."},"member_id":{"type":"string","description":"The identifier of the member for whom the complaint is being made. Required when linking a group scheme policy."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the complaint.","additionalProperties":true},"complainant":{"type":"object","description":"Object containing complainant's first name, last name, email and/or cellphone. All fields are optional.","properties":{"first_name":{"type":["string","null"],"description":"The first name of the complainant."},"last_name":{"type":["string","null"],"description":"The last name of the complainant."},"id_number":{"type":["string","null"],"description":"The ID number of the complainant."},"email":{"type":["string","null"],"description":"The complainant's email address."},"cellphone":{"type":["string","null"],"description":"The complainant's cellphone number."}}}},"example":{"policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","app_data":{"key1":"value 1","key2":"value 2"},"complainant":{"first_name":"Erlich","last_name":"Bachman","id_number":"9001015000000","email":"erlich@aviato.com","cellphone":"+27731234567"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key1":"value 1","key2":"value 2"},"complainant":{"first_name":"Erlich","last_name":"Bachman","id_number":"9001015000000","email":"erlich@aviato.com","cellphone":"+27731234567"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}},"get":{"operationId":"list-all-complaints","summary":"List all complaints","tags":["Complaints"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"complaint_status","in":"query","description":"Filter by complaint status. Can be a comma-separated list.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["open","closed"]}}},{"name":"search","in":"query","description":"Search complaints by complaint number or other fields.","required":false,"schema":{"type":"string"}},{"name":"include","in":"query","description":"A comma-separated list of related resources to include in the response.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","member"]}}},{"name":"policy_id","in":"query","description":"Filter complaints by policy ID.","required":false,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"description":"The total number of complaints matching the query.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaints"},"example":[{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}},{"complaint_id":"da20903b-7f0d-4318-96bd-6df78514e2fd","complaint_number":"CMP-000002","created_at":"2017-10-14T11:09:55.332Z","policy_id":"76096ff5-f4ed-47e2-8ac0-de16ba095508","policyholder_id":"aed6eedd-25d7-4a42-a2cf-8a8368dffc6e","complaint_status":"closed","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}]}}}}}},"/complaints/{complaint_id}":{"get":{"operationId":"retrieve-a-complaint","summary":"Retrieve a complaint","tags":["Complaints"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"complaint_id","in":"path","description":"The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}},{"name":"include","in":"query","description":"A comma-separated list of related resources to include in the response.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policy","policyholder","member"]}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}},"patch":{"operationId":"update-complaint","summary":"Update a complaint","tags":["Complaints"],"x-additional-tags":["Manage"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the complaint.","additionalProperties":true}},"example":{"app_data":{"key3":"value 3"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key3":"value 3"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/complaints/{complaint_id}/attachments":{"get":{"operationId":"retrieve-complaint-attachments","summary":"List complaint attachments","tags":["Complaints"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"complaint_id","in":"path","description":"The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"description":"The total number of attachments for the complaint.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"attachment_id":{"type":"string"},"file_name":{"type":"string"},"file_type":{"type":"string"},"file_url":{"type":"string"},"description":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"requested_by":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}},"is_archived":{"type":"boolean","description":"Whether the attachment has been archived."},"archived_at":{"type":["string","null"],"format":"date-time","description":"The timestamp when the attachment was archived, if applicable."},"labels":{"type":"array","items":{"type":"string"},"description":"Labels associated with the attachment."},"has_embedding":{"type":"boolean","description":"Whether the attachment has an embedding."},"processing_status":{"type":["string","null"],"description":"The processing status of the attachment."},"error_message":{"type":["string","null"],"description":"Error message if processing failed."}}}},"example":[{"attachment_id":"7f4315b2-a919-11ed-8553-5bb8fbd4817b","file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report","created_at":"2022-01-31T11:25:51.557Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"is_archived":false,"archived_at":null,"labels":[],"has_embedding":false,"processing_status":null,"error_message":null}]}}}}},"post":{"operationId":"complaint-create-attachment","summary":"Create an attachment","tags":["Complaints"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file_name","description","file_base64","file_type"],"properties":{"file_name":{"type":"string","description":"The name of the file (with file extension)."},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)."},"file_base64":{"type":"string","description":"The raw file bytes encoded as a base 64 string. Limited to a maximum of 4 MB in size."},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)."}},"example":{"file_name":"report.pdf","file_type":"application/pdf","description":"Police Report","file_base64":"JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoK..."}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The event type."},"complaint_id":{"type":"string","description":"The identifier of the complaint."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the event was created."},"requested_by":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}},"file_name":{"type":"string"},"file_type":{"type":"string"},"file_url":{"type":"string"},"description":{"type":"string"}}},"example":{"type":"attachment_created","complaint_id":"02ca3e8b-2033-4d91-9869-b1080052dc10","created_at":"2022-01-31T11:25:51.557Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report"}}}}}}},"/complaints/{complaint_id}/attachments/{attachment_id}/archive":{"post":{"operationId":"complaint-archive-attachment","summary":"Archive an attachment","tags":["Complaints"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"complaint_id","in":"path","description":"The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"attachment_id","in":"path","description":"The unique identifier of the attachment.","required":true,"schema":{"type":"string","example":"c1cace2a-634a-4848-bde8-d2c60322e7e8"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The event type."},"complaint_id":{"type":"string","description":"The identifier of the complaint."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the event was created."},"requested_by":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}}}},"example":{"type":"attachment_archived","complaint_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2017-10-13T09:37:48.947Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/complaints/{complaint_id}/close":{"post":{"operationId":"close-complaint","summary":"Close a complaint","tags":["Complaints"],"x-additional-tags":["Manage"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"closed","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/complaints/{complaint_id}/events":{"get":{"operationId":"get-complaint-events","summary":"List complaint events","tags":["Complaints"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"complaint_id","in":"path","description":"The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The event type."},"complaint_id":{"type":"string","description":"The identifier of the complaint."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the event was created."}},"requested_by":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}}}},"example":[{"type":"complaint_opened","complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","created_at":"2022-01-31T11:25:51.557Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}},{"type":"attachment_created","complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","created_at":"2022-01-31T12:30:00.000Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"file_name":"document.pdf","file_type":"application/pdf"}]}}}}}},"/complaints/{complaint_id}/complainant":{"patch":{"operationId":"complaint-update-complainant","summary":"Update the complainant","tags":["Complaints"],"x-additional-tags":["Manage"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":["string","null"],"description":"The first name of the complainant."},"last_name":{"type":["string","null"],"description":"The last name of the complainant."},"id_number":{"type":["string","null"],"description":"The ID number of the complainant."},"email":{"type":["string","null"],"description":"The complainant's email address."},"cellphone":{"type":["string","null"],"description":"The complainant's cellphone number."}},"example":{"first_name":"Erlich","last_name":"Bachman","id_number":"9001015000000","email":"erlich@aviato.com","cellphone":"+27831234567"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"complainant":{"first_name":"Erlich","last_name":"Bachman","id_number":"9001015000000","email":"erlich@aviato.com","cellphone":"+27831234567"}}}}}}}},"/complaints/{complaint_id}/notes":{"get":{"operationId":"fetch-complaint-notes","summary":"List complaint notes","tags":["Complaints"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"complaint_id","in":"path","description":"The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"description":"The total number of notes for the complaint.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/notes"},"example":[{"text":"Customer spoke to Erlich previously","created_at":"2018-05-25T08:51:20.317Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}]}}}}},"post":{"operationId":"complaint-create-note","summary":"Add a note","tags":["Complaints"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"A string of text for the note."}},"example":{"text":"Customer spoke to Erlich previously"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The event type."},"complaint_id":{"type":"string","description":"The identifier of the complaint."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the event was created."},"requested_by":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"owner_id":{"type":"string","format":"uuid"}}},"text":{"type":"string","description":"The note text."}}},"example":{"type":"text_note_created","complaint_id":"02ca3e8b-2033-4d91-9869-b1080052dc10","created_at":"2022-10-16T10:12:02.872Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"text":"Customer spoke to Erlich previously"}}}}}}},"/complaints/{complaint_id}/policy":{"post":{"operationId":"complaint-link-policy","summary":"Link a policy","tags":["Complaints"],"x-additional-tags":["Manage"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["policy_id"],"properties":{"policy_id":{"type":"string","description":"The identifier of policy under which the complaint is being made."},"member_id":{"type":"string","description":"The identifier of group scheme member under which the complaint is being made. Only required for group scheme policies."}},"example":{"policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","member_id":"673b8081-9668-4136-97cc-6ae0debda083"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/complaints/{complaint_id}/reopen":{"post":{"operationId":"reopen-complaint","summary":"Reopen a complaint","tags":["Complaints"],"x-additional-tags":["Manage"],"parameters":[{"name":"complaint_id","in":"path","description":"Must be a UUID. The unique identifier of the [complaint](ref:complaint).","required":true,"schema":{"type":"string","example":"acd6c4af-108e-444d-a90f-e90b67786c74"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","description":"A required reason for reopening the complaint."}},"example":{"reason":"Customer phoned in again with additional query on complaint"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complaint"},"example":{"complaint_id":"acd6c4af-108e-444d-a90f-e90b67786c74","complaint_number":"CMP-000001","created_at":"2017-10-16T10:12:02.872Z","policy_id":"8349345c-a6c5-4bf9-8ebb-6bbfc1628715","policyholder_id":"3c74e595-48bc-4dd6-8ac7-2dee1c1f397b","member_id":"673b8081-9668-4136-97cc-6ae0debda083","complaint_status":"open","app_data":{"key1":"value 1","key2":"value 2"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/custom-notification-events/{custom_event_key}/trigger":{"post":{"operationId":"trigger-custom-notification-event","summary":"Trigger a custom notification event","description":"Queue a custom notification request (or first queue policy documents to be generated if there are email attachments). A `200 (Success)` response does not indicate that the notification was sent successfully. Please refer to the [custom notification events](doc:custom-notification-events) guide.\n","tags":["Notifications"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"custom_event_key","in":"path","description":"The key identifiying the custom notification event.","required":true,"schema":{"type":"string","example":"policyholder_birthday"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["custom_event_type"],"properties":{"custom_event_type":{"$ref":"#/components/schemas/custom-event-type"},"policy_id":{"type":"string","description":"The UUID of the policy for which the event should be triggered. Required if `custom_event_type` is `policy` or `payment_method`."},"payment_id":{"type":"string","description":"The UUID of the payment for which the event should be triggered. Required if `custom_event_type` is `payment`."},"claim_id":{"type":"string","description":"The UUID of the claim for which the event should be triggered. Required if `custom_event_type` is `claim`."}},"example":{"custom_event_type":"policy","policy_id":"21e26db0-e620-4472-ba21-886208f99b54"}}}}},"responses":{"200":{"description":"Success"}}}},"/data-export-runs":{"get":{"operationId":"fetch-data-export-runs","summary":"List data export runs","tags":["Data exports"],"x-additional-tags":["Data export runs"],"parameters":[{"name":"template_id","in":"query","description":"Must be a UUID. An optional list of data export template ID's.","required":false,"schema":{"type":"string"}},{"name":"data_source","in":"query","required":false,"description":"The data source of the data export run.","schema":{"type":"string","enum":["applications","claims","complaints","debicheck_mandates","fulfillment_requests","notifications","payment_methods","payment_coupons","payments","payout_requests","policies","policy_charges","policy_premiums","policyholders"]}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-export-runs"},"example":[{"data_export_run_id":"34233912-c91f-4dc9-bfed-c10d16be26af","scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","created_at":"2019-03-09T08:07:59.044Z","completed_at":"2019-03-09T08:08:02.178Z","status":"complete","file_id":"74ce9562-4242-11e9-904a-7b14ba20f082","triggered_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"to":"2019-03-09T08:07:59.044Z","data_range":"today","environment":"sandbox","export_type":"policy_export","name":"Daily policies export","type":"once_off"}]}}}}}},"/data-export-runs/{data_export_run_id}":{"get":{"operationId":"retrieve-data-export-run","summary":"Retrieve a run","tags":["Data exports"],"x-additional-tags":["Data export runs"],"parameters":[{"name":"data_export_run_id","in":"path","description":"Must be a UUID. The unique identifier of the [data export run](ref:retrieve-data-export-run).","required":true,"schema":{"type":"string","example":"34233912-c91f-4dc9-bfed-c10d16be26af"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-export-run"},"example":{"data_export_run_id":"34233912-c91f-4dc9-bfed-c10d16be26af","scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","created_at":"2019-03-09T08:07:59.044Z","completed_at":"2019-03-09T08:08:02.178Z","status":"complete","file_id":"74ce9562-4242-11e9-904a-7b14ba20f082"}}}}}}},"/data-export-runs/{data_export_run_id}/log-items":{"get":{"operationId":"fetch-data-export-run-log","summary":"Retrieve a run log","tags":["Data exports"],"x-additional-tags":["Data export runs"],"parameters":[{"name":"data_export_run_id","in":"path","description":"Must be a UUID. The unique identifier of the [data export run](ref:retrieve-data-export-run).","required":true,"schema":{"type":"string","example":"34233912-c91f-4dc9-bfed-c10d16be26af"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-export-run-log-items"},"example":[{"data_export_run_id":"34233912-c91f-4dc9-bfed-c10d16be26af","created_at":"2019-03-09T08:07:59.075Z","level":"info","content":"Creating policy export file"}]}}}}}},"/data-stores":{"get":{"operationId":"list-data-stores","summary":"List all data stores","tags":["Data stores"],"x-additional-tags":["Stores"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"search","in":"query","description":"A search string to filter data stores by name or key.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-stores"},"example":[{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","created_at":"2021-01-29T13:12:00.968Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"updated_at":"2021-01-29T13:12:00.968Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}]}}}}},"post":{"operationId":"create-data-store","summary":"Create a data store","tags":["Data stores"],"x-additional-tags":["Stores"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","name","schema"],"properties":{"key":{"type":"string","description":"The unique key of the data store."},"name":{"type":"string","description":"The name of the data store."},"description":{"type":"string","description":"The description of the data store."},"schema":{"type":"object","description":"An object for which the the schema for data store entities will be base off of.","properties":{"required":{"type":"array","items":{"type":"string"},"description":"The keys from the data store properties that are mandatory, when creating data store entities."},"properties":{"type":"object","description":"The data to which the data store columns are created from, see [data store](ref:data-store)."}},"required":["required","properties"]}},"example":{"key":"devices","name":"devices","description":"Devices data store","schema":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"}},"required":["name","price"]}}},"example":{"key":"devices","name":"devices","description":"Devices data store","schema":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"}},"required":["name","price"]}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store"},"example":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","key":"devices","schema":{"async":true,"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"}},"required":["name","price"]},"description":"Devices data store","name":"devices","created_at":"2021-02-01T06:05:13.678Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"updated_at":"2021-02-01T06:05:13.678Z","updated_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"}}}}}}}},"/data-stores/{data_store_key}/entities":{"head":{"operationId":"count-data-store-entities","summary":"Count data store entities","tags":["Data stores"],"x-additional-tags":["Entities"],"parameters":[{"$ref":"#/components/parameters/data_store_key"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of data store entities."}}}}},"get":{"operationId":"list-data-store-entities","summary":"List data store entities","tags":["Data stores"],"x-additional-tags":["Entities"],"parameters":[{"$ref":"#/components/parameters/data_store_key"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"search","in":"query","description":"A search string to filter data store entities.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of data store entities."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store-entities"},"example":[{"data_store_entity_id":"424312b7-6d8f-424f-bf3e-af1384444424","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","data":{"name":"Apple iPhone X","price":1000000},"created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-01-28T10:00:24.809Z","updated_at":"2021-01-28T10:00:24.809Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"data_store":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T10:00:17.773Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}]}}}}},"post":{"operationId":"create-data-store-entity","summary":"Create a data store entity","tags":["Data stores"],"x-additional-tags":["Entities"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"A dynamic object containing key-value pairs that match the data store's schema. Each key corresponds to a property defined in the data store schema, and each value must be a string, number, or boolean.","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"example":{"name":"Apple iPhone X","price":1000000}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store-entity"},"example":{"data_store_entity_id":"424312b7-6d8f-424f-bf3e-af1384444424","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","data":{"name":"Apple iPhone X","price":1000000},"created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-01-28T10:00:24.809Z","updated_at":"2021-01-28T10:00:24.809Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"data_store":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T10:00:17.773Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}}}},"/data-stores/{data_store_key}":{"get":{"operationId":"retrieve-data-store","summary":"Retrieve a data store","tags":["Data stores"],"x-additional-tags":["Stores"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store"},"example":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","key":"devices","schema":{"type":"object","async":true,"properties":{"name":{"type":"string"},"price":{"type":"number"}},"required":["name","price"]},"description":"Devices data store","name":"devices","created_at":"2021-01-29T13:12:00.968Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"updated_at":"2021-01-29T13:12:00.968Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}},"delete":{"operationId":"archive-data-store","summary":"Archive a data store","tags":["Data stores"],"x-additional-tags":["Stores"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store"},"example":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"async":true,"properties":{"cellphone_name":{"type":"string"},"price":{"type":"number"}},"required":["cellphone_name","price"]},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T06:51:08.370Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"}}}}}}},"patch":{"operationId":"update-data-store","summary":"Update a data store","tags":["Data stores"],"x-additional-tags":["Stores"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["schema"],"properties":{"schema":{"type":"object","description":"An object for which the schema for data store entities will be based off of.","properties":{"type":{"type":"string","description":"The schema type. Must be 'object'.","enum":["object"]},"required":{"type":"array","items":{"type":"string"},"description":"The keys from the data store properties that are mandatory, when creating data store entities."},"properties":{"type":"object","description":"The data to which the data store columns are created from. Each property value should have a `type` field (string, number, or boolean) and optional `minimum`/`maximum` constraints."}},"required":["required","properties"]}},"example":{"schema":{"type":"object","properties":{"cellphone_name":{"type":"string"},"price":{"type":"number"}},"required":["cellphone_name","price"]}}},"example":{"schema":{"type":"object","properties":{"cellphone_name":{"type":"string"},"price":{"type":"number"}},"required":["cellphone_name","price"]}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store"},"example":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","key":"devices","schema":{"async":true,"properties":{"cellphone_name":{"type":"string"},"price":{"type":"number"}},"required":["cellphone_name","price"]},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T06:51:08.370Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"}}}}}}}},"/data-stores/{data_store_key}/entities/{data_store_entity_id}":{"delete":{"operationId":"archive-data-store-entity","summary":"Archive a data store entity","tags":["Data stores"],"x-additional-tags":["Entities"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}},{"name":"data_store_entity_id","in":"path","description":"Must be a UUID. The unique identifier of the [data store entity](ref:data-store)","required":true,"schema":{"type":"string","example":"424312b7-6d8f-424f-bf3e-af1384444424"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store-entity"},"example":{"data_store_entity_id":"424312b7-6d8f-424f-bf3e-af1384444424","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","data":{"name":"Samsung S20","price":1000000},"created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-01-28T10:00:24.809Z","updated_at":"2021-01-28T10:00:24.809Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"data_store":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T10:00:17.773Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"get":{"operationId":"retrieve-data-store-entity","summary":"Retrieve a data store entity","tags":["Data stores"],"x-additional-tags":["Entities"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store).\n","required":true,"schema":{"type":"string","example":"devices"}},{"name":"data_store_entity_id","in":"path","description":"Must be a UUID. The unique identifier of the [data store entity](ref:retrieve-a-data-store-entity).\n","required":true,"schema":{"type":"string","example":"424312b7-6d8f-424f-bf3e-af1384444424"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store-entity"},"example":{"data_store_entity_id":"424312b7-6d8f-424f-bf3e-af1384444424","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","data":{"name":"Apple iPhone X","price":1000000},"created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-01-28T10:00:24.809Z","updated_at":"2021-01-28T10:00:24.809Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"data_store":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T10:00:17.773Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"patch":{"operationId":"update-data-store-entity","summary":"Update a data store entity","tags":["Data stores"],"x-additional-tags":["Entities"],"parameters":[{"name":"data_store_key","in":"path","description":"The unique key of the [data store](ref:data-store)","required":true,"schema":{"type":"string","example":"devices"}},{"name":"data_store_entity_id","in":"path","description":"Must be a UUID. The unique identifier of the [data store entity](ref:data-store-entity)","required":true,"schema":{"type":"string","example":"424312b7-6d8f-424f-bf3e-af1384444424"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"A dynamic object containing key-value pairs that match the data store's schema. Each key corresponds to a property defined in the data store schema, and each value must be a string, number, or boolean.","additionalProperties":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"example":{"name":"Samsung S20","price":1000000}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/data-store-entity"},"example":{"data_store_entity_id":"424312b7-6d8f-424f-bf3e-af1384444424","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","data":{"name":"Samsung S20","price":1000000},"created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-01-28T10:00:24.809Z","updated_at":"2021-01-28T10:00:24.809Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"data_store":{"data_store_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","key":"devices","schema":{"type":"object","async":true,"required":["name","price"],"properties":{"name":{"type":"string"},"price":{"type":"number"}}},"description":"Devices data store","name":"devices","updated_at":"2021-01-28T10:00:17.773Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}}}},"/leads":{"get":{"operationId":"fetch-leads","summary":"List all leads","tags":["Leads"],"x-additional-tags":["Endpoints"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/leads"},"example":[{"lead_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"1968-01-01","gender":"male","email":"erlich@aviato.com","cellphone":"+27821234567","phone_other":null,"app_data":{"company":"Aviato"},"created_at":"2017-10-12T15:47:34.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}}]}}}}},"post":{"operationId":"create-lead","summary":"Create a lead","description":"This endpoint requires a single lead object defined as follows:","tags":["Leads"],"x-additional-tags":["Endpoints"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"entity_type":{"type":"string"},"identification":{"type":"object"},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"app_data":{"type":"object"},"address":{"type":"object"}}},"example":{"entity_type":"individual","identification":{"type":"id","number":"6801015800084","country":"ZA"},"first_name":"Erlich","last_name":"Bachman","email":"erlich@avaito.com","app_data":{"company":"Aviato"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/lead"},"example":{"lead_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"email":"erlich@aviato.com","cellphone":"+27821234567","phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"created_by":{"owner_id":"00000000-0000-0000-0000-000000000001","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}}}}}},"put":{"operationId":"create-or-update-lead","summary":"Create or update a lead","description":"This endpoint requires a single lead object defined as follows:","tags":["Leads"],"x-additional-tags":["Endpoints"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"entity_type":{"type":"string"},"identification":{"type":"object"},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"app_data":{"type":"object"},"address":{"type":"object"}}},"example":{"entity_type":"individual","identification":{"type":"id","number":"6801015800084","country":"ZA"},"first_name":"Erlich","last_name":"Bachman","email":"erlich@avaito.com","app_data":{"company":"Aviato"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/lead"},"example":{"lead_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"email":"erlich@aviato.com","cellphone":"+27821234567","phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"created_by":{"owner_id":"00000000-0000-0000-0000-000000000001","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}}}}}}},"/leads/archive":{"post":{"operationId":"archive-leads","summary":"Archive leads","description":"This archives all leads loaded for the organization. Returns a HTTP `200 OK` response on success.","tags":["Leads"],"x-additional-tags":["Endpoints"],"parameters":[],"responses":{"200":{"description":"Success"}}}},"/notifications":{"get":{"operationId":"fetch-notifications","summary":"List all notifications","tags":["Notifications"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"channel","in":"query","description":"Either `email`, `sms` or `other`. If omitted defaults to fetching notifications across all channels.","required":false,"schema":{"type":"string"}},{"name":"provider","in":"query","description":"Either `root_standard`, `external` or `root_webhooks`. If omitted defaults to fetching notifications across all providers.","required":false,"schema":{"type":"string"}},{"name":"policy_id","in":"query","description":"The unique identifier for the policy to filter by.","required":false,"schema":{"type":"string"}},{"name":"policyholder_id","in":"query","description":"The unique identifier for the policyholder to filter by.","required":false,"schema":{"type":"string"}},{"name":"claim_id","in":"query","description":"The unique identifier for the claim to filter by.","required":false,"schema":{"type":"string"}},{"name":"exclude_types","in":"query","description":"Optionally exclude notification types from the returned results.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notifications"},"example":[{"notification_id":"dccdd659-0a42-4df2-9d02-5df9f98a2433","organization_id":"00000000-0000-0000-0000-000000000001","channel":"email","notification_type":"claim_received","provider":"root_mandrill","created_at":"2022-06-21T08:39:24.293Z","created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"status":"queued","status_updates":[{"status":"queued","createdAt":"2022-06-21T08:39:24.293Z"}],"linked_entities":{"policy_id":"11111112-0000-0000-0000-000000000008","policyholder_id":"00000000-0000-0000-0000-000000000004","claim_id":"535e439c-3d75-43cc-b706-3a0b05dec894"},"data":{"to":[{"name":"Tim","type":"to","email":"tim@smith.com"}],"html":"<div>hello</div>","subject":"Claim #F0BABAC137E6 received","from_name":"Policy Administration System","from_email":"no-reply@policy@adminsystem.com","attachments":[]}},{"notification_id":"43c13dc8-2c19-402c-bb70-a7deb56b9f38","organization_id":"00000000-0000-0000-0000-000000000001","channel":"sms","notification_type":"policy_issued","provider":"root_clickatell","created_at":"2022-06-23T07:59:53.261Z","created_by":{"type":"user","id":"6f852057-b381-4ab0-a53d-93a6c2ec6f26"},"status":"delivered","status_updates":[{"status":"queued","createdAt":"2022-06-23T07:59:53.261Z"},{"status":"sent","createdAt":"2022-06-23T07:59:54.000Z","description":"Delivered to gateway (003)"},{"status":"delivered","createdAt":"2022-06-23T07:59:57.000Z","description":"Received by recipient (004)"}],"linked_entities":{"policy_id":"b338a75b-207e-4b6c-8649-4c0ebfe39d8b","policyholder_id":"b5b10383-0b50-4965-8bff-addb2001c5d1"},"data":{"to":["+27811231234"],"content":"Congratulations! Your  Cover has been activated from 01/06/2022."}}]}}}}},"post":{"operationId":"create-external-notification","summary":"Create an external notification","tags":["Notifications"],"x-additional-tags":["Endpoints"],"description":"Create a notification with provider of `external`. If you use an integration external to Root to send notifications to end customers, you can use this endpoint to record the notification on Root and link it to the relevant entities (such as a policy or claim).","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["channel","status","notification_type","linked_entities","data"],"properties":{"channel":{"type":"string","description":"The channel over which the notification is sent.","enum":["email","sms","other"]},"status":{"type":"string","description":"The status of the notification.","enum":["sent","rejected"]},"failure_reason":{"type":"string","description":"Forbidden if `status` is not `rejected`. The reason for the notification failure."},"notification_type":{"type":"string","description":"The event the notification is linked to.","enum":["payment_failure_1st","payment_failure_4th","payment_failure_15th","payment_failure_debit_order","payment_success_debit_order","payment_success_external","payment_failure_eft","payment_failure_on_demand_cover_period","payment_failure_on_demand_monthly","payment_failure_card","payment_failure_external","payment_reversal","payment_method_blocked","payment_method_failed_verification","payment_method_updated","policy_issued","beneficiaries_updated","covered_people_updated","debit_orders_activated","eft_activated","policy_policyholder_updated","policy_cancelled","policy_lapsed","policy_not_taken_up","policy_expired","policy_updated","first_premium_payment","sum_assured_updated","policy_requoted","policy_reactivated","policy_anniversary","external_payments_activated","alteration_package_applied","claim_approved_beneficiary","claim_approved","claim_received","claim_repudiated","claim_linked_to_policy","claim_sent_to_review","claim_decision_review","claim_sent_to_review_claimant","send_application_pdf_to_policyholder","complaint_received","custom","custom_event"]},"linked_entities":{"description":"Entities linked to the notification.","type":"object","required":["policy_id"],"properties":{"policy_id":{"type":"string","description":"Must be a UUID. The unique identifier of the policy linked to the notification."}}},"data":{"$ref":"#/components/schemas/notification-data"}},"example":{"channel":"email","status":"sent","notification_type":"policy_issued","linked_entities":{"policy_id":"3d292076-a531-4028-988e-e863b04d8497"},"data":{"from_email":"erlich@aviato.com","from_name":"Erlich Bachman","reply_to_email":"erlich@aviato.com","subject":"Hello","html":"<div>hello</div>","to":[{"name":"Dinesh","email":"dinesh@piedpiper.com"}],"attachments":[{"type":"application/pdf","name":"AviatoS3Script.pdf"}]}}},"example":{"channel":"email","status":"sent","notification_type":"policy_issued","linked_entities":{"policy_id":"3d292076-a531-4028-988e-e863b04d8497"},"data":{"from_email":"erlich@aviato.com","from_name":"Erlich Bachman","reply_to_email":"erlich@aviato.com","subject":"Hello","html":"<div>hello</div>","to":[{"name":"Dinesh","email":"dinesh@piedpiper.com"}],"attachments":[{"type":"application/pdf","name":"AviatoS3Script.pdf"}]}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notification"},"example":{"notification_id":"ff693e05-244a-4b48-97fa-237ebafc4c29","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","channel":"email","notification_type":"policy_issued","provider":"external","created_at":"2022-06-23T08:38:30.703Z","created_by":{"type":"api_key","id":"95d369a6-93c0-4687-9506-86f1659a6d3e","owner_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f"},"status":"sent","status_updates":[{"status":"sent","created_at":"2023-02-15T09:49:45.503Z"}],"linked_entities":{"policy_id":"3d292076-a531-4028-988e-e863b04d8497"},"data":{"from_email":"erlich@aviato.com","from_name":"Erlich Bachman","reply_to_email":"erlich@aviato.com","subject":"Hello","html":"<div>hello</div>","to":[{"name":"Dinesh","email":"dinesh@piedpiper.com"}],"attachments":[{"name":"AviatoS3Script.pdf","type":"application/pdf"}]}}}}}}}},"/notifications/{notification_id}":{"get":{"operationId":"retrieve-a-notification","summary":"Retrieve a notification","tags":["Notifications"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"notification_id","in":"path","description":"The unique identifier of the [notification](ref:notification).","required":true,"schema":{"type":"string","example":"43c13dc8-2c19-402c-bb70-a7deb56b9f38"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notification"}}}}}},"patch":{"operationId":"update-external-notification","summary":"Update an external notification","tags":["Notifications"],"x-additional-tags":["Endpoints"],"description":"Update the status of a notification with provider of `external`.","parameters":[{"name":"notification_id","in":"path","description":"Must be a UUID. The unique identifier of the notification to update.","required":true,"schema":{"type":"string","example":"3ac406c1-b5f4-4850-a615-d4bb2b951039"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["queued","sent","delivered","rejected","opened","unknown_error"],"description":"The new status of the notification."},"status_update_description":{"type":"string","description":"A description of or reason for the update to the notification status. This will be stored as part of the `status_updates` array on the [notification object](ref:notification)."}},"example":{"status":"rejected","status_update_description":"Hard bounce - invalid mailbox."}},"example":{"status":"rejected","status_update_description":"Hard bounce - invalid mailbox."}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notification"},"example":{"notification_id":"ff693e05-244a-4b48-97fa-237ebafc4c29","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","channel":"email","notification_type":"policy_issued","provider":"external","created_at":"2022-06-23T08:38:30.703Z","created_by":{"type":"api_key","id":"95d369a6-93c0-4687-9506-86f1659a6d3e","owner_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f"},"status":"rejected","status_updates":[{"status":"queued","created_at":"2023-02-15T09:48:04.799Z"},{"status":"rejected","created_at":"2023-02-15T09:49:45.503Z","description":"Hard bounce - invalid mailbox."}],"linked_entities":{"policy_id":"3d292076-a531-4028-988e-e863b04d8497"},"data":{"from_email":"erlich@aviato.com","from_name":"Erlich Bachman","reply_to_email":"erlich@aviato.com","subject":"Hello","html":"<div>hello</div>","to":[{"name":"Dinesh","email":"dinesh@piedpiper.com"}],"attachments":[{"name":"AviatoS3Script.pdf","type":"application/pdf"}]}}}}}}}},"/payment-batches/{payment_batch_id}":{"patch":{"operationId":"update-payment-batch","summary":"Update a payment batch","tags":["Payments"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"payment_batch_id","in":"path","description":"Must be a UUID. The unique identifier of the payment batch.","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["status","failure_reason"],"properties":{"status":{"type":"string","description":"The payment batch status to update to. Must be one of [`accepted`, `failed`]."},"failure_reason":{"type":"string","description":"A description of the reason the payment batch failed."}},"example":{"status":"failed","failure_reason":"Failed validation"}},"example":{"status":"failed","failure_reason":"Failed validation"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-batch"},"example":{"payment_batch_id":"00000000-0000-0000-0000-000000000001","organization_id":"00000000-0000-0000-0000-000000000001","status":"failed","action_date":"2021-09-29T09:36:43.560Z","process_date":"2021-09-29T09:36:43.560Z","payment_type":"debit_order_same_day","payment_method_type":"debit_order","billing_config_id":"00000000-0000-0000-0000-000000000003","submitted_at":"2021-10-07T07:38:00.117Z","submitted_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"created_at":"2021-09-29T09:36:43.560Z","failure_reason":"Failed validation","num_payments":10,"num_reviewed":0,"total_value":1000000,"external_reference":"ABCDE12345","updated_at":"2021-10-07T07:38:00.117Z","updated_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/payments/async-create":{"post":{"operationId":"async-payments-create","deprecated":true,"summary":"Create payments async","description":"This endpoint is deprecated in favour of [create payment](ref:createpolicypayment). This endpoint validates the input and queues payments to be processed asynchronously. A response of `200 OK` is sent if the payments are valid and have been successfully queued. This endpoint allows for up to 5000 payments to be created at a time. To use this endpoint you'll need the `Payments Create` permission.\n","tags":["Payments"],"x-additional-tags":["Endpoints"],"parameters":[{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-creates-async-array"}}}},"responses":{"200":{"description":"Success"}}}},"/payments/async-update":{"post":{"operationId":"update-payments-async","summary":"Update payments async","description":"This endpoint validates the input and queues [payment updates](ref:payment-update) to be processed asynchronously, which will result in a `200 OK` successful response. **Note:** Despite a successful response, queued updates can nevertheless fail. To receive the update failure / success status, subscribe to the `payment_updates_succeeded` and `payment_updates_failed` [webhooks](ref:create-webhook).","tags":["Payments"],"x-additional-tags":["Endpoints"],"parameters":[{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-updates"}}}},"responses":{"200":{"description":"Success"}}}},"/payments/{payment_id}":{"put":{"operationId":"update-payment","summary":"Update payment","description":"This endpoint validates the input and updates a payment, which will result in a `200 OK` successful response, with the updated payment in the response.","tags":["Payments"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"payment_id","in":"path","description":"The unique identifier of the [payment](ref:payment).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-update"},"example":{"$ref":"#/components/schemas/payment-update/example"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-response"},"example":{"payment_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","policy_id":"2b012979-e2a2-45d3-b5fe-729f825d96ce","payment_method_id":"f4863a40-a6b1-4a4b-b734-62ae0370cd70","status":"successful","amount":6000,"description":"Monthly premium for August","customer_ref":"ABCDEFGHIJ","created_at":"2022-10-12T15:47:34.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"updated_at":"2022-10-12T15:47:34.281Z","payment_date":"2022-10-12T00:00:00.000Z","action_date":"2022-10-12T00:00:00.000Z","policy":null,"policyholder":null,"payment_method":null,"payment_type":"premium","currency":"ZAR","finalized_at":"2022-09-19T12:47:57.546Z","finalized_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"app_data":null,"charges":[],"raw_response":null}}}}}}},"/payment-methods":{"get":{"operationId":"list-payment-methods","summary":"List payment methods","description":"Returns a paginated list of payment methods for the organization. Use the `include` parameter to include related objects in the response.","tags":["Payment Methods"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"page","in":"query","description":"The page number to retrieve.","required":false,"schema":{"type":"integer","default":1,"example":1}},{"name":"page_size","in":"query","description":"The number of items to retrieve per page.","required":false,"schema":{"type":"integer","default":20,"example":20}},{"name":"include","in":"query","description":"A comma-separated list of related objects to include in the response. Valid values are `policyholder`, `policies`, `collection_module`.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["policyholder","policies","collection_module"]}},"style":"form","explode":false,"example":"policyholder,policies"},{"name":"type","in":"query","description":"Filter by payment method type. Valid values include `debit_order`, `card`, `eft`, `collection_module`, or a custom external payment method key.","required":false,"schema":{"type":"string","example":"debit_order"}},{"name":"banv_status","in":"query","description":"Filter by BANV status. Accepts multiple values.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["pending","processing","verified","failed_verification","blocked"]}},"style":"form","explode":false,"example":"pending,verified"},{"name":"policyholder_ids","in":"query","description":"Filter by policyholder IDs. Accepts multiple UUIDs.","required":false,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false,"example":"f91f4ea4-9c6d-459e-998b-a5711cbd8895"},{"name":"payment_method_ids","in":"query","description":"Filter by payment method IDs. Accepts multiple UUIDs.","required":false,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false,"example":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25"},{"name":"dismissed","in":"query","description":"Filter by dismissed status. Set to `true` to include only dismissed payment methods, `false` to exclude dismissed payment methods.","required":false,"schema":{"type":"boolean","example":false}}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"description":"The total number of payment methods matching the query.","schema":{"type":"integer","example":100}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/payment-method"}},"example":[{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","policyholder_id":"f91f4ea4-9c6d-459e-998b-a5711cbd8895","created_at":"2021-01-29T13:12:00.968Z","updated_at":"2021-01-29T13:12:00.968Z","bank_details":{"account_holder":"Erlich Bachman","bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque","banv_status":"verified"}}]}}}}}},"/payment-methods/external-types":{"get":{"operationId":"list-external-payment-method-types","summary":"List external payment method types","description":"Returns a list of external payment method types configured for the organization. External payment method types allow you to define custom payment methods with their own collection logic and outbound channels.","tags":["Payment Methods"],"x-additional-tags":["External"],"parameters":[{"name":"keys","in":"query","description":"Filter by external payment method type keys. Accepts a comma-separated list of keys.","required":false,"schema":{"type":"string","example":"my_payment_provider"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["payment_method_id","organization_id","environment","key","created_at"],"properties":{"payment_method_id":{"type":"string","description":"Must be a UUID. The unique identifier of the external payment method type."},"organization_id":{"type":"string","description":"Must be a UUID. The unique identifier of the organization."},"environment":{"type":"string","description":"The environment of the external payment method type.","enum":["sandbox","production"]},"key":{"type":"string","description":"The unique key identifying this external payment method type."},"outbound_channels":{"type":"array","description":"An array of outbound channels configured for this external payment method type. These define how payment requests are communicated to external systems.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of outbound channel.","enum":["http"]},"url":{"type":"string","description":"The URL to send payment requests to."}}}},"created_at":{"type":"string","format":"date-time","description":"The date and time at which the external payment method type was created."},"config":{"type":"object","description":"Configuration options for the external payment method type.","properties":{"fixed_billing_day":{"type":"integer","description":"If set, all payments will be scheduled on this day of the month.","minimum":1,"maximum":31},"assume_success":{"type":"boolean","description":"If true, payments are assumed successful until explicitly marked otherwise."},"payments_per_batch":{"type":"integer","description":"The number of payments to include in each batch."},"external_reference_template":{"type":"string","description":"A template string for generating external references."},"allow_payment_imports":{"type":"boolean","description":"If true, payments can be imported from external systems."},"should_debit_ledger":{"type":"boolean","description":"If true, successful payments will debit the ledger."},"external_reference_required":{"type":"boolean","description":"If true, an external reference is required when creating payment methods of this type."}}}}}},"example":[{"payment_method_id":"6e91fe74-aa56-4b4e-8f68-636d23d5706f","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","environment":"sandbox","key":"my_payment_provider","outbound_channels":[{"type":"http","url":"https://api.example.com/payments"}],"created_at":"2021-01-29T13:12:00.968Z","config":{"assume_success":true,"allow_payment_imports":true,"should_debit_ledger":true}}]}}}}}},"/payment-methods/{payment_method_id}/verification-status":{"patch":{"operationId":"update-payment-method-verification-status","summary":"Update Payment Method Verification Status","description":"This endpoint validates the input and updates the status of a payment method, which will result in a `200 OK` successful response, with the updated payment method in the response.\n","tags":["Payment Methods"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"payment_method_id","in":"path","description":"The unique identifier of the payment method.","required":true,"schema":{"type":"string","example":"00000000-0000-0000-0000-00000000000b"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["banv_status"],"properties":{"banv_status":{"type":"string","enum":["pending","processing","verified","failed_verification","blocked"],"description":"The BANV status of the payment method.","example":"blocked"},"banv_response":{"type":"object","description":"The response received when bank account verification was attempted. Required when `banv_status` is `failed_verification`.","example":{"reason":"Invalid account number"}},"blocked_reason":{"type":"string","description":"The reason the payment method is blocked. Required when `banv_status` is `blocked`.","example":"Fraud detected"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"}}}}}}},"/payment-methods/{payment_method_id}/dismiss":{"post":{"operationId":"dismiss-payment-method","summary":"Dismiss a payment method","description":"Dismisses a payment method, marking it as no longer active. Dismissed payment methods are excluded from standard queries unless explicitly requested.","tags":["Payment Methods"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"payment_method_id","in":"path","description":"Must be a UUID. The unique identifier of the payment method.","required":true,"schema":{"type":"string","example":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","policyholder_id":"f91f4ea4-9c6d-459e-998b-a5711cbd8895","created_at":"2021-01-29T13:12:00.968Z","updated_at":"2021-02-15T10:30:00.000Z","bank_details":{"account_holder":"Erlich Bachman","bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque","banv_status":"verified"}}}}}}}},"/payment-methods/{payment_method_id}/manual-verify":{"post":{"operationId":"manual-verify-payment-method","summary":"Manually verify a payment method","description":"Manually verifies a payment method, setting its BANV status to `verified`. This is useful when verification has been performed through an external process.","tags":["Payment Methods"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"payment_method_id","in":"path","description":"Must be a UUID. The unique identifier of the payment method.","required":true,"schema":{"type":"string","example":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","organization_id":"952bfef5-7517-47ff-bf41-08c5a66c52db","policyholder_id":"f91f4ea4-9c6d-459e-998b-a5711cbd8895","created_at":"2021-01-29T13:12:00.968Z","updated_at":"2021-02-15T10:30:00.000Z","bank_details":{"account_holder":"Erlich Bachman","bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque","banv_status":"verified"}}}}}}}},"/payment-methods/debicheck-mandates/{mandate_id}":{"get":{"operationId":"get-debicheck-mandate","summary":"Get DebiCheck Mandate","description":"Retrieves a DebiCheck mandate by ID.","tags":["Payment Methods"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"mandate_id","in":"path","description":"The unique identifier of the DebiCheck mandate.","required":true,"schema":{"type":"string","format":"uuid","example":"00000000-0000-0000-0000-00000000000a"}}],"responses":{"200":{"description":"Successfully retrieved DebiCheck Mandate","content":{"application/json":{"schema":{"$ref":"#/paths/~1payment-methods~1debicheck-mandates/post/responses/201/content/application~1json/schema"}}}}}},"patch":{"operationId":"update-debicheck-mandate","summary":"Update DebiCheck Mandate","description":"Updates a DebiCheck mandate by ID.","tags":["Payment Methods"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"mandate_id","in":"path","description":"The unique identifier of the DebiCheck mandate.","required":true,"schema":{"type":"string","format":"uuid","example":"00000000-0000-0000-0000-00000000000a"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["debicheckMandateId","status"],"properties":{"debicheckMandateId":{"type":"string","format":"uuid","description":"The unique identifier of the DebiCheck mandate","example":"00000000-0000-0000-0000-00000000000a"},"status":{"type":"string","description":"The status of the DebiCheck mandate","enum":["pending","submitted","processing","active","rejected","suspended","cancelled","no_response"],"example":"active"},"mandateRequestIdentifier":{"type":"string","description":"The mandate request identifier","example":"MANDATE_REQ_12345"},"startDate":{"type":"string","format":"date-time","description":"The start date of the mandate","example":"2024-01-01T00:00:00Z"},"externalReference":{"type":"string","description":"External reference for the mandate","example":"EXT_REF_12345"},"failureReasons":{"type":"array","items":{"type":"string"},"description":"Array of failure reasons if the mandate was rejected","example":["Invalid account details","Insufficient funds"]},"failureCodes":{"type":"array","items":{"type":"string"},"description":"Array of failure codes if the mandate was rejected","example":["900002","900003"]},"mandateReference":{"type":"string","description":"The mandate reference number","example":"MANDATE_REF_12345"},"rawRequest":{"type":"string","description":"Raw request data","example":"{\"mandateId\":\"12345\",\"accountDetails\":{...}}"},"rawResponse":{"type":"object","description":"Raw response data from the bank","example":{"status":"SUCCESS","mandateId":"12345","responseCode":"0000"}},"submittedAt":{"type":"string","format":"date-time","description":"The date when the mandate was submitted","example":"2024-01-01T00:00:00Z"}}}}}},"responses":{"200":{"description":"Successfully updated DebiCheck Mandate","content":{"application/json":{"schema":{"$ref":"#/paths/~1payment-methods~1debicheck-mandates/post/responses/201/content/application~1json/schema"}}}}}}},"/payment-methods/debicheck-mandates":{"post":{"operationId":"create-debicheck-mandate","summary":"Create DebiCheck Mandate","description":"Creates a new DebiCheck mandate for a policy.","tags":["Payment Methods"],"x-additional-tags":["Billing & payments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["policyId","providerType","debicheckAuthenticationType"],"properties":{"policyId":{"type":"string","format":"uuid","description":"The ID of the policy to create the mandate for","example":"00000000-0000-0000-0000-00000000000a"},"providerType":{"type":"string","enum":["nedbank","external"],"description":"Provider type for the DebiCheck mandate","example":"nedbank"},"debicheckAuthenticationType":{"type":"string","enum":["REAL TIME","BATCH","PREAUTH"],"description":"Authentication type for the DebiCheck mandate","example":"BATCH"}}}}}},"responses":{"201":{"description":"Successfully created DebiCheck Mandate","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the DebiCheck mandate."},"policy_id":{"type":"string","format":"uuid","description":"The unique identifier of the policy."},"payment_method_id":{"type":"string","format":"uuid","description":"The unique identifier of the payment method."},"status":{"type":"string","enum":["pending","submitted","processing","active","rejected","suspended","cancelled","no_response"],"description":"The status of the DebiCheck mandate."},"submitted_at":{"type":"string","format":"date-time","nullable":true,"description":"The date and time the mandate was submitted."},"authorized_at":{"type":"string","format":"date-time","nullable":true,"description":"The date and time the mandate was authorized."},"rejected_at":{"type":"string","format":"date-time","nullable":true,"description":"The date and time the mandate was rejected."},"cancelled_at":{"type":"string","format":"date-time","nullable":true,"description":"The date and time the mandate was cancelled."},"mandate_reference":{"type":"string","nullable":true,"description":"The mandate reference."},"external_reference":{"type":"string","nullable":true,"description":"The external reference for the mandate."},"failure_reasons":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Reasons for failure."},"failure_codes":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Failure codes."},"contract_reference":{"type":"string","nullable":true,"description":"The contract reference."},"installment_occurance":{"type":"string","nullable":true,"description":"The installment occurrence."},"frequency":{"type":"string","nullable":true,"description":"The frequency of the mandate."},"start_date":{"type":"string","format":"date-time","nullable":true,"description":"The start date of the mandate."},"amount":{"type":"number","nullable":true,"description":"The amount of the mandate."},"max_collection_amount":{"type":"number","nullable":true,"description":"The maximum collection amount."},"collection_day":{"type":"integer","nullable":true,"description":"The collection day."},"first_collection_date":{"type":"string","format":"date-time","nullable":true,"description":"The first collection date."},"first_collection_amount":{"type":"number","nullable":true,"description":"The first collection amount."},"created_at":{"type":"string","format":"date-time","description":"The date and time the mandate was created."},"updated_at":{"type":"string","format":"date-time","description":"The date and time the mandate was last updated."},"policy":{"$ref":"#/components/schemas/policy","nullable":true},"payment_method":{"$ref":"#/components/schemas/payment-method","nullable":true},"debicheck_mandate_batch_id":{"type":"string","format":"uuid","nullable":true,"description":"The unique identifier of the DebiCheck mandate batch."},"provider_type":{"type":"string","enum":["nedbank","external"],"description":"The provider type for the DebiCheck mandate."}},"required":["id","policy_id","payment_method_id","status","created_at","updated_at","provider_type"]}}}}}}},"/payout-requests/{payout_request_id}":{"patch":{"operationId":"update-a-payout-request","summary":"Update a payout request","tags":["Claims"],"x-additional-tags":["Payout requests"],"parameters":[{"name":"payout_request_id","in":"path","description":"Must be a UUID. The unique identifier of the payout request.","required":true,"schema":{"type":"string","example":"02f94351-94c8-40a4-ace1-97d7fe4b7a9a"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","description":"The status of the payout request. This must be one of [`pending`, `processing`, `completed`, `rejected`]."},"reason":{"type":"string","description":"A string describing why the payout request is being rejected. This is required when the status is `rejected`, and forbidden otherwise."},"proof_of_payment":{"type":"object","description":"Object containing the proof of payment for a successfully completed payout request. This is optional when the status is `completed`, and forbidden otherwise.","properties":{"file_name":{"type":"string","description":"The name of the file (with file extension)."},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)."},"file_base64":{"type":"string","description":"The raw file bytes encoded as a base 64 string. Limited to a maximum of 4 MB in size."},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)."}},"required":["file_name","description","file_base64","file_type"]}},"example":{"status":"rejected","reason":"Rejected as part of testing"}},"example":{"status":"rejected","reason":"Rejected as part of testing"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"payout_request_id":{"type":"string"},"created_at":{"type":"string"},"created_by":{"type":"object"},"status":{"type":"string"},"rejection_reason":{"type":"string"},"type":{"type":"string"},"amount":{"type":"string"},"description":{"type":"string"},"finalized_at":{"type":"string"},"finalized_by":{"type":"object"},"claim_id":{"type":"string"},"policy_id":{"type":"string"},"policyholder_id":{"type":"string"},"payee":{"type":"object"}}},"example":{"payout_request_id":"02f94351-94c8-40a4-ace1-97d7fe4b7a9a","created_at":"2022-01-31T13:55:27.717Z","created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"status":"rejected","rejection_reason":"Rejected as part of testing","type":"claim_payout","amount":"2500000","description":"Monetary payout to be actioned on approval of claim AAD65AF5CDC5 ","finalized_at":"2022-01-31T13:56:16.208Z","finalized_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"claim_id":"63bdffce-2ffb-41f7-8c71-c85711ec4c2c","policy_id":"39cf9f0a-2363-476e-a718-7c9b4a408e6a","policyholder_id":"9c27fb39-bcc6-4ccf-a5f1-c6352cbc24f0","payee":{"beneficiary_id":"25348c7b-620d-41c3-803d-7daebc7599a1","policyholder_id":"9c27fb39-bcc6-4ccf-a5f1-c6352cbc24f0","percentage":100,"payment_details":{"type":"eft","details":{"bank_name":"ABSA","branch_code":"12345","account_type":"cheque_account","account_number":"123456789"}},"relationship":"other"}}}}}}}},"/scheduled-payments/{scheduled_payment_id}/reschedule":{"post":{"operationId":"reschedule-scheduled-payment","summary":"Reschedule a scheduled payment","description":"Moves a pending scheduled payment to a new date. The caller must pass the schedule's current `version` for optimistic-locking; a stale version returns `409 Conflict`. Only pending schedules can be rescheduled. Returns `200 OK` with the scheduled payment id on success.","tags":["Payments"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"scheduled_payment_id","in":"path","description":"The unique identifier of the scheduled payment.","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["scheduled_for","version"],"properties":{"scheduled_for":{"type":"string","format":"date-time","description":"The new date to attempt collection on. Must not be in the past.","example":"2026-07-01T00:00:00.000Z"},"reason":{"type":"string","description":"Optional free-text note on why the schedule was moved.","example":"Customer requested a later debit date."},"version":{"type":"integer","description":"The schedule's current version, for optimistic-locking.","example":1}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"scheduled_payment_id":{"type":"string"}}},"example":{"scheduled_payment_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}}},"409":{"description":"The schedule is not pending, or the supplied version is stale."}}}},"/scheduled-payments/{scheduled_payment_id}/unschedule":{"post":{"operationId":"unschedule-scheduled-payment","summary":"Unschedule a scheduled payment","description":"Cancels a pending scheduled payment so it will not be collected. The caller must pass the schedule's current `version` for optimistic-locking; a stale version returns `409 Conflict`. Only pending schedules can be unscheduled. Returns `200 OK` with the scheduled payment id on success.","tags":["Payments"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"scheduled_payment_id","in":"path","description":"The unique identifier of the scheduled payment.","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["reason","version"],"properties":{"reason":{"type":"string","description":"Why the schedule was cancelled.","enum":["manual_admin","payment_method_revoked","policy_cancelled"],"example":"payment_method_revoked"},"version":{"type":"integer","description":"The schedule's current version, for optimistic-locking.","example":1}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"scheduled_payment_id":{"type":"string"}}},"example":{"scheduled_payment_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}}},"409":{"description":"The schedule is not pending, or the supplied version is stale."}}}},"/policies":{"post":{"operationId":"issue-a-policy","summary":"Issue a policy","tags":["Policies"],"x-additional-tags":["Create"],"parameters":[{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string","description":"Must be a UUID. Unique identifier of the [created application](ref:create-application)."},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policy.","additionalProperties":true},"billing_day":{"type":["integer","null"],"description":"`null` is allowed. The day of month on which the policy is billed. Should be between 1 and 31, or `null`. If it falls on a day that does not exist in the month (for example, 31 in February) the policy will be billed on the last day of the month. Setting this value to 31 will ensure that the policy is billed on the last day of every month."},"user_group_id":{"type":["string","null"],"description":"`null` is allowed. When provided, the policy will be assigned to the corresponding user group. If omitted or `null`, no user group will be assigned."}},"example":{"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","app_data":{"gadget_colour":"Space Grey"}}},"example":{"application_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","app_data":{"gadget_colour":"Space Grey"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"charges":[]}}}}}},"get":{"operationId":"fetch-policies","summary":"List all policies","tags":["Policies"],"x-additional-tags":["Retrieve"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"search","in":"query","description":"A general-purpose parameter used to search for policies across `policy.policy_number`, `policy.package_name`, `policyholder.first_name`, `policyholder.last_name`, `policyholder.company_name`, `policyholder.identification_number`, `policyholder.registration_number`, `policyholder.cellphone`, `policyholder.phone_other`,\n and `policyholder.email`.\n","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"A comma separated list of policy statuses to filter by.\n","required":false,"example":"active,pending_initial_payment,not_taken_up,cancelled,lapsed,expired","schema":{"type":"string"}},{"name":"policyholder_id","in":"query","description":"Must be a UUID. Filter for policies linked to this policyholder.\n","required":false,"schema":{"type":"string"}},{"name":"created_by","in":"query","description":"Must be a UUID. The unique identifier of the agent that created the policy.\n","required":false,"schema":{"type":"string"}},{"name":"include","in":"query","description":"Whether to include the full policyholder object linked to the policy in the response.\n","required":false,"style":"form","explode":false,"schema":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["policyholder"]}}},{"name":"product_module_id","in":"query","description":"Must be a UUID. Filter for policies issued under this product module.\n","required":false,"schema":{"type":"string"}},{"name":"policy_number","in":"query","description":"List of case sensitive policy numbers to filter by.\n","required":false,"style":"form","explode":false,"schema":{"type":"array","uniqueItems":true,"items":{"type":"string"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policies"},"example":[{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}]}}}}}},"/policies/issue-aggregated":{"post":{"operationId":"issue-aggregated-policy","summary":"Issue an aggregated policy","tags":["Policies"],"x-additional-tags":["Create"],"parameters":[{"$ref":"#/components/parameters/idempotency"},{"name":"version","in":"query","description":"The version of the policy being issued. Can be a UUID or one of `live`, `draft`.\n","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["quote","application","policy"],"properties":{"quote":{"$ref":"#/components/schemas/quote-package"},"application":{"type":"object","required":["billing_day"],"properties":{"billing_day":{"type":"integer","description":"The day of the month for billing, between 1 and 31.\n"},"custom_fields":{"type":"object","additionalProperties":true}}},"policy":{"type":"object","required":["app_data"],"properties":{"app_data":{"type":"object","additionalProperties":true},"lead_id":{"type":"string","format":"uuid","description":"Reference to a lead for the policy."}}}},"oneOf":[{"required":["policyholder"],"properties":{"policyholder":{"$ref":"#/components/schemas/policyholder-request"}}},{"required":["policyholder_id"],"properties":{"policyholder_id":{"type":"string","format":"uuid","description":"Reference to an existing policyholder."}}}],"example":{"policyholder":{"$ref":"#/components/schemas/policyholder-request/example"},"policyholder_id":null,"quote":{"$ref":"#/components/schemas/quote-package/example"},"application":{"billing_day":15},"policy":{"app_data":{},"lead_id":null}}}}}},"responses":{"200":{"description":"Successfully issued the policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"POL12345","status":"active","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Basic Coverage","sum_assured":1000000,"billing_day":15}}}}}}},"/policies/cancel":{"post":{"operationId":"bulk-cancel-policies","summary":"Bulk cancel policies","description":"This endpoint creates a set of cancel requests for the specified policies, which will then asynchronously cancel each specified policy. It will return an empty `200 OK` response on success.\n\nThe endpoint requires an array of policy cancel objects, defined as follows:\n","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["policy_id","reason"],"properties":{"policy_id":{"type":"string","description":"A policy ID."},"reason":{"type":"string","description":"A reason for why this policy is being cancelled."}},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","reason":"Policyholder cancelled within 30-day grace period"}}},"example":[{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","reason":"Policyholder cancelled within 30-day grace period"}]}}},"responses":{"200":{"description":"Success"}}}},"/user-groups/{user_group_id}/policies":{"put":{"operationId":"bulk-reassign-policy-user-groups","summary":"Bulk reassign policy user groups","description":"Assign a list of existing policies to the specified user groups. The operation will attempt to add each policy in the policy_ids array to the user group, and return per-policy results along with an overall status.\n","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"user_group_id","in":"path","description":"Must be a UUID. The unique identifier of the user group.","required":true,"schema":{"type":"string","example":"56c1d08f-45af-472a-afc9-e1377b34e116"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["policy_ids"],"properties":{"policy_ids":{"type":"array","items":{"type":"string"},"example":["128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"]}}},"example":{"policy_ids":["128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["status","results"],"properties":{"status":{"type":"string"},"results":{"type":"array","items":{"type":"object","required":["policy_id","status"],"properties":{"policy_id":{"type":"string"},"status":{"type":"string"}}}}}},"example":{"status":"success","results":[{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"success"}]}}}}}}},"/policies/lapse":{"post":{"operationId":"bulk-lapse-policies","summary":"Bulk lapse policies","description":"This endpoint creates a set of lapse requests for the specified policies, which will then asynchronously lapse each specified policy. It will return an empty `200 OK` response on success.\n\nThe endpoint requires an array of policy lapse objects, defined as follows:\n","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["policy_id","reason"],"properties":{"policy_id":{"type":"string","description":"A policy ID."},"reason":{"type":"string","description":"A reason for why this policy is being lapsed."}},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","reason":"Policyholder cancelled within 30-day grace period"}}},"example":[{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","reason":"Policyholder cancelled within 30-day grace period"}]}}},"responses":{"200":{"description":"Success"}}}},"/policies/{policy_id}":{"get":{"operationId":"retrieve-policy","summary":"Retrieve a policy","tags":["Policies"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}},"patch":{"operationId":"update-policy","summary":"Update a policy","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policy.","additionalProperties":true},"billing_day":{"type":"integer","description":"Day of the month on which the policy should be billed. Should be between 1 and 31. Billing day cannot be changed once a payment method is assigned to the policy."}},"example":{"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"billing_day":7}},"example":{"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"billing_day":7}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":7,"billing_frequency":"monthly","start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/files/13ab24b3-beed-4f71-aa8f-ad87dc43c6e6","terms_uri":"https://sandbox.root.co.za/v1/files/52f57736-d473-4bce-aa06-cf43d98279e2","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/files/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}}},"/policies/{policy_id}/alteration-packages":{"post":{"operationId":"create-alteration-package","summary":"Create an alteration package","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy)","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","data"],"properties":{"key":{"type":"string","description":"The identifier of the alteration hook."},"data":{"type":"object","description":"Custom module-specific fields stored against the alteration package. See [product modules](doc:product-modules-overview) for more details.","additionalProperties":true},"auto_apply":{"type":"boolean","description":"If true, the first alteration package will be automatically applied to the policy after creation. The response will be an array containing a single applied alteration package."},"ignore_notifications":{"type":"boolean","description":"If true and auto_apply is true, notifications will not be sent when the alteration package is applied."}},"example":{"data":{"type":"root_gadgets","model_name":"iPhone 6s 64GB LTE"},"key":"product_module_hook_key"}},"example":{"data":{"type":"root_gadgets","model_name":"iPhone 6s 64GB LTE"},"key":"product_module_hook_key"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alteration-packages"},"example":[{"alteration_package_id":"f4397823-db4a-4d6a-a06b-08e1a2a3172c","sum_assured":1199900,"monthly_premium":14999,"billing_frequency":"monthly","created_at":"2017-10-12T15:47:34.281Z","status":"pending","input_data":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"},"change_description":"Updating device","product_module_definition_id":"9b7b43f4-9ab8-4e37-b42b-59d5595f3983","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","product_module_definition_alteration_hook_id":"2cbbc377-e142-4986-8871-29b0a4c23353","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"}}]}}}}}},"/policies/{policy_id}/alteration-packages/{alteration_package_id}/apply":{"post":{"operationId":"apply-alteration-package","summary":"Apply alteration package","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"alteration_package_id","in":"path","description":"Must be a UUID. The ID of the  [alteration-packages](ref:alteration-package) to apply to the policy","required":true,"schema":{"type":"string","example":"f22a8783-0c0b-458a-98c6-830ded6b47c2"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/alteration-package"},"example":{"alteration_package_id":"f4397823-db4a-4d6a-a06b-08e1a2a3172c","created_at":"2020-07-30T14:47:16.344Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"},"monthly_premium":11200,"currency":"ZAR","sum_assured":329900,"billing_frequency":"monthly","status":"applied","change_description":"Updating device","product_module_definition_id":"9b7b43f4-9ab8-4e37-b42b-59d5595f3983","input_data":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"},"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","product_module_definition_alteration_hook_id":"2cbbc377-e142-4986-8871-29b0a4c23353"}}}}}}},"/policies/{policy_id}/attachments":{"get":{"operationId":"retrieve-policy-attachments","summary":"List policy attachments","tags":["Policies"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachments"},"example":{"attachment_id":"7f4315b2-a919-11ed-8553-5bb8fbd4817b","file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report","created_at":"2022-01-31T11:25:51.557Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}},"post":{"operationId":"policy-create-attachment","summary":"Create an attachment","tags":["Policies"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file_name","description","file_base64","file_type"],"properties":{"file_name":{"type":"string","description":"The name of the file (with file extension)."},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)."},"file_base64":{"type":"string","description":"The raw file bytes encoded as a base 64 string. Limited to a maximum of 4 MB in size."},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)."}},"example":{"file_name":"report.pdf","file_type":"application/pdf","description":"Police Report","file_base64":"JVBERi0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"#/components/schemas/attachment"},"example":{"file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report","policy_id":"50000000-5000-5000-5000-500000000000","type":"attachment_created","created_at":"2022-01-31T11:25:23.427Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/policies/{policy_id}/attachments/{attachment_id}/archive":{"post":{"operationId":"policy-archive-attachment","summary":"Archive an attachment","tags":["Policies"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"attachment_id","in":"path","description":"The unique identifier of the attachment.","required":true,"schema":{"type":"string","example":"c1cace2a-634a-4848-bde8-d2c60322e7e8"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"event_type":{"type":"string"},"policy_id":{"type":"string"},"created_at":{"type":"string"},"requested_by":{"type":"object"}}},"example":{"event_type":"attachment_archived","policy_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","created_at":"2017-10-13T09:37:48.947Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/policies/{policy_id}/beneficiaries":{"get":{"operationId":"fetch-policy-beneficiaries","summary":"List beneficiaries","tags":["Policies"],"x-additional-tags":["Beneficiaries"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/beneficiaries"}}}}}},"put":{"operationId":"update-policy-beneficiaries","summary":"Update beneficiaries","description":"This endpoint accepts an array of beneficiary objects as the body. The entire array of beneficiaries will be replaced. The number of beneficiaries cannot exceed the max defined in the [general settings](doc:general-settings). The percentages must add up to 100%.","tags":["Policies"],"x-additional-tags":["Beneficiaries"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. Unique identifier of the policy.","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/beneficiaries-request"},"example":{"$ref":"#/components/schemas/beneficiaries-request/example"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[{"first_name":"Jared","last_name":"Dunn","id":{"type":"id","number":"8704094800082","country":"ZA"},"percentage":100,"relationship":"cousin_or_relative"}],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"charges":[]}}}}}}},"/policies/{policy_id}/billing":{"post":{"operationId":"update-billing-amount","summary":"Update billing amount","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["billing_amount"],"properties":{"billing_amount":{"type":"integer","description":"The billing amount to be set on the policy in cents."}},"example":{"billing_amount":37300}},"example":{"billing_amount":37300}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":45000,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}}},"/policies/{policy_id}/cancel":{"post":{"operationId":"cancel-policy","summary":"Cancel a policy","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"A reason for why this policy is being cancelled. Required if `cancellation_requestor` is not specified."},"cancellation_requestor":{"type":"string","description":"The entity that is cancelling the policy. Either `insurer` or `client`. Required if `reason` is not specified."},"cancellation_type":{"type":"string","description":"The cancellation type. When `cancellation_requestor` is `client` then one of [`Too expensive`, `Alternate product`, `Unhappy with service`, `Unhappy with benefits`, `Financial constraints`, `Retrenched`, `Unemployed`, `Leaving the country`, `Other`]. When `cancellation_requestor` is `insurer` then one of [`Cooling off period`, `Dishonest client`, `Altered risk profile`, `Policy claimed`]."}},"example":{"reason":"Policyholder cancelled within 30-day grace period"}},"example":{"reason":"Policyholder cancelled within 30-day grace period"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"cancelled","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":45000,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}}},"/policies/{policy_id}/claims":{"get":{"operationId":"fetch-policy-claims","summary":"List policy claims","tags":["Policies"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"claim_status","in":"query","description":"A string indicating the status of the policy. Possible values include `open`, `in_review`, `acknowledged`, `pending_payout`, `paid_out`, `closed`.","required":false,"schema":{"type":"string"}},{"name":"approval_status","in":"query","description":"A string indicating the status of the policy. Possible values include `pending`, `approved`, `repudiated`, `no_claim`, `goodwill`.","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claims"},"example":[{"claim_id":"d3d13c48-4dc3-4816-8d01-de3215878225","claim_number":"D2F69D1CA322","created_at":"2021-05-21T08:14:42.034Z","claim_status":"pending_payout","claimant":{"first_name":"Erlich","last_name":"Bachman","email":"erlich@aviato.com","relationship":"main_member"},"approval_status":"approved","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policyholder_id":"c36b5448-643b-4aad-8932-34904b2da3d9","incident_type":null,"incident_cause":null,"app_data":null,"module_data":{"key":"value"},"requested_amount":2621800,"rejection_reason":null,"created_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"},"currency":"ZAR","block_states":{"checkbox_block":{"type":"checkbox"},"currency_amount":{"type":"input.currency"},"free_text_block":{"type":"input.text"}},"updated_at":"2021-05-21T08:15:42.437Z"}]}}}}}},"/policies/{policy_id}/collection-requests/payment-dates":{"get":{"operationId":"get-valid-collection-dates-for-policy","summary":"Get valid collection dates for policy","description":"This endpoint is used to retrieve valid payment dates when submitting collection requests. The payment date is the date on which the collection request will strike the\npolicyholder's bank account. The payment date returned to you will then be used as a parameter when [creating a collection request](ref:create-policy-payments-collection-request-1).","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"from","in":"query","description":"The first payment date for which you will be returned submission dates.","required":true,"schema":{"type":"string","format":"date-time","example":"2020-07-16"}},{"name":"to","in":"query","description":"The last payment date for which you will be returned submission dates.","required":true,"schema":{"type":"string","format":"date-time","example":"2020-07-19"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":["2020-07-16T00:00:00.000Z","2020-07-17T00:00:00.000Z"]}}}}}},"/policies/{policy_id}/debicheck-mandate":{"get":{"operationId":"policy-debicheck-mandate","summary":"Retrieve a policy's DebiCheck Mandate","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"policy_id":{"type":"string"},"payment_method_id":{"type":"string"},"status":{"type":"string"},"mandate_reference":{"type":["string","null"]},"external_reference":{"type":["string","null"]},"failure_reasons":{"type":["object","null"]},"failure_codes":{"type":["object","null"]},"contract_reference":{"type":"string"},"installment_occurance":{"type":"string"},"frequency":{"type":"string"},"amount":{"type":"number"},"max_collection_amount":{"type":"number"},"collection_day":{"type":"number"},"first_collection_amount":{"type":["object","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}}},"example":{"id":"cf092eb9-02c6-4a2d-b43b-4aff83b45fe4","policy_id":"e2081077-9b88-4129-aa40-f1b58e23cb91","payment_method_id":"c8cde24d-5495-46b8-9a12-190ebcda9963","status":"pending","mandate_reference":null,"external_reference":null,"failure_reasons":null,"failure_codes":null,"contract_reference":"1F51FD2E442207","installment_occurance":"RCUR","frequency":"MNTH","amount":34500,"max_collection_amount":69000,"collection_day":1,"first_collection_amount":null,"created_at":"2021-07-22T13:18:15.975Z","updated_at":"2021-07-22T13:18:15.975Z"}}}}}}},"/policies/{policy_id}/prevent-lapse-and-ntu":{"post":{"operationId":"prevent-policy-lapse-and-NTU","summary":"Prevent or Resume Policy Lapse and NTU","description":"This endpoint enables users to specify a period during which the policy is safeguarded from lapsing or entering an NTU state. Alternatively, it can be used to resume the lapse and NTU processes if needed.\nWhen preventing lapses, the request requires the start and end dates for the period, along with the reason. For resuming lapses, only the `resume` parameter is required.\n","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the policy. Must be a UUID.","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["resume"],"properties":{"policy_id":{"type":"string","description":"The unique identifier of the policy."},"resume":{"type":"boolean","description":"Indicates whether the endpoint is being used to resume lapsing (true) or prevent lapsing (false).","enum":[true]}}},{"type":"object","required":["resume","reason","start_date","end_date"],"properties":{"policy_id":{"type":"string","description":"The unique identifier of the policy."},"resume":{"type":"boolean","description":"Indicates whether the endpoint is being used to resume lapsing (true) or prevent lapsing (false).","enum":[false]},"reason":{"type":"string","description":"The reason for preventing the policy from lapsing."},"start_date":{"type":"string","format":"date","description":"The start date of the prevention period (in YYYY-MM-DD format)."},"end_date":{"type":"string","format":"date","description":"The end date of the prevention period (in YYYY-MM-DD format)."}}}]},"examples":{"preventLapse":{"summary":"Prevent policy lapse","value":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","resume":false,"reason":"Customer retention","start_date":"2025-01-01","end_date":"2025-01-31"}},"resumeLapse":{"summary":"Resume policy lapse","value":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","resume":true}}}}}}}},"/policies/{policy_id}/ledger":{"get":{"operationId":"retrieve-policy-ledger","summary":"List policy ledger","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"include","in":"query","description":"An optional comma-separated list of objects to include. e.g. `?include=balance`. Possible values include [ `balance`, `payment`, `payment_coupon`].","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"entry_id":{"type":"string"},"organization_id":{"type":"string"},"policy_id":{"type":"string"},"created_at":{"type":"string"},"description":{"type":"string"},"currency":{"type":"string"},"amount":{"type":"number"},"balance":{"type":"number"},"payment_coupon_id":{"type":"string"},"payment":{"type":"object"},"payment_coupon":{"type":"object"}}}},"example":[{"entry_id":"2c08dbe1-56ab-4b2e-9290-a1fcb5564772","organization_id":"00000000-0000-0000-0000-000000000001","policy_id":"7ac6fb97-50de-470a-b9dd-bf85806470a5","created_at":"2021-11-29T12:48:40.185Z","description":"Coupon redeemed","currency":"ZAR","amount":1000,"balance":-479899,"payment_coupon_id":"95bdd7d3-1465-4449-bb06-059b4c31e9cf","payment":null,"payment_coupon":{"payment_coupon_id":"95bdd7d3-1465-4449-bb06-059b4c31e9cf","policy_id":"7ac6fb97-50de-470a-b9dd-bf85806470a5","status":"redeemed","amount":1000,"reason":"Eish no money","payment_date":"2021-11-29T00:00:00.000Z","billing_date":"2021-11-29T00:00:00.000Z","created_at":"2021-11-29T12:48:17.440Z","created_by":{"type":"api_key","id":"afa9a490-fc62-4001-bde2-b1d6e2cae133","owner_id":"00000000-0000-0000-0000-000000000001"}}},{"entry_id":"d6f0a27f-c1ff-4a4f-a67f-15470caff6b8","organization_id":"00000000-0000-0000-0000-000000000001","policy_id":"7ac6fb97-50de-470a-b9dd-bf85806470a5","created_at":"2021-11-29T12:48:18.307Z","description":"Adjustment for billing day change","currency":"ZAR","amount":-900,"balance":-480899,"payment":null,"payment_coupon":null},{"entry_id":"4b572b57-f552-4c24-a9c1-344c218bd68b","organization_id":"00000000-0000-0000-0000-000000000001","policy_id":"7ac6fb97-50de-470a-b9dd-bf85806470a5","created_at":"2021-11-29T12:48:16.485Z","description":"Monthly premium","currency":"ZAR","amount":20000,"balance":-470000,"payment_id":"a7e625ad-7b9d-4021-b8e8-a49a5b376dec","payment":{"payment_id":"a7e625ad-7b9d-4021-b8e8-a49a5b376dec","policy_id":"7ac6fb97-50de-470a-b9dd-bf85806470a5","status":"successful","amount":20000,"description":"Monthly premium","external_ref":"ABCDE","created_at":"2021-11-29T12:48:16.479Z","created_by":{"type":"api_key","id":"afa9a490-fc62-4001-bde2-b1d6e2cae133","owner_id":"00000000-0000-0000-0000-000000000001"},"updated_at":"2021-11-29T12:48:16.479Z","payment_date":"2021-05-03T00:00:00.000Z","action_date":"2021-05-03T00:00:00.000Z","policy":null,"policyholder":null,"payment_method":null,"payment_type":"premium","premium_type":null,"failure_reason":null,"currency":"ZAR","finalized_at":"2021-11-29T12:48:16.479Z","finalized_by":{"type":"api_key","id":"afa9a490-fc62-4001-bde2-b1d6e2cae133","owner_id":"00000000-0000-0000-0000-000000000001"},"collection_type":null,"app_data":{},"charges":[]},"payment_coupon":null}]}}}}}},"/policies/{policy_id}/notes":{"get":{"operationId":"retrieve-policy-notes","summary":"List policy notes","description":"List all notes that have been added to a policy.","tags":["Policies"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/notes"},"example":{"created_at":"2023-02-10T09:17:00.185Z","text\"":"Customer spoke to Erlich previously","requested_by\"":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}},"post":{"operationId":"policy-add-note","summary":"Add a note","tags":["Policies"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"A string of text for the note."}},"example":{"text":"Customer spoke to Erlich previously"}},"example":{"text":"Customer spoke to Erlich previously"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/note"},"example":{"text":"Customer spoke to Erlich previously","policy_id":"10000000-1000-1000-1000-100000000000","type":"text_note_created","created_at":"2022-10-16T10:12:02.872Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/policies/{policy_id}/payment-coupons":{"delete":{"operationId":"cancel-payment-coupons","summary":"Cancel payment coupons for a policy","description":"Cancel all pending payment coupons for a policy","tags":["Policies"],"x-additional-tags":["Payment coupons"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-coupons"},"example":[{"payment_coupon_id":"307286b9-bbaa-4096-9ccf-fcbe596ea0a8","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"cancelled","type":"payment_holiday","redeemable_from":"2022-06-01T00:00:00.000Z","redeemable_to":"2022-06-30T00:00:00.000Z","reason":"Customer retrenched","created_at":"2020-08-04T09:14:21.451Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}},{"payment_coupon_id":"de07f9a8-f818-4fbe-9d19-b46ba8d98758","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"cancelled","type":"ad_hoc","amount":2000,"reason":"Customer retrenched","created_at":"2020-08-04T09:14:21.451Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}]}}}}},"get":{"operationId":"retrieve-payment-coupons","summary":"Retrieve payment coupons for a policy","tags":["Policies"],"x-additional-tags":["Payment coupons"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","redeemed","cancelled","reversed"]}},{"name":"include","in":"query","description":"An optional comma-separated list of underlying objects to include, e.g. `?include=policy`.","required":false,"style":"form","explode":false,"schema":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["policy"]}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-coupons"}}}}}},"post":{"operationId":"create-payment-coupons","summary":"Create payment coupons for a policy","tags":["Policies"],"x-additional-tags":["Payment coupons"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ad_hoc","payment_holiday"],"description":"The type of the payment coupon."},"redeemable_from":{"type":"string","format":"date-time","description":"The date from which the coupon can be redeemed. Required when creating `payment_holiday` coupons."},"redeemable_to":{"type":"string","format":"date-time","description":"The date by which the coupon must be redeemed. Required when creating `payment_holiday` coupons."},"amount":{"type":"integer","description":"The amount, in cents, that represents the value of the coupon once redeemed. Required when creating `ad_hoc` coupons."},"reason":{"type":"string","description":"The reason for the payment coupon being granted."}}}},"example":[{"type":"payment_holiday","redeemable_from":"2022-06-01","redeemable_to":"2022-06-30","reason":"Customer retrenched"},{"type":"ad_hoc","amount":2000,"reason":"Customer retrenched"}]}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-coupons"}}}}}}},"/policies/{policy_id}/payment-coupons/{payment_coupon_id}/redeem":{"post":{"operationId":"redeem-payment-coupons","summary":"Redeem payment coupon for a policy","tags":["Policies"],"x-additional-tags":["Payment coupons"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"payment_coupon_id","in":"path","description":"Must be a UUID. The unique identifier of the [payment_coupon](ref:retrieve-payment-coupons-1).","required":true,"schema":{"type":"string","example":"3ae7c7fe-42b5-459f-b4b4-7a30b9e1cbf4"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"payment_date":{"type":"string","format":"date-time","description":"The payment date"},"billing_date":{"type":"string","format":"date-time","description":"The billing date"}},"required":["payment_date"]},"example":{"payment_date":"2022-06-01"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-coupon"}}}}}}},"/policies/{policy_id}/payment-coupons/{payment_coupon_id}":{"delete":{"operationId":"cancel-payment-coupon","summary":"Cancel a payment coupon for a policy","tags":["Policies"],"x-additional-tags":["Payment coupons"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"payment_coupon_id","in":"path","description":"Must be a UUID. The unique identifier of the [payment_coupon](ref:retrieve-payment-coupons-1).","required":true,"schema":{"type":"string","example":"3ae7c7fe-42b5-459f-b4b4-7a30b9e1cbf4"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-coupon"},"example":{"payment_coupon_id":"3ae7c7fe-42b5-459f-b4b4-7a30b9e1cbf4","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","status":"cancelled","type":"payment_holiday","redeemable_from":"2022-06-01T00:00:00.000Z","redeemable_to":"2022-06-30T00:00:00.000Z","reason":"Customer retrenched","created_at":"2020-08-04T09:14:21.451Z","created_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/policies/{policy_id}/payment-method":{"get":{"operationId":"retrieve-policy-payment-method","summary":"Retrieve policy payment method","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy)","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","bank_details":{"first_name":"Erlich","last_name":"Bachman","bank":"absa","branch_code":"12345","account_number":"123456789"}}}}}}},"put":{"operationId":"assign-policy-payment-method","summary":"Assign a payment method","description":"Assign a payment method to a policy. Read more about [payment methods](doc:billing#payment-methods).","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"6b3264d8-2550-4fb2-ae58-da4f9234a302"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["payment_method_id"],"properties":{"payment_method_id":{"type":"string","description":"Must be a UUID. The id of the payment method to assign."}},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25"}},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"},"example":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","bank_details":{"first_name":"Erlich","last_name":"Bachman","bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque","banv_status":"pending"}}}}}}}},"/policies/{policy_id}/payments":{"get":{"operationId":"fetch-policy-payments","summary":"List policy payments","tags":["Policies"],"x-additional-tags":["Billing & payments"],"description":"Retrieve payments linked to a policy. Read more about how payments work on Root in the [payments guides](doc:payments-overview).","parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"status","in":"query","description":"An optional comma-separated list for filtering results based on payment statuses, e.g. `?status=successful,failed`. By default if no statuses are specified, payments across all statuses will be returned.","schema":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["successful","failed","cancelled","pending","submitted","processing"]}},"required":false},{"name":"payment_types","in":"query","description":"An optional comma-separated list for filtering results based on payment types, e.g. `?payment_types=premium,reversal`. By default if no payment types are specified, payments across all payment types will be returned.","required":false,"schema":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/payment-type"}}},{"name":"include","in":"query","description":"An optional comma-separated list of underlying objects to include, e.g. `?include=reversal_of_payment`. `reversal_of_payment` only applies to reversal payments and will include the original payment.","required":false,"schema":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["reversal_of_payment"]}}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/payment"},"example":[{"payment_id":"c9625104-c8da-45e2-972f-baf3037bce6b","policy_id":"07f9b73e-d16d-4a5a-8463-44ee62de4da3","payment_method_id":"ff80fa5b-6daf-4c3c-9ca1-bb442a796aa6","status":"failed","amount":100,"description":"monthly_premium","external_ref":"ExternalSystem00001","customer_ref":null,"created_at":"2022-10-28T14:17:21.441Z","created_by":{"type":"api_key","id":"312d8c45-eb3a-4f18-a952-c358fb94abdc","owner_id":"cb8a0648-9186-454d-bf1f-6d82b3b82894"},"updated_at":"2022-10-28T14:17:38.798Z","payment_date":"2022-10-26T00:00:00.000Z","action_date":"2022-10-26T00:00:00.000Z","billing_date":"2022-10-26T00:00:00.000Z","policy":null,"policyholder":null,"payment_method":null,"payment_type":"premium","premium_type":"recurring","failure_reason":"Account Closed","currency":"ZAR","retry_number":0,"finalized_at":"2022-10-28T14:17:38.798Z","finalized_by":{"type":"api_key","id":"312d8c45-eb3a-4f18-a952-c358fb94abdc","owner_id":"cb8a0648-9186-454d-bf1f-6d82b3b82894"},"collection_type":"debit_order_two_day","app_data":{},"charges":[],"raw_response":null}]}}}}}},"post":{"operationId":"create-policy-payment","summary":"Create policy payment","description":"This endpoint validates the input and creates a payment, which will result in a `200 OK` successful response, with the created payment in the response.","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"$ref":"#/components/parameters/idempotency"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-create"},"example":{"$ref":"#/components/schemas/payment-create/example"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-response"},"example":{"payment_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","policy_id":"2b012979-e2a2-45d3-b5fe-729f825d96ce","payment_method_id":"f4863a40-a6b1-4a4b-b734-62ae0370cd70","status":"successful","amount":6000,"description":"Monthly premium for August","customer_ref":"ABCDEFGHIJ","created_at":"2022-10-12T15:47:34.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"updated_at":"2022-10-12T15:47:34.281Z","payment_date":"2022-10-12T00:00:00.000Z","action_date":"2022-10-12T00:00:00.000Z","policy":null,"policyholder":null,"payment_method":null,"payment_type":"premium","currency":"ZAR","finalized_at":"2022-09-19T12:47:57.546Z","finalized_by":{"type":"api_key","id":"420df14d-b09d-4d89-84a8-8e3118c9ca23","owner_id":"00000000-0000-0000-0000-000000000001"},"app_data":null,"charges":[],"raw_response":null}}}}}}},"/policies/{policy_id}/payments/allocate-eft":{"post":{"operationId":"policy-allocate-eft-payment","summary":"Allocate an EFT payment to a policy","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["amount","description","payment_date","payment_method_id","proof_of_payment"],"properties":{"amount":{"type":"integer","description":"The amount in cents."},"description":{"type":"string","description":"A description for this payment"},"payment_date":{"type":"string","format":"date-time","description":"The date on which the collection request should strike the policyholder's bank account"},"payment_method_id":{"type":"string","description":"Must be a UUID. The payment method associated with this policy"},"proof_of_payment":{"type":"object","description":"The proof of payment for the EFT being allocated","properties":{"file_name":{"type":"string","description":"The name of the proof of payment file (with file extension)."},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)."},"file_base64":{"type":"string","description":"The raw file bytes encoded as a base 64 string. Limited to a maximum of 4 MB in size."},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)."}},"required":["file_name","description","file_base64","file_type"]}},"example":{"amount":35000,"description":"Missed premium for March","payment_date":"2020-03-01","payment_method_id":"3f6aa0c0-4f8b-228b-3343-222b59066b0e","proof_of_payment":{"file_name":"premium.pdf","file_type":"application/pdf","description":"POP March premium","file_base64":"JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nD2OywoCMQxF9/mKu3YRk7bptDAIDuh+oOAP+AAXgrOZ37etjmSTe3ISIljpDYGwwrKxRwrKGcsNlx1e31mt5UFTIYucMFiqcrlif1ZobP0do6g48eIPKE+ydk6aM0roJG/RegwcNhDr5tChd+z+miTJnWqoT/3oUabOToVmmvEBy5IoCgplbmRzdHJlYW0KZW5kb2JqCgozIDAgb2JqCjEzNAplbmRvYmoKCjUgMCBvYmoKPDwvTGVuZ3RoIDYgMCBSL0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGgxIDIzMTY0Pj4Kc3RyZWFtCnic7Xx5fFvVlf+59z0tdrzIu7xFz1G8Kl7i2HEWE8vxQlI3iRM71A6ksSwrsYptKZYUE9omYStgloZhaSlMMbTsbSPLAZwEGgNlusxQ0mHa0k4Z8muhlJb8ynQoZVpi/b736nkjgWlnfn/8Pp9fpNx3zz33bPecc899T4oVHA55KIEOkUJO96DLvyQxM5WI/omIpbr3BbU/3J61FPBpItOa3f49g1948t/vI4rLIzL8dM/A/t3vn77ZSpT0LlH8e/0eV98jn3k0mSj7bchY2Q/EpdNXm4hyIIOW9g8Gr+gyrq3EeAPGVQM+t+uw5VrQ51yBcc6g6wr/DywvGAHegbE25Br0bFR/ezPGR4kq6/y+QPCnVBYl2ijka/5hjz95S8kmok8kEFl8wDG8xQtjZhRjrqgGo8kcF7+I/r98GY5TnmwPU55aRIhb9PWZNu2Nvi7mRM9/C2flx5r+itA36KeshGk0wf5MWfQ+y2bLaSOp9CdkyxE6S3dSOnXSXSyVllImbaeNTAWNg25m90T3Rd+ii+jv6IHoU+zq6GOY/yL9A70PC/5NZVRHm0G/nTz0lvIGdUe/Qma6nhbRWtrGMslFP8H7j7DhdrqDvs0+F30fWtPpasirp0ZqjD4b/Y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gMDAwMDAgbiAKMDAwMDAwMDI0NCAwMDAwMCBuIAowMDAwMDExMTU0IDAwMDAwIG4gCjAwMDAwMTExNzYgMDAwMDAgbiAKMDAwMDAxMTM2OCAwMDAwMCBuIAowMDAwMDExNzA5IDAwMDAwIG4gCjAwMDAwMTE5MTAgMDAwMDAgbiAKMDAwMDAxMTk0MyAwMDAwMCBuIAowMDAwMDEyMTQwIDAwMDAwIG4gCjAwMDAwMTIxOTYgMDAwMDAgbiAKMDAwMDAxMjQyOSAwMDAwMCBuIAowMDAwMDEyNDk0IDAwMDAwIG4gCnRyYWlsZXIKPDwvU2l6ZSAxNi9Sb290IDE0IDAgUgovSW5mbyAxNSAwIFIKL0lEIFsgPEY3RDc3QjNEMjJCOUY5MjgyOUQ0OUZGNUQ3OEI4RjI4Pgo8RjdENzdCM0QyMkI5RjkyODI5RDQ5RkY1RDc4QjhGMjg+IF0KPj4Kc3RhcnR4cmVmCjEyNzg3CiUlRU9GCg=="}}},"example":{"amount":35000,"description":"Missed premium for March","payment_date":"2020-03-01","payment_method_id":"3f6aa0c0-4f8b-228b-3343-222b59066b0e","proof_of_payment":{"file_name":"premium.pdf","file_type":"application/pdf","description":"POP March premium","file_base64":"JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nD2OywoCMQxF9/mKu3YRk7bptDAIDuh+oOAP+AAXgrOZ37etjmSTe3ISIljpDYGwwrKxRwrKGcsNlx1e31mt5UFTIYucMFiqcrlif1ZobP0do6g48eIPKE+ydk6aM0roJG/RegwcNhDr5tChd+z+miTJnWqoT/3oUabOToVmmvEBy5IoCgplbmRzdHJlYW0KZW5kb2JqCgozIDAgb2JqCjEzNAplbmRvYmoKCjUgMCBvYmoKPDwvTGVuZ3RoIDYgMCBSL0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGgxIDIzMTY0Pj4Kc3RyZWFtCnic7X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MkI5RjkyODI5RDQ5RkY1RDc4QjhGMjg+IF0KPj4Kc3RhcnR4cmVmCjEyNzg3CiUlRU9GCg=="}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-create"},"example":{"payment_id":"b7b9bc96-9468-4b48-9bec-1a15a8cd8071","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","payment_method_id":"3f6aa0c0-4f8b-228b-3343-222b59066b0e","status":"successful","amount":35000,"description":"Missed premium for March","created_at":"2017-10-05T18:40:47.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"payment_date":"2020-03-01T00:00:00.000Z","billing_date":"2020-03-01T00:00:00.000Z","payment_type":"other","policyholder":{"policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","initials":"E","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"1968-01-01","gender":"male","email":"erlich@aviato.com","cellphone":"+27821234567","phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"policy_ids":[],"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}},"retry_of":null,"currency":"ZAR","retry_number":null,"collection_type":"other"}}}}}}},"/policies/{policy_id}/payments/request-collection":{"post":{"operationId":"policy-collection-request","summary":"Create collection request for policy","tags":["Policies"],"x-additional-tags":["Billing & payments"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["amount","description","payment_date","payment_method_id"],"properties":{"amount":{"type":"integer","description":"The amount in cents."},"description":{"type":"string","description":"A description for this payment"},"payment_date":{"type":"string","format":"date-time","description":"The date on which the collection request should strike the policyholder's bank account. Must be greater than today's date."},"payment_method_id":{"type":"string","description":"Must be a UUID. The payment method associated with this policy"}},"example":{"amount":10000,"description":"Missed premium for June","payment_date":"2020-07-16","payment_method_id":"3f6aa0c0-4f8b-228b-3343-222b59066b0e"}},"example":{"amount":10000,"description":"Missed premium for June","payment_date":"2020-07-16","payment_method_id":"3f6aa0c0-4f8b-228b-3343-222b59066b0e"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-create"},"example":{"payment_id":"b7b9bc96-9468-4b48-9bec-1a15a8cd8071","policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","payment_method_id":"3f6aa0c0-4f8b-228b-3343-222b59066b0e","status":"pending","amount":10000,"description":"Missed premium for June","created_at":"2017-10-05T18:40:47.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"payment_date":"2020-07-16T00:00:00.000Z","billing_date":"2020-07-19T00:00:00.000Z","payment_type":"other","policyholder":{"policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","initials":"E","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"1968-01-01","gender":"male","email":"erlich@aviato.com","cellphone":"+27821234567","phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"policy_ids":[],"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}},"retry_of":null,"currency":"ZAR","retry_number":null,"collection_type":"debit_order_same_day"}}}}}}},"/policies/{policy_id}/reactivate":{"post":{"operationId":"reactivate-policy","summary":"Reactivate policy","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reactivation_option_type":{"type":"string","required":true,"description":"The type of reactivation, according to associated product module, that the policy will be subject to","example":"reinstatement"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":5000,"monthly_premium":6250,"billing_amount":6250,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}}},"/policies/{policy_id}/activate":{"post":{"operationId":"activate-policy","summary":"Activate policy","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Theft + comprehensive","status":"active","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":7,"billing_frequency":"monthly","start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/files/13ab24b3-beed-4f71-aa8f-ad87dc43c6e6","terms_uri":"https://sandbox.root.co.za/v1/files/52f57736-d473-4bce-aa06-cf43d98279e2","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/files/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}}},"/policies/{policy_id}/receipts":{"post":{"operationId":"creating-policy-receipt","summary":"Create a policy receipt","description":"Once a policy has been issued, it is important that a receipt is created which verifies that the new policyholder has received their actual policy. This receipt can either be in the form of a tracking pixel in an email which contains the policy document, or it could be a custom method (subject to approval).\n\nTo add a tracking pixel to a policy email, you create an `<img/>` tag which looks like the following:\n\n```html\n  <img src=\"https://sandbox.root.co.za/v1/insurance/policies/receipts/(:organisation_id).png?policy_id=128ba0c0-3f6a-4f8b-9b40-e2066b02b59e&version=1\" />\n```\n\nImportant to note is that the tag includes the policy version number and the policy unique identifier in the query string, while the image name that of your `organisation_id`.\n\nAlternatively if you wish to use a custom receipt method, you can `POST` to the receipt endpoint. This endpoint accepts any valid JSON object, but MUST include the version number in the body. The body value should be any data which could be reasonably said to be evidence of the policyholder receiving the policy document.\n","tags":["Policies"],"x-additional-tags":["Create"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["version","details"],"properties":{"version":{"type":"integer","description":"The version number of the policy in question."},"details":{"type":"object","description":"Any additional data signifying the receipt of the policy document."}},"example":{"version":1,"details":{"foo":"bar"}}},"example":{"version":1,"details":{"foo":"bar"}}}}},"responses":{"200":{"description":"Success"}}}},"/policies/{policy_id}/scheduled-functions/{function_name}/trigger":{"post":{"operationId":"trigger-policy-scheduled-function","summary":"Trigger policy scheduled function","description":"Queues a [scheduled function](doc:scheduled-functions) to be executed asynchronously for a policy. **Note:** Despite a successful response, a queued function execution can nevertheless fail. Check the product module execution logs for the result.","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}},{"name":"function_name","in":"path","description":"The name of the scheduled function to be run, as defined in the [product module code](doc:product-module-code).","required":true,"schema":{"type":"string","example":"applyAnnualIncrease"}}],"responses":{"200":{"description":"Success"}}}},"/sandbox-only/policies/{policy_id}":{"patch":{"operationId":"sandbox-only-update-policy","summary":"Update a policy (sandbox only)","description":"Update attributes on a policy, bypassing the product module code validation. **Note:** This endpoint is intended to be used for testing purposes and, as such, is only available in the sandbox environment.","tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policy.","additionalProperties":true},"billing_day":{"type":"integer","description":"Day of the month on which the policy should be billed. Should be between 1 and 31. Billing day cannot be changed once a payment method is assigned to the policy."},"package_name":{"type":"string","description":"The package name, as originally specified in the [quote hook](doc:quote-hook)"},"sum_assured":{"type":"integer","description":"The amount, in cents, of the total value insured."},"monthly_premium":{"type":"integer","description":"The amount, in cents, of the monthly premium, as written on the policy schedule."},"start_date":{"type":"string","format":"date-time","description":"The start date of the policy."},"end_date":{"type":"string","format":"date-time","description":"The end date of the policy."},"module":{"type":"object","description":"Custom module-specific fields stored against the policy. See [product modules](#product-modules) for more details.","additionalProperties":true},"policy_number":{"type":"string","description":"A short-hand unique identifier for the policy, referenced in policy documents and displayed on the Root management dashboard. Must be unique within the organisation."}},"example":{"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"billing_day":7}},"example":{"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"billing_day":7}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":50000,"billing_day":7,"billing_frequency":"monthly","start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/files/13ab24b3-beed-4f71-aa8f-ad87dc43c6e6","terms_uri":"https://sandbox.root.co.za/v1/files/52f57736-d473-4bce-aa06-cf43d98279e2","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/files/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_color":"Space Grey","has_screen_cover":true},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["type","message","more_info"],"properties":{"type":{"type":"string","description":"The type of error encountered - see [errors documentation](#errors) for a list of possible types."},"message":{"type":"string","description":"A description of the error."},"more_info":{"type":"string","description":"A link to the [errors documentation](#errors), to help debug the error."},"trace_id":{"type":"string","description":"A unique error ID used by Root to track and resolve the error. This will usually only be included in server errors."},"errors":{"description":"A list of sub-error objects, usually used to indicate specific fields that failed validation.","type":"array","items":{"type":"object","required":["path","message"],"properties":{"path":{"type":"string","description":"The path to the field in the request payload."},"message":{"type":"string","description":"A description of the error"}}}}}}},"example":{"type":"not_found_error","message":"Policy with ID '6eb24961-cfad-4b14-8e57-63bab318a88a' not found","more_info":"https://docs.rootplatform.com/reference/errors"}},"example":{"error":{"type":"authorization_error","message":"This feature is only available in the sandbox environment.","more_info":"https://docs.rootplatform.com/reference/errors"}}}}}}}},"/policies/{policy_id}/requote":{"post":{"operationId":"requote-policy","summary":"Requote policy","description":"This endpoint is deprecated in favour of [alteration hooks](ref:create-an-alteration-package).","deprecated":true,"tags":["Policies"],"x-additional-tags":["Manage"],"parameters":[{"name":"policy_id","in":"path","description":"Must be a UUID. The unique identifier of the [policy](ref:policy).","required":true,"schema":{"type":"string","example":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["application_id"],"properties":{"application_id":{"type":"string","description":"Must be a UUID. The ID of the new [application](ref:create-an-application) to apply to the policy"}},"example":{"application_id":"f4397823-db4a-4d6a-a06b-08e1a2a3172c"}},"example":{"application_id":"f4397823-db4a-4d6a-a06b-08e1a2a3172c"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"example":{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf3ab7ce-064d-43b7-811d-0ecd9aca3daf","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":5000,"monthly_premium":6250,"billing_amount":6250,"billing_day":1,"billing_frequency":"monthly","beneficiaries":[],"covered_people":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","policy_welcome_letter_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/welcome-letter/welcome_letter.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual","payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","charges":[]}}}}}}},"/policyholders":{"post":{"operationId":"create-policyholder","summary":"Create a policyholder","tags":["Policyholders"],"x-additional-tags":["Create"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholder-request"},"examples":{"individual":{"summary":"Individual policyholder","value":{"type":"individual","id":{"type":"id","number":"6801015800084","country":"ZA"},"initials":"E","first_name":"Erlich","middle_name":"Aviato","last_name":"Bachman","email":"erlich@avaito.com","cellphone":"+27821234567","phone_other":"+27124101337","app_data":{"company":"Aviato"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}},"company":{"summary":"Company policyholder","value":{"type":"company","first_name":"Allister","last_name":"Smith","email":"allister@testco.com","company_name":"Test Co","registration_number":"12398734A","date_of_establishment":"19880202","company_website_url":"www.testco.co.za","contact_position":"Engineer","subsidiary_companies":["Subsidiary Inc"],"cellphone":"+27821234567"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholder"}}}}}},"get":{"operationId":"fetch-policyholders","summary":"List all policyholders","tags":["Policyholders"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"id_number","in":"query","description":"An optional ID or passport number to filter by.","required":false,"schema":{"type":"string"}},{"name":"include","in":"query","description":"An optional semicolon-separated list of underlying objects to include, e.g. `?include=policies`. Currently, only `policies` is supported, which will include all policies owned by the policyholder.","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholders"},"example":[{"policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","initials":"E","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"19680101","email":"erlich@aviato.com","cellphone":null,"phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}]}}}}},"put":{"operationId":"upsert-policyholder","summary":"Upsert a policyholder","tags":["Policyholders"],"x-additional-tags":["Create"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholder-request"},"examples":{"individual":{"summary":"Individual policyholder","value":{"type":"individual","id":{"type":"id","number":"6801015800084","country":"ZA"},"initials":"E","first_name":"Erlich","middle_name":"Aviato","last_name":"Bachman","email":"erlich@avaito.com","cellphone":"+27821234567","phone_other":"+27124101337","app_data":{"company":"Aviato"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}},"company":{"summary":"Company policyholder","value":{"type":"company","first_name":"Allister","last_name":"Smith","email":"allister@testco.com","company_name":"Test Co","registration_number":"12398734A","date_of_establishment":"19880202","company_website_url":"www.testco.co.za","contact_position":"Engineer","subsidiary_companies":["Subsidiary Inc"],"cellphone":"+27821234567"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholder"}}}}}}},"/policyholders/{policyholder_id}":{"get":{"operationId":"retrieve-policyholder","summary":"Retrieve a policyholder","tags":["Policyholders"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"include","in":"query","description":"An optional semicolon-separated list of underlying objects to include, e.g. `?include=policies`. Currently, only `policies` is supported, which will include all policies owned by the policyholder.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholder"},"example":{"policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","initials":"E","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"ZA"},"date_of_birth":"19680101","email":"erlich@aviato.com","cellphone":null,"phone_other":null,"created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Aviato"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"91364"}}}}}}},"patch":{"operationId":"update-policyholder","summary":"Update a policyholder","tags":["Policyholders"],"x-additional-tags":["Manage"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"object","description":"(Individual policyholders only) Object containing policyholder's identification information.","properties":{"type":{"type":"string","description":"The id type of the policyholder.","enum":["id","passport","email","cellphone","custom"]},"number":{"type":"string","description":"Depending on the `type` selected, either an ID number, passport number, email address, cellphone number or custom identifier."},"country":{"type":"string","description":"The [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) country code of the `number`."},"expiration_date":{"type":"string","format":"date-time","description":"(Individual policyholders only) The expiration date of the policyholder's passport or custom identifier."}},"required":["type","number","country"]},"initials":{"type":"string","description":"The new initials for the policyholder. This replaces the policyholder's current initials."},"title":{"type":"string","description":"The policyholders's title.","enum":["mr","mrs","miss","mx","sir","dr","adv","ms","prof"]},"first_name":{"type":"string","description":"A new first name for the policyholder. This replaces the policyholder's current first name."},"middle_name":{"type":"string","description":"The policyholder or primary contact's legal middle name."},"last_name":{"type":"string","description":"A new last name for the policyholder. This replaces the policyholder's current last name."},"expiration_date":{"type":"string","format":"date-time","description":"(Individual policyholders only) The expiration date of the policyholder's passport or custom identifier."},"email":{"type":"string","description":"A new contact email for the policyholder. This replaces the policyholder's current email address."},"cellphone":{"oneOf":[{"$ref":"#/components/schemas/cellphone"},{"$ref":"#/components/schemas/cellphone-string"}]},"phone_other":{"oneOf":[{"$ref":"#/components/schemas/cellphone"},{"$ref":"#/components/schemas/cellphone-string"}]},"app_data":{"type":["object","null"],"description":"`null` is allowed. An object containing additional custom data for the policy holder.","additionalProperties":true},"address":{"type":["object","null"],"description":"`null` is allowed. The policyholder's physical address. See below for more details.","properties":{"line_1":{"type":"string","description":"First line of the policyholder's address."},"line_2":{"type":["string","null"],"description":"`null` is allowed. Optional second line of the policyholder's address."},"suburb":{"type":"string","description":"The policyholder's suburb."},"city":{"type":"string","description":"The policyholder's city."},"country":{"type":"string","description":"The policyholder's country code, in the [ISO Alpha-2](http://www.nationsonline.org/oneworld/country_code_list.htm) format."},"area_code":{"type":"string","description":"The policyholder's area code, must be 4 characters long when the policyholder's country code is ZA."}},"required":["line_1","suburb","city","country","area_code"]}}},"example":{"id":{"type":"id","number":"6801015800084","country":"GB"},"cellphone":"+27821234567","phone_other":"+27124101337","email":"erlich@piedpiper.com","app_data":{"company":"Pied Piper"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyholder"},"example":{"policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","type":"individual","initials":"E","first_name":"Erlich","last_name":"Bachman","id":{"type":"id","number":"6801015800084","country":"GB"},"date_of_birth":"19680101","email":"erlich@piedpiper.com","cellphone":"+27821234567","phone_other":"+27124101337","created_at":"2017-10-12T15:47:34.281Z","app_data":{"company":"Pied Piper"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"address":{"line_1":"5230 Penfield Avenue","suburb":"Woodland Hills","city":"Los Angeles","country":"US","area_code":"CA 91364"}}}}}}}},"/policyholders/{policyholder_id}/applications":{"get":{"operationId":"fetch-policyholders-applications","summary":"List policyholder's applications","tags":["Policyholders"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/applications"},"example":[{"application_id":"59a10cb0-8f7a-4c7b-8deb-a863474891dd","policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","package_name":"Theft + comprehensive","sum_assured":1199900,"monthly_premium":50000,"base_premium":14999,"module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"created_at":"2017-10-05T18:40:47.281Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"currency":"ZAR","product_module_definition_id":"3c8112fc-5bf4-4d2c-ba25-361a76149ed2","billing_frequency":"monthly","billing_month":null,"billing_day":1,"status":"active","type":null,"beneficiaries":[{"beneficiary_id":"15c0cba9-c579-45cc-bb9c-5cde4c79350c","policyholder_id":"bd72f916-6952-444c-9b33-3e29db5cbe8b","percentage":100,"relationship":"policyholder"}],"quote_package_id":"338b0dc9-6a78-4baa-bf73-239690e3e201","input_data":{}}]}}}}}},"/policyholders/{policyholder_id}/attachments":{"get":{"operationId":"retrieve-policyholder-attachments","summary":"List attachments","tags":["Policyholders"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"file_name":{"type":"string"},"file_type":{"type":"string"},"file_url":{"type":"string"},"description":{"type":"string"},"created_at":{"type":"string"},"requested_by":{"type":"object"}}}},"example":[{"file_name":"report.pdf","file_type":"text/csv","file_url":"https://sandbox.root.co.za/v1/files/download/5ec09f8a-5ff9-11e8-99c9-63fa045d8a15/report.pdf","description":"Police Report","created_at":"2018-05-25T08:55:27.600Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}]}}}}},"post":{"operationId":"policyholder-create-attachment","summary":"Create an attachment","tags":["Policyholders"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file_name","description","file_base64","file_type"],"properties":{"file_name":{"type":"string","description":"The name of the file (with file extension)"},"description":{"type":"string","description":"A tag describing what the document is about (e.g. affidavit, etc.)"},"file_base64":{"type":"string","description":"The raw file bytes encoded as a base 64 string. Limited to a maximum of 4 MB in size"},"file_type":{"type":"string","description":"The mime type of the attachment (e.g. image/png)"}},"example":{"file_name":"report.pdf","file_type":"application/pdf","description":"Police Report","file_base64":"JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nD2OywoCMQxF9/mKu3YRk7bptDAIDuh+oOAP+AAXgrOZ37etjmSTe3ISIljpDYGwwrKxRwrKGcsNlx1e31mt5UFTIYucMFiqcrlif1ZobP0do6g48eIPKE+ydk6aM0roJG/RegwcNhDr5tChd+z+miTJnWqoT/3oUabOToVmmvEBy5IoCgplbmRzdHJlYW0KZW5kb2JqCgozIDAgb2JqCjEzNAplbmRvYmoKCjUgMCBvYmoKPDwvTGVuZ3RoIDYgMCBSL0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGgxIDIzMTY0Pj4Kc3RyZWFtCnic7Xx5fFvVlf+59z0tdrzIu7xFz1G8Kl7i2HEWE8vxQlI3iRM71A6ksSwrsYptKZYUE9omYStgloZhaSlMMbTsbSPLAZwEGgNlusxQ0mHa0k4Z8muhlJb8ynQoZVpi/b736nkjgWlnfn/8Pp9fpNx3zz33bPecc899T4oVHA55KIEOkUJO96DLvyQxM5WI/omIpbr3BbU/3J61FPBpItOa3f49g1948t/vI4rLIzL8dM/A/t3vn77ZSpT0LlH8e/0eV98jn3k0mSj7bchY2Q/EpdNXm4hyIIOW9g8Gr+gyrq3EeAPGVQM+t+uw5VrQ51yBcc6g6wr/DywvGAHegbE25Br0bFR/ezPGR4kq6/y+QPCnVBYl2ijka/5hjz95S8kmok8kEFl8wDG8xQtjZhRjrqgGo8kcF7+I/r98GY5TnmwPU55aRIhb9PWZNu2Nvi7mRM9/C2flx5r+itA36KeshGk0wf5MWfQ+y2b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sgPEY3RDc3QjNEMjJCOUY5MjgyOUQ0OUZGNUQ3OEI4RjI4Pgo8RjdENzdCM0QyMkI5RjkyODI5RDQ5RkY1RDc4QjhGMjg+IF0KPj4Kc3RhcnR4cmVmCjEyNzg3CiUlRU9GCg=="}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/attachment"},"example":{"file_name":"report.pdf","file_type":"application/pdf","file_url":"http://yoururlhere/report.pdf","description":"Police Report","type":"attachment_created","policyholder_id":"00000000-0000-0000-0000-000000000001","created_at":"2022-01-31T11:25:23.427Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/policyholders/{policyholder_id}/notes":{"get":{"operationId":"fetch-policyholder-notes","summary":"List notes","tags":["Policyholders"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"created_at":{"type":"object"},"requested_by":{"type":"object"}}}},"example":[{"text":"Customer spoke to Erlich previously","created_at":"2018-05-25T08:51:20.317Z","requested_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}]}}}}},"post":{"operationId":"policyholder-add-note","summary":"Add a note","tags":["Policyholders"],"x-additional-tags":["Attachments & notes"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"A string of text for the note."}},"example":{"text":"Customer spoke to Erlich previously"}},"example":{"text":"Customer spoke to Erlich previously"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/note"},"example":{"text":"Customer spoke to Erlich previously","type":"text_note_created","policyholder_id":"00000000-0000-0000-0000-000000000001","created_at":"2022-10-16T10:12:02.872Z","requested_by":{"type":"user","id":"00000000-0000-0000-0000-000000000001"}}}}}}}},"/policyholders/{policyholder_id}/payment-methods":{"get":{"operationId":"fetch-policyholder-payment-methods","summary":"List policyholder payment methods","tags":["Policyholders"],"x-additional-tags":["Payment methods"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":":policyholder_id"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"payment_method_id":{"type":"string"},"type":{"type":"string"},"bank_details":{"type":"object"}}}},"example":[{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","bank_details":{"first_name":"Erlich","last_name":"Bachman","bank":"absa","branch_code":"12345","account_number":"123456789","banv_response":{"account_number":"0000000000000","flags":"N","id_number":"8902165145086","initials":"s","name":"dube","reference":"58196226-b9a1-4b8d-82bb-3ea5322790e2","result":"A/c doesn't exist"}}}]}}}}},"post":{"operationId":"create-policyholder-payment-method","summary":"Create payment method","description":"Create a payment method. Read more about [payment methods](doc:billing-settings#payment-method-types).","tags":["Policyholders"],"x-additional-tags":["Payment methods"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"f91f4ea4-9c6d-459e-998b-a5711cbd8895"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"The payment method type. `debit_order`, `card`, `eft`, `collection_module`, or a custom key for external payment methods."},"payment_method_key":{"type":"string","description":"The key of an external payment method type. Use this for external payment methods instead of `type`."},"collection_module_key":{"type":"string","description":"The key of the collection module to use. Required if `type` is `collection_module`."},"data":{"type":"object","description":"Custom data for collection module payment methods. Required if `type` is `collection_module`.","additionalProperties":true},"payment_method_config_id":{"type":"string","description":"Must be a UUID. The unique identifier of the payment method configuration to use. Only relevant when Direct Billing Config feature is enabled."},"bank_details":{"type":"object","description":"Required if `type` is `debit_order`. Bank details to use for the debit order.","properties":{"account_holder":{"type":"string","description":"Name of account holder."},"account_holder_identification":{"type":["object","null"],"description":"`null` is allowed. An object containing identification details of the account holder. Attributes include \"type\" (_string_ - either 'id' or 'passport'), \"number\" (_string_), \"country\" (_string_), and optional \"expiration_date\" (_datetime_)."},"bank":{"$ref":"#/components/schemas/bank-name"},"branch_code":{"type":"string","description":"Branch code for bank account."},"account_number":{"type":"string","description":"Bank account number."},"account_type":{"type":"string","description":"Bank account type - either `cheque` or `savings`."}},"required":["account_holder","bank","branch_code","account_number","account_type"]},"card_details":{"type":"object","description":"Required if `type` is `card`. Cards details to use for the card payment.","properties":{"registration_id":{"type":"string","description":"External reference token identifier for the card."},"bin":{"type":"string","description":"Card BIN number."},"holder":{"type":"string","description":"First & last name on the card."},"brand":{"type":"string","description":"The card network. \"visa\" \"mastercard\" \"discover\" \"americanExpress\""},"expiry_year":{"type":"string","description":"The expiration year of the card."},"expiry_month":{"type":"string","description":"The expiration month of the card."},"last_4_digits":{"type":"string","description":"The last four digits of the card number."},"raw_status":{"type":"object","description":"Raw request JSON object."}},"required":["registration_id"]},"policy_ids":{"type":"array","items":{"type":"string"},"description":"An optional list of policy ids (each must be a UUID) to which the payment method should be assigned."},"external_reference":{"type":"string","description":"An optional external reference linked to the payment method. Relevant for `debit_order` and external payment methods."},"application_id":{"type":"string","description":"Must be a UUID. An optional application id to which the payment method should be assigned."},"billing_day":{"type":"integer","description":"Only specify the billing_day when providing policy_ids otherwise it will have no effect. If any of the provided policy_ids belong to once-off or group policies, specifying a billing_day will cause the request to fail. For once-off policies, collection requests are automatically initiated upon payment method assignment, not on specified billing days. Additionally, billing day updates are not allowed for group policies."}}},"examples":{"debit_order":{"summary":"Debit order","value":{"type":"debit_order","bank_details":{"account_holder":"Erlich Bachman","account_holder_identification":{"type":"id","number":"7701014800086","country":"ZA"},"bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque"},"policy_ids":["9e0c897f-bc68-4225-b13a-57599062ea0a"],"billing_day":23}},"eft":{"summary":"EFT","value":{"type":"eft","policy_ids":["9e0c897f-bc68-4225-b13a-57599062ea0a"]}},"collection_module":{"summary":"Collection module","value":{"type":"collection_module","collection_module_key":"my_collection_module","data":{"customer_id":"CUST-12345","account_reference":"ACC-67890"},"policy_ids":["9e0c897f-bc68-4225-b13a-57599062ea0a"]}},"external":{"summary":"External payment method","value":{"payment_method_key":"my_external_payment_method","external_reference":"EXT-REF-12345","policy_ids":["9e0c897f-bc68-4225-b13a-57599062ea0a"]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/payment-method"},"examples":{"debit_order":{"summary":"Debit order","value":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"debit_order","bank_details":{"account_holder":"Erlich Bachman","account_holder_identification":{"type":"id","number":"7701014800086","country":"ZA"},"bank":"absa","branch_code":"12345","account_number":"123456789","account_type":"cheque","banv_status":"pending"}}},"card":{"summary":"Card","value":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"card","card":{"bin":217339,"holder":"NB FLOOR","brand":"VISA","expiry_month":"09","expiry_year":"2025","last_4_digits":"9766"}}},"eft":{"summary":"EFT","value":{"payment_method_id":"e0b7b222-772f-47ac-b08d-c7ba38aa1b25","type":"eft"}}}}}}}}},"/policyholders/{policyholder_id}/policies":{"get":{"operationId":"fetch-policyholders-policies","summary":"List policyholder's policies","tags":["Policyholders"],"x-additional-tags":["Retrieve"],"parameters":[{"name":"policyholder_id","in":"path","description":"Must be a UUID. The unique identifier of the [policyholder](ref:policyholder).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policies"},"example":[{"policy_id":"128ba0c0-3f6a-4f8b-9b40-e2066b02b59e","policy_number":"1HFCT1CDBJ","policyholder_id":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055","status":"active","package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"monthly_premium":50000,"billing_amount":45000,"beneficiaries":[],"start_date":"2017-10-05T00:00:00.000Z","end_date":"2018-10-05T00:00:00.000Z","policy_schedule_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/schedule/schedule_latest.pdf","terms_uri":"https://sandbox.root.co.za/v1/insurance/policies/128ba0c0-3f6a-4f8b-9b40-e2066b02b59e/terms/terms.pdf","schedule_versions":[{"version":1,"created_at":"2017-10-05T18:40:47.281Z"}],"created_at":"2017-10-05T18:40:47.281Z","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE","serial_number":"1234567890"},"app_data":{"gadget_colour":"Space Grey"},"created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"scheme_type":"individual"}]}}}}}},"/quotes":{"post":{"operationId":"create-quote","summary":"Create a quote","description":"Note that additional fields may be required based on the product module type being used. See [product modules](doc:product-modules-overview) for more details.","tags":["Quotes"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"version","in":"query","description":"Whether to use the live or draft version of the product module definition to create the quote.","required":false,"schema":{"type":"string","enum":["live","draft"],"default":"live","example":"live"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"The module identifier of the pricing module. If you have a custom module, use the identifier given to you by the Root team."}},"additionalProperties":true,"example":{"type":"root_gadgets","model_name":"iPhone 6s 64GB LTE"}},"example":{"type":"root_gadgets","model_name":"iPhone 6s 64GB LTE"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/quote-packages"},"example":[{"package_name":"Theft + comprehensive","sum_assured":1199900,"base_premium":14999,"suggested_premium":18749,"created_at":"2017-10-12T15:47:34.281Z","quote_package_id":"f4397823-db4a-4d6a-a06b-08e1a2a3172c","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"}},{"package_name":"Theft only","sum_assured":1199900,"base_premium":5000,"suggested_premium":6250,"created_at":"2017-10-12T15:47:34.281Z","quote_package_id":"5d8606c7-3cf9-4167-b65a-937384dea73e","module":{"type":"root_gadgets","make":"Apple","model":"iPhone 6S 64GB LTE"}}]}}}}}},"/scheduled-data-exports":{"get":{"operationId":"fetch-scheduled-data-exports","summary":"List all scheduled data exports","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"include","in":"query","description":"An optional semicolon-separated list of underlying objects to include, e.g. `?include=latest_run`. Currently, only `latest_run` is supported, which will include the latest run for the scheduled data export.","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-exports"},"example":[{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}]}}}}},"post":{"operationId":"create-scheduled-data-export","summary":"Create a scheduled data export","description":"The following adapters are supported for scheduled data exports:","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["environment","name","frequency","adapter","export_type","data_range"],"properties":{"environment":{"type":"string","description":"The dataset used by the scheduled data export. Either `sandbox` or `production`."},"name":{"type":"string","description":"The name of the scheduled data export."},"frequency":{"type":"object","description":"The frequency at which the scheduled data export runs. See [available frequencies](ref:scheduled-data-export) for more details.","oneOf":[{"$ref":"#/components/schemas/daily-frequency"},{"$ref":"#/components/schemas/weekly-frequency"},{"$ref":"#/components/schemas/monthly-frequency"}]},"adapter":{"type":"object","description":"The adapter used to send the export once it's compiled. See below for more details.","oneOf":[{"$ref":"#/components/schemas/sftp-adapter"},{"$ref":"#/components/schemas/https-adapter"},{"$ref":"#/components/schemas/s3-adapter"}]},"export_type":{"type":"string","description":"The type of scheduled data export. Only `policy_export` is currently supported."},"data_range":{"type":"string","description":"The range used to capture data for the export. One of `today`, `week_to_date`, `month_to_date`, `since_last_run`, or `full`."}},"example":{"name":"Daily policies export","environment":"sandbox","export_type":"policy_export","data_range":"since_last_run","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"127.0.0.1","username":"someuser","password":"somepassword","path":"/some/path/"}}},"example":{"name":"Daily policies export","environment":"sandbox","export_type":"policy_export","data_range":"since_last_run","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"127.0.0.1","username":"someuser","password":"somepassword","path":"/some/path/"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}}}}}}},"/scheduled-data-exports/{scheduled_data_export_id}":{"get":{"operationId":"retrieve-scheduled-data-export","summary":"Retrieve a scheduled data export","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"scheduled_data_export_id","in":"path","description":"Must be a UUID. The unique identifier of the [scheduled data export](ref:scheduled-data-export).","required":true,"schema":{"type":"string","example":"bf1ada91-eecb-4f47-9bfa-1258bb1e0055"}},{"name":"include","in":"query","description":"An optional semicolon-separated list of underlying objects to include, e.g. `?include=latest_run`. Currently, only `latest_run` is supported, which will include the latest run for the scheduled data export.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}}}}}},"patch":{"operationId":"update-scheduled-data-export","summary":"Update a scheduled data export","description":"The following adapters are supported for scheduled data exports:","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"scheduled_data_export_id","in":"path","description":"Must be a UUID. The unique identifier of the [scheduled data export](ref:scheduled-data-export).","required":true,"schema":{"type":"string","example":"4ab082f2-864e-4bcf-bc17-75664a25f2e1"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"The name of the scheduled data export."},"adapter":{"type":"object","description":"The adapter used to send the export once it's compiled. See below for more details."},"environment":{"type":"string","description":"The dataset used by the scheduled export. Either `sandbox` or `production`."},"frequency":{"type":"object","description":"The frequency at which the scheduled export runs. See [available frequencies](ref:scheduled-data-export) for more details."},"data_range":{"type":"string","description":"The range used to capture data for the export. One of `today`, `week_to_date`, `month_to_date`, `since_last_run`, or `full`."}},"example":{"name":"Daily policies export","adapter":{"type":"sftp","host":"127.0.0.1","port":22,"username":"someuser","password":"somepassword","path":"/some/path/"},"environment":"production","data_range":"full","export_type":"custom_export","template_id":"00000000-0000-0000-0000-000000000002","frequency":{"type":"daily","time_of_day":"11:00"}}},"example":{"name":"Daily policies export","adapter":{"type":"sftp","host":"127.0.0.1","port":22,"username":"someuser","password":"somepassword","path":"/some/path/"},"environment":"production","data_range":"full","export_type":"custom_export","template_id":"00000000-0000-0000-0000-000000000002","frequency":{"type":"daily","time_of_day":"11:00"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"production","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"11:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"full"}}}}}}},"/scheduled-data-exports/{scheduled_data_export_id}/archive":{"post":{"operationId":"archive-scheduled-data-export","summary":"Archive a scheduled data export","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"scheduled_data_export_id","in":"path","description":"Must be a UUID. The unique identifier of the [scheduled data export](ref:scheduled-data-export).","required":true,"schema":{"type":"string","example":"4ab082f2-864e-4bcf-bc17-75664a25f2e1"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"archived","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}}}}}}},"/scheduled-data-exports/{scheduled_data_export_id}/pause":{"post":{"operationId":"pause-scheduled-data-export","summary":"Pause a scheduled data export","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"scheduled_data_export_id","in":"path","description":"Must be a UUID. The unique identifier of the [scheduled data export](ref:scheduled-data-export).","required":true,"schema":{"type":"string","example":"4ab082f2-864e-4bcf-bc17-75664a25f2e1"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"paused","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}}}}}}},"/scheduled-data-exports/{scheduled_data_export_id}/resume":{"post":{"operationId":"resume-scheduled-data-export","summary":"Resume a scheduled data export","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"scheduled_data_export_id","in":"path","description":"Must be a UUID. The unique identifier of the [scheduled data export](ref:scheduled-data-export).","required":true,"schema":{"type":"string","example":"4ab082f2-864e-4bcf-bc17-75664a25f2e1"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}}}}}}},"/scheduled-data-exports/{scheduled_data_export_id}/trigger":{"post":{"operationId":"trigger-scheduled-data-export","summary":"Trigger an adhoc run","description":"Action a scheduled data export immediately regardless of the specified time.","tags":["Data exports"],"x-additional-tags":["Scheduled data exports"],"parameters":[{"name":"scheduled_data_export_id","in":"path","description":"Must be a UUID. The unique identifier of the [scheduled data export](ref:scheduled-data-export).","required":true,"schema":{"type":"string","example":"4ab082f2-864e-4bcf-bc17-75664a25f2e1"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduled-data-export"},"example":{"scheduled_data_export_id":"4ab082f2-864e-4bcf-bc17-75664a25f2e1","environment":"sandbox","created_at":"2019-03-15T09:55:13.627Z","created_by":{"type":"api_key","id":"313f7511-c16a-4fdb-ba49-25a80a9b571c","owner_id":"da20903b-7f0d-4318-96bd-6df78514e2fd"},"status":"active","name":"Daily policies export","frequency":{"type":"daily","time_of_day":"09:00"},"adapter":{"type":"sftp","host":"localhost","username":"someuser","path":"/some/path/"},"export_type":"policy_export","data_range":"since_last_run"}}}}}}},"/webhooks":{"post":{"operationId":"create-webhook","summary":"Create a webhook","tags":["Webhooks"],"x-additional-tags":["Create"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","url","subscriptions"],"properties":{"name":{"type":"string","description":"The webhook name."},"url":{"type":"string","description":"The URL that the webhook will `POST` payloads to."},"subscriptions":{"$ref":"#/components/schemas/webhook-subscription-events"},"description":{"type":"string","description":"An optional description for the webhook."},"verification_token":{"type":"string","description":"An optional token to set on the webhook, used as an additional verification step for the payload (see the [introduction](ref:webhooks) for more details)."},"user_group_id":{"type":"string","format":"uuid","description":"An optional user group ID to associate with the webhook. When set, only events from entities belonging to this user group will trigger the webhook."}},"example":{"name":"Example webhook","description":"A webhook for receiving various events","verification_token":"459106913AF9","url":"http://your.url.here","subscriptions":["policyholder_created"]}},"example":{"name":"Example webhook","description":"A webhook for receiving various events","verification_token":"459106913AF9","url":"http://your.url.here","subscriptions":["policyholder_created"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"$ref":"#/components/schemas/webhook/example"}}}}}},"get":{"operationId":"list-webhooks","summary":"List all webhooks","tags":["Webhooks"],"x-additional-tags":["Retrieve"],"parameters":[{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of records."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhooks"},"example":[{"$ref":"#/components/schemas/webhook/example"}]}}}}},"head":{"operationId":"count-webhooks","summary":"Count all webhooks","tags":["Webhooks"],"x-additional-tags":["Retrieve"],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of records."}}}}}},"/webhooks/{webhook_id}":{"get":{"operationId":"retrieve-webhook","summary":"Retrieve a webhook","tags":["Webhooks"],"x-additional-tags":["Retrieve"],"parameters":[{"$ref":"#/components/parameters/webhook_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"$ref":"#/components/schemas/webhook/example"}}}}}},"patch":{"operationId":"update-webhook","summary":"Update a webhook","tags":["Webhooks"],"x-additional-tags":["Manage"],"parameters":[{"$ref":"#/components/parameters/webhook_id"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The webhook name."},"description":{"type":"string","description":"An optional description for the webhook."},"verification_token":{"type":"string","description":"An optional token to set on the webhook, used as an additional verification step for the payload (see the [introduction](ref:webhooks#verifying-requests) for more details)."},"url":{"type":"string","description":"The URL that the webhook will `POST` payloads to."},"subscriptions":{"description":"An array of events that this webhook should subscribe to (see [webhook subscriptions](ref:webhooks#available-subscriptions) for more details). *Note:* this will replace the existing subscriptions for the webhook.","$ref":"#/components/schemas/webhook-subscription-events"},"user_group_id":{"type":"string","format":"uuid","nullable":true,"description":"An optional user group ID to associate with the webhook. When set, only events from entities belonging to this user group will trigger the webhook. Set to `null` to remove the user group association."}},"example":{"name":"Policyholder created","description":"Policyholder created event","subscriptions":["policyholder_created"]}},"example":{"name":"Policyholder created","description":"Policyholder created event","subscriptions":["policyholder_created"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","name":"Policyholder created","description":"Policyholder created event","secret":"B3a8y1WotX7glI7OxZhX5EAd_6UJ7YEvTJBNQzano4dHjntn9_5AlyPg-dzpX76A","verification_token":"459106913AF9","url":"http://your.url.here","subscriptions":["policyholder_created"]}}}}}},"delete":{"operationId":"archive-webhook","summary":"Archive a webhook","tags":["Webhooks"],"x-additional-tags":["Manage"],"parameters":[{"$ref":"#/components/parameters/webhook_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"$ref":"#/components/schemas/webhook/example"}}}}}}},"/webhooks/{webhook_id}/disable":{"post":{"operationId":"disable-webhook","summary":"Disable a webhook","description":"When a webhook is disabled, queue events it is subscribed to will be marked as `failed` and will not be sent to the webhook's URL.\n","tags":["Webhooks"],"x-additional-tags":["Manage"],"parameters":[{"$ref":"#/components/parameters/webhook_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","organization_id":"34b2899-7957-464b-a609-49939039cd49","name":"Claim opened","description":"Claim opened event","secret":"B3a8y1WotX7glI7OxZhX5EAd_6UJ7YEvTJBNQzano4dHjntn9_5AlyPg-dzpX76A","verification_token":"459106913AF9","url":"http://yoururlhere.com","enabled":false,"subscriptions":["claim_opened"]}}}}}}},"/webhooks/{webhook_id}/enable":{"post":{"operationId":"enable-webhook","summary":"Enable a webhook","description":"When a webhook is enabled, Root will attempt to send queue events to the webhook's URL.\n","tags":["Webhooks"],"x-additional-tags":["Manage"],"parameters":[{"$ref":"#/components/parameters/webhook_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","organization_id":"34b2899-7957-464b-a609-49939039cd49","name":"Claim opened","description":"Claim opened event","secret":"B3a8y1WotX7glI7OxZhX5EAd_6UJ7YEvTJBNQzano4dHjntn9_5AlyPg-dzpX76A","verification_token":"459106913AF9","url":"http://yoururlhere.com","enabled":true,"subscriptions":["claim_opened"]}}}}}}},"/webhooks/{webhook_id}/ping":{"get":{"operationId":"ping-webhook","summary":"Ping a webhook","description":"In order to test that your webhook correctly receives and processes events, you can send a \"ping\" event on request. This endpoint dispatches a `webhook_ping` event to the specified webhook (see [webhook subscriptions](ref:webhooks#available-subscriptions) for more details).","tags":["Webhooks"],"x-additional-tags":["Manage"],"parameters":[{"$ref":"#/components/parameters/webhook_id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook"},"example":{"$ref":"#/components/schemas/webhook/example"}}}}}}},"/webhooks/{webhook_id}/queue-events":{"get":{"operationId":"list-webhook-queue-events","summary":"List webhook queue events","description":"Get queue events for a webhook. A queue event represents a single message to be delivered to the webhook URL, and may have multiple attempts.","tags":["Webhooks"],"x-additional-tags":["Queue events & attempts"],"parameters":[{"$ref":"#/components/parameters/webhook_id"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/webhook_queue_event_status"},{"$ref":"#/components/parameters/webhook_queue_event_subscriptions"},{"$ref":"#/components/parameters/webhook_queue_event_from"},{"$ref":"#/components/parameters/webhook_queue_event_to"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of records."}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/webhook-queue-event"}},"example":[{"webhook_queue_event_id":"123e4567-e89b-12d3-a456-426614174000","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","environment":"production","webhook_id":"274b2899-7957-464b-a609-49939039cd49","created_at":"2023-04-01T12:00:00Z","status":"queued","subscription":"policy_issued","attempts_count":1,"last_attempt_at":"2023-04-01T12:00:02Z","last_response_code":500,"body":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","event":{"type":"policy_issued","policy_id":"abc123"},"verification_token":"optional_token_123","environment":"production"},"url":"http://yoururlhere.com"},{"webhook_queue_event_id":"234e5678-f90c-23e4-b567-537725285111","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","environment":"production","webhook_id":"274b2899-7957-464b-a609-49939039cd49","created_at":"2023-04-01T12:05:00Z","status":"successful","subscription":"claim_opened","attempts_count":1,"last_attempt_at":"2023-04-01T12:05:02Z","last_response_code":200,"body":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","event":{"type":"claim_opened","claim_id":"def456"},"verification_token":"optional_token_456","environment":"production"},"url":"http://yoururlhere.com"}]}}}}},"head":{"operationId":"count-webhook-queue-events","summary":"Count webhook queue events","tags":["Webhooks"],"x-additional-tags":["Queue events & attempts"],"parameters":[{"$ref":"#/components/parameters/webhook_id"},{"$ref":"#/components/parameters/webhook_queue_event_status"},{"$ref":"#/components/parameters/webhook_queue_event_subscriptions"},{"$ref":"#/components/parameters/webhook_queue_event_from"},{"$ref":"#/components/parameters/webhook_queue_event_to"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of records."}}}}}},"/webhooks/{webhook_id}/queue-events/retry":{"post":{"operationId":"bulk-retry-webhook-queue-events","summary":"Bulk retry webhook queue events","description":"Retry multiple webhook queue events for a given webhook. The queue events identified by the filters will be added to the queue to be re-attempted with priority 2 (low).","tags":["Webhooks"],"x-additional-tags":["Queue events & attempts"],"parameters":[{"$ref":"#/components/parameters/webhook_id"},{"name":"status","in":"query","description":"Filter queue events by status.","required":true,"schema":{"type":"string","enum":["failed"]}},{"$ref":"#/components/parameters/webhook_queue_event_subscriptions"},{"$ref":"#/components/parameters/webhook_queue_event_from"},{"$ref":"#/components/parameters/webhook_queue_event_to"}],"responses":{"200":{"description":"Success","headers":{"X-Total-Count":{"schema":{"type":"integer"},"description":"The total number of events queued to be retried."}}}}}},"/webhook-queue-events/{webhook_queue_event_id}/retry":{"post":{"operationId":"retry-webhook-queue-event","summary":"Retry a webhook queue event","description":"Add a webhook queue event back to the queue to be re-attempted with priority 2 (low).","tags":["Webhooks"],"x-additional-tags":["Queue events & attempts"],"parameters":[{"name":"webhook_queue_event_id","in":"path","description":"The unique identifier of the webhook queue event","required":true,"schema":{"type":"string","format":"uuid","example":"234e5678-f90c-23e4-b567-537725285111"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/webhook-queue-event"},"example":{"webhook_queue_event_id":"123e4567-e89b-12d3-a456-426614174000","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","environment":"production","webhook_id":"274b2899-7957-464b-a609-49939039cd49","created_at":"2023-04-01T12:00:00Z","status":"queued","subscription":"policy_issued","attempts_count":2,"last_attempt_at":"2023-04-01T12:00:02Z","last_response_code":500,"body":{"webhook_id":"274b2899-7957-464b-a609-49939039cd49","event":{"type":"policy_issued","policy_id":"abc123"},"verification_token":"optional_token_123","environment":"production"},"url":"http://yoururlhere.com"}}}}}}},"/webhook-queue-events/{webhook_queue_event_id}/attempts":{"get":{"operationId":"list-webhook-queue-event-attempts","summary":"List webhook queue event attempts","description":"Get attempts for a webhook queue event","tags":["Webhooks"],"x-additional-tags":["Queue events & attempts"],"parameters":[{"name":"webhook_queue_event_id","in":"path","description":"The unique identifier of the webhook queue event","required":true,"schema":{"type":"string","format":"uuid","example":"234e5678-f90c-23e4-b567-537725285111"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["webhook_attempt_id","attempted_at","success","created_at","result","organization_id","webhook_queue_event_id","environment"],"properties":{"webhook_attempt_id":{"type":"string","format":"uuid","description":"The unique identifier for this webhook attempt."},"organization_id":{"type":"string","format":"uuid","description":"The identifier of the organization associated with this attempt."},"webhook_queue_event_id":{"type":"string","format":"uuid","description":"The identifier of the webhook queue event associated with this attempt."},"environment":{"type":"string","enum":["production","sandbox"],"description":"The environment in which this attempt was made."},"attempted_at":{"type":"string","format":"date-time","description":"The timestamp when this attempt was made."},"success":{"type":"boolean","description":"Indicates whether the attempt was successful or not."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when this attempt record was created."},"result":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["response","no_response","unknown_error"],"description":"The type of result for this webhook attempt."},"status":{"type":"integer","description":"The HTTP status code of the response (if applicable)."},"body":{"type":"string","description":"The body of the response (if applicable)."},"headers":{"type":"string","description":"The headers of the response (if applicable)."}}}},"example":{"webhook_attempt_id":"123e4567-e89b-12d3-a456-426614174000","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","webhook_queue_event_id":"234e5678-f90c-23e4-b567-537725285111","environment":"production","attempted_at":"2023-04-01T12:00:02Z","success":true,"created_at":"2023-04-01T12:00:03Z","result":{"type":"response","status":200,"body":"{\"message\": \"Webhook received successfully\"}","headers":"{\"content-type\": \"application/json\", \"x-request-id\": \"abcd1234\"}"}}}},"example":[{"webhook_attempt_id":"456f7890-a12b-34c5-d678-901234567890","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","webhook_queue_event_id":"234e5678-f90c-23e4-b567-537725285111","environment":"production","created_at":"2024-04-01T12:00:02Z","attempted_at":"2024-04-01T12:00:02Z","success":false,"result":{"type":"response","status":500,"body":"{\"error\": \"Internal server error\"}","headers":"{\"content-type\": \"application/json\", \"x-request-id\": \"efgh5678\"}"}},{"webhook_attempt_id":"123e4567-e89b-12d3-a456-426614174000","organization_id":"2f26d0e1-9158-4685-83e8-1660c27e4c3f","webhook_queue_event_id":"234e5678-f90c-23e4-b567-537725285111","environment":"production","created_at":"2024-04-01T12:00:07Z","attempted_at":"2024-04-01T12:00:07Z","success":true,"result":{"type":"response","status":200,"body":"{\"message\": \"Webhook received successfully\"}","headers":"{\"content-type\": \"application/json\", \"x-request-id\": \"abcd1234\"}"}}]}}}}}},"/secret-keys":{"get":{"operationId":"retrieve-secret-keys","summary":"Retrieve all secret keys","tags":["Secret keys"],"x-additional-tags":["Endpoints"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/secret-keys-list"}}}}}},"post":{"operationId":"create-secret-key","summary":"Create a secret key","tags":["Secret keys"],"x-additional-tags":["Endpoints"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"The unique identifier of the secret key.","example":"external_vendor_name"},"key":{"type":"string","description":"The value of the secret key.","example":"your_api_key_value"},"description":{"type":"string","description":"A description for the secret key.","example":"API Key for Integration X"}},"required":["type","key"]},"example":{"type":"api_key_type","key":"your_api_key_value","description":"API Key for Integration X"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/secret-keys"},"example":{"organization_id":"4ce6ad99-9576-4d28-84ba-c30d2d536cbe","secret_key_id":"43c13dc8-2c19-402c-bb70-a7deb56b9f38","type":"api_key_type","key":"your_api_key_value","description":"API Key for Integration X","created_at":"2023-01-10T12:34:56.789Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"updated_at":"2023-01-10T12:34:56.789Z","updated_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}}},"/secret-keys/{type}":{"get":{"operationId":"retrieve-secret-key-by-type","summary":"Retrieve an secret key by type","tags":["Secret keys"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"type","in":"path","description":"The unique identifier of the secret key [secret-keys](ref:secret-keys).","required":true,"schema":{"type":"string","example":"test"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/secret-keys"}}}}}},"patch":{"operationId":"upsert-secret-key","summary":"Upsert a secret key","tags":["Secret keys"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"type","in":"path","description":"The unique identifier of the secret key [secret-keys](ref:secret-keys).","required":true,"schema":{"type":"string","example":"test"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"The value of the secret key.","example":"your_api_key_value"},"description":{"type":"string","description":"A description for the secret key.","example":"API Key for Integration X"}}},"example":{"key":"your_api_key_value","description":"API Key for Integration X"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"secret_key_id":{"type":"string","description":"The identifier of the secret key."},"organization_id":{"type":"string","description":"The identifier of the organization."},"environment":{"type":"string","description":"The environment associated with the secret key."},"description":{"type":"string","description":"A description of the secret key."},"type":{"type":"string","description":"The unique identifier for the secret key."},"key":{"type":"string","description":"The encrypted value of the secret key."},"created_at":{"type":"string","format":"date-time","description":"Time at which the secret key was created."},"created_by":{"type":"object","description":"An object indicating the user or API key that created the secret key.","properties":{"id":{"type":"string","description":"The identifier of the creator."},"type":{"type":"string","description":"The type of the creator (e.g., user, API)."}}},"updated_at":{"type":"string","format":"date-time","description":"Time at which the secret key was last updated."},"updated_by":{"type":"object","description":"An object indicating the user or API key that last updated the secret key.","properties":{"id":{"type":"string","description":"The identifier of the updater."},"type":{"type":"string","description":"The type of the updater (e.g., user, API)."}}}}},"example":{"organization_id":"4ce6ad99-9576-4d28-84ba-c30d2d536cbe","secret_key_id":"43c13dc8-2c19-402c-bb70-a7deb56b9f38","type":"test","key":"your_api_key_value","description":"API Key for Integration X","created_at":"2023-01-10T12:34:56.789Z","created_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"},"updated_at":"2023-01-10T12:34:56.789Z","updated_by":{"id":"00000000-0000-0000-0000-000000000001","type":"user"}}}}}}},"delete":{"operationId":"archive-secret-key","summary":"Archive a secret key","tags":["Secret keys"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"type","in":"path","description":"The unique identifier of the secret key [secret-keys](ref:secret-keys).","required":true,"schema":{"type":"string","example":"test"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/secret-keys"}}}}}}},"/embed/url":{"post":{"operationId":"create-embed-url","summary":"Create an embed URL","description":"Generates a unique URL to initiate an Embed session, which allows customers to access various workflows within Embed. This URL can be used in either authenticated or unauthenticated flows. The authenticated flow is recommended for scenarios where the customer's identity is known, enabling seamless access to Embed’s Management and Sales workflows. The unauthenticated flow, intended for use in Embed | Sales only, is suited for scenarios where customer identity is not known upfront. See the [Embed implementation guide](https://docs.rootplatform.com/docs/embed-implementation) for detailed steps on integrating Embed into your customer journey.\n","tags":["Embed"],"x-additional-tags":["Create"],"parameters":[{"name":"organization_id","in":"query","description":"The unique identifier of the organization.","required":true,"schema":{"type":"string","example":"f84b3856-1358-4e12-bcf6-6732bc8b9522"}},{"name":"environment","in":"query","description":"Specifies the environment for the embed session (e.g., sandbox, production).","required":true,"schema":{"type":"string","example":"sandbox"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"unauthenticated":{"type":"boolean","description":"Indicates if the session is unauthenticated.","example":false},"product_module_key":{"type":"string","description":"Unique key for the product module associated with the embed.","example":"product-module-123"},"custom_path":{"type":"string","description":"Optional custom path for the embed session URL."},"prefill_data":{"type":"object","description":"Prefilled data for the session, organized by categories (application, payment, personalDetails, etc.).","properties":{"application":{"type":"object","description":"Application-related data."},"payment":{"type":"object","description":"Payment-related data."},"personal_details":{"type":"object","description":"User's personal details."},"pre_payment_details_consent":{"type":"boolean","description":"Indicates consent for pre-payment details."},"pre_personal_details_consent":{"type":"boolean","description":"Indicates consent for pre-personal details."},"quote":{"type":"object","description":"Quote details for the embed session."},"screening_questions":{"type":"array","items":{"type":"object"},"description":"Screening questions for the embed session."}}}},"required":["product_module_key"]}}}},"responses":{"200":{"description":"Embed URL created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"embed_url":{"type":"string","description":"Generated embed URL for the user session."}},"example":{"embed_url":"https://app.embedroot.com/dinosure_embedded/issue-policy?api_key=sandbox_NDM1YzAzNTMtYmE3MS00ZjZiLTk2ODItZGQ4Zjk4NDQ5YTNhLkxnUTJmM210N1hPZWtmYUhQUWtGMTBaZ0ZZejlBX0xQ"}}}}}}}},"/embed-sessions/lookup":{"post":{"operationId":"lookup-embed-session","summary":"Lookup an Embed session","description":"This endpoint allows you to retrieve an existing Embed session using identification details and a `product_module_key`. The session is retrieved based on the customer's identification type, number, and associated organization information. This supports use cases where an organization needs to look up session details securely using authentication.\n","tags":["Embed"],"x-additional-tags":["Sessions"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["product_module_key","identification_type","identification_number","identification_country"],"properties":{"product_module_key":{"type":"string","description":"The unique key for the product module associated with the session.","example":"dinosure"},"identification_type":{"type":"string","description":"The type of identification, required for authenticated sessions. Must be one of the following: `id`, `email`, `cellphone`, or `custom`.\n","example":"id"},"identification_number":{"type":"string","description":"Identification number corresponding to the identification type, validated based on country and type.\n","example":"8704094800082"},"identification_country":{"type":"string","description":"Country code of the identification (ISO Alpha-2). This is required based on the identification type provided.\n","example":"ZA"},"registration_number":{"type":"string","description":"An optional registration number for identification."},"embed_session_id":{"type":"string","description":"Optional UUID for the Embed session ID, if known."}}}}}},"responses":{"200":{"description":"Embed session lookup successful.","content":{"application/json":{"schema":{"type":"object","properties":{"embed_session_id":{"type":"string","description":"The unique identifier of the found Embed session."},"organization_id":{"type":"string","description":"The organization associated with the Embed session."},"product_module_id":{"type":"string","description":"The product module linked to the session."},"created_at":{"type":"string","format":"date-time","description":"The creation timestamp of the session."}}},"example":{"embed_session_id":"9f3e4567-e89b-12d3-a456-426614174111","organization_id":"8b7e1a2c-4f92-4d90-9e8a-d5c3285c8ad9","product_module_id":"5e1a7e8a-b123-4c0a-9b8a-426614175111","created_at":"2023-01-15T10:00:00Z"}}}}}}},"/apps/{organization_id}/files/download/{file_id}":{"get":{"operationId":"download-file","summary":"Download file","description":"Download a file by its unique file ID. Files are typically attachments that have been uploaded to the system and associated with various entities like policies, claims, applications, etc.\n\nNote: A filename can optionally be appended to the URL for readability (e.g., `/apps/{organization_id}/files/download/{file_id}/report.pdf`), but it is not used for file identification.","tags":["Files"],"x-additional-tags":["Endpoints"],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The unique identifier of the organization."},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The unique identifier of the file to download."}],"responses":{"200":{"description":"File downloaded successfully","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"text/plain":{"schema":{"type":"string","format":"binary"}}},"headers":{"Content-Type":{"description":"The MIME type of the file","schema":{"type":"string","example":"application/pdf"}},"Content-Disposition":{"description":"Indicates if the content should be displayed inline or downloaded as an attachment","schema":{"type":"string","example":"attachment; filename=\"document.pdf\""}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"Missing organization ID."},"more_info":{"type":"string","example":"https://docs.rootplatform.com/reference/errors"}}}}},"example":{"error":{"type":"invalid_request_error","message":"Missing organization ID.","more_info":"https://docs.rootplatform.com/reference/errors"}}}}},"404":{"description":"File not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","example":"not_found_error"},"message":{"type":"string","example":"Attachment not found"},"more_info":{"type":"string","example":"https://docs.rootplatform.com/reference/errors"}}}}},"example":{"error":{"type":"not_found_error","message":"Attachment not found","more_info":"https://docs.rootplatform.com/reference/errors"}}}}}}}}},"tags":[{"name":"Quotes"},{"name":"Policyholders"},{"name":"Applications"},{"name":"Policies"},{"name":"Payments"},{"name":"Claims"},{"name":"Calls"},{"name":"Complaints"},{"name":"Notifications"},{"name":"Leads"},{"name":"Data stores"},{"name":"Data exports"},{"name":"Webhooks"},{"name":"Embed"},{"name":"Files"}],"x-readme":{"explorer-enabled":true,"proxy-enabled":true,"samples-enabled":true}}