Request

POST https://api.digital-nautic.com/v3/rentals/{rentalId}/options

Path parameters

Parameter name Value Description Additional
rentalId integer

pass a mandatory rental id to get access to the options.

Required

Request body

The request body takes a complete Rental Option Creation Object resource, containing the following writable properties:

{
    "commissionPrice": "string",
    "optionId": "integer",
    "quantity": "integer"
}

Properties

Name Type Description Additional
commissionPrice string

How much you've taken as a commission

Optional
optionId integer
quantity integer

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

item created

Rental Option
400 Bad Request

invalid input, object invalid

401 Unauthorized

authorization information is missing or invalid.

409 Conflict

an existing item already exists


Explore this API

rentalId

pass a mandatory rental id to get access to the options.

RentalOptionCreationObject

Object used to add a RentalOption to a Rental. Must specify optionId and quantity. Instead of a single RentalOptionCreationObject, you can also send an array of objects to add multiple options at the same time.

Request Content-Type
Response Content-Type
Try it out!