PUT api/2.0/crm/invoice/settings/name This function requires authentication

Description

Saves the default settings for the invoice number specified in the request.

Parameters
Name Description Type Example
autogenerated
sent in body
Defines if the default invoice number is autogenerated or not Bool value true
prefix
sent in body
Invoice prefix string some text
number
sent in body
Invoice number string some text
Example
PUT api/2.0/crm/invoice/settings/name
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "autogenerated": true,
  "prefix": "some text",
  "number": "some text"
}
Returns

Invoice settings

Example Response

application/json

{
  "status": 0,
  "response": {
    "Autogenerated": true,
    "Prefix": "Prefix",
    "Number": "Number",
    "Terms": "Terms",
    "CompanyName": "CompanyName",
    "CompanyLogoID": 123,
    "CompanyAddress": "CompanyAddress"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Autogenerated>True</Autogenerated>
    <Prefix>Prefix</Prefix>
    <Number>Number</Number>
    <Terms>Terms</Terms>
    <CompanyName>CompanyName</CompanyName>
    <CompanyLogoID>123</CompanyLogoID>
    <CompanyAddress>CompanyAddress</CompanyAddress>
  </response>
</result>