Method: TransferZero::DocumentsApi#get_document

Defined in:
lib/transferzero-sdk/api/documents_api.rb

#get_document(document_id, opts = {}) ⇒ DocumentResponse

Fetching a document Returns a single document by the Documents ID

Parameters:

  • document_id

    ID of the document to get. Example: `/v1/documents/bf9ff782-e182-45ac-abea-5bce83ad6670`

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



29
30
31
32
# File 'lib/transferzero-sdk/api/documents_api.rb', line 29

def get_document(document_id, opts = {})
  data, _status_code, _headers = get_document_with_http_info(document_id, opts)
  data
end