How to eFile to courts using REST API in TX, CA, IL, IN and MD

1. Request a clienttoken for staging environment by emailing  efile@uslegalpro.com
2. API documentation can be found @  https://api.uslegalpro.com 
3. Create a program to do the following:

Note: This article gives you a high level overview of APIs that are needed, at the minimum, to integrate with the court’s system. For example code visit link.

This is the first step before efiling

End Point (POST)

https://{{HOST}}/v2/{{STATE}}/user/authenticate

Header

{clienttoken: XXXXX}

Payload

{
 "data": {
   "username":
"{{USERNAME}}",
   "password":
"{{PASSWORD}}"
 }
}

Response

{
 "message_code":
0,
 "item": {
   "auth_token":
"fe2c40a7-68dc-476c-acf8-b850fb72e7c0/XPI0001/992af94b- fff2-4e06-a087-34dfc0e3e1542"
 }
}

Use the auth token from step 3.1 to invoke this API. You can use conditions in the payload, so you do not have to store the filing codes. However, you still have the option to store codes locally if you want to.

End Point (POST)

{{HOST}}/v2/{{STATE}}/efile

Header

{
  "authtoken":
"fe2c40a7-68dc-476c-acf8-b850fb72e7c0/XPI0001/992af94b- fff2-4e06-a087-34dfc0e3e1542"
}

Payload

{
 "data": {
   "jurisdiction":
"(''.startsWith('Harris District') && ''.endsWith('Civil'))",
   "case_number":
"200558233",
   "payment_account_id":
"(''.equals('waiver'))",
   "client_matter_number":
"170712",
   "filing_party_id":
"(''.startsWith('BERNADETTE'))",
   "filer_type":
"(''.contains('Non-Party'))",
   "filing_attorney_id":
"(''.equals('Attorney'))",
   "filings": [
     {
       "doc_type":
"(''.startsWith('Affidavits'))",
       "type":
"EFile",
       "code":
"(''.startsWith('No Fee'))",
       "description":
"No Fee Documents",
       "file":
"https://w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
     }
   ]
 }
}

Response

{
 "message_code":
0,
 "item": {
   "id":
"212821",
   "case_tracking_id":
"775dd127-3b77-42b0-862a-a8b3c16052b5",
   "filings": [
     {
       "id":
"22a46ad1-5cc3-47ff-98de-e3bcd98d04fa",
       "code":
"136718",
       "status":
"submitting"
     }
   ]
 }
}

Once filing is accepted, you will get a stamped document attributed in the JSON from which you can download the stamped content.

End Point (GET)

{{HOST}}/v2/{{STATE}}/filing/22a46ad1-5cc3-47ff-98de-e3bcd98d04fa

Header

{
  "authtoken":
"fe2c40a7-68dc-476c-acf8-b850fb72e7c0/XPI0001/992af94b- fff2-4e06-a087-34dfc0e3e1542"
}