API v4
Mantys Eligibility API v4: one error format, clearer status codes, paging, and a safer cancel.
v4 is the current version of the Mantys eligibility API. It does what v3 does, with one error format, clearer status codes, paging, and a safer cancel. v3 keeps working unchanged while you move over.
How it works
Mantys asks the payer's own system, so a check takes seconds to a minute. You create the check, then poll it until it is finished:
status is final, the body you already have is the answer. There is no separate result endpoint.Start here
Getting started
Credentials, hosts, your first check with a test ID, statuses, errors and a complete client.
Try it
Create and poll a test check in the browser, with the cURL for each call.
Test IDs
Canned answers for every case your client has to handle. No payer is contacted.
Moving from v3
The checklist for switching an existing v3 client.
What changed from v3
Same checks, same payers, same results. What changes is how you call the API and how it answers.
| v3 | v4 | |
|---|---|---|
| Base path | /v2/api-integration-v3/... | /v4/... |
| Errors | Two shapes ({success, message} and {detail}), English text only | One shape with a fixed code you can branch on |
| Wrong clinic for your key | 401 | 403 CLINIC_NOT_AUTHORIZED (your key is fine) |
| Bad input | Fails on the first problem | Lists every problem at once |
| Unknown body fields | Silently ignored | Rejected (422), so typos are caught |
| Patient ID | id_type + id_value | An identifiers list of 1 to 5 IDs |
| Answers | eligibility_result, or aggregated_results on a search-all | eligible_responses and other_responses, the same shape on every check |
| Check list | Fixed 10 per page, offset paging | Up to 100 per page, cursor paging (no duplicates) |
| Another clinic's check | 404 | 404 (unchanged) |
| Cancel | You send the Daman eligibility_id and tpa_name | You send only the check id; we look up the rest |
| Several IDs for one patient | One ID per check | Up to 5 IDs in one check; the result names the ID that matched |
| Policy authority | Nested inside the result | Also at the top level as policy_authority |
Test mode (mode, test_mode) | Accepted | Removed. Use test IDs |