POST Order Received
Developing
POST
{{url}}api/v1/admin/orders/receive
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://ecompulse.test/api/v1/admin/orders/receive' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"purchase_id": 3,
"reference_no": "PORES-00003",
"received_date": "2024-05-07",
"note": "order received for PO 3",
"products": [
{
"id": 10,
"cost": 99.00,
"product_net_cost": 99.00,
"qty": 4,
"discount": 0.00,
"weight_based_price": 0.00,
"product_cost_tax": 0.00,
"subtotal": 99.00
},
{
"id": 15,
"cost": 200.00,
"product_net_cost": 180.00,
"qty": 11,
"discount": 20.00,
"weight_based_price": 0.00,
"product_cost_tax": 10.80,
"subtotal": 190.80,
"option_id": 2,
"option_values": [
{
"label": "Blue",
"qty": 11
}
]
}
],
"tax": 17.39,
"shipping": 0.00,
"discount": 0.00,
"grand_total": 307.19
}'
Response Response Example
{
"status": "success",
"message": "Purchase receive created successfully",
"data": {
"id": 3,
"reference_no": "PO-00003",
"received_date": null,
"note": "edit po",
"tax": "0.00",
"shipping": "0.00",
"discount": "0.00",
"grand_total": "307.19",
"paid": "0.00",
"balance": "307.19",
"status": {
"value": 0,
"text": "Partial"
},
"purchase": null
}
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
Responses
Modified at 2024-05-27 02:57:33