CoworkerLedgerEntries
Create CoworkerLedgerEntry
Create a new CoworkerLedgerEntry record.
POST
Create CoworkerLedgerEntry
A CoworkerLedgerEntry is an individual financial transaction line in a customer’s ledger. Ledger entries record debits, credits, and the running balance between a location and a customer. Each entry can be linked to aDocumentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
CoworkerInvoice and carries a PaymentGatewayName that identifies which payment provider processed the transaction.
The ledger balance reflects the net financial position between the location and the customer:
- A positive balance means the customer owes money (unpaid invoices).
- A negative balance means the customer has credited payments that will be applied to future invoices.
- A balance of 0 means the account is settled with no outstanding invoices or credits.
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-Create role.Enums
ePaymentProvider
ePaymentProvider
| Value | Name |
|---|---|
| 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
ID of the business linked to this record.
ID of the coworker linked to this record.
Free-text description of this coworker ledger entry.
Ledger entry code.
Debit amount.
Credit amount.
Account balance after this transaction. Read-only.
Optional Fields
ID of the coworker invoice linked to this record.
Payment gateway name. See
ePaymentProvider? enum above.Payment method number.
Transaction date.
Whether this entry has been billed.
Transaction date in the location’s local time.
Connected transaction GUID.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the coworkerledgerentry was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create CoworkerLedgerEntry