User Tools

Site Tools


api:invoice:update

API : Invoice reseller update

Introduction

This request is used to update invoiceNumber, invoiceDate, dueDate, sent, paid or headline on an invoice.

This is typically used after invoices has been imported into an accounting system, and the accounting system has changed some of these properties and they need to be put back into to system.

Only the properties that needs to be updated should be sent. Unknown properties or properties that cannot be changed will be ignored.

Request

URL https://api.telecomx.dk/invoice/reseller/INVOICE_ID
Method POST
Param INVOICE_ID Id of the invoice to update
Access level RESELLER, ADMIN
Properties for an inherited reseller product
Body invoiceNumber String The invoice number for the invoice. Can only be set until invoice is marked as sent.
name String Product name.

Query example

{
  invoiceNumber: 23542,
  headline: 'Period invoice',
  dueDate: '2015-01-14T00:00:00+0100',
  sent: true
}

Response

JSON object
success Boolean True on success.

Response example

{
  success: true
}

Errors

Error code Message Description
400 bad_request Id not found in request URI
404 not_found Invoice not found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/invoice/update.txt · Last modified: 2022/04/19 11:30 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki