v2

latestOpenAPI 3.0.0Apache 2.02026-07-2638645559.8 KB
Products

Update a product

Update a product by id

post/apps/{appId}/products/{id}

Path parameters

appIdinteger required

The identifier of the Sinao application you are using. Each application corresponds to a company and an accounting. A user can have several Sinao applications. To retrieve the identifiers of its applications, you must call the endpoint /apps.

idinteger required

ID of product

Query parameters

namestring
amountinteger

Price without taxes in cents

amount_accuratelyinteger

Price without taxes in cents / 1000

vat_percentinteger

Taxe rate in cents

string binary
OR
string uri
lifetimeinteger

Product life time in seconds

descriptionstring

Product description

type'product' | 'service'

Is a service or a product ?

quantity_namestring

Name of the quantity: days, liters, m2, m3...

referencestring
account_idstring
{"stackTrail":"paths:/apps/{appId}/products/{id}:post:parameters:13:schema:items","oasType":"schema","type":"unknown"}
category_idinteger
metadatastring[] nullable

Response

Success

idinteger
namestring
amount_accuratelyinteger

Price without taxes in milli-cents

vat_percentinteger

VAT rate in cents

currencystring
lifetimeinteger

Product life time in seconds

descriptionstring
unitystring

Unity, hours, days, meters, liters..

intangibleboolean

Is a service or a product ?

quantity_namestring

Name of the quantity: days, liters, m2, m3...

referencestring
accounting_numberstring
tagsstring[]