PUT POS Sale
Developing
PUT
{{url}}api/v1/admin/pos/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'http://ecompulse.test/api/v1/admin/pos/8' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"warehouse_id": 1,
"customer_id": 3,
"biller_id": 2,
"products": [
{
"id": 10,
"price": 119.00,
"product_net_price": 119.00,
"qty": 2,
"discount": 0.00,
"weight_based_price": 0.00,
"product_price_tax": 0.00,
"subtotal": 119.00
},
{
"id": 15,
"price": 235.00,
"product_net_price": 215.00,
"qty": 1,
"discount": 20.00,
"weight_based_price": 0.00,
"product_price_tax": 12.90,
"subtotal": 227.90,
"option_id": 2,
"option_values": [
{
"label": "White",
"qty": 1
}
]
}
],
"order_tax": 100.00,
"order_shipping": 100.00,
"order_discount": 100.00,
"grand_total": 12000.00,
"payment": {
"amount": 1000.00,
"paying_by": 1
}
}'
Response Response Example
{
"status": "success",
"message": "POS Sale updated successfully",
"data": {
"id": 8,
"reference_no": "POS3626987",
"date": "2024-05-27 01:49:53",
"note": null,
"order_tax": "100.00",
"order_shipping": "100.00",
"order_discount": "100.00",
"grand_total": "12,000.00",
"paid": "1,000.00",
"balance": "11,000.00",
"customer_payment": {
"paid": "1,000.00",
"change": "0.00",
"paying_by": "Card"
},
"paid_status": {
"value": 0,
"text": "Partial"
},
"warehouse": {
"id": 1,
"name": "Warehouse 1"
},
"customer": {
"id": 3,
"name": "Tom"
},
"biller": {
"id": 2,
"name": "William"
},
"sale_by": "POS",
"status": {
"value": 1,
"text": "Completed"
},
"products": [
{
"id": 10,
"sku": "P10",
"name": "Girl Summer bracelets",
"total_qty": 26,
"qty": 2,
"price": "119.00",
"product_net_price": "119.00",
"discount": "0.00",
"weight_based_price": "0.00",
"product_price_tax": "0.00",
"subtotal": "238.00",
"tax_method_id": null,
"tax_id": null,
"option_id": null,
"option_values": null
},
{
"id": 15,
"sku": "SKU 15",
"name": "iPhone 6S",
"total_qty": 33,
"qty": 1,
"price": "235.00",
"product_net_price": "215.00",
"discount": "20.00",
"weight_based_price": "0.00",
"product_price_tax": "12.90",
"subtotal": "227.90",
"tax_method_id": 2,
"tax_id": 3,
"option_id": 2,
"option_values": [
{
"label": "White",
"qty": 1
}
]
}
],
"payments": [
{
"id": 13,
"paid_date": "2024-05-27 01:49:53",
"amount": "1,000.00",
"note": "customer pos payment",
"paying_by": {
"value": 1,
"text": "Card"
}
}
]
}
}
Request
Path Params
id
integerÂ
required
Example:
8
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 01:49:45