recipe · 4 fieldspan card
pan card
extraction api.
A laminated card carrying the PAN, the holder's name, father's name and date of birth.
what it reads
the fields.
Rename any of them, drop the ones you don't need, or add the one your form asks for. Each comes back with the text it was read from.
| field | key | type | notes |
|---|---|---|---|
| PAN | pan | PAN | — |
| Name | name | Name | — |
| Father's nameoptional | father_name | Name | Older cards carry it; newer ones may not |
| Date of birth | date_of_birth | Date | — |
the apia pan card in,
a pan card in,
json back.
Publish the recipe as a workflow and send it files. Each field returns its value, a clean normalised version, its status, the page and the source text.
curl https://api.patrapi.com/v1/workflows/wf_pan/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@pan-card.pdf{ "status": "completed",
"document_type": "pan_card",
"fields": {
"pan": { "value": …, "status": "present", "page": 1 },
"name": { "value": …, "status": "present", "page": 1 },
"father_name": { "value": …, "status": "present", "page": 1 },
"date_of_birth": { "value": …, "status": "present", "page": 1 }
} }