Skip to main content
PUT
Update CoworkerLedgerEntry
Updates an existing CoworkerLedgerEntry record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerLedgerEntry-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the CoworkerLedgerEntry record to update.
integer
required
ID of the location that owns this ledger entry..
integer
required
ID of the customer whose ledger contains this entry..
string
required
Required free-text explanation of the payment, charge, credit, or adjustment..
string
required
Required ledger reference code; payment and invoice workflows commonly generate codes such as PAYM-, CASH-, CRED-, REFD-, or INVC-..
number
required
Debit amount in the location currency, rounded to two decimal places when saved; positive debits are invoice charges and negative debits are credit notes. Debit and Credit are mutually exclusive, so set the other amount to zero..
number
required
Credit amount in the location currency, rounded to two decimal places when saved; positive credits are received payments and negative credits are refunded payments. Credit and Debit are mutually exclusive, so set the other amount to zero..

Optional Fields

integer
Optional ID of the invoice this payment, charge, or credit is applied to..
integer
Payment provider or payment method for this transaction; choosing a connected gateway such as Stripe or Spreedly attempts to collect payment and creation can fail if collection fails. Manual payments cannot use GoCardless, GoCardlessPro, StripeDirectDebit, Xero, Forte, or StripeACH.. See ePaymentProvider? enum above.
string
Payment-method detail supplied by the payment processor; hidden because it can contain sensitive payment information..
string
Date and time of the transaction in UTC; defaults to the current UTC time when omitted and cannot be before the location billing lock date..
boolean
Internal flag tracking whether Nexudus has billed this transaction to the operator; hidden because it is managed by billing workflows..
string
Internal localized copy of TransactionDate derived using the owning location’s time zone; hidden because TransactionDate is the supported input..
string
Internal identifier linking related ledger transactions so that deletion can reverse the connected payment; hidden because it is managed by payment workflows..

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the coworkerledgerentry was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response