Bill Update Run in API Explorer
Ask AI
Deliver the details of a bill closed on the POS to Deliverect.
POST
/updateBill/{locationId}
curl \
--request POST 'https://api.staging.deliverect.com/updateBill/{locationId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id":"R29532LF","status":20,"tableId":"T1","createdAt":"2023-08-18T14:49:39.379000Z","lastUpdated":"2023-08-18T14:49:39.379000Z","closedAt":"2023-08-18T14:49:39.379000Z","decimalDigits":2,"discountTotal":100,"discounts":[{"name":"Our company birthday discount","total":100}],"surchargesTotal":200,"surcharges":[{"name":"Take-away","total":200}],"taxTotal":48,"taxes":[{"name":"6% VAT","total":48}],"total":800,"totalDue":400,"items":[{"plu":"PLU-01","name":"My first product","quantity":1,"price":300},{"plu":"PLU-02","name":"My second product","quantity":1,"price":400,"subItems":[{"plu":"PLU-03","name":"My modifier","quantity":1,"price":0}]}],"payments":[{"name":"Cash","total":400}]}'
Request example
{
"id": "R29532LF",
"status": 20,
"tableId": "T1",
"createdAt": "2023-08-18T14:49:39.379000Z",
"lastUpdated": "2023-08-18T14:49:39.379000Z",
"closedAt": "2023-08-18T14:49:39.379000Z",
"decimalDigits": 2,
"discountTotal": 100,
"discounts": [
{
"name": "Our company birthday discount",
"total": 100
}
],
"surchargesTotal": 200,
"surcharges": [
{
"name": "Take-away",
"total": 200
}
],
"taxTotal": 48,
"taxes": [
{
"name": "6% VAT",
"total": 48
}
],
"total": 800,
"totalDue": 400,
"items": [
{
"plu": "PLU-01",
"name": "My first product",
"quantity": 1,
"price": 300
},
{
"plu": "PLU-02",
"name": "My second product",
"quantity": 1,
"price": 400,
"subItems": [
{
"plu": "PLU-03",
"name": "My modifier",
"quantity": 1,
"price": 0
}
]
}
],
"payments": [
{
"name": "Cash",
"total": 400
}
]
}
Response examples (200)
Bill queued for processing
Response examples (400)
Please provide a JSON format as specified in the API docs