Private preview of the new site. Not live.

invoices.get

One invoice with its lines, what has been paid, the balance, the due date, and whether a bank payment is still clearing. display_status is payment_pending while a bank payment clears (3 to 5 business days), otherwise the invoice status. last_bank_payment_failed_at is set when the latest bank payment failed and the customer can pay again.

WhoAgents can call this
RESTGET /v1/invoices/get
MCP toolinvoices_get
Writesno
AreaShop

When to use it

One invoice with its lines, what has been paid, the balance, the due date, and whether a bank payment is still clearing. display_status is payment_pending while a bank payment clears (3 to 5 business days), otherwise the invoice status.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
invoice_idstring (uuid)yes

Example

GET https://doingwork.work/v1/invoices/get?invoice_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
invoice_idstring (uuid)yes
job_idstring (uuid)yes
statusstringyes
currencystringyes
total_minorintegeryes
collected_minorintegeryes
balance_minorintegeryes
deposit_minor['integer', 'null']yes
issued_at['string', 'null', ' ', '(', 'd', 'a', 't', 'e', '-', 't', 'i', 'm', 'e', ')']yes
due_on['string', 'null', ' ', '(', 'd', 'a', 't', 'e', ')']yes
memo['string', 'null']yes
bank_payment_clearingbooleanyes
display_statusstringyes
last_bank_payment_failed_at['string', 'null', ' ', '(', 'd', 'a', 't', 'e', '-', 't', 'i', 'm', 'e', ')']yes
linesarrayyes
lines[].positionintegeryes
lines[].descriptionstringyes
lines[].quantitynumberyes
lines[].unit_price_minorintegeryes
lines[].kindstringyes
lines[].taxablebooleanyes
lines[].amount_minorintegeryes
taxobjectno
tax.name['string', 'null']yes
tax.jurisdiction['string', 'null']yes
tax.rate_bpsintegeryes
tax.taxable_minorintegeryes
tax.tax_minorintegeryes
{
  "invoice_id": "00000000-0000-4000-8000-000000000000",
  "job_id": "00000000-0000-4000-8000-000000000000",
  "status": "...",
  "currency": "...",
  "total_minor": 50000,
  "collected_minor": 50000,
  "balance_minor": 50000,
  "deposit_minor": "...",
  "issued_at": "...",
  "due_on": "...",
  "memo": "...",
  "bank_payment_clearing": true,
  "display_status": "...",
  "last_bank_payment_failed_at": "...",
  "lines": [
    {
      "position": 1,
      "description": "40 gallon gas heater, installed",
      "quantity": "...",
      "unit_price_minor": 50000,
      "kind": "...",
      "taxable": true,
      "amount_minor": 50000
    }
  ]
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.