Updates an extra. The extra ID can change when updating it, since there are business rules to protect the Order and Product consistency.

Request

PUT https://api.rezdy.com/v1/extra/{extraId}

Path parameters

Parameter name Value Description Additional
extraId int64

Extra ID

Required

Request body

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

{
    "description": "string",
    "extraPriceType": "string",
    "id": "int64",
    "name": "string",
    "price": "float"
}

Properties

Name Type Description Additional
description string

Description of the extra

Optional
extraPriceType string

Price type for this extra. Defines what quantities are allowed and how their price is calculated

Possible values are:

  • ANY
  • FIXED
  • QUANTITY
Optional
id int64

ID of the extra

Optional
name string

Name of the extra

Optional
price float

Price for a single quantity of this extra

Optional

Response

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

Status code Description Resource
200 OK

successful operation

ResponseExtra

Explore this API

apiKey Enter your API Key to try this call
extraId

Extra ID

body

Modified extra

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