Mark an invoice as paid with a manual payment record.
Mark an invoice as paid with a manual payment record.
POST
https://staging.softsolz.uk/api/v1/services/invoicing/invoices/{id}/mark-paidRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
amountnumber | stringPayment amount in major currency units (> 0, max 2 decimal places; a numeric string like "120.00" avoids float precision). Cannot exceed the outstanding balance.
methodstringPayment method (default "manual").
referencestring | nullExternal payment reference (e.g. cheque or transfer id); stored on the payment record.
received_atstring | nullWhen payment was received. Defaults to now.
Response
Response Body
paymentIdintegerNew payment id.invoiceIdintegerInvoice id.finalStatusstringInvoice status after the payment.invoiceobjectThe updated invoice (invoice detail shape).Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.invoicing.markInvoicePaid('<id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": { "paymentId": 0, "invoiceId": 0, "finalStatus": "string", "invoice": {} }}