Sales - OBSOLETE API

List Sales

URL

https://dev.v3manager.com/demo/api/sale

HTTP Method

GET

Example

curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/sale"

Count Sales

URL

https://dev.v3manager.com/demo/api/sale/count

HTTP Method

GET

Sum Sales

URL

https://dev.v3manager.com/demo/api/sale/sum

HTTP Method

GET

Example

curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/sale/sum?field=total&search=["created",">","05-07-2023"]" Encoded: curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/sale/sum?field=total&search=%5B%22created%22%2C%22%3E%22%2C%2205-07-2023%22%5D"

Parameters

Name Type Required
field string yes
filter array no

Load Sale by id

URL

https://dev.v3manager.com/demo/api/sale/:id

HTTP Method

GET

Example

curl -H "key: {apiKey}" "https://dev.v3manager.com/demo/api/sale/22"

Create or update Sales

URL

https://dev.v3manager.com/demo/api/sale

HTTP Method

POST

Fields

Name Label Data type Readonly Descrition
discountRate % Discount percent No
updateUser Updated by int Yes
updateUserName Updated by string No
beneficiary Beneficiary int No
beneficiaryName Beneficiary string No
timeout Expiration datetime No
cancelationOf Cancellation of int Yes
customer Customer int No
customerName Customer string No
createUserName Created by string No
createUser Created by int Yes
customerTaxNumber ID string No
description Description string No
company Company int No
companyName Company string No
link Linked to int Yes
status Status select Yes
taxExempt Tax exempt bool Yes
invoiceNumber Invoice string No
invoice Invoice int Yes
invoiced Billed bool Yes
updated Update date datetime Yes
created Creation date datetime Yes
useDate Production date datetime No
dueDate Due date datetime No
taxes Taxes SaleTax[] No
parent Line on which it depends int Yes
comments Observations text No
publicComments Public comments text No
online Online bool Yes
paidFor Paid to int Yes
paidForName Paid to string No
allowPaymentPending Allow pending payment bool No
price Unit price currency No
product Product int No
productName Product string No
proforma Proforma int Yes
proformaNumber Proforma string No
id ID int Yes
total Total currency No
totalBeforeTaxes Total before taxes currency No
units Units float No
Values for status
Value Name
0 Draft
1 For free
2 Not paid
3 Paid
4 Cancelled
5 Cancellation