curl --location --request POST '/api/v1/purchase-orders/create' \
--header 'Authorization: {{token}}' \
--header 'Accept-Language: vi' \
--header 'Content-Type: application/json' \
--data-raw '{
"warehouse_code": "ONF_WH_HN_LB",
"vas": [
"CO_INSPECTION"
],
"merchant_po_reference": "PO-{{timestamp}}",
"packages": [
{
"package_code": "PKG_01",
"weight": 100,
"length": 1,
"width": 1,
"height": 1,
"items": [
{
"oasin": "OASIN2200579",
"product_quantity": 1000
}
],
"package_note": "Note package"
}
],
"estimated_arrival_time": 1791173499,
"po_documents": [
{
"document_type": "INVOICE",
"document_url": "https://nhl.sgp1.cdn.digitaloceanspaces.com/ts/11b8565e514a42ab9eca71ad8a254489.docx",
"print_quantity": 1
}
],
"note": "Inbound note"
}'{
"data": {
"created_time": 1770694275,
"updated_time": 1770694275,
"po_code": "OAPO232716061",
"merchant_po_reference": "PO08989008",
"status_info": {
"value": 280,
"label": "Đang vận chuyển"
},
"estimated_arrival_time": 1770841420
},
"error": false,
"error_code": null,
"log_id": null,
"messages": "OK",
"total": 1,
"version": "1.0.3",
"error_detail": null
}