Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Use this method to update the properties of an existing invoice.


URL

(PUT) invoices/{invoiceid}

PARAMETERS

token

The token obtained on connection

Required

invoiceid

The id of the invoice to modify.

Required

command

A json containing the invoice information (see below)

Required

 

JSON format of "command" parameter

Add only the fields you want to change to a json object:

Example to update these 3 fields: { "CustomFields": …, "Labels": …, "Status": … }

 

StatusStatus of the invoice. See ApiInvoice for details.Optional
CommentsComments about the invoice.Optional
HeaderLineThe header line of the invoice.Optional
Labels

Set a label: "Labels": [ { "Id": 10, "Value": 1 }, … ]

Clear a label: "Labels": [ { "Id": 10, "Value": null }, … ]

See chapter REF _Ref362347538 \r \h 12.5 to get the list of labels.

Optional
CustomFields

A json array containing a list of custom field ids and values. See below for details.

 

Example:

 

CustomFields: [ {
	"Id": "CustomStr1", 
	"Value": "My field" 
}, 
{ 
	"Id": "CustomStr5", 
	"Value": "A-2233" 
} ]

 

See Custom fields to get the list of custom fields.

Optional

 

JSON format of field "CustomFields"

 

IdThe custom string id such as 'CustomStr1', 'CustomStr2', etc. Use method settings/customfields to obtain all available ids.Required
ValueThe value to set for the custom string.Required
  • No labels