Invoices

From wyre-technology/msp-claude-plugins · View interactive version

Invoices is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Syncro MSP invoices: invoice fields, line items, payment processing, and billing workflows.

How to use this skill

Skill file

Syncro MSP Invoice Management

Overview

Syncro invoices are the core of your billing workflow. Invoices can be created manually, generated from tickets, or produced automatically from recurring contracts. This skill covers invoice creation, line item management, payment processing, and billing workflows.

Anti-triggers

upstream of QuickBooks or Xero and the same invoice exists in both.

Raising or editing it on the ledger side is

qbo-invoices or xero-invoices; doing it in the wrong

place produces two versions of one document.

invoice paid; the accounting entry is qbo-payments or

xero-payments.

entries are syncro-tickets.

MCP Tools

| Tool | Tier | Purpose |

|------|------|---------|

| syncro_invoices_list | read | List invoices |

| syncro_invoices_get | read | One invoice with line items |

| syncro_invoices_create | write | Create an invoice |

| syncro_invoices_email | admin | Email an invoice to the customer (no unsend) |

The Conduit syncro connector has no alert, appointment or timer tools; those exist only on the separate syncro-official connector. Where this skill describes a REST call with no tool below, the agent cannot make it. In particular, adding line items to an existing invoice, recording a payment, updating an invoice and voiding one are manual steps in Syncro: describe them to the user, and never report them as done.

Key Concepts

Invoice

A billing document sent to customers.

| Field | Type | Required | Description |

|-------|------|----------|-------------|

| id | integer | System | Unique identifier |

| number | string | System | Invoice number |

| customer_id | integer | Yes | Billing customer |

| date | date | Yes | Invoice date |

| due_date | date | No | Payment due date |

| status | string | Yes | Invoice status |

| subtotal | decimal | System | Sum of line items |

| tax | decimal | System | Calculated tax |

| total | decimal | System | Final amount due |

| balance | decimal | System | Remaining balance |

| notes | text | No | Invoice notes |

| terms | text | No | Payment terms |

Invoice Status Values

| Status | Description |

|--------|-------------|

| Draft | Not yet sent to customer |

| Sent | Emailed to customer |

| Viewed | Customer has viewed |

| Partial | Partially paid |

| Paid | Fully paid |

| Void | Cancelled/voided |

Line Item

Individual billable items on an invoice.

| Field | Type | Required | Description |

|-------|------|----------|-------------|

| id | integer | System | Unique identifier |

| invoice_id | integer | Yes | Parent invoice |

| product_id | integer | No | Product/service reference |

| name | string | Yes | Item description |

| quantity | decimal | Yes | Quantity |

| price | decimal | Yes | Unit price |

| taxable | boolean | No | Subject to tax |

| total | decimal | System | Line total |

Payment

Payment received against an invoice.

| Field | Type | Required | Description |

|-------|------|----------|-------------|

| id | integer | System | Unique identifier |

| invoice_id | integer | Yes | Associated invoice |

| amount | decimal | Yes | Payment amount |

| payment_method | string | No | How payment was made |

| reference | string | No | Check/transaction number |

| date | date | Yes | Payment date |

| notes | text | No | Payment notes |

API Patterns

Creating an Invoice

POST /api/v1/invoices
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
  "customer_id": 12345,
  "date": "2024-02-15",
  "due_date": "2024-03-15",
  "notes": "Thank you for your business!",
  "line_items": [
    {
      "name": "Managed Services - February 2024",
      "quantity": 1,
      "price": 500.00,
      "taxable": true
    },
    {
      "name": "On-site support - 2 hours",
      "quantity": 2,
      "price": 125.00,
      "taxable": true
    }
  ]
}

Searching Invoices

Invoices for a customer:

GET /api/v1/invoices?customer_id=12345

Unpaid invoices:

GET /api/v1/invoices?status=sent

Date range:

GET /api/v1/invoices?date_from=2024-01-01&date_to=2024-01-31

