Invoices ready for accounting export

Lists invoices and expenses ready to export to the accounting system. Uses the bookingStatusToExport filter to target only actionable items.

↓ Download skill (.md)
88/100·⚡ Daily·BeginnerController
ERP exportget_payables

🎯 Skill purpose

Lists invoices and expenses ready to export to the accounting system. Uses the bookingStatusToExport filter to target only actionable items.

📊 What it produces

List of payables to export with suppliers, amounts, and ready accounting codes.

Benefit

Before

Manual export from the UI with item-by-item verification of export status.

After

Export-ready list in seconds, zero risk of missing an item.



# Instructions — Invoices ready to export to accounting

## ⚠️ Critical anti double-posting rule

The three `bookkeepingStatus` statuses represent the accounting cycle:
- `toPrepare`: received in Spendesk, not yet reviewed
- `toExport`: reviewed and ready to send to the ERP → **this is what we want here**
- `exported`: already sent to the ERP → **DO NOT include** to avoid double-posting

This status is distinct from the payment status (`paymentStatus=toPay/paid`) — an invoice can be ready to export without being paid yet.

## Step 1 — Identify the company

Call `list_companies`.

## Step 2 — Retrieve the toExport payables

Call `get_payables` with:
```json
{
  "companyId": "...",
  "filters": {
    "field": "bookkeepingStatus",
    "operator": "=",
    "value": ["toExport"]
  }
}
```

Paginate if `hasNextPage=true`.

## Step 3 — Optional: filter by period

If the user wants only the payables for a given period, combine with a `payableDate` filter:
```json
{
  "operator": "and",
  "subfilters": [
    { "field": "bookkeepingStatus", "operator": "=", "value": ["toExport"] },
    { "field": "payableDate", "operator": "between", "value": { "from": "...", "to": "..." } }
  ]
}
```

## Step 4 — Present the results

Display:
- Total number of payables ready to export
- Total in functional currency (sum `functionalAmount.amount / 10^precision`)
- List with: date, supplier/employee, type (invoicePurchase/expenseClaim/etc.), amount, invoice number
- Group by `payableType` to make the ERP export easier

## Note on toPrepare

`toPrepare` payables are not ready yet — they must first be reviewed in Spendesk before moving to `toExport`. To see them: same call with `value: ["toPrepare"]`.

## Example prompts

- "Which invoices are ready to export to accounting?"
- "Give me the list of toExport payables for my monthly export"

How to install this skill

/
  1. 1
    Download the file s10-factures-a-exporter-comptabilite.md using the button above.
  2. 2
    Place the file in the .claude/ directory of your project (or ~/.claude/ for a global install).
    cp s10-factures-a-exporter-comptabilite.md .claude/s10-factures-a-exporter-comptabilite.md
  3. 3
    Use in Claude Codethe skill is automatically discovered. Describe your need in natural language and Claude will apply the skill instructions.
💡 Make sure the Spendesk MCP is configured in your .claude/settings.json with the tools get_payables.

Similar skills

★ Top
95/100·🔍 Ad hoc·Expert

MCP coverage audit & gap analysis

Probes all available MCP tools, re-evaluates coverage of 50 persona use cases, detects new fields or tools, and regenerates the gap analysis report.

CFOControllerAP Manager
90/100·📅 Weekly·Beginner

Card requests via get_requests

Explains how to use get_requests for card requests and why expense reimbursements don't appear there. Avoids a frequent source of confusion between two distinct workflows.

ControllerFinance Analyst
90/100·🔍 Ad hoc·Intermediate

Active vs archived cost centers

Distinguishes active cost centers from archived ones with correct use of get_cost_centers. Avoids the counter-intuitive isArchived vs isActive naming convention pitfall.

ControllerFinance Analyst