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
integer
required
The Id of the CoworkerInvoice record to update.
integer
required
ID of the coworker linked to this record.
integer
required
ID of the business linked to this record.
string
required
Unique invoice number assigned when the invoice is finalised.
string
required
Name of the person or company being billed.
string
required
Billing address on the invoice.
string
required
Billing city on the invoice.
string
required
Billing post code on the invoice.
integer
required
ID of the bill to country linked to this record.
integer
required
ID of the currency linked to this record.
integer
required
Status of e-invoicing transfer via Storecove.
Optional Fields
string
Reference code used to match payments to this invoice.
string
Billing phone number on the invoice.
string
Billing fax number on the invoice.
string
Billing state or region on the invoice.
string
Bank account number on the invoice for payment.
string
Tax identification number of the billed party.
string
Customer purchase order number for this invoice.
string
Date by which payment is due.
string
Start date of the billing period covered by this invoice.
string
End date of the billing period covered by this invoice.
number
The transaction total amount value for this coworker invoice.
integer
ID of the transaction currency linked to this record.
number
The transaction exchange rate value for this coworker invoice.
boolean
Whether the invoice is still a draft. Draft invoices can be modified before finalisation.
string
Date the invoice was marked as fully paid.
boolean
Whether billed is enabled.
boolean
Whether to skip automatic application of available credit to this invoice.
string
Date/time value for created on local.
string
Date/time value for due date local.
string
Date/time value for invoice from date local.
string
Date/time value for invoice to date local.
string
Date/time value for paid on local.
string
Date/time value for refunded on local.
string
Date/time value for last payment attempt local.
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
Update CoworkerInvoice