Learn R Programming

rfacebookstat (version 2.16.1)

fbGetBusinessInvoices: Get Business Invoices

Description

fbGetBusinessInvoices get invoices for a Facebook Business Manager.

Usage

fbGetBusinessInvoices(
  business_id,
  start_date = NULL,
  end_date = NULL,
  issue_start_date = NULL,
  issue_end_date = NULL,
  invoice_id = NULL,
  type = NULL,
  api_version = getOption("rfacebookstat.api_version"),
  username = getOption("rfacebookstat.username"),
  token_path = fbTokenPath(),
  access_token = getOption("rfacebookstat.access_token")
)

Value

Data frame with business invoices.

Arguments

business_id

ID of the Facebook Business Manager.

start_date

Start date for the billing period (YYYY-MM-DD).

end_date

End date for the billing period (YYYY-MM-DD).

issue_start_date

Start date when the invoice was issued (YYYY-MM-DD).

issue_end_date

End date when the invoice was issued (YYYY-MM-DD).

invoice_id

Filter by a specific invoice ID.

type

Type of the document, e.g., "INV", "PRO_FORMA", "CM", "DM".

api_version

Current Facebook API version.

username

your username on Facebook

token_path

path to dir with credentials

access_token

Your facebook API token

Author

Alexey Seleznev