Delivery Note OCR

Mindee’s Delivery Note OCR API uses deep learning to automatically, accurately, and instantaneously parse your documents details. In a few seconds, the API extracts a set of data from your PDFs or photos of delivery notes, including:

  • Delivery Date

  • Delivery Number

  • Supplier Name

  • Supplier Address

  • Customer Name

  • Customer Address

  • Total Amount

The Delivery Note OCR API supports documents from all nationalities and languages.

Set up the API

Create an API key

To begin using the Mindee V1 OCR API, your first step is to create your V1 API key.

  1. To test your API, use a sample document.

  2. Access your Delivery Note OCR API by clicking on the corresponding product card in the Document Catalog

  3. From the left navigation, go to documentation > API Reference, you'll find sample code in popular languages and command line.

  • Replace my-api-key-here with your new API key, or use the select an API key feature and it will be filled automatically.

  • Copy and paste the sample code of your desired choice in your application, code environment, terminal etc.

  • Replace /path/to/the/file.ext with the path to your input document.

  1. Run your code. You will receive a JSON response with your document details.

API Response

Here is the full JSON response you get when you call the API:

{
  "api_request": {
    "error": {},
    "resources": [
      "document",
      "job"
    ],
    "status": "success",
    "status_code": 200,
    "url": "https://api.mindee.net/v1/products/mindee/delivery_notes/v1/documents/3e4f3b7a-cb7c-4cc3-b9e2-872ce025d0d5"
  },
  "document": {
    "id": "3e4f3b7a-cb7c-4cc3-b9e2-872ce025d0d5",
    "inference": {
      "extras": {},
      "finished_at": "2024-11-07T14:09:30.459000",
      "is_rotation_applied": true,
      "pages": [
        {
          "extras": {},
          "id": 0,
          "orientation": {
            "value": 0
          },
          "prediction": {}
        }
      ],
      "prediction": {
        "customer_address": {
          "value": "4312 Wood Road, New York, NY 10031"
        },
        "customer_name": {
          "value": "Jessie M Horne"
        },
        "delivery_date": {
          "value": "2019-10-02"
        },
        "delivery_number": {
          "value": "INT-001"
        },
        "supplier_address": {
          "value": "4490 Oak Drive, Albany, NY 12210"
        },
        "supplier_name": {
          "value": "John Smith"
        },
        "total_amount": {
          "value": 204.75
        }
      },
      "processing_time": 1.733,
      "product": {
        "features": [
          "delivery_date",
          "delivery_number",
          "supplier_name",
          "supplier_address",
          "customer_name",
          "customer_address",
          "total_amount"
        ],
        "name": "mindee/delivery_notes",
        "type": "standard",
        "version": "1.0"
      },
      "started_at": "2024-11-07T14:09:28.612000"
    },
    "n_pages": 1,
    "name": "delivery-note-template-en-neat-750px.png"
  },
  "job": {
    "available_at": "2024-11-07T14:09:30.468000",
    "error": {},
    "id": "0dd7ec9b-4e0a-42f0-8736-9704635e11a2",
    "issued_at": "2024-11-07T14:09:28.612000",
    "status": "completed"
  }
}

You can find the prediction within the prediction key found in document > inference > prediction for document-level predictions: it contains the different fields extracted at the document level, meaning that for multi-pages PDFs, we reconstruct a single object using all the pages.

Detailed Field Information

Using the above document example the following are the basic fields that can be extracted.

Delivery Date

  • delivery_date: Delivery Date is the date when the goods are expected to be delivered to the customer.

{
  "delivery_date": {
    "value": "2019-10-02"
  }
}

Delivery Number

  • delivery_number: Delivery Number is a unique identifier for a Global Delivery Note document.

{
  "delivery_number": {
    "value": "INT-001"
  }
}

Supplier Name

  • supplier_name: Supplier Name field is used to capture the name of the supplier from whom the goods are being received.

{
  "supplier_name": {
    "value": "John Smith"
  }
}

Supplier Address

  • supplier_address: The Supplier Address field is used to store the address of the supplier from whom the goods were purchased.

{
  "supplier_address": {
    "value": "4490 Oak Drive, Albany, NY 12210"
  }
}

Customer Name

  • customer_name: The Customer Name field is used to store the name of the customer who is receiving the goods.

{
  "customer_name": {
    "value": "Jessie M Horne"
  }
}

Customer Address

  • customer_address: The Customer Address field is used to store the address of the customer receiving the goods.

{
  "customer_address": {
    "value": "4312 Wood Road, New York, NY 10031"
  }
}

Total Amount

  • total_amount: Total Amount field is the sum of all line items on the Global Delivery Note.

{
  "total_amount": {
    "value": 204.75
  }
}

Last updated

Was this helpful?