Record payment
Record a cash, check or other offline payment against an invoice.
POST https://cotlet.dev/api/v1/jobber/invoices/{invoice_id}/payments
write Confirm
Records an offline payment as Collect Payment does in Jobber. A payment that covers the full balance changes the invoice to Paid. It does not charge a card. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id string required | string | Invoice ID from list_invoices. |
| amount number required | number | Amount received, in the invoice currency. |
| method string required | string | How it was paid, e.g. cash or check. |
| paid_on date | date | Date received. Default: today. |
Request
curl -X POST https://cotlet.dev/api/v1/jobber/invoices/invoice_8c41d2/payments \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount":1,"method":"method"}' result = client.call("jobber", "record_payment", {"invoice_id":"invoice_8c41d2","amount":1,"method":"method"}) const result = await cotlet.call('jobber', 'record_payment', {"invoice_id":"invoice_8c41d2","amount":1,"method":"method"}); cotlet call jobber record_payment --data '{"invoice_id":"invoice_8c41d2","amount":1,"method":"method"}' Example response
{
"invoice_id": "inv_20418",
"payment_id": "pay_9912",
"amount": 480,
"status": "paid",
"balance": 0
}