POST https://api.zoined.com/salesOrders?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"
- Mock serverhttps://zapi-api.zoined.com/_mock/salesOrders
- https://api.zoined.comhttps://api.zoined.com/salesOrders
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/salesOrders?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"transaction_id": "er/232/f31",
"line_item_id": "1",
"customer_id": "32",
"delivery_customer_id": "32",
"product_id": "XYZ",
"product_quantity": 2,
"delivered_quantity": 1,
"planned_quantity": 2,
"product_unit_price": 10,
"sales_value": 20,
"sales_value_wo_vat": 20,
"rebate": 0,
"rebate_wo_vat": 0,
"rebate_code_id": "3313V",
"sales_currency": "EUR",
"payment_method": "Invoice 30",
"tender_amount": 20,
"deposit_amount": 10,
"supplier_id": "221",
"parent_product_id": "123",
"purchase_price": 5,
"purchase_price_wo_vat": 5,
"purchase_currency": "EUR",
"organisation_id": "540",
"department_id": "54011",
"salesperson_id": "5402101",
"cancel_id": "er/232/f2",
"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",
"arrival_date": "2016-01-03",
"arrival_time": "15:00:00",
"order_status": 1,
"order_type": "Wholesale",
"customer_order_number": "1234-5",
"sales_offer_id": "1234",
"sales_offer_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,
"source_system": "ABCDEF"
}'Response
{ "status": "OK", "msg": "1 entity added" }