{
    "info": {
        "name": "MyTourist API",
        "description": "REST API of MyTourist. Fill the collection variable `token` with your API token (API page in MyTourist). Documentation: https://app.mytourist.cloud/api/docs",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://app.mytourist.cloud/api/v1"
        },
        {
            "key": "token",
            "value": ""
        }
    ],
    "item": [
        {
            "name": "Property",
            "description": "General address and company data of the company profile that belongs to the API token.",
            "item": [
                {
                    "name": "Retrieve property data",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/property",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "property"
                            ]
                        },
                        "description": "Returns the address, contact and bank details of the company profile."
                    }
                }
            ]
        },
        {
            "name": "Bookings",
            "description": "Add and manage bookings. When you create a booking, MyTourist automatically creates the invoice and attaches the debtor. Bookings placed by other connected channels are partly locked.",
            "item": [
                {
                    "name": "List bookings between dates",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings?from=2030-07-01&until=2030-07-31",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "2030-07-01",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "until",
                                    "value": "2030-07-31",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "roomtype_id",
                                    "value": "",
                                    "description": "Only return bookings of this roomtype.",
                                    "disabled": true
                                },
                                {
                                    "key": "show_cancellations",
                                    "value": "",
                                    "description": "Also return cancelled bookings.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Returns all bookings in the period for each roomtype in your account. To prevent heavy requests you need to give a `from` and `until` date; these may not be more than 36 days apart."
                    }
                },
                {
                    "name": "List bookings of a debtor",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/from-debtor?debtor_id=23192010294",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                "from-debtor"
                            ],
                            "query": [
                                {
                                    "key": "debtor_id",
                                    "value": "23192010294",
                                    "description": "ID of the debtor.",
                                    "disabled": false
                                },
                                {
                                    "key": "show_cancellations",
                                    "value": "",
                                    "description": "Also return cancelled bookings.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Like List bookings between dates, but for all bookings of one debtor."
                    }
                },
                {
                    "name": "List bookings currently staying",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/current-bookings?date=20300701&light=true",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                "current-bookings"
                            ],
                            "query": [
                                {
                                    "key": "date",
                                    "value": "20300701",
                                    "description": "Format `YYYYMMDD`. Empty is today.",
                                    "disabled": false
                                },
                                {
                                    "key": "light",
                                    "value": "true",
                                    "description": "Faster response with less data. Default `false`.",
                                    "disabled": false
                                }
                            ]
                        },
                        "description": "Returns all bookings that arrive, stay or depart on the given date (default today). Like the insights page in MyTourist, the bookings are sorted by the order of the rooms and roomtypes."
                    }
                },
                {
                    "name": "Retrieve a booking",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns one booking with all information."
                    }
                },
                {
                    "name": "Create a booking",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings"
                            ]
                        },
                        "description": "This endpoint expects that you have already checked the availability. It validates the availability of the roomtype once more, but checking it first with the availability endpoint is faster.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "channel",
                                    "value": "api",
                                    "type": "text",
                                    "description": "Default `mytourist`. See available channels.",
                                    "disabled": false
                                },
                                {
                                    "key": "arrival",
                                    "value": "2030-07-01",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "departure",
                                    "value": "2030-07-04",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "roomtype_id",
                                    "value": "23192010281",
                                    "type": "text",
                                    "description": "ID of a roomtype.",
                                    "disabled": false
                                },
                                {
                                    "key": "rate_id",
                                    "value": "23192010281",
                                    "type": "text",
                                    "description": "ID of a price rate of the selected roomtype. Default: the first rate of the roomtype.",
                                    "disabled": false
                                },
                                {
                                    "key": "unit_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "Preferred room. When this room is not available, MyTourist picks another available room.",
                                    "disabled": true
                                },
                                {
                                    "key": "debtor_id",
                                    "value": "23192010294",
                                    "type": "text",
                                    "description": "ID of a debtor. Default: no debtor attached.",
                                    "disabled": false
                                },
                                {
                                    "key": "number_of_guests",
                                    "value": "2",
                                    "type": "text",
                                    "description": "Default `1`.",
                                    "disabled": false
                                },
                                {
                                    "key": "number_of_children",
                                    "value": "",
                                    "type": "text",
                                    "description": "Default `0`.",
                                    "disabled": true
                                },
                                {
                                    "key": "state",
                                    "value": "",
                                    "type": "text",
                                    "description": "`optional` or `confirmed` (default).",
                                    "disabled": true
                                },
                                {
                                    "key": "auto_send_email",
                                    "value": "",
                                    "type": "text",
                                    "description": "Send the automatic emails to the guest. Default `true`.",
                                    "disabled": true
                                },
                                {
                                    "key": "channel_reference",
                                    "value": "",
                                    "type": "text",
                                    "description": "Your own reference of the booking, for example the order number on your platform.",
                                    "disabled": true
                                },
                                {
                                    "key": "dietary_wishes",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "access_code",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "note",
                                    "value": "",
                                    "type": "text",
                                    "description": "Internal note.",
                                    "disabled": true
                                },
                                {
                                    "key": "commission_amount",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "forced_logies_price",
                                    "value": "",
                                    "type": "text",
                                    "description": "Force the logies price on the invoice.",
                                    "disabled": true
                                },
                                {
                                    "key": "expected_arrival_time",
                                    "value": "",
                                    "type": "text",
                                    "description": "Per quarter of an hour from `10.00` up to `23.45`, or `23.59`.",
                                    "disabled": true
                                },
                                {
                                    "key": "invoice_enabled",
                                    "value": "",
                                    "type": "text",
                                    "description": "Only on create. Create an invoice for this booking. Default `true`.",
                                    "disabled": true
                                },
                                {
                                    "key": "checkin_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD HH:MM:SS`.",
                                    "disabled": true
                                },
                                {
                                    "key": "checkout_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD HH:MM:SS`.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a booking",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Send the changed JSON or only the fields you want to change. A field you leave out is ignored; a field you send empty is reset to its default or `null`.\n\n- Bookings from connected channels are partly locked for synchronization: `arrival`, `departure`, `channel` and `channel_reference` are not accepted.\n- When you change the roomtype, change the price rate as well. Without a `rate_id` we take the default price rate of the new roomtype.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "channel",
                                    "value": "",
                                    "type": "text",
                                    "description": "Default `mytourist`. See available channels.",
                                    "disabled": true
                                },
                                {
                                    "key": "arrival",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": true
                                },
                                {
                                    "key": "departure",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": true
                                },
                                {
                                    "key": "roomtype_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a roomtype.",
                                    "disabled": true
                                },
                                {
                                    "key": "rate_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a price rate of the selected roomtype. Default: the first rate of the roomtype.",
                                    "disabled": true
                                },
                                {
                                    "key": "unit_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "Preferred room. When this room is not available, MyTourist picks another available room.",
                                    "disabled": true
                                },
                                {
                                    "key": "debtor_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a debtor. Default: no debtor attached.",
                                    "disabled": true
                                },
                                {
                                    "key": "number_of_guests",
                                    "value": "3",
                                    "type": "text",
                                    "description": "Default `1`.",
                                    "disabled": false
                                },
                                {
                                    "key": "number_of_children",
                                    "value": "",
                                    "type": "text",
                                    "description": "Default `0`.",
                                    "disabled": true
                                },
                                {
                                    "key": "state",
                                    "value": "",
                                    "type": "text",
                                    "description": "`optional` or `confirmed` (default).",
                                    "disabled": true
                                },
                                {
                                    "key": "auto_send_email",
                                    "value": "",
                                    "type": "text",
                                    "description": "Send the automatic emails to the guest. Default `true`.",
                                    "disabled": true
                                },
                                {
                                    "key": "channel_reference",
                                    "value": "",
                                    "type": "text",
                                    "description": "Your own reference of the booking, for example the order number on your platform.",
                                    "disabled": true
                                },
                                {
                                    "key": "dietary_wishes",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "access_code",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "note",
                                    "value": "",
                                    "type": "text",
                                    "description": "Internal note.",
                                    "disabled": true
                                },
                                {
                                    "key": "commission_amount",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "forced_logies_price",
                                    "value": "",
                                    "type": "text",
                                    "description": "Force the logies price on the invoice.",
                                    "disabled": true
                                },
                                {
                                    "key": "expected_arrival_time",
                                    "value": "",
                                    "type": "text",
                                    "description": "Per quarter of an hour from `10.00` up to `23.45`, or `23.59`.",
                                    "disabled": true
                                },
                                {
                                    "key": "invoice_enabled",
                                    "value": "",
                                    "type": "text",
                                    "description": "Only on create. Create an invoice for this booking. Default `true`.",
                                    "disabled": true
                                },
                                {
                                    "key": "checkin_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD HH:MM:SS`.",
                                    "disabled": true
                                },
                                {
                                    "key": "checkout_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD HH:MM:SS`.",
                                    "disabled": true
                                },
                                {
                                    "key": "recalculate_invoice_logies",
                                    "value": "true",
                                    "type": "text",
                                    "description": "Send `true` to recalculate the logies lines on the invoice.",
                                    "disabled": false
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Cancel a booking",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Only bookings from `mytourist`, `website` (booking engine) or `api` can be cancelled via the API. Bookings with a live connection to an external platform cannot be cancelled here. If a booking is out of sync, please contact support."
                    }
                },
                {
                    "name": "Attach to a booking",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID/attach",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID",
                                "attach"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Attach this booking to a main booking. MyTourist then merges both invoices. Only bookings from `mytourist`, `website` or `api` can be attached.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "main_reservation",
                                    "value": "1210531312",
                                    "type": "text",
                                    "description": "ID of the main booking.",
                                    "disabled": false
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Detach from a booking",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID/detach",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID",
                                "detach"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Detach this booking from its main booking. MyTourist creates a new invoice for the detached booking. Only bookings from `mytourist`, `website` or `api` can be detached."
                    }
                },
                {
                    "name": "List guests",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID/guests",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID",
                                "guests"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns all guests of one booking."
                    }
                },
                {
                    "name": "Update a guest",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/bookings/:BOOKING_ID/guests/:GUEST_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "bookings",
                                ":BOOKING_ID",
                                "guests",
                                ":GUEST_ID"
                            ],
                            "variable": [
                                {
                                    "key": "BOOKING_ID",
                                    "value": ""
                                },
                                {
                                    "key": "GUEST_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Update one guest of a booking. Use the `guest_id` from List guests.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "salutation",
                                    "value": "",
                                    "type": "text",
                                    "description": "`male` or `female`.",
                                    "disabled": true
                                },
                                {
                                    "key": "firstname",
                                    "value": "Max",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "lastname",
                                    "value": "Musterman",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "birthday",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYYMMDD`.",
                                    "disabled": true
                                },
                                {
                                    "key": "address",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "zipcode",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "city",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "country",
                                    "value": "",
                                    "type": "text",
                                    "description": "ISO 3166-1 alpha-2, for example `NL`.",
                                    "disabled": true
                                },
                                {
                                    "key": "phone",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "email",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "Availability",
            "description": "Check which roomtypes are available in a date range, with the calculated total logies price per price rate. With this result you have enough data to create a booking.",
            "item": [
                {
                    "name": "Check availability",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/availability?arrival=2030-07-01&departure=2030-07-04",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "availability"
                            ],
                            "query": [
                                {
                                    "key": "arrival",
                                    "value": "2030-07-01",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "departure",
                                    "value": "2030-07-04",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "roomtype_id",
                                    "value": "",
                                    "description": "Only return this roomtype.",
                                    "disabled": true
                                },
                                {
                                    "key": "language",
                                    "value": "",
                                    "description": "ISO 639-1, for example `en`.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Checks the availability of one or all roomtypes in a date range. The API always returns the number of available rooms per roomtype, some information about the roomtype (so you need fewer calls to the roomtypes endpoint) and its price rates.\n\nNeed the availability and price per day, for example for a calendar? Use Fetch the calendar data instead."
                    }
                }
            ]
        },
        {
            "name": "Calendar",
            "description": "The MyTourist calendar is the central place where it all comes together: bookings, price rates, available rooms and restrictions like minimum and maximum stay and closed for arrival or departure.",
            "item": [
                {
                    "name": "Fetch the calendar data",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/calendar",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendar"
                            ]
                        },
                        "description": "Returns the number of available rooms and the current logies price per price rate for each day of the month of the given date. You can fetch all roomtypes or a single one.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "date",
                                    "value": "2030-07-01",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`. The month of this date is returned.",
                                    "disabled": false
                                },
                                {
                                    "key": "roomtype_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "Only return this roomtype.",
                                    "disabled": true
                                },
                                {
                                    "key": "language",
                                    "value": "",
                                    "type": "text",
                                    "description": "ISO 639-1, for example `en`.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Bulk changes",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/calendar/:RATE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendar",
                                ":RATE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "RATE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Change the availability, price and restrictions of one price rate for one day or a period. With this endpoint you no longer need to make bulk changes in the MyTourist calendar by hand. The `until` date may be at most 2 years ahead.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "from",
                                    "value": "2030-01-01",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "until",
                                    "value": "2030-01-01",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "rooms_to_sell",
                                    "value": "1",
                                    "type": "text",
                                    "description": "Rooms to sell; never higher than the actual number of rooms. Bookings are subtracted automatically. Use `auto` for the default.",
                                    "disabled": false
                                },
                                {
                                    "key": "min_stay",
                                    "value": "",
                                    "type": "text",
                                    "description": "Nights, or `auto` for the default of the price rate.",
                                    "disabled": true
                                },
                                {
                                    "key": "max_stay",
                                    "value": "",
                                    "type": "text",
                                    "description": "Nights, or `auto` for the default of the price rate.",
                                    "disabled": true
                                },
                                {
                                    "key": "close_to_arrival",
                                    "value": "",
                                    "type": "text",
                                    "description": "`closed` or `open`, or `default` to reset to the price rate settings.",
                                    "disabled": true
                                },
                                {
                                    "key": "close_to_departure",
                                    "value": "",
                                    "type": "text",
                                    "description": "`closed` or `open`, or `default` to reset to the price rate settings.",
                                    "disabled": true
                                },
                                {
                                    "key": "price_per_night",
                                    "value": "",
                                    "type": "text",
                                    "description": "Price per night, or `auto` for the default price.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Multiple bulk changes in one request",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendar/bulk",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendar",
                                "bulk"
                            ]
                        },
                        "description": "Post a JSON array to push several bulk changes in one call. Each item takes the same fields as Bulk changes, plus the `rate_id`.",
                        "body": {
                            "mode": "raw",
                            "raw": "[\n    {\n        \"rate_id\": \"12345678\",\n        \"from\": \"2030-08-14\",\n        \"until\": \"2030-08-14\",\n        \"price_per_night\": \"55\",\n        \"min_stay\": 3\n    },\n    {\n        \"rate_id\": \"87654321\",\n        \"from\": \"2030-08-15\",\n        \"until\": \"2030-08-17\",\n        \"price_per_night\": \"60\",\n        \"min_stay\": 2\n    }\n]",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Debtors",
            "description": "Manage your debtors: the guests and companies that book and pay.",
            "item": [
                {
                    "name": "List all debtors",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/debtors",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "debtors"
                            ]
                        },
                        "description": "Returns all your debtors, newest first."
                    }
                },
                {
                    "name": "Search debtors",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/debtors?search=musterman,amsterdam",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "debtors"
                            ],
                            "query": [
                                {
                                    "key": "search",
                                    "value": "musterman,amsterdam",
                                    "description": "One or more search terms, separated by commas.",
                                    "disabled": false
                                }
                            ]
                        },
                        "description": "Returns the debtors that match **all** given search terms. Searched fields: first name, last name, company name, company ID, email, phone, street, city, zipcode and debtor ID."
                    }
                },
                {
                    "name": "Retrieve a debtor",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/debtors/:DEBTOR_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "debtors",
                                ":DEBTOR_ID"
                            ],
                            "variable": [
                                {
                                    "key": "DEBTOR_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns one debtor, including all bookings and invoices of this debtor."
                    }
                },
                {
                    "name": "Create a debtor",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/debtors",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "debtors"
                            ]
                        },
                        "description": "Creates a debtor and returns it.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "first_name",
                                    "value": "Max",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "last_name",
                                    "value": "Musterman",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "company_name",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "company_chamber_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "Chamber of commerce number (KVK).",
                                    "disabled": true
                                },
                                {
                                    "key": "vat_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "bank_account",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "address",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "zipcode",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "city",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "country",
                                    "value": "",
                                    "type": "text",
                                    "description": "ISO 3166-1 alpha-2, for example `NL`.",
                                    "disabled": true
                                },
                                {
                                    "key": "mobile",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "phone",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "email",
                                    "value": "max@example.com",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "note",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "latitude",
                                    "value": "",
                                    "type": "text",
                                    "description": "For example `27.606888`.",
                                    "disabled": true
                                },
                                {
                                    "key": "longitude",
                                    "value": "",
                                    "type": "text",
                                    "description": "For example `-42.670898`.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a debtor",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/debtors/:DEBTOR_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "debtors",
                                ":DEBTOR_ID"
                            ],
                            "variable": [
                                {
                                    "key": "DEBTOR_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Send the full JSON or only the fields you want to change. A field you send is always overwritten; a field you leave out keeps its current value.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "first_name",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "last_name",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "company_name",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "company_chamber_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "Chamber of commerce number (KVK).",
                                    "disabled": true
                                },
                                {
                                    "key": "vat_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "bank_account",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "address",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "zipcode",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "city",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "country",
                                    "value": "",
                                    "type": "text",
                                    "description": "ISO 3166-1 alpha-2, for example `NL`.",
                                    "disabled": true
                                },
                                {
                                    "key": "mobile",
                                    "value": "0612345678",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "phone",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "email",
                                    "value": "max@example.com",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "note",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "latitude",
                                    "value": "",
                                    "type": "text",
                                    "description": "For example `27.606888`.",
                                    "disabled": true
                                },
                                {
                                    "key": "longitude",
                                    "value": "",
                                    "type": "text",
                                    "description": "For example `-42.670898`.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Delete a debtor",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/debtors/:DEBTOR_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "debtors",
                                ":DEBTOR_ID"
                            ],
                            "variable": [
                                {
                                    "key": "DEBTOR_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Deletes the debtor. Returns `success`, or HTTP `400` when the debtor does not exist."
                    }
                }
            ]
        },
        {
            "name": "Invoices",
            "description": "By default, MyTourist creates an invoice for each booking and calculates the logies price, tourist tax and fixed products. You can also create single invoices without a booking, for example for boat or bike rentals, a bar or activities. With these endpoints you manage invoices, product lines and payments.",
            "item": [
                {
                    "name": "List invoices",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices?from=2030-11-01&until=2030-11-30",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "2030-11-01",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "until",
                                    "value": "2030-11-30",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                }
                            ]
                        },
                        "description": "Returns all invoices with an invoice date in the period. To prevent heavy server load, `from` and `until` are required and may be at most 36 days apart."
                    }
                },
                {
                    "name": "Retrieve an invoice",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns one invoice. Use the `id` of the invoice (for example `P1020077`)."
                    }
                },
                {
                    "name": "Create an invoice",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices"
                            ]
                        },
                        "description": "Creates a single invoice without a booking. It works exactly like a booking invoice, except that the automatic price calculation (price rates and tourist tax) is not active. A new invoice is always a `proforma`.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "debtor_id",
                                    "value": "23192010282",
                                    "type": "text",
                                    "description": "ID of a debtor.",
                                    "disabled": false
                                },
                                {
                                    "key": "lang",
                                    "value": "",
                                    "type": "text",
                                    "description": "`nl`, `de`, `en` or `fr`. Default: the invoice language of your account.",
                                    "disabled": true
                                },
                                {
                                    "key": "invoiced_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYYMMDD`. Is set again when you make the invoice final.",
                                    "disabled": true
                                },
                                {
                                    "key": "footnote",
                                    "value": "",
                                    "type": "text",
                                    "description": "Default: the footnote of your account.",
                                    "disabled": true
                                },
                                {
                                    "key": "reference",
                                    "value": "PO-12345",
                                    "type": "text",
                                    "description": "Reference (for example the order or PO number of the customer), shown on the invoice. Max. 255 characters; send it empty to clear it.",
                                    "disabled": false
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update an invoice",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Changes only the fields you send.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "debtor_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a debtor.",
                                    "disabled": true
                                },
                                {
                                    "key": "lang",
                                    "value": "",
                                    "type": "text",
                                    "description": "`nl`, `de`, `en` or `fr`. Default: the invoice language of your account.",
                                    "disabled": true
                                },
                                {
                                    "key": "invoiced_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYYMMDD`. Is set again when you make the invoice final.",
                                    "disabled": true
                                },
                                {
                                    "key": "footnote",
                                    "value": "Thank you for your stay!",
                                    "type": "text",
                                    "description": "Default: the footnote of your account.",
                                    "disabled": false
                                },
                                {
                                    "key": "reference",
                                    "value": "PO-12345",
                                    "type": "text",
                                    "description": "Reference (for example the order or PO number of the customer), shown on the invoice. Max. 255 characters; send it empty to clear it.",
                                    "disabled": false
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Make an invoice final",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/make-final/:INVOICE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                "make-final",
                                ":INVOICE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Gives the proforma invoice the next invoice number from your administration and changes its type to `invoice`. A final invoice can no longer be removed; it can only be credited.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "invoice_date",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`. Default: today.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Credit an invoice",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/credit",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "credit"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Creates a credit invoice for a final invoice: a copy with the same lines, all with negative amounts. This is the same as the button \"Credit\" in MyTourist. The credit invoice starts as a `proforma`, so you can still check it; make it final with its `id`. Only final invoices can be credited (HTTP `400` for a proforma)."
                    }
                },
                {
                    "name": "Delete a proforma invoice",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Removes a proforma invoice. Final invoices cannot be removed (HTTP `400`)."
                    }
                },
                {
                    "name": "Add a product line",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/lines",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "lines"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Add a product from MyTourist, or your own line with a description and price. When you add the same product again, its number is increased.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "number",
                                    "value": "2",
                                    "type": "text",
                                    "description": "Number of items.",
                                    "disabled": false
                                },
                                {
                                    "key": "description",
                                    "value": "Bike rental",
                                    "type": "text",
                                    "description": "Is replaced by the product name when you send a `product_id`.",
                                    "disabled": false
                                },
                                {
                                    "key": "price_incl",
                                    "value": "14.00",
                                    "type": "text",
                                    "description": "Price per item incl. VAT. Needed when you do not send a `product_id`.",
                                    "disabled": false
                                },
                                {
                                    "key": "product_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a product. The product name and tax rate are used.",
                                    "disabled": true
                                },
                                {
                                    "key": "tax_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a tax rate. Only without a `product_id`.",
                                    "disabled": true
                                },
                                {
                                    "key": "information",
                                    "value": "",
                                    "type": "text",
                                    "description": "Extra information on the line.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a product line",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/lines/:LINE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "lines",
                                ":LINE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                },
                                {
                                    "key": "LINE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Changes only the fields you send.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "number",
                                    "value": "3",
                                    "type": "text",
                                    "description": "Number of items.",
                                    "disabled": false
                                },
                                {
                                    "key": "description",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "price_incl",
                                    "value": "",
                                    "type": "text",
                                    "description": "Price per item incl. VAT.",
                                    "disabled": true
                                },
                                {
                                    "key": "product_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a product.",
                                    "disabled": true
                                },
                                {
                                    "key": "tax_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a tax rate.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Remove a product line",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/lines/:LINE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "lines",
                                ":LINE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                },
                                {
                                    "key": "LINE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Removes the line and returns it."
                    }
                },
                {
                    "name": "List all payments",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/payments?from=2030-11-01&until=2030-11-30",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                "payments"
                            ],
                            "query": [
                                {
                                    "key": "from",
                                    "value": "2030-11-01",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                },
                                {
                                    "key": "until",
                                    "value": "2030-11-30",
                                    "description": "Format `YYYY-MM-DD`.",
                                    "disabled": false
                                }
                            ]
                        },
                        "description": "Returns all payments in the period, of all invoices. `from` and `until` may be at most 36 days apart."
                    }
                },
                {
                    "name": "Add a payment",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/payments",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "payments"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Registers a payment on the invoice. We do not send the guest a notification for payments you add via the API.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "payment_type",
                                    "value": "bank_card",
                                    "type": "text",
                                    "description": "`bank_transfer`, `bank_card`, `credit_card`, `cash`, `voucher`, `channel`, `cheque` or `provider`.",
                                    "disabled": false
                                },
                                {
                                    "key": "amount",
                                    "value": "10.00",
                                    "type": "text",
                                    "description": "For a refund, send a negative amount.",
                                    "disabled": false
                                },
                                {
                                    "key": "description",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Remove a payment",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/payments/:PAYMENT_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "payments",
                                ":PAYMENT_ID"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                },
                                {
                                    "key": "PAYMENT_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Removes the payment and returns it."
                    }
                },
                {
                    "name": "Download an invoice",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/invoices/:INVOICE_ID/pdf",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "invoices",
                                ":INVOICE_ID",
                                "pdf"
                            ],
                            "variable": [
                                {
                                    "key": "INVOICE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns the invoice as PDF (`application/pdf`). The authorization header is still required."
                    }
                }
            ]
        },
        {
            "name": "Roomtypes",
            "description": "Roomtypes are groups of rooms, like \"Doubleroom\" with \"Room 6, 1st floor\" and \"Room 4, 3rd floor\". A B&B often has one room per roomtype, with the same name. Roomtypes and rooms are managed in MyTourist; via the API you can read them.",
            "item": [
                {
                    "name": "List all roomtypes",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/roomtypes",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "roomtypes"
                            ],
                            "query": [
                                {
                                    "key": "language",
                                    "value": "",
                                    "description": "ISO 639-1, for example `en`.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Returns all roomtypes with their rooms, pictures and price rates."
                    }
                }
            ]
        },
        {
            "name": "Price rates",
            "description": "Each roomtype has its own price rates. You can have as many as you want, for example weekend arrangements or long and short stay rates. Price rates can be connected to channels like Booking.com.",
            "item": [
                {
                    "name": "List all price rates",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/price-rates?roomtype_id=23192010281",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "price-rates"
                            ],
                            "query": [
                                {
                                    "key": "roomtype_id",
                                    "value": "23192010281",
                                    "description": "Recommended. Only return the price rates of this roomtype.",
                                    "disabled": false
                                },
                                {
                                    "key": "language",
                                    "value": "",
                                    "description": "ISO 639-1, for example `en`.",
                                    "disabled": true
                                }
                            ]
                        },
                        "description": "Returns the price rates of one roomtype, or of all roomtypes."
                    }
                },
                {
                    "name": "Retrieve a price rate",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/price-rates/:RATE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "price-rates",
                                ":RATE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "RATE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns one price rate, in the same format as the list. The same query parameters can be used."
                    }
                }
            ]
        },
        {
            "name": "Tax rates",
            "description": "Manage your VAT rates: a label, the rate itself and its type. Tax rates rarely change, but you *can* manage them via the API.",
            "item": [
                {
                    "name": "List all tax rates",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/tax-rates",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "tax-rates"
                            ]
                        },
                        "description": "Returns all your tax rates."
                    }
                },
                {
                    "name": "Create a tax rate",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/tax-rates",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "tax-rates"
                            ]
                        },
                        "description": "Creates a tax rate and returns it.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "label",
                                    "value": "High",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "rate",
                                    "value": "21",
                                    "type": "text",
                                    "description": "Percentage. Ignored (set to `0`) for the types `zero` and `exempt`.",
                                    "disabled": false
                                },
                                {
                                    "key": "type",
                                    "value": "standard",
                                    "type": "text",
                                    "description": "`standard` (default), `zero` or `exempt`. See the table.",
                                    "disabled": false
                                },
                                {
                                    "key": "invoice_note",
                                    "value": "",
                                    "type": "text",
                                    "description": "Text on the invoice, max. 500 characters. For example `Exempt from VAT under article 11`.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a tax rate",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/tax-rates/:RATE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "tax-rates",
                                ":RATE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "RATE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Changes the fields you send and returns the tax rate.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "label",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "rate",
                                    "value": "21",
                                    "type": "text",
                                    "description": "Percentage. Ignored (set to `0`) for the types `zero` and `exempt`.",
                                    "disabled": false
                                },
                                {
                                    "key": "type",
                                    "value": "",
                                    "type": "text",
                                    "description": "`standard`, `zero` or `exempt`.",
                                    "disabled": true
                                },
                                {
                                    "key": "invoice_note",
                                    "value": "",
                                    "type": "text",
                                    "description": "Text on the invoice. Send an empty value to remove it.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Delete a tax rate",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/tax-rates/:RATE_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "tax-rates",
                                ":RATE_ID"
                            ],
                            "variable": [
                                {
                                    "key": "RATE_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Invoice lines can still refer to this rate. Existing invoices keep their calculated amounts, but when you change such a line later, no tax is calculated anymore."
                    }
                }
            ]
        },
        {
            "name": "Products",
            "description": "Products can be added to invoices, or offered as extras in your booking engine. You can also add a product to each booking automatically, for example final cleaning, and calculate the price per guest and/or per night.",
            "item": [
                {
                    "name": "List all products",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products"
                            ]
                        },
                        "description": "Returns all your products."
                    }
                },
                {
                    "name": "Retrieve a product",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products/:PRODUCT_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products",
                                ":PRODUCT_ID"
                            ],
                            "variable": [
                                {
                                    "key": "PRODUCT_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns one product."
                    }
                },
                {
                    "name": "Create a product",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products"
                            ]
                        },
                        "description": "We advise to write `name` and `description` in the language of your invoices, so your invoices do not show an automatic translation. Translations of `name` and `description` are made automatically 30 minutes after your last change.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "language",
                                    "value": "en",
                                    "type": "text",
                                    "description": "`nl`, `de`, `fr` or `en`: the language of `name` and `description`.",
                                    "disabled": false
                                },
                                {
                                    "key": "name",
                                    "value": "Bike rental",
                                    "type": "text",
                                    "description": "In the language you set.",
                                    "disabled": false
                                },
                                {
                                    "key": "description",
                                    "value": "Electric bike.",
                                    "type": "text",
                                    "description": "In the language you set.",
                                    "disabled": false
                                },
                                {
                                    "key": "price",
                                    "value": "14.00",
                                    "type": "text",
                                    "description": "Price per piece.",
                                    "disabled": false
                                },
                                {
                                    "key": "category_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a product category.",
                                    "disabled": true
                                },
                                {
                                    "key": "tax_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a tax rate.",
                                    "disabled": true
                                },
                                {
                                    "key": "calculation_methods",
                                    "value": "",
                                    "type": "text",
                                    "description": "`person` and/or `night`, separated by a comma. The price is then multiplied by the number of guests and/or nights.",
                                    "disabled": true
                                },
                                {
                                    "key": "auto_add_when_booked_on_roomtypes",
                                    "value": "",
                                    "type": "text",
                                    "description": "IDs of roomtypes, separated by commas. The product is added to every booking of these roomtypes, for example final cleaning.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a product",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products/:PRODUCT_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products",
                                ":PRODUCT_ID"
                            ],
                            "variable": [
                                {
                                    "key": "PRODUCT_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "The same as creating, but no field is required. Only the fields you send are changed (also empty ones).",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "language",
                                    "value": "",
                                    "type": "text",
                                    "description": "`nl`, `de`, `fr` or `en`: the language of `name` and `description`.",
                                    "disabled": true
                                },
                                {
                                    "key": "name",
                                    "value": "",
                                    "type": "text",
                                    "description": "In the language you set.",
                                    "disabled": true
                                },
                                {
                                    "key": "description",
                                    "value": "",
                                    "type": "text",
                                    "description": "In the language you set.",
                                    "disabled": true
                                },
                                {
                                    "key": "price",
                                    "value": "15.00",
                                    "type": "text",
                                    "description": "Price per piece.",
                                    "disabled": false
                                },
                                {
                                    "key": "category_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a product category.",
                                    "disabled": true
                                },
                                {
                                    "key": "tax_id",
                                    "value": "",
                                    "type": "text",
                                    "description": "ID of a tax rate.",
                                    "disabled": true
                                },
                                {
                                    "key": "calculation_methods",
                                    "value": "",
                                    "type": "text",
                                    "description": "`person` and/or `night`, separated by a comma. The price is then multiplied by the number of guests and/or nights.",
                                    "disabled": true
                                },
                                {
                                    "key": "auto_add_when_booked_on_roomtypes",
                                    "value": "",
                                    "type": "text",
                                    "description": "IDs of roomtypes, separated by commas. The product is added to every booking of these roomtypes, for example final cleaning.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Remove a product",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/products/:PRODUCT_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "products",
                                ":PRODUCT_ID"
                            ],
                            "variable": [
                                {
                                    "key": "PRODUCT_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Proforma invoices are not changed. To remove the product from those invoices too, remove the product lines."
                    }
                }
            ]
        },
        {
            "name": "Product categories",
            "description": "Keep a clear overview of your products with categories. A category has a name and a color, and is only visible to you, not to your guests.",
            "item": [
                {
                    "name": "List all product categories",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/product-categories",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "product-categories"
                            ]
                        },
                        "description": "The first item is always the default category, marked as `locked`. You cannot change it; all other categories are free to change."
                    }
                },
                {
                    "name": "Create a product category",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/product-categories",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "product-categories"
                            ]
                        },
                        "description": "Creates a category and returns it.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "name",
                                    "value": "Bike rental",
                                    "type": "text",
                                    "description": "For internal use only.",
                                    "disabled": false
                                },
                                {
                                    "key": "color",
                                    "value": "e44a7c",
                                    "type": "text",
                                    "description": "HEX color, for example `e44a7c`.",
                                    "disabled": false
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a product category",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/product-categories/:CATEGORY_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "product-categories",
                                ":CATEGORY_ID"
                            ],
                            "variable": [
                                {
                                    "key": "CATEGORY_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Changes the fields you send. The locked default category cannot be changed (`Category locked`).",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "name",
                                    "value": "Bikes",
                                    "type": "text",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "color",
                                    "value": "",
                                    "type": "text",
                                    "description": "HEX color.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Remove a product category",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/product-categories/:CATEGORY_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "product-categories",
                                ":CATEGORY_ID"
                            ],
                            "variable": [
                                {
                                    "key": "CATEGORY_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "All products in this category move to the locked default category."
                    }
                }
            ]
        },
        {
            "name": "Vouchers",
            "description": "Guests can use vouchers and discount codes to book with a discount in the booking engine. With these endpoints you create, change and delete them.",
            "item": [
                {
                    "name": "List all vouchers",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vouchers",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vouchers"
                            ]
                        },
                        "description": "Returns all available vouchers and discount codes."
                    }
                },
                {
                    "name": "Retrieve a voucher",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vouchers/:VOUCHER_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vouchers",
                                ":VOUCHER_ID"
                            ],
                            "variable": [
                                {
                                    "key": "VOUCHER_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Returns one voucher."
                    }
                },
                {
                    "name": "Create a voucher",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vouchers",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vouchers"
                            ]
                        },
                        "description": "Creates a voucher or discount code and returns it.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "amount",
                                    "value": "50.00",
                                    "type": "text",
                                    "description": "Amount, or percentage when `is_percentage` is `true`.",
                                    "disabled": false
                                },
                                {
                                    "key": "code",
                                    "value": "",
                                    "type": "text",
                                    "description": "Discount code. Generated automatically when empty.",
                                    "disabled": true
                                },
                                {
                                    "key": "type",
                                    "value": "discount",
                                    "type": "text",
                                    "description": "`discount` (default) or `voucher`.",
                                    "disabled": false
                                },
                                {
                                    "key": "is_percentage",
                                    "value": "",
                                    "type": "text",
                                    "description": "Default `false`.",
                                    "disabled": true
                                },
                                {
                                    "key": "label",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "description",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "expires_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD HH:MM:SS`.",
                                    "disabled": true
                                },
                                {
                                    "key": "language",
                                    "value": "",
                                    "type": "text",
                                    "description": "ISO 639-1. Only for type `voucher`.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit_date_from",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`. Only for type `discount`.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit_date_until",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`. Only for type `discount`.",
                                    "disabled": true
                                },
                                {
                                    "key": "times_to_use",
                                    "value": "",
                                    "type": "text",
                                    "description": "Only for type `discount`.",
                                    "disabled": true
                                },
                                {
                                    "key": "excluded_rates",
                                    "value": "",
                                    "type": "text",
                                    "description": "IDs of price rates the code does not apply to, separated by commas. Default: valid for all rates. Send it empty to clear it.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Update a voucher",
                    "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vouchers/:VOUCHER_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vouchers",
                                ":VOUCHER_ID"
                            ],
                            "variable": [
                                {
                                    "key": "VOUCHER_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Send the full JSON or only the fields you want to change. A field you send is always overwritten; a field you leave out keeps its current value.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "amount",
                                    "value": "",
                                    "type": "text",
                                    "description": "Amount, or percentage when `is_percentage` is `true`.",
                                    "disabled": true
                                },
                                {
                                    "key": "code",
                                    "value": "",
                                    "type": "text",
                                    "description": "Discount code. Generated automatically when empty.",
                                    "disabled": true
                                },
                                {
                                    "key": "type",
                                    "value": "",
                                    "type": "text",
                                    "description": "`discount` (default) or `voucher`.",
                                    "disabled": true
                                },
                                {
                                    "key": "is_percentage",
                                    "value": "",
                                    "type": "text",
                                    "description": "Default `false`.",
                                    "disabled": true
                                },
                                {
                                    "key": "label",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "description",
                                    "value": "",
                                    "type": "text",
                                    "description": "",
                                    "disabled": true
                                },
                                {
                                    "key": "expires_at",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD HH:MM:SS`.",
                                    "disabled": true
                                },
                                {
                                    "key": "language",
                                    "value": "",
                                    "type": "text",
                                    "description": "ISO 639-1. Only for type `voucher`.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit_date_from",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`. Only for type `discount`.",
                                    "disabled": true
                                },
                                {
                                    "key": "limit_date_until",
                                    "value": "",
                                    "type": "text",
                                    "description": "Format `YYYY-MM-DD`. Only for type `discount`.",
                                    "disabled": true
                                },
                                {
                                    "key": "times_to_use",
                                    "value": "5",
                                    "type": "text",
                                    "description": "Only for type `discount`.",
                                    "disabled": false
                                },
                                {
                                    "key": "excluded_rates",
                                    "value": "",
                                    "type": "text",
                                    "description": "IDs of price rates the code does not apply to, separated by commas. Default: valid for all rates. Send it empty to clear it.",
                                    "disabled": true
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Delete a voucher",
                    "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vouchers/:VOUCHER_ID",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vouchers",
                                ":VOUCHER_ID"
                            ],
                            "variable": [
                                {
                                    "key": "VOUCHER_ID",
                                    "value": ""
                                }
                            ]
                        },
                        "description": "Deletes the voucher or discount code."
                    }
                }
            ]
        }
    ]
}