apideck-mcp-receive-payment
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Task playbook for recording a customer payment against an invoice via the Apideck MCP server's `apideck-receive-customer-payment` workflow tool. Use when the user says a customer paid an invoice and wants the accounting service updated. AR mirror of `apideck-pay-bill` — same shape, opposite ledger side. Different unified endpoint, different counterparty (customer vs supplier), different allocation type.
In this repository182 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- access-financialsSkill
- acertaSkill
- activecampaignSkill
- actSkill
- acumaticaSkill
- adp-ihcmSkill
- adp-runSkill
- adp-workforce-nowSkill
- afasSkill
- alexishrSkill
- amazon-seller-centralSkill
- apideck-best-practicesSkill
- apideck-codegenSkill
- apideck-connector-coverageSkill
- apideck-dotnetSkill
- apideck-goSkill
- apideck-javaSkill
- apideck-mcp-month-end-closeSkill
- apideck-mcp-onboard-employeeSkill
- apideck-mcp-pay-billSkill
- apideck-mcpSkill
- apideck-migrationSkill
- apideck-nodeSkill
- apideck-phpSkill
- apideck-portmanSkill
- apideck-pythonSkill
- apideck-restSkill
- apideck-unified-apiSkill
- asanaSkill
- attioSkill
- azure-active-directorySkill
- azure-devopsSkill
- bamboohrSkill
- banqupSkill
- basecampSkill
- bigcommerceSkill
- blackbaudSkill
- bol-comSkill
- boxSkill
- breathehrSkill
- bullhorn-atsSkill
- campfireSkill
- cascade-hrSkill
- catalystoneSkill
- cegid-talentsoftSkill
- ceridian-dayforceSkill
- cezannehrSkill
- charliehrSkill
- ciphrSkill
- clearbooks-ukSkill
- clickupSkill
- closeSkill
- copperSkill
- deelSkill
- digitsSkill
- dropboxSkill
- dualentrySkill
- ebaySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
When the user wants to record a payment against an existing invoice, prefer apideck-receive-customer-payment over stitching …
- Very specific: line 30
SET
x-apideck-service-id: when the consumer has multiple accounting connections.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Receive a customer payment (Apideck MCP)
When the user wants to record a payment against an existing invoice, prefer apideck-receive-customer-payment over stitching accounting-invoices-get + accounting-payments-create manually. The workflow tool fetches the invoice, reads its outstanding balance, builds the right allocation with type: "invoice", and surfaces structured errors with failingStep.
When this is the right tool
| User intent | Tool |
| "Customer paid invoice 4", "Apply $500 to invoice 12 from ACME", "Record receipt for invoice 99" | apideck-receive-customer-payment ✓ |
| "Pay vendor bill X" | apideck-pay-bill (AP — accounts payable, different unified endpoint) |
| "Create an unallocated customer prepayment" | accounting-payments-create directly (no allocation) |
| "Show me unpaid invoices" | accounting-invoices-list with filter[status]=open |
IMPORTANT RULES
- CONFIRM before calling. Receive-payment is mutating and not idempotent — calling twice creates two payments on the connected service. Always show the user the invoice total, currency, deposit account, and customer, and wait for explicit confirmation before invoking.
- PASS
payment_methodcapitalized for QuickBooks:"Check","CreditCard","Cash". Lower-case fails JSON parsing. Other connectors accept lower-case ("check","ach","wire"). - OMIT
amountto settle the full outstanding balance. The workflow defaults to the invoice'sbalance(outstanding), not the grosstotal, so partial-paid invoices don't get over-settled. Only passamountwhen the user explicitly wants a partial payment. - DON'T confuse with
apideck-pay-bill. Customer payments (someone owes you) →apideck-receive-customer-payment→accounting-payments-create. Vendor bills (you owe someone) →apideck-pay-bill→accounting-bill-payments-create. The unified APIs split AR and AP into separate endpoints; the wrong one will be rejected by the connector with confusing error messages (e.g. QuickBooks:VendorRef missingwhen there's a customer on the other side). - SET
x-apideck-service-idwhen the consumer has multiple accounting connections.
Argument map
| Arg | Required | Default | Notes |
invoice_id | yes | — | From accounting-invoices-list. |
account_id | yes | — | The deposit account that received the payment. From accounting-ledger-accounts-list. Often a bank or undeposited-funds account. |
amount | no | invoice's outstanding balance | Pass smaller for a partial payment. |
transaction_date | no | today (YYYY-MM-DD) | Some connectors reject future dates. |
payment_method | no | — | QB requires capitalized. |
reference | no | — | Memo / external reference. |
x-apideck-service-id | no | first accounting connection | E.g. "xero", "quickbooks". |
Result shape
Success
{
"invoice_id": "inv-42",
"payment_id": "pay-77",
"amount": 250.50,
"currency": "EUR",
"transaction_date": "2026-04-26",
"invoice_total": 250.50,
"partial": false,
"service_id": "xero"
}partial: true indicates an under-payment; tell the user a follow-up payment is needed for the rest.
Failure (with isError: true)
{
"invoice_id": "inv-42",
"amount": 100,
"currency": "USD",
"error": "accounting-payments-create failed: ...",
"failingStep": "accounting-payments-create",
"upstream": { ... }
}failingStep values:
accounting-invoices-get— invoice ID wrong or connector lost the recordvalidate-amount— invoice has zero outstanding balance (already paid)accounting-payments-create— payment write failed; checkupstream
Worked example
User: "ACME paid invoice inv-42 for $250.50 by check. Apply it to our bank account."
- The user already gave you the invoice id. Find the deposit account:
accounting-ledger-accounts-listfiltered to bank — say"acc-bank". - Confirm: "Recording $250.50 payment from ACME on invoice inv-42 to bank account acc-bank via Xero, payment method check. Confirm?"
- On confirmation:
{ "name": "apideck-receive-customer-payment", "arguments": { "invoice_id": "inv-42", "account_id": "acc-bank", "payment_method": "check", "x-apideck-service-id": "xero" } } - Surface
payment_idto the user.
Common failure modes
| Symptom | Cause | Fix |
failingStep: validate-amount | Invoice already fully paid | Confirm with user; pass explicit amount only if recording an over-payment is intentional |
Moneybird returns 404 from /accounting/payments | Moneybird models customer payments as financial_mutations, not payments | Connector coverage gap; surface the limitation, fall back to the Proxy API |
| QB rejects with parse error | payment_method lower-case | Pass "Check" (capitalized) for QB |
UrlElicitationRequiredError | Connection expired/missing | Surface consent URL, retry after OAuth |
Related
apideck-mcp— front-door skillapideck-mcp-pay-bill— AP mirror (paying a vendor bill)- Workflow source: src/gen/workflows/receivePayment.ts
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

