Skip to main content

Split and process a PDF

POST 

/api/v8/partner/documents-set

Veryfi's PDF Splitter allows you to split a multi page PDF with different receipts and invoices inside into multiple Documents. This API supports .pdf,.zip. Min file size is 250bytes. The max pdf file size is 50mb. When processing is finished, you should expect a request to your configured webhook.

Request

Body

    external_id string

    Possible values: non-empty

    A custom identification value. Use this if you would like to assign your own ID to documents. This parameter is useful when mapping this document to a service or resource outside Veryfi.

    meta.tags string[]

    Possible values: non-empty

    Default value: ``

    Tags you want to associate with the document.

    package_path string

    Possible values: non-empty

    A path to a file in an S3 bucket, e.g. 'some/receipt.jpg

    bucket string

    Possible values: non-empty

    An S3 bucket for 'package_path', e.g. 'documents'.

    file_data string

    Possible values: non-empty

    Used to upload a document via base64 encoded string, could be raw or data URI scheme. This is the least effective way to upload a document for processing. See file_urls or uploading zip files.

    file_url string

    Possible values: non-empty

    A URL to a publicly accessible document to be sent to Veryfi for processing.

    file_urls string[]

    Possible values: non-empty

    An array of URLs to publicly accessible documents to be sent to Veryfi for processing.

    file_name string

    Possible values: non-empty

    An optional filename. Useful to determine file type.

    categories string[]

    Default value: ``

    tags string[]

    Default value: ``

    A user-defined list of identifiers that help to categorize or flag particular types of documents.

    max_pages_to_process integer

    Possible values: >= 1 and <= 100

    Default value: 100

    Limit processing to number of pages.

Responses

Returns the unique identifiers for the document currently being processed.

Schema
    id integerrequired

    The unique identifier of the collections of processed documents.

    documents_id integer[]

    The unique identifiers of the documents created from processed PDF Splitter.

    status stringrequired

    Possible values: [processed, in_progress, deleted, failed]

Loading...