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
Value Name 1 None 1 PayPalStandard 2 PaypalStandardSubscription 3 GoCardless 4 Stripe 5 AuthorizeNetDirect 6 UsaEPay 7 AuthorizeNetSubscription 8 Adyen 9 MultiGateway 11 Manual 12 Forte 13 PayPalAdaptive 14 GoCardlessPro 15 CreditCard 16 EPay 17 Braintree 18 MidTrans 19 EziDebit 20 LiqPay 21 RazorPay 22 SquareCash 23 SquareCreditCard 24 StripeACH 25 StripeDirectDebit 26 IZettleCreditCard 27 PeachPayments 28 Klarna 29 StripeTerminal 30 PayPalStandardRest 401 HostedPaymentPage1 402 HostedPaymentPage2 403 HostedPaymentPage3 500 Xero 501 Quickbooks 989 ManualDirectDebit 990 BadDebt 991 CreditCardManual1 992 CreditCardManual2 993 CreditCardManual3 994 Credit 995 Gift 996 Bank 997 Cash 998 Check 999 Other
Request Body
Required Fields
The Id of the CoworkerLedgerEntry record to update.
Optional Fields
Payment gateway name. See ePaymentProvider? enum above.
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
HTTP status code. 200 on success.
A human-readable message confirming the update.
Contains the Id of the updated record.
true if the coworkerledgerentry was updated successfully.
{
"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
A summary of the validation error(s), in the format PropertyName: error message.
null on validation failure.
Array of validation errors. The value that was submitted for the field, or null if missing.
The validation error message.
The name of the property that failed validation.
false when the request fails validation.
{
"Message" : "Description: is a required field" ,
"Value" : null ,
"Errors" : [
{
"AttemptedValue" : null ,
"Message" : "is a required field" ,
"PropertyName" : "Description"
}
],
"WasSuccessful" : false
}