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

Parameters: record_payment
NameTypeDescription
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
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"}'
Python
result = client.call("jobber", "record_payment", {"invoice_id":"invoice_8c41d2","amount":1,"method":"method"})
Node.js
const result = await cotlet.call('jobber', 'record_payment', {"invoice_id":"invoice_8c41d2","amount":1,"method":"method"});
CLI
cotlet call jobber record_payment --data '{"invoice_id":"invoice_8c41d2","amount":1,"method":"method"}'

Example response

JSON

{
  "invoice_id": "inv_20418",
  "payment_id": "pay_9912",
  "amount": 480,
  "status": "paid",
  "balance": 0
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.