cURL commands
Topic | Example |
---|---|
Activities | Adding an activity in a given case file |
Activities | Adding a new activity tag to your firms |
Activities | Getting a list of activities from a given case file |
Activities | Provides a list of activity tags available to authenticated user |
Billing | Add a case ledger to a given case file |
Billing | Add a new billing code to the authenticated user’s firm |
Billing | Add a new payment type |
Billing | Mark a case ledger as Rejected |
Billing | Mark a case ledger asnotRejected |
Billing | Mark a case ledger as Reviewed |
Billing | Mark a case ledger as Unreviewed |
Billing | Provides the details of a specific receivable |
Billing | Provides a list of billing codes available to the authenticated user |
Billing | Provides a list of open case ledgers available to the authenticated user |
Billing | Provides a list of receivables to the authenticated user |
Billing | Provides a list of Reviewed case ledgers available to the authenticated user |
Case File | Add a new injury or edit an existing one |
Case File | Add a party to a specified case |
Case File | Provides a list of global and firm-specific case types to the authenticated user |
Case File | Provides a list of injuries for a given Worker’s Compensation case file |
Case File | Provides incident details for a given Motor Vehicle Accident case file |
Case File | Provides incident details for a given Personal Injury - General Incident case file |
Case File | Provides incident details for a given Product Liability case file |
Case File | Provides incident details for a given Premise Liability case file |
Case File | Provides the arrest details in a given criminal case file |
Case File | Provides the incident information for a given Malpractice case file |
Case File | View details of a specific case file available to the authenticated user |
Case File | Provides details of all case files available to the authenticated user modified after a certain date |
Contacts | Add a new party group |
Contacts | Gets a list of party groups available to the authenticated user |
Contacts | Provides the details for a contact based upon it’s ID |
Contacts | Provides a list of parties on a given case file |
Events | Add an assignee to a given event |
Events | Add a new Event Type to the authenticated user’s firm |
Events | Adding a new event to the authenticated user’s firm |
Events | Provides the details of a specific event |
Events | Provides a list of events available to the authenticated user |
Events | Provides a list of Event Types available to the authenticated user |
Events | Remove an assignee from a given event |
Firm Admin | Returns a list of firm users if the requesting user is a firm admin |
Statutes | Adding or editing a statute |
Statutes | Provides a list of statutes available to the authenticated user |
Tasks | Add a task |
Tasks | Provides a list of tasks |
Getting a list of activities from a given case file
curl -X GET \ https://api.meruscase.com/activities/index/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}'
Adding an activity in a given case file
curl -X POST \ https://api.meruscase.com/activities/add/ \ -H 'Authorization: Bearer {bearer_token}' \ \ -F 'data[Activity][case_file_id]={case_file_id}' \ -F 'data[Activity][activity_type_id][]={activity_type_id}' \ -F 'data[Activity][activity]={activity_description}'
Provides a list of activity tags available to authenticated user
Including both Global and Firm-Specific types
curl -X GET \ https://api.meruscase.com/activityTypes/index \ -H 'Authorization: Bearer {bearer_token}' \
Adding a new activity tag to your firm
curl -X POST \ https://api.meruscase.com/activityTypes/add \ -H 'Authorization: Bearer {bearer_token}' \ \ -F 'data[ActivityType][type]={activity_tag_description}'
Provides the arrest details in a given criminal case file
curl -X GET \ https://api.meruscase.com/arrests/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of billing codes available to the authenticated user
curl -X GET \ https://api.meruscase.com/billingCodes/index \ -H 'Authorization: Bearer {bearer_token}' \
Add a new billing code to the authenticated user’s firm
curl -X POST \ https://api.meruscase.com/billingCodes/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[BillingCode][task_code]={task_code_ex_L230}' \ -F 'data[BillingCode][activity_code]={activity_code_ex_A101}' \ -F 'data[BillingCode][expense_code]={expense_code_ex_E101}' \ -F 'data[BillingCode][alternate_billing_code]={alternate_billing_code}' \ -F 'data[BillingCode][ledger_disposition]={ex_billable_expense}' \ -F 'data[BillingCode][description]={billing_code_description}' \ -F 'data[BillingCode][priority]={billing_code_order}'
View details of a specific case file available to the authenticated user
curl -X GET \ https://api.meruscase.com/caseFiles/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides details of all case files available to the authenticated user
curl -X GET \ https://api.meruscase.com/caseFiles/index \ -H 'Authorization: Bearer {bearer_token}' \
Provides details of all case files available to the authenticated user modified after a certain date
curl -X GET \ 'https://api.meruscase.com/caseFiles/index?modified[gte]=YYYY-MM-DD HH:MM:SS' \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of open case ledgers available to the authenticated user
curl -X GET \ https://api.meruscase.com/caseLedgersOpen/index \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of Reviewed case ledgers available to the authenticated user
curl -X GET \ https://api.meruscase.com/caseLedgersReviewed/index \ -H 'Authorization: Bearer {bearer_token}' \
Add a case ledger to a given case file
curl -X POST \ https://api.meruscase.com/caseLedgers/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[CaseLedger][case_file_id]={case_file_id}' \ -F 'data[CaseLedger][user_id]={user_id_of_biller}' \ -F 'data[CaseLedger][ledger_type_id]={ledger_type_id}' \ -F 'data[CaseLedger][description]={ledger_description}' \ -F 'data[CaseLedger][date]={ledger_date_mm_dd_yyyy} \ -F 'data[CaseLedger][account]={ledger_account_type}'
Mark a case ledger as Rejected
curl -X POST \ https://api.meruscase.com/caseLedgers/markRejected \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[caseLedgerIds][]={case_leger_id}'
Mark a case ledger asnotRejected
curl -X POST \ https://api.meruscase.com/caseLedgers/markNotRejected \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[caseLedgerIds][]={case_ledger_id}'
Mark a case ledger as Reviewed
curl -X POST \ https://api.meruscase.com/caseLedgers/markReviewed \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[caseLedgerIds][]={case_ledger_id}'
Mark a case ledger as Unreviewed
curl -X POST \ https://api.meruscase.com/caseLedgers/markNotReviewed -H 'Authorization: Bearer {bearer_token}' \ -F 'data[caseLedgerIds][]={case_ledger_id}'
Provides a list of global and firm-specific case types to the authenticated user
curl -X GET \ https://api.meruscase.com/caseTypes/index \ -H 'Authorization: Bearer {bearer_token}' \
Provides the details for a contact based upon it’s ID
curl -X GET \ https://api.meruscase.com/contacts/view/{contact_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of events available to the authenticated user
curl -X GET \ https://api.meruscase.com/events/index \ -H 'Authorization: Bearer {bearer_token}' \
Provides the details of a specific event
curl -X GET \ https://api.meruscase.com/events/view/{event_id} \ -H 'Authorization: Bearer {bearer_token}' \
Adding a new event to the authenticated user’s firm
curl -X POST \ https://api.meruscase.com/events/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[Event][event_title]={event_title}' \ -F 'data[Event][event_date_start]={event_start_mm_dd_yy_hh:mm:ss}' \ -F 'data[Event][event_date_end]={event_end_mm_dd_yy_hh:mm:ss}' \ -F 'data[Event][event_type_id]={event_type_id}'
Add an assignee to a given event
curl -X POST \ https://api.meruscase.com/events/addAssignees/{event_id} \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[Event][assignees][]={user_id}'
Remove an assignee from a given event
curl -X POST \ https://api.meruscase.com/events/delAssignees/{event_id} \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[Event][assignees][]={user_id}'
Provides a list of Event Types available to the authenticated user
curl -X GET \ https://api.meruscase.com/eventTypes/index \ -H 'Authorization: Bearer {bearer_token}' \
Add a new Event Type to the authenticated user’s firm
curl -X POST \ https://api.meruscase.com/eventTypes/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[EventType][type]={event_type}' \ -F 'data[EventType][color]={hexcode_color}'
Provides incident details for a given Personal Injury - General Incident case file
curl -X GET \ https://api.meruscase.com/generalIncidents/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of injuries for a given Worker’s Compensation case file
curl -X GET \ https://api.meruscase.com/injuries/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Add a new injury or edit an existing one
Edit requires the ID of an injury which is not deleted, and accessible to the authenticated user. Without an Injury ID, the request will add a new injury in the specified case file.
curl -X POST \ https://api.meruscase.com/injuries/edit \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[Injury][id]={injury_id_to_edit}' \ -F 'data[Injury][case_file_id]={case_file_id}' \ -F 'data[Injury][comments]={comment_being_added}'
Provides the incident information for a given Malpractice case file
curl -X GET \ https://api.meruscase.com/malpractices/view/{malpratice_case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of parties on a given case file
curl -X GET \ https://api.meruscase.com/parties/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Add a party to a specified case
curl -X POST \ https://api.meruscase.com/parties/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[Party][contact_id]={contact_id}' \ -F 'data[Party][case_file_id]={case_file_id}'
Gets a list of party groups available to the authenticated user
curl -X GET \ https://api.meruscase.com/partyGroups/index \ -H 'Authorization: Bearer {bearer_token}' \
Add a new party group
curl -X POST \ https://api.meruscase.com/partyGroups/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[PartyGroup][group_name]={party_group_name}' \ -F 'data[PartyGroup][group_color]={hex_code_color}' \ -F 'data[PartyGroup][group_priority]={party_group_priority}'
Add a new payment type
curl -X POST \ https://api.meruscase.com/paymentMethods/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[PaymentMethod][description]={payment_description}' \ -F 'data[PaymentMethod][account_id]={account_type}'
Provides incident details for a given Premise Liability case file
curl -X GET \ https://api.meruscase.com/premiseLiabilities/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides incident details for a given Product Liability case file
curl -X GET \ https://api.meruscase.com/productLiabilities/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of receivables to the authenticated user
curl -X GET \ https://api.meruscase.com/receivables/index \ -H 'Authorization: Bearer {bearer_token}' \
Provides the details of a specific receivable
curl -X GET \ https://api.meruscase.com/receivables/view/{receivable_id} \ -H 'Authorization: Bearer {bearer_token}' \
Provides a list of statutes available to the authenticated user
curl -X GET \ https://api.meruscase.com/statutes/index \ -H 'Authorization: Bearer 25ec6c5bfb1e843b37493418f288a29eb87ad49f' \
Adding or editing a statute
Add a new statute entry to the authenticated user’s firm, or edit an existing statute available to the authenticated user. Statute add and edit are differentiated by the inclusion of the ID of a non-deleted statute available to the authenticated user.
curl -X POST \ https://api.meruscase.com/statutes/edit/450 \ -H 'Authorization: Bearer {bearer_token} \ -F 'data[Statute][label]={statute_label}' \ -F 'data[Statute][time_amount]={numeric_time_amt}' \ -F 'data[Statute][time_interval_id]={time_id}' \ -F 'data[Statute][time_offset_id]={set_on_previous_id}' \ -F 'data[Statute][event_type_id]={event_type_for_statute}'
Provides a list of tasks
curl -X GET \ https://api.meruscase.com/tasks/index \ -H 'Authorization: Bearer {bearer_token}' \
Add a task
curl -X POST \ https://api.meruscase.com/tasks/add \ -H 'Authorization: Bearer {bearer_token}' \ -F 'data[Task][user_id]={user_id_of_assigned}' \ -F 'data[Task][date_due]={mm_dd_yyyy_due_date}' \ -F 'data[Task][description]={task_description}'
Returns a list of firm users if the requesting user is a firm admin
curl -X GET \ https://api.meruscase.com/users/index \ -H 'Authorization: Bearer {bearer_token}' \
Provides incident details for a given Motor Vehicle Accident case file
curl -X GET \ https://api.meruscase.com/vehicleAccidents/view/{case_file_id} \ -H 'Authorization: Bearer {bearer_token}' \