POST https://api.zoined.com/salesSummaries?dryRun=false&separator=%3B&encoding=utf-8
Security
bearerAuth
Any of:
Sales currency as ISO 4217 currency code. Required if multiple currencies are used.
Example:"EUR"
Purchase currency as ISO 4217 currency code. Required if multiple currencies are used.
Example:"EUR"
cancelled. true=cancelled transaction false=not cancelled transaction. Default is false.
Example:false
- Mock serverhttps://zapi-api.zoined.com/_mock/salesSummaries
- https://api.zoined.comhttps://api.zoined.com/salesSummaries
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/salesSummaries?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"sales_date": "2016-01-01",
"sales_time": "15:00:00",
"organisation_id": "540",
"department_id": "5401",
"salesperson_id": "5402101",
"sales_value": 2000,
"sales_value_wo_vat": 1600,
"sales_currency": "EUR",
"rebate": 0,
"rebate_wo_vat": 0,
"purchase_price": 500,
"purchase_price_wo_vat": 400,
"purchase_currency": "EUR",
"product_quantity": 4,
"number_of_transactions": 2,
"product_id": "XYZ",
"customer_id": "32",
"supplier_id": "221",
"parent_product_id": "123",
"campaign_id": "123",
"rebate_code_id": "3313V",
"cancelled": false,
"custom_field_1": "XYZ",
"custom_field_2": "XYZ",
"custom_field_3": "XYZ",
"custom_field_4": "XYZ",
"custom_field_5": "XYZ",
"custom_field_6": "XYZ",
"custom_field_7": "XYZ",
"custom_field_8": "XYZ",
"custom_field_9": "XYZ",
"custom_field_10": "XYZ",
"custom_metric_1": 1,
"custom_metric_2": 100,
"custom_metric_3": 2.2,
"custom_metric_4": 1.05,
"custom_metric_5": 10000,
"source_system": "ABCDEF"
}'Response
{ "status": "OK", "msg": "1 entity added" }