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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

CodeMeaning
200Item added. The body is the new reservation item ID, or null when item_id does not exist.
401Missing or wrong b2b_guid / user_guid headers.
403sorry: the reservation does not belong to the account in the headers.
Path Params
int32
required

Your MyRent account ID. Must be in the URL, but the account is taken from the headers.

Body Params
int32
required

MyRent reservation ID.

int32
Defaults to -1

MyRent item ID. -1 is a custom item. An unknown item ID adds nothing.

string

Item code.

string

Item name. Default: the name of item_id.

double

Net unit price.

double
Defaults to 1

Quantity.

double
Defaults to 0

VAT in percent.

double
Defaults to 0

Extra tax in percent.

double
Defaults to 0

Discount in percent, for example 10.

int32

MyRent currency ID of the price (2 is EUR).

double
Defaults to 1

Exchange rate to the local currency.

string

Item note.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain