costs section of each goodsRecords array entry:"costs": [{
"rowNumber": 1,
"itemCode": "",
"listPrice": 100.00,
"salePrice": "same as listPrice",
"listPriceCompany": 100.00,
"listPriceSite": 100.00,
"discountValueSite": 33.00,
"convertionRateCompany": 1.00,
"convertionRateSite": 1.00,
"taxRate": 0.22
}, { ... }, { ... }]
Insert/Update Sales for any other information about the request{
"goodsRecords": [
{
"goods": {
"entityCode": 6,
"documentDate": "2016-04-12 00:00:00",
"refDocument": 100,
"causal": "SALE",
"year": "2016",
"movementDate": "2016-04-12 00:00:00",
"currency": "EUR",
"totalAmount": 666.00,
"totalAmountCompany": 666.00,
"totalAmountSite": 666.00,
"convertionRateCompany": 1.00,
"convertionRateSite": 1.00,
"taxFreeNumber": null,
"system": "ECOMMERCE",
"startDate": null,
"endDate": null,
"customerCode": "12345",
"card": null,
"cardBarcode": null,
"actionType": "PURCHASE",
"actionStatus": "A",
"result": "INTERFACE",
"description": "insertSale"
},
"costs": [
{
"rowNumber": 1,
"itemCode": "",
"listPrice": 100.00,
"salePrice": "impostarlo uguale a listPrice",
"listPriceCompany": 100.00,
"listPriceSite": 100.00,
"discountValueSite": 33.00,
"convertionRateCompany": 1.00,
"convertionRateSite": 1.00,
"taxRate": 0.22
}
],
"payments": [
{
"paymentType": "Credit",
"paymentValue": 600.00
}
]
}
]
}
curl --location --request POST '/api?cmd=insertServices_v3&appId=KEEPIT&applicationId=KEEPIT' \
--header 'username: {{USERNAME}}' \
--header 'password: {{PASSWORD}}' \
--header 'companyId: {{COMPANY_ID}}' \
--header 'siteId: {{SITE_ID}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"goodsRecords": [
{
"goods": {
"entityCode": 6,
"documentDate": "2016-04-12 00:00:00",
"refDocument": 100,
"causal": "SALE",
"year": "2016",
"movementDate": "2016-04-12 00:00:00",
"currency": "EUR",
"totalAmount": 666.00,
"totalAmountCompany": 666.00,
"totalAmountSite": 666.00,
"convertionRateCompany": 1.00,
"convertionRateSite": 1.00,
"taxFreeNumber": null,
"system": "ECOMMERCE",
"startDate": null,
"endDate": null,
"customerCode": "12345",
"card": null,
"cardBarcode": null,
"actionType": "PURCHASE",
"actionStatus": "A",
"result": "INTERFACE",
"description": "insertSale"
},
"costs": [
{
"rowNumber": 1,
"itemCode": "",
"listPrice": 100.00,
"salePrice": "impostarlo uguale a listPrice",
"listPriceCompany": 100.00,
"listPriceSite": 100.00,
"discountValueSite": 33.00,
"convertionRateCompany": 1.00,
"convertionRateSite": 1.00,
"taxRate": 0.22
}
],
"payments": [
{
"paymentType": "Credit",
"paymentValue": 600.00
}
]
}
]
}'{}