ExFattureincloud.Receipts (ExFattureincloud v0.1.0)

Copy Markdown View Source

Operations in the Fatture in Cloud Receipts resource.

Summary

Functions

create_receipt(client, company_id, body, opts \\ [])

Creates a new receipt.

Sends POST /c/{company_id}/receipts (createReceipt).

Pass the JSON body with the provider's envelope. Use nil to omit it.

delete_receipt(client, company_id, document_id, opts \\ [])

Deletes the specified receipt.

Sends DELETE /c/{company_id}/receipts/{document_id} (deleteReceipt).

get_receipt(client, company_id, document_id, opts \\ [])

Gets the specified receipt.

Sends GET /c/{company_id}/receipts/{document_id} (getReceipt).

Query options

  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")

get_receipt_pre_create_info(client, company_id, opts \\ [])

Retrieves the information useful while creating a new receipt.

Sends GET /c/{company_id}/receipts/info (getReceiptPreCreateInfo).

get_receipts_monthly_totals(client, company_id, opts \\ [])

Returns the monthly totals by year and receipt type.

Sends GET /c/{company_id}/receipts/monthly_totals (getReceiptsMonthlyTotals).

Query options

  • :type (string, required, one of "sales_receipt", "till_receipt")
  • :year (string, required)

list_receipts(client, company_id, opts \\ [])

Lists the receipts.

Sends GET /c/{company_id}/receipts (listReceipts).

Query options

  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")
  • :page (integer, minimum 1)
  • :per_page (integer, minimum 1, maximum 100)
  • :sort (string)
  • :q (string)

modify_receipt(client, company_id, document_id, body, opts \\ [])

Modifies the specified receipt.

Sends PUT /c/{company_id}/receipts/{document_id} (modifyReceipt).

Pass the JSON body with the provider's envelope. Use nil to omit it.