Skip to content
Discussion options

You must be logged in to vote

I noticed this as well - is there any way we can contribute changes to the docs?
But for clarity on the functionality:

  • Retrieve a particular document for the specified date and document type. (PDF only I have found so far)
  • Response headers contain Content-Type:application/pdf.
  • Response headers contain file name in this format:
attachment; filename="Statement_04/01/2024 00:00:00.pdf"; filename*=UTF-8''Statement_04%2F01%2F2024%2000%3A00%3A00.pdf

You can save files straight to disk/S3 etc. from this.

Ruby example:

def save_document_to_file(account, document)
  file_name = "#{account.masked_number}_#{document.file_name}"
  directory = "extracted_files/documents/#{account.masked_number}"
  …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nikspyratos
Comment options

Answer selected by nikspyratos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
3 participants