- Introdução
- People
- Items
- POs
- Sales
- NFes
- NFSes
- Transactions
- Item Categories
- Warehouses
- Custom Fields
- Batches
- Webhooks
- Services
- Accounting
- CTes
Retorna todos as vendas (apenas vendas)
GET
/sales
Sales
Requisição
None
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/sales'
Respostas
🟢200OK
application/json
Body
array of:
success
boolean
opcional
message
string
opcional
Padrão:
Vendas encontradas
response
array[object (sale) {80}]
opcional
code
integer
opcional
company
string
opcional
child
string
opcional
total
number <float>
opcional
dateCreated
string
opcional
datePaymentsGenerated
string <date>
opcional
dateSold
string <date>
opcional
dateBilled
string <date>
opcional
fixedPaymentsDate
boolean
opcional
type
enum<string>
requerido
Valores permitidos:
VendaAssistência TécnicaOrçamentoCompraVenda RepresentaçãoBonificação/RemessaOutros
status
enum<string>
opcional
Valores permitidos:
Em abertoFaturado
paymentConditionType
string
opcional
Exemplo:
2x
paymentMethod
string
opcional
Exemplo:
Dinheiro
priceList
string
opcional
payments
array[object (sale_payments) {6}]
opcional
transactionsGenerated
boolean
opcional
Padrão:
false
customer
string
requerido
customerId
string
requerido
otherExpenses
number <float>
opcional
Padrão:
0
discount
number <float>
opcional
Padrão:
0
discountType
enum<string>
opcional
Valores permitidos:
%R$
Padrão:
R$
discountPercentage
number <float>
opcional
Padrão:
0
transportFee
number <float>
opcional
Padrão:
0
details
string
opcional
nfse
string
opcional
nfseStatus
string
opcional
oc
string
opcional
sellersInfo
array[object (salePostObject_sellersInfo) {4}]
opcional
netTotal
number <float>
opcional
negotiationStatus
enum<string>
opcional
Valores permitidos:
Em orçamentoRecusadoAprovado
dueDate
string <date>
opcional
events
array[object (sale_events) {3}]
opcional
foreseenDelivery
string <date>
opcional
quote
boolean
opcional
quoteDate
string <date>
opcional
orig
string
opcional
origId
string
opcional
ecommerce
boolean
opcional
tags
array[object (salePostObject_tags) {1}]
opcional
origStatus
string
opcional
origPaymentMethod
string
opcional
origSynced
boolean
opcional
Padrão:
false
nfce
string
opcional
pdv
string
opcional
nfe
string
opcional
cte
string
opcional
contract
string
opcional
nfeStatus
string
opcional
totalTaxes
number <float>
opcional
vNF
number <float>
opcional
po
string
opcional
poCode
integer
opcional
dateCanceled
string <date>
opcional
cargo
string
opcional
warehouse
string
opcional
category
string
opcional
bonificacao
boolean
opcional
Padrão:
false
carrier
string
opcional
modFrete
enum<string>
opcional
Valores permitidos:
0 - Por conta do emitente1 - Por conta do destinatário/remetente2 - Por conta de terceiros9 - Sem frete
foreseenShipment
string <date>
opcional
shipmentDetails
string
opcional
shipmentAddress
enum<string>
opcional
Valores permitidos:
Endereço da PessoaEndereço de EntregaEndereço de CobrançaEndereço Secundário
Padrão:
Endereço da Pessoa
shipment
string
opcional
shipped
boolean
opcional
shipmentCode
string
opcional
shipmentDate
string <date>
opcional
approved
boolean
opcional
Padrão:
true
cpfCNPJ
string
opcional
description
string
opcional
checked
boolean
opcional
Padrão:
false
userChecked
string
opcional
dateChecked
string <date>
opcional
groupedSales
array[string]
opcional
grouper
string
opcional
Padrão:
saleLines
array[object (sale_saleLines) {11}]
requerido
attachments
array[object (sale_attachments) {4}]
opcional
user
string
opcional
contactId
string
opcional
acquirer
object (salePostObject_acquirer)
opcional
updates
array[object (sale_updates) {3}]
opcional
Exemplo
[
{
"success": true,
"message": "Vendas encontradas",
"response": [
{
"code": 0,
"company": "string",
"child": "string",
"total": 0,
"dateCreated": "string",
"datePaymentsGenerated": "2019-08-24",
"dateSold": "2019-08-24",
"dateBilled": "2019-08-24",
"fixedPaymentsDate": true,
"type": "Venda",
"status": "Em aberto",
"paymentConditionType": "2x",
"paymentMethod": "Dinheiro",
"priceList": "string",
"payments": [
{
"transaction": "string",
"nDup": 0,
"dVenc": "2019-08-24",
"vDup": 0,
"tPag": "string",
"acquirerFee": 0
}
],
"transactionsGenerated": false,
"customer": "string",
"customerId": "string",
"otherExpenses": 0,
"discount": 0,
"discountType": "R$",
"discountPercentage": 0,
"transportFee": 0,
"details": "string",
"nfse": "string",
"nfseStatus": "string",
"oc": "string",
"sellersInfo": [
{
"seller": "string",
"comissionType": "%",
"comissionValue": 0,
"comission": 0
}
],
"netTotal": 0,
"negotiationStatus": "Em orçamento",
"dueDate": "2019-08-24",
"events": [
{
"dateEvent": "2019-08-24",
"description": "string",
"responsible": "string"
}
],
"foreseenDelivery": "2019-08-24",
"quote": true,
"quoteDate": "2019-08-24",
"orig": "string",
"origId": "string",
"ecommerce": true,
"tags": [
{
"tagId": "string"
}
],
"origStatus": "string",
"origPaymentMethod": "string",
"origSynced": false,
"nfce": "string",
"pdv": "string",
"nfe": "string",
"cte": "string",
"contract": "string",
"nfeStatus": "string",
"totalTaxes": 0,
"vNF": 0,
"po": "string",
"poCode": 0,
"dateCanceled": "2019-08-24",
"cargo": "string",
"warehouse": "string",
"category": "string",
"bonificacao": false,
"carrier": "string",
"modFrete": "0 - Por conta do emitente",
"foreseenShipment": "2019-08-24",
"shipmentDetails": "string",
"shipmentAddress": "Endereço da Pessoa",
"shipment": "string",
"shipped": true,
"shipmentCode": "string",
"shipmentDate": "2019-08-24",
"approved": true,
"cpfCNPJ": "string",
"description": "string",
"checked": false,
"userChecked": "string",
"dateChecked": "2019-08-24",
"groupedSales": [
"string"
],
"grouper": "",
"saleLines": [
{
"productName": "string",
"productId": "string",
"variationId": "string",
"dimension": "UN",
"qty": 0,
"price": 0,
"subtotal": 0,
"productType": "Produto",
"details": "string",
"detailsNF": true,
"warehouse": "string"
}
],
"attachments": [
{
"name": "string",
"size": 0,
"key": "string",
"url": "string"
}
],
"user": "string",
"contactId": "string",
"acquirer": {
"isWithAcquirerFee": true,
"acquirerId": "string",
"feeType": "string"
},
"updates": [
{
"user": "string",
"timestamp": "YYYY-MM-DD HH:mm:ss",
"description": "string"
}
]
}
]
}
]
🟠400Bad Request
🔴500Server Error
Modified at 2025-01-18 14:46:41