Updates an existing CoworkerContract 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 CoworkerContract-Edit role.
Enums
Value Name 1 PriceTooHigh 2 NewJobRelocation 3 MovedToOtherSpace 4 ChangeWorkEnvironment 5 LackCommunityInterations 6 PoorSpaceCondition 7 OtherMembers 8 Rellocated 9 BusinessExpansion 10 Pause 11 Renewed 12 Upgraded 13 Downgraded 19 Covid19 99 Other
eDeliveryHandlingPreference
Value Name 1 StoreForCollection 2 Forward 3 OpenScanForward 4 OpenScanRecycle 5 OpenScanShred 6 OpenScanStoreForCollection 7 Recycle 8 ReturnToSender 9 Shred 10 DepositCheck 11 Unknown
Request Body
Required Fields
The Id of the CoworkerContract record to update.
Day of month on which billing occurs.
Optional Fields
Free-text notes for this contract.
Date on which the contract will next be automatically invoiced. Updated automatically every time the contract is invoiced, advancing by the plan’s renewal period.
Period the next invoice will cover. For new contracts this equals RenewalDate. If Tariff.AdvanceInvoiceCycles > 1, Nexudus invoices several periods at once on the first invoice, pushing InvoicedPeriod ahead of RenewalDate. Nexudus stops invoicing when InvoicedPeriod reaches the cancellation date.
Minimum contract length end date. Defines the earliest date at which the contract can be cancelled without penalty.
Fixed price override for this contract. If null, the contract uses the plan’s default price (TariffPrice).
Contract value used in reporting to compare against the actual invoiced price.
Whether to include the plan’s signup fee when creating this contract.
Whether to invoice multiple billing cycles in advance on the first invoice, as configured by Tariff.AdvanceInvoiceCycles.
Whether to pro-rate the first invoice based on the contract start date relative to the billing cycle.
Date of the next automatic invoice generation for this contract.
Whether the customer has accepted the plan’s terms and conditions.
Date on which the contract will be cancelled. Nexudus stops invoicing when InvoicedPeriod reaches this date.
Minimum number of days’ notice required before cancellation takes effect.
Whether to pro-rate the final invoice when the contract is cancelled mid-cycle.
Whether to cascade cancellation to contracts of team members under this customer.
Reason for cancellation. See eCancellationReason? enum above.
Free-text notes about the cancellation.
DeliveryHandlingPreferenceChecks
Delivery handling preference for checks. See eDeliveryHandlingPreference? enum above.
DeliveryHandlingPreferenceMail
Delivery handling preference for mail. See eDeliveryHandlingPreference? enum above.
DeliveryHandlingPreferenceParcels
Delivery handling preference for parcels. See eDeliveryHandlingPreference? enum above.
DeliveryHandlingPreferencePublicity
Delivery handling preference for publicity. See eDeliveryHandlingPreference? enum above.
Free-text delivery instructions for this contract’s mail handling.
Date by which identity verification checks must be completed for this contract.
Date by which address verification checks must be completed for this contract.
PricePlanTermsAcceptedOnLocal
Price Plan Terms Accepted On Local.
Children
Scheduled future price changes for this contract. Each entry sets a new Price to apply on a given date The new contract price to apply on the scheduled date.
Date on which the system will automatically update the contract price to the value in Price.
Code Examples
curl -X PUT \
"https://spaces.nexudus.com/api/billing/coworkercontracts" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"IssuedById": 0,
"CoworkerId": 0,
"TariffId": 0,
"BillingDay": 0,
"Quantity": 0,
"Id": 87654321,
"ContractSchedules": [
{
"Price": null,
"ApplyOn": "2025-01-15T10:30:00Z"
}
]
}'
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 coworkercontract was updated successfully.
{
"Status" : 200 ,
"Message" : "CoworkerContract 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" : "PriceWithProductsAndDeposits: is a required field" ,
"Value" : null ,
"Errors" : [
{
"AttemptedValue" : null ,
"Message" : "is a required field" ,
"PropertyName" : "PriceWithProductsAndDeposits"
}
],
"WasSuccessful" : false
}