Adds a product to the specfied rate

Request

PUT https://api.rezdy.com/v1/rates/{rateId}/products/{productCode}

Path parameters

Parameter name Value Description Additional
rateId int64

Rate ID

Required
productCode string

Product's product code

Required

Request body

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

{
    "commissionType": "string",
    "netRates": [
        {
            "netPrice": "float",
            "priceOptionLabel": "string"
        }
    ],
    "percentageCommission": "float",
    "percentageIncludeExtras": "boolean",
    "productCode": "string"
}

Properties

Name Type Description Additional
commissionType string

Commission type: PERCENTAGE, NET_RATE

Possible values are:

  • NET_RATE
  • PERCENT
Optional
netRates[] array

List of Net rates with its associated price option label e.g. Adult $20, Child $10 etc. This is mandatory if Commission Type is NET_RATE

Optional
netRates[].netPrice float

Value of the rate for the given price option label

Optional
netRates[].priceOptionLabel string

Label of the price option e.g. Adult, Child etc

Optional
percentageCommission float

Percentage value of the commission. This should be mandatory if Commission Type is PERCENTAGE

Optional
percentageIncludeExtras boolean

Includes extras, This is mandatory if Commission Type is PERCENTAGE. If true, the product's extras will be included in the agent commission, otherwise the commission will be calculated based on the product price only.

Optional
productCode string

Product's product code

Optional

Response

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

Status code Description Resource
200 OK

successful operation

ResponseRate

Explore this API

apiKey Enter your API Key to try this call
rateId

Rate ID

productCode

Product's product code

body

Supplied commission for the product

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