Paginated listing:

GET /api/v1/invoices?page=1

Getting Invoice Details

GET /api/v1/invoices/{id}

Response includes:

Updating an Invoice

PUT /api/v1/invoices/{id}
Content-Type: application/json
{
  "notes": "Updated payment terms",
  "due_date": "2024-03-30"
}

Adding Line Items

POST /api/v1/invoices/{id}/line_items
Content-Type: application/json
{
  "name": "Additional support hours",
  "quantity": 1.5,
  "price": 125.00,
  "taxable": true
}

Sending an Invoice

POST /api/v1/invoices/{id}/email
Content-Type: application/json
{
  "to": "billing@acme.example.com",
  "cc": "manager@acme.example.com",
  "subject": "Invoice #1042 from MSP Company",
  "message": "Please find attached your invoice for services rendered."
}

Recording a Payment

POST /api/v1/invoices/{id}/payments
Content-Type: application/json
{
  "amount": 750.00,
  "payment_method": "Credit Card",
  "reference": "TXN-12345",
  "date": "2024-02-20",
  "notes": "Paid via online portal"
}

Voiding an Invoice

PUT /api/v1/invoices/{id}
Content-Type: application/json
{
  "status": "void"
}

Common Workflows

Invoice Creation from Ticket

  1. Review ticket time entries
  1. Create invoice
  1. Add line items
  1. Review and send

Recurring Invoice Workflow

  1. Set up contract
  1. Auto-generate invoices
  1. Send and track

Payment Collection

  1. Monitor aging
  1. Send reminders
  1. Record payments
  1. Reconcile

Month-End Billing

  1. Review open tickets
  1. Generate invoices
  1. Review drafts
  1. Send batch

Response Examples

Invoice Object

{
  "invoice": {
    "id": 5678,
    "number": "INV-2024-0042",
    "customer_id": 12345,
    "date": "2024-02-15",
    "due_date": "2024-03-15",
    "status": "sent",
    "subtotal": 750.00,
    "tax": 56.25,
    "total": 806.25,
    "balance": 806.25,
    "notes": "Thank you for your business!",
    "created_at": "2024-02-15T10:00:00Z",
    "line_items": [
      {
        "id": 1001,
        "name": "Managed Services - February 2024",
        "quantity": 1,
        "price": 500.00,
        "taxable": true,
        "total": 500.00
      },
      {
        "id": 1002,
        "name": "On-site support - 2 hours",
        "quantity": 2,
        "price": 125.00,
        "taxable": true,
        "total": 250.00
      }
    ]
  }
}

Payment Object

{
  "payment": {
    "id": 789,
    "invoice_id": 5678,
    "amount": 806.25,
    "payment_method": "Credit Card",
    "reference": "TXN-12345",
    "date": "2024-02-20",
    "notes": "Paid via online portal",
    "created_at": "2024-02-20T14:30:00Z"
  }
}

Error Handling

Common API Errors

| Code | Message | Resolution |

|------|---------|------------|

| 400 | Invalid parameters | Check field values |

| 401 | Unauthorized | Verify API key |

| 404 | Invoice not found | Confirm invoice ID |

| 422 | Validation failed | Check required fields |

| 429 | Rate limited | Wait and retry |

Validation Errors

"customer_id is required" - Invoice must have a customer

"date is required" - Invoice must have a date

"Cannot modify paid invoice" - Void instead of editing

"Payment exceeds balance" - Check payment amount

Best Practices

  1. Review before sending - Check all line items for accuracy
  2. Set due dates - Clear expectations for payment
  3. Use descriptive line items - Customers understand charges
  4. Track partial payments - Record as received
  5. Follow up promptly - Address overdue invoices quickly
  6. Maintain documentation - Keep payment references
  7. Reconcile regularly - Match to bank records
  8. Use templates - Consistent professional appearance

Accounting Integration

Syncro integrates with popular accounting software:

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.