Operations in the Fatture in Cloud Archive resource.
Summary
Functions
Creates a new archive document.
Deletes the specified archive document.
Gets the specified archive document.
Lists the archive documents.
Modifies the specified archive document.
Uploads an attachment destined to an archive document. The actual association between the document and the attachment must be implemented separately, using the returned token.
Functions
@spec create_archive_document( ExFattureincloud.Client.t(), ExFattureincloud.API.path_parameter(), map() | nil, ExFattureincloud.API.parameters() ) :: ExFattureincloud.Response.result()
Creates a new archive document.
Sends POST /c/{company_id}/archive (createArchiveDocument).
Pass the JSON body with the provider's envelope. Use nil to omit it.
@spec delete_archive_document( ExFattureincloud.Client.t(), ExFattureincloud.API.path_parameter(), ExFattureincloud.API.path_parameter(), ExFattureincloud.API.parameters() ) :: ExFattureincloud.Response.result()
Deletes the specified archive document.
Sends DELETE /c/{company_id}/archive/{document_id} (deleteArchiveDocument).
@spec get_archive_document( ExFattureincloud.Client.t(), ExFattureincloud.API.path_parameter(), ExFattureincloud.API.path_parameter(), ExFattureincloud.API.parameters() ) :: ExFattureincloud.Response.result()
Gets the specified archive document.
Sends GET /c/{company_id}/archive/{document_id} (getArchiveDocument).
Query options
:fields(string):fieldset(string, one of"basic","detailed","fic_view")
@spec list_archive_documents( ExFattureincloud.Client.t(), ExFattureincloud.API.path_parameter(), ExFattureincloud.API.parameters() ) :: ExFattureincloud.Response.result()
Lists the archive documents.
Sends GET /c/{company_id}/archive (listArchiveDocuments).
Query options
:fields(string):fieldset(string, one of"basic","detailed","fic_view"):sort(string):page(integer, minimum 1):per_page(integer, minimum 1, maximum 100):q(string)
@spec modify_archive_document( ExFattureincloud.Client.t(), ExFattureincloud.API.path_parameter(), ExFattureincloud.API.path_parameter(), map() | nil, ExFattureincloud.API.parameters() ) :: ExFattureincloud.Response.result()
Modifies the specified archive document.
Sends PUT /c/{company_id}/archive/{document_id} (modifyArchiveDocument).
Pass the JSON body with the provider's envelope. Use nil to omit it.
@spec upload_archive_document_attachment( ExFattureincloud.Client.t(), ExFattureincloud.API.path_parameter(), list(), ExFattureincloud.API.parameters() ) :: ExFattureincloud.Response.result()
Uploads an attachment destined to an archive document. The actual association between the document and the attachment must be implemented separately, using the returned token.
Sends POST /c/{company_id}/archive/attachment (uploadArchiveDocumentAttachment).
Pass a list of Req multipart fields as the body.