# Bonafide integration

> Build workflow automations with 39 public Bonafide actions.

Source: [https://genhealth.ai/docs/workflows/integrations/bonafide](https://genhealth.ai/docs/workflows/integrations/bonafide)

## Available actions

39 actions. Connection types: bonafide.

### [Add Doctor](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_add_physician.md)

- Handler: `bonafide_add_physician`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `npi`, `last_name`, `first_name`, `middle_name`, `suffix`, `specialization`, `taxonomy`, `degree`, `email`, `cell_phone`, `group_name`, `pecos`, `display_alert`
- Outputs: `success`, `physician_id`, `message`, `error`, `error_message`

Perform Add Doctor through Bonafide.

### [Add Doctor Address](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_add_physician_address.md)

- Handler: `bonafide_add_physician_address`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `physician_id`, `location`, `address1`, `address2`, `zipcode`, `city`, `state`, `phone`, `ext`, `fax`, `is_contact`, `contact_methods`
- Outputs: `success`, `physician_id`, `message`, `error`, `error_message`, `selected_city`, `selected_zipcode`, `selected_county`, `candidate_count`

Perform Add Doctor Address through Bonafide.

### [Add Task Tag](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_add_task_tag.md)

- Handler: `bonafide_add_task_tag`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `task_id`, `tag_name`
- Outputs: `success`, `task_id`, `tag_id`, `tag_name`, `message`, `error_message`, `error`

Perform Add Task Tag through Bonafide.

### [Close Task](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_close_task.md)

- Handler: `bonafide_close_task`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `task_id`
- Outputs: `success`, `task_id`, `message`, `error_message`, `error`

Perform Close Task through Bonafide.

### [Create Patient Notes](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_create_patient_notes.md)

- Handler: `bonafide_create_patient_notes`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `customer_id`, `notes`
- Outputs: `success`, `customer_id`, `notes_created`, `notes_failed`, `message`, `error_message`

Perform Create Patient Notes through Bonafide.

### [Create Task](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_create_task.md)

- Handler: `bonafide_create_task`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `name`, `detail`, `due_date`, `severity`, `reference_type`, `reference_no`, `category_id`, `category_name`, `outcome_id`, `outcome_name`, `ops_description`, `employee_ids`, `email_targets`
- Outputs: `success`, `task_id`, `message`, `error_message`, `error`

Perform Create Task through Bonafide.

### [Create Task Category](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_create_task_category.md)

- Handler: `bonafide_create_task_category`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `category_name`
- Outputs: `success`, `category_id`, `category_name`, `created`, `message`, `error_message`, `error`

Perform Create Task Category through Bonafide.

### [Create Task Outcome](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_create_task_outcome.md)

- Handler: `bonafide_create_task_outcome`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `outcome_name`
- Outputs: `success`, `outcome_id`, `outcome_name`, `created`, `message`, `error_message`, `error`

Perform Create Task Outcome through Bonafide.

### [Delete Task](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_delete_task.md)

- Handler: `bonafide_delete_task`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `task_id`
- Outputs: `success`, `task_id`, `message`, `error_message`, `error`

Perform Delete Task through Bonafide.

### [Get Doctor Address Contact Status](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_physician_address_contact_status.md)

- Handler: `bonafide_get_physician_address_contact_status`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `physician_id`, `address_seq`
- Outputs: `success`, `physician_id`, `address_seq`, `is_contact`, `contact_methods`, `location`, `address1`, `city`, `state`, `zipcode`, `message`, `error`, `error_message`

Perform Get Doctor Address Contact Status through Bonafide.

### [Get Doctor Contact Status](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_physician_contact_status.md)

- Handler: `bonafide_get_physician_contact_status`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `physician_id`
- Outputs: `success`, `physician_id`, `is_contact`, `message`, `error`, `error_message`

Perform Get Doctor Contact Status through Bonafide.

### [Get Doctor Info](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_physician_info.md)

- Handler: `bonafide_get_physician_info`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `physician_id`
- Outputs: `success`, `physician_id`, `npi`, `last_name`, `first_name`, `middle_name`, `suffix`, `degree`, `specialization`, `email`, `phone`, `group_name`, `dea`, `license_no`, `display_alert`, `is_contact`, `addresses`, `message`, `error`, `error_message`

Perform Get Doctor Info through Bonafide.

### [Get Inventory Item](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_inventory_item.md)

- Handler: `bonafide_get_inventory_item`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `sku`, `office`
- Outputs: `success`, `item`, `message`, `error`, `error_message`

Perform Get Inventory Item through Bonafide.

### [Get Order](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_order.md)

- Handler: `bonafide_get_order`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `order_number`
- Outputs: `success`, `found`, `number`, `created_by`, `lines`, `line_count`, `message`, `error`, `error_message`

Perform Get Order through Bonafide.

### [Get Patient Insurance](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_patient_insurance.md)

- Handler: `bonafide_get_patient_insurance`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `customer_id`
- Outputs: `success`, `customer_id`, `carrier_name`, `carrier_no`, `member_id`, `group_id`, `group_name`, `patient_first_name`, `patient_last_name`, `patient_birth_date`, `patient_relationship`, `mbi`, `secondary_carrier_name`, `tertiary_carrier_name`, `message`, `error_message`

Perform Get Patient Insurance through Bonafide.

### [Get Patient Notes](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_patient_notes.md)

- Handler: `bonafide_get_patient_notes`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `customer_id`
- Outputs: `success`, `customer_id`, `notes`, `total_count`, `message`, `error_message`, `error`

Perform Get Patient Notes through Bonafide.

### [Get Patient Physicians](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_patient_physicians.md)

- Handler: `bonafide_get_patient_physicians`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `customer_id`
- Outputs: `success`, `physicians`, `total_count`, `message`, `error`, `error_message`

Perform Get Patient Physicians through Bonafide.

### [Get Patient's Default Claim Physician](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_patient_default_claim_physician.md)

- Handler: `bonafide_get_patient_default_claim_physician`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `customer_id`
- Outputs: `success`, `customer_id`, `physician_id`, `has_default`, `message`, `error`, `error_message`

Perform Get Patient's Default Claim Physician through Bonafide.

### [Get Pre-Authorization](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_pre_authorization.md)

- Handler: `bonafide_get_pre_authorization`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `pre_authorization_number`
- Outputs: `success`, `found`, `number`, `created_by`, `lines`, `line_count`, `message`, `error`, `error_message`

Perform Get Pre-Authorization through Bonafide.

### [Get Staff + Role IDs](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_staff_ids.md)

- Handler: `bonafide_get_staff_ids`
- Connection type: `bonafide`
- External effect: `read`

- Outputs: `success`, `staff`, `roles`, `total_count`, `message`, `error_message`, `error`

Perform Get Staff + Role IDs through Bonafide.

### [Get Task Categories & Outcomes](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_task_form_metadata.md)

- Handler: `bonafide_get_task_form_metadata`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `task_id`
- Outputs: `success`, `categories`, `outcomes`, `message`, `error_message`, `error`

Perform Get Task Categories & Outcomes through Bonafide.

### [Get Task Detail](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_task.md)

- Handler: `bonafide_get_task`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `task_id`
- Outputs: `success`, `task_id`, `name`, `description`, `category_id`, `category_name`, `outcome_id`, `outcome_name`, `reference_type`, `reference_no`, `severity`, `severity_label`, `due_date`, `assigned_employee_ids`, `collaborators`, `conversations`, `tags`, `message`, `error_message`, `error`

Perform Get Task Detail through Bonafide.

### [Get Tasks](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_get_tasks.md)

- Handler: `bonafide_get_tasks`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `employee_ids`, `closing_status`, `category_id`, `outcome_id`
- Outputs: `success`, `tasks`, `total_count`, `employee_ids`, `message`, `error_message`, `error`

Perform Get Tasks through Bonafide.

### [List Source of Business Options](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_list_source_of_businesses.md)

- Handler: `bonafide_list_source_of_businesses`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `query`, `source_type`
- Outputs: `success`, `options`, `total_count`, `message`, `error`, `error_message`

Perform List Source of Business Options through Bonafide.

### [Post Task Conversation](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_post_task_conversation.md)

- Handler: `bonafide_post_task_conversation`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `task_id`, `detail`, `status`, `email_targets`, `last_conversation_id`
- Outputs: `success`, `task_id`, `status`, `message`, `error_message`, `error`

Perform Post Task Conversation through Bonafide.

### [Search Customer Orders](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_orders.md)

- Handler: `bonafide_search_orders`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `customer_id`
- Outputs: `success`, `rows`, `total_count`, `message`, `error`, `error_message`

Perform Search Customer Orders through Bonafide.

### [Search Inventory by HCPCS](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_inventory_by_hcpcs.md)

- Handler: `bonafide_search_inventory_by_hcpcs`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `hcpcs`, `office`
- Outputs: `success`, `items`, `total_count`, `message`, `error`, `error_message`

Perform Search Inventory by HCPCS through Bonafide.

### [Search Patients](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_patients.md)

- Handler: `bonafide_search_patients`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `first_name`, `last_name`, `date_of_birth`
- Outputs: `success`, `patient_found`, `single_match`, `match_count`, `external_id`, `customer_type`, `url`, `matches`, `matched_by`, `ambiguous`, `identity_verified`, `review_required`, `message`, `error`, `error_message`

Perform Search Patients through Bonafide.

### [Search Physicians](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_physicians.md)

- Handler: `bonafide_search_physicians`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `last_name`, `first_name`, `npi`
- Outputs: `success`, `physicians`, `total_count`, `message`, `error`, `error_message`

Perform Search Physicians through Bonafide.

### [Search Pre-Authorizations](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_pre_authorizations.md)

- Handler: `bonafide_search_pre_authorizations`
- Connection type: `bonafide`
- External effect: `read`
- Inputs: `customer_id`, `created_by_employee_no`, `scope`, `order_date_from`, `order_date_to`
- Outputs: `success`, `rows`, `total_count`, `message`, `error`, `error_message`

Perform Search Pre-Authorizations through Bonafide.

### [Set Doctor Address Contact Status](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_set_physician_address_contact_status.md)

- Handler: `bonafide_set_physician_address_contact_status`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `physician_id`, `address_seq`, `is_contact`, `contact_methods`
- Outputs: `success`, `physician_id`, `address_seq`, `is_contact`, `contact_methods`, `already_set`, `location`, `address1`, `city`, `state`, `zipcode`, `message`, `error`, `error_message`

Perform Set Doctor Address Contact Status through Bonafide.

### [Set Doctor Contact Status](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_set_physician_contact_status.md)

- Handler: `bonafide_set_physician_contact_status`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `physician_id`, `is_contact`
- Outputs: `success`, `physician_id`, `is_contact`, `already_set`, `message`, `error`, `error_message`

Perform Set Doctor Contact Status through Bonafide.

### [Set Patient Sales Rep](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_set_patient_sales_rep.md)

- Handler: `bonafide_set_patient_sales_rep`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `customer_id`, `sales_rep_id`
- Outputs: `success`, `customer_id`, `sales_rep_id`, `previous_sales_rep_id`, `message`, `error`, `error_message`

Perform Set Patient Sales Rep through Bonafide.

### [Update Patient Billing Info](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_update_patient_billing_info.md)

- Handler: `bonafide_update_patient_billing_info`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `customer_id`, `same_as_primary_guarantor`, `sales_rep_id`
- Outputs: `success`, `customer_id`, `sales_rep_id`, `previous_sales_rep_id`, `same_as_primary_guarantor`, `fields_updated`, `message`, `error`, `error_message`

Perform Update Patient Billing Info through Bonafide.

### [Update Patient Demographics](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_update_patient_demographics.md)

- Handler: `bonafide_update_patient_demographics`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `customer_id`, `update_ship_to_info_for_all_orders`, `overwrite_existing`, `first_name`, `last_name`, `date_of_birth`, `gender`, `address`, `address_2`, `city`, `state`, `zip_code`, `phone`, `ssn`
- Outputs: `success`, `customer_id`, `fields_updated`, `fields_skipped`, `ship_to_propagation_requested`, `message`, `error`, `error_message`

Perform Update Patient Demographics through Bonafide.

### [Update Patient Insurance](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_update_patient_insurance.md)

- Handler: `bonafide_update_patient_insurance`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `same_as_patient`, `populate_address_from_patient`, `overwrite_existing`, `overwrite_coverage`, `customer_id`, `carrier_name`, `member_no`, `group_no`, `group_name`, `subscriber_first_name`, `subscriber_last_name`, `subscriber_dob`, `subscriber_gender`, `subscriber_address`, `subscriber_address_2`, `subscriber_city`, `subscriber_state`, `subscriber_zip`, `subscriber_phone`, `subscriber_relationship`, `patient_responsibility_pct`, `remaining_deductible`, `insurance_pays_pct`, `remaining_out_of_pocket`, `insurance_type`
- Outputs: `success`, `customer_id`, `fields_updated`, `message`, `error`, `error_message`

Perform Update Patient Insurance through Bonafide.

### [Update Patient's Default Claim Physician](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_link_physician_to_patient.md)

- Handler: `bonafide_link_physician_to_patient`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `customer_id`, `physician_id`
- Outputs: `success`, `customer_id`, `physician_id`, `previous_physician_id`, `message`, `error`, `error_message`

Perform Update Patient's Default Claim Physician through Bonafide.

### [Update Source of Business](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_update_source_of_business.md)

- Handler: `bonafide_update_source_of_business`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `customer_id`, `source_of_business_id`
- Outputs: `success`, `customer_id`, `source_of_business_id`, `source_of_business_label`, `message`, `error`, `error_message`

Perform Update Source of Business through Bonafide.

### [Update Task](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_update_task.md)

- Handler: `bonafide_update_task`
- Connection type: `bonafide`
- External effect: `write`
- Inputs: `task_id`, `name`, `detail`, `due_date`, `severity`, `reference_type`, `reference_no`, `category_id`, `category_name`, `outcome_id`, `outcome_name`, `ops_description`, `employee_ids`, `email_targets`
- Outputs: `success`, `task_id`, `message`, `error_message`, `error`

Perform Update Task through Bonafide.
