Purchase
Create purchase
Create purchase
post/shops/{SHOP_ID}/purchases
Path parameters
SHOP_IDinteger required
Example:4
Shop ID
Request body
Example request
{
"purchase": {
"note": "",
"status": 1,
"not_create_transaction": false,
"auto_create_debts": true,
"supplier_products_id": 169,
"shop_id": 20,
"warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
"change_received_at": true,
"received_at": 1651683600,
"images": [
"https://statics.pancake.vn/user-content-dev2.pancake.vn/2021/12/27/18c4500c320cb2e993b3ff4b3be81165df64d3ba.png"
],
"items": [
{
"imported_price": 100000,
"gross_price": 100000,
"discount": 10000,
"quantity": 1,
"variation_id": "29044dcf-2f4c-492f-a0a9-e447b20e21da",
"index": 0
}
]
}
}Response
Success
Changes
No recorded changes to this endpoint across all 1 revision of this API.