CoworkerInvoices
Update CoworkerInvoice
Update an existing CoworkerInvoice record.
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
eStorecoveInvoiceStatus — StorecoveInvoiceStatus values
eStorecoveInvoiceStatus — StorecoveInvoiceStatus values
Request Body
Required Fields
Read-only Storecove transfer state: None, TransferFailed, Processing, ProcessingFailed, or Processed..
Optional Fields
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..
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..
ID of the currency used to collect payment; defaults to the location’s invoice currency unless Payments.Currency specifies a transaction currency..
Fixed multiplier from invoice currency to transaction currency, copied from the location’s Payments.ExchangeRate setting when invoice totals are updated..
Whether credit resulting from crediting a paid invoice must not be automatically applied to future invoices; the operator can allocate the credit manually..
Code Examples
Response
200
Example Response
400
Example Response