POST https://api.zoined.com/purchaseOrders?dryRun=false&separator=%3B&encoding=utf-8
Security
bearerAuth
Any of:
Purchase currency as ISO 4217 currency code. Required if multiple currencies are used.
Example:"EUR"
cancelled. true=cancelled transaction false=not cancelled transaction
Example:false
- Mock serverhttps://zapi-api.zoined.com/_mock/purchaseOrders
- https://api.zoined.comhttps://api.zoined.com/purchaseOrders
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/purchaseOrders?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",
"product_id": "XYZ",
"organisation_id": "540",
"department_id": "54011",
"purchaser_id": "5400",
"supplier_id": "221",
"parent_product_id": "123",
"order_date": "2016-01-01",
"order_time": "15:00:00",
"ordered_quantity": 2,
"delivery_date": "2016-01-01",
"delivery_time": "15:00:00",
"delivered_quantity": 2,
"arrival_date": "2016-01-03",
"arrival_time": "15:00:00",
"order_status": 1,
"order_type": "Express",
"purchase_price": 5,
"purchase_price_wo_vat": 4,
"rebate": 0,
"rebate_wo_vat": 0,
"retail_value": 10,
"retail_value_wo_vat": 8,
"purchase_currency": "EUR",
"sales_unit": "KPL",
"cancelled": false,
"cancel_id": "er/232/f2",
"gross_weight": 0,
"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_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" }