Data Source: oci_osp_gateway_invoices
This data source provides the list of Invoices in Oracle Cloud Infrastructure Osp Gateway service.
Returns a list of invoices
Example Usage
data "oci_osp_gateway_invoices" "test_invoices" {
#Required
compartment_id = var.compartment_id
osp_home_region = var.invoice_osp_home_region
#Optional
invoice_id = oci_osp_gateway_invoice.test_invoice.id
search_text = var.invoice_search_text
status = var.invoice_status
time_invoice_end = var.invoice_time_invoice_end
time_invoice_start = var.invoice_time_invoice_start
time_payment_end = var.invoice_time_payment_end
time_payment_start = var.invoice_time_payment_start
type = var.invoice_type
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The OCID of the compartment.invoice_id- (Optional) The invoice query param (not unique).osp_home_region- (Required) The home region’s public name of the logged in user.search_text- (Optional) A filter to only return resources that match the given value. Looking for partial matches in the following fileds: Invoice No., Reference No. (plan number), Payment Ref, Total Amount(plan number), Balance Due(plan number) and Party/Customer Namestatus- (Optional) A filter to only return resources that match one of the status elements.time_invoice_end- (Optional) description: End time (UTC) of the target invoice date range for which to fetch invoice data (exclusive).time_invoice_start- (Optional) description: Start time (UTC) of the target invoice date range for which to fetch invoice data (inclusive).time_payment_end- (Optional) description: End time (UTC) of the target payment date range for which to fetch invoice data (exclusive).time_payment_start- (Optional) description: Start time (UTC) of the target payment date range for which to fetch invoice data (inclusive).type- (Optional) A filter to only return resources that match the given type exactly.
Attributes Reference
The following attributes are exported:
invoice_collection- The list of invoice_collection.
Invoice Reference
The following attributes are exported:
bill_to_address- Address details modeladdress_line1- Address line 1address_line2- Address line 2address_line3- Address line 3address_line4- Address line 4city- Name of the citycompany_name- Name of the customer companycontact_name- Name of the contact personcountry- Country details modelascii3country_code- Country code in ISO-3166-1 3-letter formatcountry_code- Country code in ISO-3166-1 2-letter formatcountry_id- Indentifier of the country. This is a DB side unique id which was generated when the entity was created in the tablecountry_name- Name of the countrylanguage_id- Language identifier
county- County namepostal_code- ZIP noprovince- Name of the provincestate- Name of the statestreet_name- Street namestreet_number- House no
currency- Currency details modelcurrency_code- Currency codecurrency_symbol- Currency symbolname- Name of the currencyround_decimal_point- Round decimal pointusd_conversion- USD conversion rate of the currency
internal_invoice_id- Transaction identifierinvoice_amount- Total amount of invoiceinvoice_amount_adjusted- Invoice amount adjustinvoice_amount_applied- Invoice amount appliedinvoice_amount_credited- Invoice amount creditinvoice_amount_due- Balance of invoiceinvoice_id- Invoice identifier which is generated on the on-premise sie. Pls note this is not an OCIDinvoice_number- Invoice external referenceinvoice_po_number- Invoice PO numberinvoice_ref_number- Invoice reference numberinvoice_status- Invoice statusinvoice_type- Type of invoiceis_credit_card_payable- Is credit card payment eligibleis_display_download_pdf- Is pdf download access allowedis_payable- Whether invoice can be payedis_pdf_email_available- Is emailing pdf allowedlast_payment_detail- Payment related detailsaccount_number- Account number of the card owneramount_paid- Amount that paidcard_type- Echeck card typecredit_card_type- Credit card typeecheck_routing- Last four routing digits of the cardlast_digits- Last four digits of the cardname_on_card- Name on the credit cardpaid_by- examplepayment_method- Payment methodpaypal_id- The id (email address) of the paypal paymentpaypal_reference- paypal payment referencerouting_number- Routing number of the echeck cardtime_expiration- Expired date of the credit cardtime_paid_on- Paid the invoice on this day
payment_terms- Payment termspreferred_email- Preferred Email on the invoicesubscription_ids- List of subscription identifierstax- Tax of invoice amounttime_invoice- Date of invoicetime_invoice_due- Due date of invoice