GET https://api.zoined.com/v2/download/sales.json?limit=1000&offset=0&start=2017-01-01&end=2017-01-31
Security
bearerAuth
- Mock serverhttps://zapi-api.zoined.com/_mock/v2/download/sales.json
- https://api.zoined.comhttps://api.zoined.com/v2/download/sales.json
curl -i -X GET \
'https://zapi-api.zoined.com/_mock/v2/download/sales.json?limit=1000&offset=0&start=2017-01-01&end=2017-01-31' \
-H 'Authorization: Bearer <YOUR_token_HERE>'Request has been processed successfully.
Headers
Content-Type: application/json
Sales currency as ISO 4217 currency code. Required if multiple currencies are used.
Example:"EUR"
12 (string, optional) - Optional reference to booking that generated this sale.
Example:"B1224"
56 (string, optional) - Optional sales order that generated this sale.
Example:"SO1234"
Line item id for parent line item in this sales transaction that this line is child to.
Example:"1"
Response
{ "transaction_id": "242224", "line_item_id": "1", "customer_id": "32", "delivery_customer_id": "35", "sales_date": "2016-01-01", "sales_time": "15:00:00", "product_id": "XYZ", "product_quantity": 2, "product_unit_price": 10, "sales_value": 20, "sales_value_wo_vat": 20, "compensation_amount": 3, "rebate": 0, "rebate_wo_vat": 0, "currency": "EUR", "payment_method": "Visa", "supplier_id": "13", "parent_product_id": "123", "purchase_price": 5, "purchase_price_wo_vat": 5, "organisation_id": "540", "deparment_id": "5400", "salesperson_id": "5402101", "sales_representative_id": "5402100", "campaign_id": "6344", "delivery_date": "2016-01-01", "delivery_time": "15:00:00", "invoice_date": "2016-01-01", "invoice_time": "15:00:00", "register_id": "54022", "table_number": "54", "rebate_code_id": "3313V", "booking_id": "B1224", "booking_line_id": "1", "event_id": "221", "sales_order_id": "SO1234", "sales_order_line_id": "1", "parent_line_id": "1", "custom_field_1": "extra info", "custom_field_2": "extra info", "custom_field_3": "extra info", "custom_field_4": "extra info", "custom_field_5": "extra info", "custom_field_6": "extra info", "custom_field_7": "extra info", "custom_field_8": "extra info", "custom_field_9": "extra info", "custom_field_10": "extra info", "custom_field_11": "extra info", "custom_field_12": "extra info", "custom_field_13": "extra info", "custom_field_14": "extra info", "custom_field_15": "extra info", "custom_metric_1": 1, "custom_metric_2": 100, "custom_metric_3": 2.2, "custom_metric_4": 1.05, "custom_metric_5": 10000, "custom_metric_6": 1, "custom_metric_7": 100, "custom_metric_8": 2.2, "custom_metric_9": 1.05, "custom_metric_10": 10000 }