Input

NameDescriptionRequired
Source PDF URLProvide the URL to the source PDF document, or a filetoken:// link from PDF.co Built-In Files Storage. If you use another cloud service such as Google Drive or Dropbox ensure the link is publicly accessible. Leave this field empty to generate blank PDF files containing barcodes.Yes
customFieldComma-separated list of custom field names to extract. Use camelCase for field names (e.g., storeNumber, deliveryDate).No

Source PDF URL & Google

When using Google Drive, it’s typically recommended to choose the File option. For more advanced file integration techniques, see Integrating File Sources with pdf.co.

Custom Fields

AI Invoice Parser with custom fields support automatically detects invoice layouts and extracts both standard schema data and user-specified custom fields without requiring manual templates.

The customField parameter allows you to specify additional fields to extract beyond the standard schema. Some examples include:

  • storeNumber - Store or branch identifier
  • deliveryDate - Expected delivery date
  • financialCharges - Additional financial charges
  • lineTotal - Total amount for line items
  • purchaseOrderRef - Purchase order reference number
  • customerReference - Customer reference number
  • departmentCode - Department or cost center code
If a custom field returns an empty value, please contact our support team to help improve the extraction accuracy.

Output

NameDescription
bodyAn object array containing the all invoice parsing result.
errorDetails of any errors (if any).
statusThe response status code. If all good this will be 200.
creditsThe credits spent on the process.
remainingCreditsThe credits left on your account.
durationThe time it took for the process.
pageCountTotal Page Count.