curl --request POST \
--url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/pdfs/v1 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"pdf_base64": "<string>",
"account_id": "checking_account_202348",
"currency": "USD",
"filename": "my-favourite.pdf",
"is_split": false,
"read_us_dates": null,
"reference_id": "my-favourite-pdf"
}
'{
"pdf_heron_id": "<string>",
"request_id": "<string>"
}Upload encoded PDF of transactions for a specified end user to translate into Heron Data format
curl --request POST \
--url https://app.herondata.io/api/end_users/{end_user_id_or_heron_id}/pdfs/v1 \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"pdf_base64": "<string>",
"account_id": "checking_account_202348",
"currency": "USD",
"filename": "my-favourite.pdf",
"is_split": false,
"read_us_dates": null,
"reference_id": "my-favourite-pdf"
}
'{
"pdf_heron_id": "<string>",
"request_id": "<string>"
}The end_user_id or heron_id of EndUser to upload
The base64 encoded string of the PDF file. If using Javascript, this is directly the output of the FileReader.readAsDataURL() output.
Unique ID for account associated with PDF
"checking_account_202348"
ISO 4217 currency code for transactions in account. We currently only support GBP and USD PDFs
USD, GBP, "USD"
The filename of the PDF
"my-favourite.pdf"
Whether the file has been manually split
false
True if date formats in the statement are US: month/date/year
An optional field for your unique identifier for the PDF
140"my-favourite-pdf"
Was this page helpful?