Request

PUT https://api.digital-nautic.com/v3/rentals/{rentalId}/payments/{paymentId}

Path parameters

Parameter name Value Description Additional
rentalId integer

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

Required
paymentId integer

pass a mandatory payment id.

Required

Request body

The request body takes a complete Rental Payment resource, containing the following writable properties:

{
    "currency": "string",
    "method": {},
    "price": "number",
    "reference": "string"
}

Properties

Name Type Description Additional
currency string Currency
method object

Payment method attached to a payment line.

price number

Price paid

reference string

Payment reference

Response

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

Status code Description Resource
200 OK

item updated

Rental Payment
400 Bad Request

bad input parameter

401 Unauthorized

authorization information is missing or invalid.

404 Not Found

a payment with the specified ID was not found.


Explore this API

rentalId

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

paymentId

pass a mandatory payment id.

paymentItem

Payment item to update

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