post
https://api.my-rent.net/pos/item_add/
Adds an item sold by a POS system (for example a drink at the bar) to a reservation.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Adds an item sold by a POS system (for example a drink at the bar) to a reservation. The reservation total and commission are recalculated after saving. The response is the ID of the new reservation item; keep it if you may need to delete the item.
Header: user_guid only (no b2b_guid needed). See MyRent User API.
Example request body
{
"user_id": "100",
"rent_id": "123456",
"item_id": "77",
"code": "COLA",
"name": "Cola",
"price": 2.50,
"quantity": 2,
"vat": 25,
"discount": 0,
"note": "Bar"
}
Responses
| Code | Meaning |
|---|---|
| 200 | ID of the new reservation item. null when user_id or rent_id is missing, or the item could not be saved. |
| 401 | Missing or unknown user_guid header. |
| 403 | The ID in the URL is not the account of the user_guid header. |
| 500 | The body is not JSON, or another error. The body holds the message. |
