POST https://api.digital-nautic.com/v3/rentals/{rentalId}/payments
Parameter name | Value | Description | Additional |
---|---|---|---|
rentalId | integer | pass a mandatory rental id to get access to the payments. |
Required |
The request body takes a complete Rental Payment resource, containing the following writable properties:
{
"currency": "string",
"method": {},
"price": "number",
"reference": "string"
}
Name | Type | Description | Additional |
---|---|---|---|
currency | string | Currency | |
method | object |
Payment method attached to a payment line. |
|
price | number |
Price paid |
|
reference | string |
Payment reference |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK item created |
Rental Payment |
400 | Bad Request invalid input, object invalid |
|
401 | Unauthorized authorization information is missing or invalid. |
|
409 | Conflict an existing item already exists |