Data Source: oci_osp_gateway_invoice
This data source provides details about a specific Invoice resource in Oracle Cloud Infrastructure Osp Gateway service.
Returns an invoice by invoice id
Example Usage
data "oci_osp_gateway_invoice" "test_invoice" {
#Required
compartment_id = var.compartment_id
internal_invoice_id = oci_osp_gateway_invoice.test_invoice.id
osp_home_region = var.invoice_osp_home_region
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The OCID of the compartment.internal_invoice_id- (Required) The identifier of the invoice.osp_home_region- (Required) The home region’s public name of the logged in user.
Attributes 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