post
https://api.my-rent.net/rents/add_items/
Adds an item (service, extra, fee) to a reservation and returns the new reservation item ID.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Adds an item (service, extra, fee) to a reservation and returns the new reservation item ID. The reservation totals are recalculated after the item is added.
price is the net unit price. With discount and vat in percent, MyRent calculates the item total.
Headers: user_guid and b2b_guid. See Web API - Guide.
Example request body
{
"rent_id": "123456",
"code": "CLEAN",
"name": "Final cleaning",
"price": 50,
"quantity": 1,
"vat": 13,
"item_currency_id": "2",
"note": "Paid on arrival"
}
Responses
| Code | Meaning |
|---|---|
| 200 | Item added. The body is the new reservation item ID, or null when item_id does not exist. |
| 401 | Missing or wrong b2b_guid / user_guid headers. |
| 403 | sorry: the reservation does not belong to the account in the headers. |
