v2

latestOpenAPI 3.0.0Apache 2.02026-07-2638645559.8 KB
hidden

Create a sales document model

post/apps/{appId}/salesdocumentmodels

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.

Query parameters

namestring
titlestring
idinteger
detailstring

Description of the product or service

action'sell' | 'rent'
quantitynumber double

Quantity of product or service

amount_accuratelyinteger

Price without taxes in cents + 3 decimales, example : 9899000 = 98,99€ || 1 = 0,00001€

amount_with_taxesboolean

Used when there is a difference of 1 cent when starting from the amount with taxes

amountinteger

Price without taxes in cents

vat_percentinteger

VAT rate in cents

accountobject
unitystring

Unity, hours, days, meters, liters..

total_quantitystring

Information about total quantity to sell, only for display

designationstring
quantitystring
quantity_namestring
info_total_quantitystring
amountstring
subtotalstring
duestring
vat_percentstring
discountstring

List columns to display

detailsstring

Response

Success

idinteger
namestring
titlestring