# Rezdy

> Read bookings, products, customers, availability and supplier inventory from Rezdy.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/rezdy

## Actions

### Get a booking

Get a booking.

**Inputs**

- Order number (`order_number`, text, required): Order number to search

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "booking": {
      "dateCreated": "example",
      "dateUpdated": "example",
      "items": [
        {
          "endTime": "example",
          "endTimeLocal": "example",
          "productCode": "example",
          "startTime": "example",
          "startTimeLocal": "example"
        }
      ],
      "orderNumber": "example",
      "status": "PROCESSING",
      "vouchers": [
        "example"
      ]
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a category

Get a category.

**Inputs**

- Category (`category_id`, number, required): Category ID

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "category": {
      "categorySeoTags": [
        {
          "attrKey": "example",
          "attrValue": "example",
          "categoryId": 1,
          "id": 1,
          "metaType": "META_NAME"
        }
      ],
      "description": "example",
      "id": 1,
      "image": {
        "id": 1,
        "itemUrl": "example",
        "largeSizeUrl": "example",
        "mediumSizeUrl": "example",
        "thumbnailUrl": "example"
      },
      "name": "example",
      "visible": true
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a company by alias

Get a company by alias.

**Inputs**

- Company alias (`company_alias`, text, required): Company alias to search for

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "company": {
      "alias": "example",
      "companyName": "example",
      "firstName": "example",
      "lastName": "example",
      "timezone": "example"
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a company by name

Get a company by name.

**Inputs**

- Company name (`company_name`, text, required): Company name to search for

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "company": {
      "alias": "example",
      "companyName": "example",
      "firstName": "example",
      "lastName": "example",
      "timezone": "example"
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a customer

Get a customer.

**Inputs**

- Customer ID (`customer_id`, number, required): Id to search for

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "customer": {
      "companyName": "example",
      "email": "example",
      "firstName": "example",
      "id": 1,
      "lastName": "example",
      "name": "example",
      "title": "MR"
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a pickup list

Get a pickup list.

**Inputs**

- Pickup list (`pickup_list_id`, number, required): Pickup list ID

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "pickupList": {
      "additionalNotes": "example",
      "id": 1,
      "name": "example",
      "otherLocationInstructions": "example",
      "pickupLocations": [
        {}
      ]
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a product

Get a product.

**Inputs**

- Product code (`product_code`, text, required): Product Code to search for

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "product": {
      "dateCreated": "example",
      "dateUpdated": "example",
      "extras": [
        {
          "description": "example",
          "extraPriceType": "ANY",
          "id": 1,
          "image": {},
          "name": "example",
          "price": 1,
          "quantity": 1
        }
      ],
      "name": "example",
      "productCode": "example",
      "timezone": "example"
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### Get a voucher

Get a voucher.

**Inputs**

- Voucher code (`voucher_code`, text, required): Voucher code to search for.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    },
    "voucher": {
      "code": "example",
      "status": "ISSUED"
    }
  }
}
```

### Get an extra

Get an extra.

**Inputs**

- Extra ID (`extra_id`, number, required): Extra ID

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "extra": {
      "description": "example",
      "extraPriceType": "ANY",
      "id": 1,
      "name": "example",
      "price": 1
    },
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List availability

List availability.

**Inputs**

- Products (`product_codes`, list, required): Product code in format P12345. You can request multiple products `productCode=P11111&productCode=P22222&productCode=P33333`, which belong to a single supplier.
- Start (`start`, date and time): Start time in `ISO 8601` format. It is required to have either startTime or startTimeLocal to define the start of the time window.
- End (`end`, date and time): End time in `ISO 8601` format. It is required to have either endTime or endTimeLocal to define the end of the time window.
- Min availability (`min_availability`, number): only load availability for that quantity
- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    },
    "sessions": [
      {
        "endTime": "example",
        "id": 1,
        "productCode": "example",
        "startTime": "example",
        "startTimeLocal": "example"
      }
    ]
  }
}
```

### List bookings

List bookings.

**Inputs**

- Order status (`order_status`, text): Order status to filter results. One of: `PROCESSING`, `NEW`, `ON_HOLD` (On hold), `PENDING_SUPPLIER` (Pending supplier), `PENDING_CUSTOMER` (Pending customer), `CONFIRMED`, `CANCELLED`, `ABANDONED_CART` (Abandoned cart).
- Search (`search`, text): Search.
- Products (`product_codes`, list): Product code, to only load bookings for a specific product. Multiple values allowed: &productCode=P11111&productCode=P22222
- Min tour start time (`min_tour_start_time`, date and time): Only load bookings with a booked time that starts on or after this time. This is not the booking creation date, it is the booked date. `ISO 8601` format
- Max tour start time (`max_tour_start_time`, date and time): Only load bookings with a booked time that starts before or on this time. This is not the booking creation date, it is the booked date. `ISO 8601` format
- Updated since (`updated_since`, date and time): Updated since.
- Min date created (`min_date_created`, date and time): Only load bookings created on or after this date, whether they have been updated or not. If the value is not specified or null, defaults to one year before the current date. `ISO 8601` format
- Max date created (`max_date_created`, date and time): Only load bookings created on or before this date, whether they have been updated or not. `ISO 8601` format.
- Reseller reference (`reseller_reference`, text): Only load bookings with specified resellerReference
- Source channel (`source_channel`, text): Only load bookings created by the specified sourceChannel - that is the Agent Code set in the agents screen
- Role (`role`, text): Only load bookings associated with the current company in the specified role from `RESELLER|SUPPLIER|ALL`. If the value is not specified or null, defaults to the company's role according to the company plan. One of: `RESELLER`, `SUPPLIER`, `ALL`.
- Limit (`limit`, number): How many results are returned per request. Maximum is 100, which also a default, when not specified.
- Offset (`offset`, number): Offset of the first result to return.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "bookings": [
      {
        "orderNumber": "example",
        "status": "PROCESSING",
        "supplierAlias": "example"
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List categories

List categories.

**Inputs**

- Search (`search`, text): String to search for. It will be searched in category name
- Visible (`visible`, true/false): Return only public categories if it is set to true, only private if it is set to false, or both if it not set.
- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "categories": [
      {
        "categorySeoTags": [
          {}
        ],
        "description": "example",
        "id": 1,
        "image": {
          "id": 1,
          "itemUrl": "example",
          "largeSizeUrl": "example",
          "mediumSizeUrl": "example",
          "thumbnailUrl": "example"
        },
        "name": "example",
        "visible": true
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List category products

List category products.

**Inputs**

- Category (`category_id`, number, required): The category id.
- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "products": [
      {
        "name": "example",
        "productCode": "example"
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List customers

List customers.

**Inputs**

- Search (`search`, text): String to search for. It will be searched in First & Last name, company name and email.
- Limit (`limit`, number): How many results are returned per request. Maximum is 100, which also a default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "customers": [
      {
        "companyName": "example",
        "email": "example",
        "firstName": "example",
        "id": 1,
        "lastName": "example",
        "name": "example",
        "title": "MR"
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List extras

List extras.

**Inputs**

- Search string (`search_string`, text, required): Search string of extra name

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "extras": [
      {
        "description": "example",
        "extraPriceType": "ANY",
        "id": 1,
        "name": "example",
        "price": 1
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List pickup lists

List pickup lists.

**Inputs**

- Search string (`search_string`, text): Search string of pickup list name or location name

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "pickupListList": [
      {
        "additionalNotes": "example",
        "id": 1,
        "name": "example",
        "otherLocationInstructions": "example",
        "pickupLocations": [
          {}
        ]
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List product pickups

List product pickups.

**Inputs**

- Product code (`product_code`, text, required): productCode Product Code to search for
- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "pickupLocations": [
      {}
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List products

List products.

**Inputs**

- Search (`search`, text): search String to search for. It will be searched in product name, product code and internal code.
- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "products": [
      {
        "name": "example",
        "productCode": "example"
      }
    ],
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    }
  }
}
```

### List resources

List resources.

**Inputs**

- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    },
    "resources": [
      {
        "id": 1,
        "name": "example",
        "seats": 1,
        "type": "RESOURCE"
      }
    ]
  }
}
```

### List vouchers

List vouchers.

**Inputs**

- Search (`search`, text): String to search for. It will be searched in voucher codes
- Limit (`limit`, number): limit how many results are returned per request. Maximum is 100, which is also the default, when not specified.
- Offset (`offset`, number): Offset of the first result to return. Default to 0.

**Outputs**

- `data` (object): The response from Rezdy.

**Example output**

```json
{
  "data": {
    "requestStatus": {
      "error": {
        "errorCode": "example",
        "errorMessage": "example",
        "fields": [
          {}
        ],
        "priceOptions": [
          {}
        ],
        "quantityRequiredMax": 1,
        "quantityRequiredMin": 1,
        "seatsAvailable": 1
      },
      "success": true,
      "version": "example",
      "warning": {
        "warningMessage": "example"
      }
    },
    "vouchers": [
      {
        "code": "example",
        "status": "ISSUED"
      }
    ]
  }
}
```
