Skip to main content
PUT
/
api
/
billing
/
coworkerledgerentries
{
  "Status": 123,
  "Message": "<string>",
  "Value": "<any>",
  "WasSuccessful": true,
  "Errors": [
    {
      "AttemptedValue": "<any>",
      "Message": "<string>",
      "PropertyName": "<string>"
    }
  ]
}
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

ValueName
1None
1PayPalStandard
2PaypalStandardSubscription
3GoCardless
4Stripe
5AuthorizeNetDirect
6UsaEPay
7AuthorizeNetSubscription
8Adyen
9MultiGateway
11Manual
12Forte
13PayPalAdaptive
14GoCardlessPro
15CreditCard
16EPay
17Braintree
18MidTrans
19EziDebit
20LiqPay
21RazorPay
22SquareCash
23SquareCreditCard
24StripeACH
25StripeDirectDebit
26IZettleCreditCard
27PeachPayments
28Klarna
29StripeTerminal
30PayPalStandardRest
401HostedPaymentPage1
402HostedPaymentPage2
403HostedPaymentPage3
500Xero
501Quickbooks
989ManualDirectDebit
990BadDebt
991CreditCardManual1
992CreditCardManual2
993CreditCardManual3
994Credit
995Gift
996Bank
997Cash
998Check
999Other

Request Body

Required Fields

Id
integer
required
The Id of the CoworkerLedgerEntry record to update.
BusinessId
integer
required
Business Id.
CoworkerId
integer
required
Coworker Id.
Description
string
required
Description.
Code
string
required
Ledger entry code.
Debit
number
required
Debit amount.
Credit
number
required
Credit amount.
Balance
number
required
Balance.

Optional Fields

CoworkerInvoiceId
integer
Coworker Invoice Id.
PaymentGatewayName
integer
Payment gateway name. See ePaymentProvider? enum above.
PaymentMethodNumber
string
Payment method number.
TransactionDate
string
Transaction date.
Billed
boolean
Billed.
TransactionDateLocal
string
Transaction Date Local.
ConnectedTransactionGuid
string
Connected transaction GUID.

Code Examples

curl -X PUT \
  "https://spaces.nexudus.com/api/billing/coworkerledgerentries" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "BusinessId": 0,
    "CoworkerId": 0,
    "Description": "",
    "Code": "",
    "Debit": 0,
    "Credit": 0,
    "Balance": 0,
    "Id": 87654321
}'

Response

200

Status
integer
HTTP status code. 200 on success.
Message
string
A human-readable message confirming the update.
Value
object
Contains the Id of the updated record.
WasSuccessful
boolean
true if the coworkerledgerentry was updated successfully.
Errors
array
null on success.
Example Response
{
  "Status": 200,
  "Message": "CoworkerLedgerEntry was successfully updated.",
  "Value": {
    "Id": 87654321
  },
  "OpenInDialog": false,
  "OpenInWindow": false,
  "RedirectURL": null,
  "JavaScript": null,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "UpdatedBy": "admin@example.com",
  "Errors": null,
  "WasSuccessful": true
}

400

Message
string
A summary of the validation error(s), in the format PropertyName: error message.
Value
any
null on validation failure.
Errors
object[]
Array of validation errors.
WasSuccessful
boolean
false when the request fails validation.
Example Response
{
  "Message": "Description: is a required field",
  "Value": null,
  "Errors": [
    {
      "AttemptedValue": null,
      "Message": "is a required field",
      "PropertyName": "Description"
    }
  ],
  "WasSuccessful": false
}