Checking casefile status
Once you've sent your first casefiles, you'll want to check up on them from time to time. You can do this for individual casefiles, or pull a list of all of them. But first, you'll want to know which statuses a casefile can have:
- New: The case file hasn't been sent out for signing yet
- Pending: The case file is out for signing
- Rejected: One of the signers has rejected to sign
- Deleted: The case file has been out for signing but have since been deleted
- Signed: The case file is signed, but the signed documents are not generated
- Completed: The signing process is completed
- Failed: An error occurred, either as a result of invalid/incomplete input or system error.
Let's see what checking the status of an individual casefile looks like:
// Check casefile status
GET <<penneo_api_base_url>>/casefiles/<casefile id>
// You want the "status" parameter. Possible values:
// 0 : 'new'
// 1 : 'pending'
// 2 : 'rejected'
// 3 : 'deleted'
// 4 : 'signed'
// 5 : 'completed'
// 6 : 'failed'
// Retrieve a specific case file (by id)
var myCaseFile = Query.Find<CaseFile>(<casefile id>);
myCaseFile.GetStatus();
// This returns the status of the case file as a string.
// Retrieve a specific case file (by id)
$myCaseFile = CaseFile::find(<casefile id>);
echo $myCaseFile->getStatus();
// This returns the status of the case file as a string.
Easy peasy, but what if you're handling large volumes?
Basically if you leave out the ID, you'll get a list of all the casefiles your credentials give you access to. See the page on retrieving completed casefiles, and leave out the status filter.
You can see your options for filtering etc here: https://app.penneo.com/api/docs#get--api-v1-casefiles
Updated about 2 years ago