POST https://api.zoined.com/sales?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
12 (string, optional) - Optional reference to booking that generated this sale.
Example:"B1224"
Order id for sales order this sales transaction (invoice) originates from.
Example:"12345"
Order line item id in sales order this sales transaction line item (invoice) originates from.
Example:"1"
Line item id for parent line item in this sales transaction that this line is child to.
Example:"1"
- Mock serverhttps://zapi-api.zoined.com/_mock/sales
- https://api.zoined.comhttps://api.zoined.com/sales
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/sales?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"transaction_id": "242224",
"line_item_id": "1",
"customer_id": "32",
"delivery_customer_id": "32",
"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,
"sales_currency": "EUR",
"payment_method": "Visa",
"supplier_id": "13",
"parent_product_id": "123",
"purchase_price": 5,
"purchase_price_wo_vat": 5,
"purchase_currency": "EUR",
"piece_good": true,
"organisation_id": "540",
"department_id": "5401",
"salesperson_id": "5402101",
"sales_representative_id": "5402100",
"campaign_id": "6344",
"cancel_id": "string",
"cancelled": false,
"delivery_date": "2016-01-01",
"delivery_time": "15:00:00",
"order_date": "2016-01-01",
"order_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": "12345",
"sales_order_line_id": "1",
"parent_line_id": "1",
"custom_field_1": "EU only",
"custom_field_2": "EU only",
"custom_field_3": "EU only",
"custom_field_4": "EU only",
"custom_field_5": "EU only",
"custom_field_6": "EU only",
"custom_field_7": "EU only",
"custom_field_8": "EU only",
"custom_field_9": "EU only",
"custom_field_10": "EU only",
"custom_field_11": "EU only",
"custom_field_12": "EU only",
"custom_field_13": "EU only",
"custom_field_14": "EU only",
"custom_field_15": "EU only",
"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,
"source_system": "ABCDEF"
}'Response
{ "status": "OK", "msg": "1 entity added" }