API Docs
  1. Invoice
API Docs
  • Bank
    • Root
      GET
    • Extract Bank Statement data
      POST
    • Validate PDF password
      POST
    • Get extraction results
      POST
  • Invoice
    • Root
      GET
    • Extract Invoice data
      POST
    • Re-extract with custom schema
      POST
    • Validate PDF password
      POST
    • Get extraction results
      POST
  • Medical
    • Root
      GET
    • Extract Medical data
      POST
    • Re-extract with custom schema
      POST
    • Get extraction results
      POST
    • Validate PDF password
      POST
  • Miscellaneous
    • Root
      GET
    • Extract Miscellaneous Document data
      POST
    • Re-extract with custom schema
      POST
    • Get extraction results
      POST
    • Validate PDF password
      POST
  • API Root
    GET
  • Generate Api Key Endpoint
    POST
  • Get Api Key Endpoint
    GET
  • IndexPage
    GET
  • User Documents
    GET
  • Schemas
    • MiscDocsAPI Response
    • MiscDocsAPI StorageLinks
    • BankExtractionResponse
    • BankExtractionResult
    • BankStorageLinks
    • InvoiceExtractBody
    • MedicalExtractResultsBody
    • MiscDocsExtract
    • ExtractBankPDFBody
    • BankExtractionResultsBody
    • InvoiceGetExtractionResultsBody
    • MedicalGetExtractionResults
    • MiscGetExtractionResultsBody
    • InvoiceReExtractwithSchema
    • MedDocsReExtractwithSchema
    • MiscDocsReExtractwithSchema
    • BankDocsValidatePassword
    • InvoiceValidatePassword
    • MedicalDocsValidatePassword
    • MiscDocsValidatePassword
    • CreditInfo
    • ExtractionResult
    • HTTPValidationError
    • InvoiceExtractionResponse
    • MedicalExtractionResponse
    • MedicalExtractionResult
    • MiscExtractionResponse
    • MiscExtractionResult
    • PasswordValidationResponse
    • ResultsFetchResponse
    • StorageLinks
    • ValidationError
    • BankResultsFetch
    • MedicalResultsFetch
    • InvoiceResultsFetch
    • MedicalAPI StorageLinks
    • InvoiceAPI StorageLinks
  1. Invoice

Re-extract with custom schema

POST
https://docextract.in/invoice/reextract-with-schema
Last modified:2026-01-05 20:30:52
Re-runs the extraction using a user-provided schema on previously extracted text. Avoids re-OCR and costs only 1 credit.

Request

Header Params

Body Params multipart/form-dataRequired

Responses

🟢200
application/json
Successful Response
Body

🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://docextract.in/invoice/reextract-with-schema' \
--header 'authorization: Api-Key sk_123456789a-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.mnopqrstuvwxyz012345' \
--form 'filename=""' \
--form 'schema=""'
Response Response Example
200 - Example 1
{
    "status": "success",
    "user_id": "user_123",
    "tier": "premium",
    "file": "string",
    "extracted_data": {
        "property1": "string",
        "property2": "string"
    },
    "schema_json": {
        "property1": "string",
        "property2": "string"
    },
    "tables": [
        [
            {
                "property1": "string",
                "property2": "string"
            }
        ]
    ],
    "results": [
        {
            "file": "invoice.pdf",
            "extracted_data": {
                "property1": "string",
                "property2": "string"
            },
            "schema_json": {
                "property1": "string",
                "property2": "string"
            },
            "tables": [
                [
                    {
                        "property1": "string",
                        "property2": "string"
                    }
                ]
            ],
            "storage": {
                "pdf_url": "string",
                "metadata_url": "string",
                "tables_url": "string",
                "complete_url": "string"
            }
        }
    ],
    "storage": {
        "pdf_url": "string",
        "metadata_url": "string",
        "tables_url": "string",
        "complete_url": "string"
    },
    "credits": {
        "deducted": 1,
        "remaining": 99
    },
    "message": "Invoice stored in Google Cloud Storage"
}
Modified at 2026-01-05 20:30:52
Previous
Extract Invoice data
Next
Validate PDF password
Built with