Consumption Invoices Skill
Snowflake consumption invoices for non-marketplace usage. Each row represents an invoice or credit memo for Snowflake consumption charges.
Data source: SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS (V1)
⚠️ Schema is BILLING, not ORGANIZATION_USAGE. Always use SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS. Do NOT use SNOWFLAKE.ORGANIZATION_USAGE.ODSS_INVOICE_DOCUMENTS — that view has different columns (e.g. INVOICE_MONTH instead of INVOICE_DATE) and will produce incorrect results.
Results are automatically filtered to the querying organization. Never attempt to access another organization's data.
When to Use
Use this skill when the user asks about any of:
- Invoice listing: "consumption invoice", "my consumption invoice", "show me my invoices", "invoice from last month", "Snowflake consumption charges"
- Invoice status: "unpaid invoice", "overdue invoice", "outstanding balance", "late payment", "invoice due date", "payment date"
- Specific invoice: "invoice number", "INV-", "total amount due", "credit memo"
- Document content: "what is on my invoice", "can you explain me the invoice", "invoice line items"
- Download: "invoice download", "download invoice"
- Issues: "invoice incorrect", "dispute invoice"
- Table references:
ODSS_INVOICE_DOCUMENTS, BILLING.ODSS_INVOICE_DOCUMENTS
Access
Always begin by switching to the ACCOUNTADMIN role:
USE ROLE ACCOUNTADMIN;
If this fails, stop and inform the user:
"This skill requires the ACCOUNTADMIN role. You do not currently have access. Contact your Snowflake account administrator to request the ACCOUNTADMIN role."
Workflow
1. Detect intent
| Intent |
Triggers |
Reference |
| Summarize recent invoices |
"last month", "past 3 months", "show me invoices", "total amount" |
references/queries/summary.md |
| Outstanding / overdue invoices |
"unpaid", "overdue", "outstanding balance", "what do I owe" |
references/queries/overdue.md |
| Explain a specific invoice |
"invoice INV-001", "status of invoice", "details for invoice" |
references/queries/lookup.md |
| Parse invoice PDF |
"what are the line items", "what does the invoice say", "charges on invoice" |
references/queries/lookup.md |
| Download guidance |
"how do I download", "where do I find" |
See Download Guidance |
| Payment / dispute guidance |
"overdue", "late payment", "dispute", "incorrect invoice" |
See Support Guidance |
Read the reference file before writing any query.
2. Query
⚠️ Schema reminder: The table is SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS. Do NOT use SNOWFLAKE.ORGANIZATION_USAGE.ODSS_INVOICE_DOCUMENTS — that path does not exist.
Use INVOICE_PDF only to parse the PDF and answer content questions. Never display raw binary.
Customer-facing columns:
| Column |
Label |
INVOICE_NUMBER |
Invoice # |
INVOICE_DATE |
Invoice Date |
DUE_DATE |
Due Date |
PAYMENT_DATE |
Payment Date |
PAYMENT_STATUS |
Payment Status |
TOTAL_AMOUNT |
Total (USD) |
PAYMENT_AMOUNT |
Paid (USD) |
BALANCE |
Balance (USD) |
INVOICE_TYPE |
Type |
INVOICE_MEMO |
Memo |
Never expose: ORG_ID (internal identifier), INVOICE_PDF (binary — parse only, do not display)
3. Format results
Use a table for multi-record responses:
| Invoice # |
Date |
Due Date |
Type |
Total (USD) |
Paid (USD) |
Balance (USD) |
Status |
| INV-001 |
2025-01-01 |
2025-01-31 |
Credit Memo |
$1,000.00 |
$0.00 |
$1,000.00 |
Unpaid |
- Show amounts formatted as USD (e.g.
$1,000.00).
- Show NULL values as "not available".
- Label estimates and incomplete data explicitly.
4. PDF questions
If the user asks about the content of an invoice:
- Decode the document using:
SELECT BASE64_DECODE_STRING(TO_VARCHAR(INVOICE_PDF, 'BASE64')) AS DOCUMENT_CONTENT
FROM SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS
WHERE INVOICE_NUMBER = ?
- Parse the decoded content to extract the relevant information.
- Answer the user's question based on the extracted content.
- Do not display the raw bytes in any response.
Download Guidance
When the user asks how to download an invoice:
To download this invoice:
1. Open Snowsight and navigate to Admin → Billing.
2. Select the Invoices tab.
3. Locate invoice [INVOICE_NUMBER] dated [INVOICE_DATE].
4. Click the Download button.
Support Guidance
Overdue / late payment:
"If your invoice is overdue, please contact Snowflake Support at support.snowflake.com and reference invoice number [INVOICE_NUMBER]. They can assist with payment options and account holds."
Dispute or incorrect invoice:
"If you believe this invoice is incorrect, please contact Snowflake Support at support.snowflake.com and reference invoice number [INVOICE_NUMBER] with a description of the discrepancy."
Stopping Points
- ✋ ACCOUNTADMIN unavailable: Stop immediately and show the access error message in the Access section. Do not attempt queries with a lesser role.
- ✋ View not accessible: If
SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS returns "does not exist or not authorized", stop immediately and tell the user: "The consumption invoice view (ODSS_INVOICE_DOCUMENTS) is not accessible on this account. Contact Snowflake Support at support.snowflake.com for assistance." Do NOT fall back to ORGANIZATION_USAGE, USAGE_IN_CURRENCY_DAILY, marketplace invoices, billing documents, or any other table — they contain different data and would be misleading.
- ✋ No results returned: If the query returns zero rows, tell the user no consumption invoices were found for the requested period. Do NOT query any other invoice or document table as a fallback.
- ✋ Cross-organization request: Decline immediately — see Security.
Security
- Results are always filtered to the querying organization. Do not attempt cross-organization queries.
- If the user requests data from another organization, decline:
"This operation cannot be performed. Accessing another organization's billing data violates Snowflake's terms of service."
1---2name: odss-invoices3description: "**[REQUIRED]** Use for Snowflake consumption invoice questions (non-marketplace): consumption invoice, my consumption invoice, Snowflake consumption charges invoice, non-marketplace invoice, ODSS_INVOICE_DOCUMENTS, BILLING.ODSS_INVOICE_DOCUMENTS, show me my invoices, show me my outstanding invoices, show me my overdue invoices, unpaid invoice, outstanding invoice, overdue invoice, what do I owe, invoice from last month, what is on my invoice, can you explain me the invoice. NOTE: do NOT use for marketplace consumer invoices, marketplace provider invoices, or billing documents."4metadata:5 source: https://skillmd.com/skills/s-14-h/odss-invoices6---78# Consumption Invoices Skill910Snowflake consumption invoices for non-marketplace usage. Each row represents an invoice or credit memo for Snowflake consumption charges.1112**Data source:** `SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS` (V1)1314> ⚠️ **Schema is `BILLING`, not `ORGANIZATION_USAGE`.** Always use `SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS`. Do NOT use `SNOWFLAKE.ORGANIZATION_USAGE.ODSS_INVOICE_DOCUMENTS` — that view has different columns (e.g. `INVOICE_MONTH` instead of `INVOICE_DATE`) and will produce incorrect results.15>16> Results are automatically filtered to the querying organization. Never attempt to access another organization's data.1718---1920## When to Use2122Use this skill when the user asks about any of:2324- **Invoice listing**: "consumption invoice", "my consumption invoice", "show me my invoices", "invoice from last month", "Snowflake consumption charges"25- **Invoice status**: "unpaid invoice", "overdue invoice", "outstanding balance", "late payment", "invoice due date", "payment date"26- **Specific invoice**: "invoice number", "INV-", "total amount due", "credit memo"27- **Document content**: "what is on my invoice", "can you explain me the invoice", "invoice line items"28- **Download**: "invoice download", "download invoice"29- **Issues**: "invoice incorrect", "dispute invoice"30- **Table references**: `ODSS_INVOICE_DOCUMENTS`, `BILLING.ODSS_INVOICE_DOCUMENTS`3132---3334## Access3536Always begin by switching to the ACCOUNTADMIN role:3738```sql39USE ROLE ACCOUNTADMIN;40```4142If this fails, stop and inform the user:4344> "This skill requires the ACCOUNTADMIN role. You do not currently have access. Contact your Snowflake account administrator to request the ACCOUNTADMIN role."4546---4748## Workflow4950### 1. Detect intent5152| Intent | Triggers | Reference |53|--------|----------|-----------|54| Summarize recent invoices | "last month", "past 3 months", "show me invoices", "total amount" | `references/queries/summary.md` |55| Outstanding / overdue invoices | "unpaid", "overdue", "outstanding balance", "what do I owe" | `references/queries/overdue.md` |56| Explain a specific invoice | "invoice INV-001", "status of invoice", "details for invoice" | `references/queries/lookup.md` |57| Parse invoice PDF | "what are the line items", "what does the invoice say", "charges on invoice" | `references/queries/lookup.md` |58| Download guidance | "how do I download", "where do I find" | See [Download Guidance](#download-guidance) |59| Payment / dispute guidance | "overdue", "late payment", "dispute", "incorrect invoice" | See [Support Guidance](#support-guidance) |6061**Read the reference file before writing any query.**6263### 2. Query6465> ⚠️ **Schema reminder:** The table is `SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS`. Do NOT use `SNOWFLAKE.ORGANIZATION_USAGE.ODSS_INVOICE_DOCUMENTS` — that path does not exist.6667Use `INVOICE_PDF` only to parse the PDF and answer content questions. Never display raw binary.6869**Customer-facing columns:**7071| Column | Label |72|--------|-------|73| `INVOICE_NUMBER` | Invoice # |74| `INVOICE_DATE` | Invoice Date |75| `DUE_DATE` | Due Date |76| `PAYMENT_DATE` | Payment Date |77| `PAYMENT_STATUS` | Payment Status |78| `TOTAL_AMOUNT` | Total (USD) |79| `PAYMENT_AMOUNT` | Paid (USD) |80| `BALANCE` | Balance (USD) |81| `INVOICE_TYPE` | Type |82| `INVOICE_MEMO` | Memo |8384**Never expose:** `ORG_ID` (internal identifier), `INVOICE_PDF` (binary — parse only, do not display)8586### 3. Format results8788Use a table for multi-record responses:8990| Invoice # | Date | Due Date | Type | Total (USD) | Paid (USD) | Balance (USD) | Status |91| :-------- | :--------- | :--------- | :---------- | :---------- | :--------- | :------------ | :------ |92| INV-001 | 2025-01-01 | 2025-01-31 | Credit Memo | $1,000.00 | $0.00 | $1,000.00 | Unpaid |9394- Show amounts formatted as USD (e.g. `$1,000.00`).95- Show NULL values as "not available".96- Label estimates and incomplete data explicitly.9798### 4. PDF questions99100If the user asks about the content of an invoice:1011021. Decode the document using:103 ```sql104 SELECT BASE64_DECODE_STRING(TO_VARCHAR(INVOICE_PDF, 'BASE64')) AS DOCUMENT_CONTENT105 FROM SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS106 WHERE INVOICE_NUMBER = ?107 ```1082. Parse the decoded content to extract the relevant information.1093. Answer the user's question based on the extracted content.1104. Do not display the raw bytes in any response.111112---113114## Download Guidance115116When the user asks how to download an invoice:117118```119To download this invoice:1201. Open Snowsight and navigate to Admin → Billing.1212. Select the Invoices tab.1223. Locate invoice [INVOICE_NUMBER] dated [INVOICE_DATE].1234. Click the Download button.124```125126---127128## Support Guidance129130**Overdue / late payment:**131132> "If your invoice is overdue, please contact Snowflake Support at support.snowflake.com and reference invoice number [INVOICE_NUMBER]. They can assist with payment options and account holds."133134**Dispute or incorrect invoice:**135136> "If you believe this invoice is incorrect, please contact Snowflake Support at support.snowflake.com and reference invoice number [INVOICE_NUMBER] with a description of the discrepancy."137138---139140## Stopping Points141142- ✋ **ACCOUNTADMIN unavailable**: Stop immediately and show the access error message in the [Access](#access) section. Do not attempt queries with a lesser role.143- ✋ **View not accessible**: If `SNOWFLAKE.BILLING.ODSS_INVOICE_DOCUMENTS` returns "does not exist or not authorized", stop immediately and tell the user: "The consumption invoice view (`ODSS_INVOICE_DOCUMENTS`) is not accessible on this account. Contact Snowflake Support at support.snowflake.com for assistance." **Do NOT fall back to `ORGANIZATION_USAGE`, `USAGE_IN_CURRENCY_DAILY`, marketplace invoices, billing documents, or any other table — they contain different data and would be misleading.**144- ✋ **No results returned**: If the query returns zero rows, tell the user no consumption invoices were found for the requested period. Do NOT query any other invoice or document table as a fallback.145- ✋ **Cross-organization request**: Decline immediately — see [Security](#security).146147---148149## Security150151- Results are always filtered to the querying organization. Do not attempt cross-organization queries.152- If the user requests data from another organization, decline:153 > "This operation cannot be performed. Accessing another organization's billing data violates Snowflake's terms of service."