Skip to main content
PUT
Update CoworkerInvoice
Updates an existing CoworkerInvoice 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 CoworkerInvoice-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the CoworkerInvoice record to update.
integer
required
ID of the customer billed by this invoice..
integer
required
ID of the location that owns and issues this invoice..
string
required
Unique invoice number, assigned when the invoice is issued..
string
required
Name of the person or organisation billed, captured on the invoice..
string
required
Billing street address captured on the invoice..
string
required
Billing city captured on the invoice..
string
required
Billing postal or ZIP code captured on the invoice..
integer
required
ID of the country in the billing address..
integer
required
ID of the currency used to state invoice amounts..
integer
required
Read-only Storecove transfer state: None, TransferFailed, Processing, ProcessingFailed, or Processed..

Optional Fields

string
Payment reference used for reconciliation; normally follows the invoice number..
string
Optional billing phone number captured on the invoice..
string
Optional billing fax number captured on the invoice..
string
Optional billing state, province, or region captured on the invoice..
string
Optional bank-account details printed for payment instructions..
string
Optional tax identification number of the billed party..
string
Optional customer purchase-order reference..
string
Optional payment due date in the location’s timezone. When an invoice is created, the system calculates it using the customer’s due day or InvoiceDueDatePeriod first, then a due-date term configured for a plan on the invoice’s contract lines, the contract-period-start setting, and finally the location default; customer and plan periods are capped at 365 days. If several plan due-date terms apply, it uses the earliest next due date..
number
Stored total to collect in the payment transaction currency, set to TotalAmount multiplied by Payments.ExchangeRate and rounded to two decimals; the outstanding balance proportionally subtracts net ledger credits..
integer
ID of the currency used to collect payment; defaults to the location’s invoice currency unless Payments.Currency specifies a transaction currency..
number
Fixed multiplier from invoice currency to transaction currency, copied from the location’s Payments.ExchangeRate setting when invoice totals are updated..
boolean
Whether this invoice remains a draft rather than a final issued invoice..
string
Date and time recorded as paid; it updates payment ledger dates..
boolean
Internal billing-processing flag..
boolean
Whether credit resulting from crediting a paid invoice must not be automatically applied to future invoices; the operator can allocate the credit manually..
string
Location-timezone mirror of the system CreatedOn timestamp..
string
Location-timezone mirror of DueDate; use DueDate instead..
string
Location-timezone mirror of InvoiceFromDate; use InvoiceFromDate instead..
string
Location-timezone mirror of InvoiceToDate; use InvoiceToDate instead..
string
Location-timezone mirror of PaidOn; use PaidOn instead..
string
Location-timezone mirror of RefundedOn; use RefundedOn instead..
string
Location-timezone mirror of LastPaymentAttempt..

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 coworkerinvoice 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