Returns all entities matching a timespan.
Available entities:
- invoices (including invoicecorrections):
-> returns all invoices that were closed in given timespan
- reservations
-> returns all roomreservations falling completely or partly in given timespan
- accounting_entries
-> returns all accounting entries in given timespan (e.g. for bookkeeping)
The period per request must not exceed 366 days
example:
request:
<pre>
GET https://rooms.ibelsa.com/api/get/timespan/reservations/2011-12-13/2011-12-18
</pre>
response:
<pre>
{
"success": true,
"totalCount": 2,
"data": [
{
"id": 52098,
"created_at": "2014-01-29T11:11:07+01:00",
"last_modified": "",
"status": "BOOKED", -> Possible values are: BOOKED, CHECKED_IN, CHECKED_OUT, NO_SHOW, NO_SHOW_GUARANTEED, CANCELLED
"type": "6PM",
"self_pay": "", -> Possible values are: NO, ADDITIONAL, ALL
"guest": {
"id": 64882,
"created_at": "",
"last_modified": "",
"type": "PERSON",
"zip": "8239",
"city": "Bergen",
"address": "Plauensche Str. 54",
"country": "Deutschland",
"state": "",
"title": "Frau",
"firstname": "Antje",
"lastname": "Bauer",
"fullname": "Bauer, Antje",
"fifoname": "Antje Bauer",
"company": null,
"businessphone": "",
"fax": "",
"privatephone": "",
"mobilephone": "",
"email": "",
"birthday": "",
"web": null,
"notes_count": 0,
"sticky_notes_count": 0,
"tags": [],
"identification_number": null
},
"guest_id": 64882,
"guest_name": "Bauer, Antje",
"guest_type": "PERSON",
"company_id": "",
"company": null,
"company_name": "",
"person_count": 1,
"invoice_recipient": null,
"invoice_recipient_id": "",
"invoice_recipient_type": "",
"invoice_related": null,
"invoice_related_id": "",
"invoice_items": [
{
"id": 638183,
"created_at": "",
"last_modified": "",
"product_id": "",
"name": "Logis #1002 - Bauer, Antje 13.12.2011",
"original_name": "Logis #1002 - Bauer, Antje 13.12.2011",
"price": 64.95,
"original_price": 72.45,
"guest_id": 64882,
"bookkeeping_date": "2011-12-13T00:00:00+01:00",
"invoice_id": null,
"room_reservation_id": 52098,
"parent_item": null,
"tax_vat": 7,
"mt_vat": 5,
"mt_calculation": "BEFORE",
"mt_name_abbrev": "MCT",
"editable_invoice_name": true,
"editable_invoice_price": false,
"is_autogenerated": true,
"is_optional": false
},
{
"id": 638184,
"created_at": "",
"last_modified": "",
"product_id": 906,
"name": "Frühstück",
"original_name": "Frühstück",
"price": 7.5,
"original_price": 7.5,
"guest_id": 64882,
"bookkeeping_date": "2011-12-13T00:00:00+01:00",
"invoice_id": null,
"room_reservation_id": 52098,
"parent_item": null,
"tax_vat": 19,
"mt_vat": 0,
"mt_calculation": "",
"mt_name_abbrev": null,
"editable_invoice_name": false,
"editable_invoice_price": false,
"is_autogenerated": true,
"is_optional": true
}
],
"main_reservation_id": 41798,
"main_reservation": {
"id": 41798,
"created_at": "2014-01-29T11:11:06+01:00",
"last_modified": "",
"invoice_recipient": {
"__isInitialized__": true
},
"invoice_recipient_id": 64882,
"invoice_recipient_name": "Bauer, Antje",
"invoice_recipient_type": "PERSON",
"invoice_related": null,
"invoice_related_id": "",
"invoice_related_name": "",
"invoice_related_type": "",
"invoices": {},
"status": "BOOKED",
"number_of_rooms": 1,
"room_reservations": {},
"type": "GUEST_DIRECT",
"notes_count": 0,
"sticky_notes_count": 0,
"invoice_free_text": "",
"reservation_number": 1059
},
"rate": {
"id": 51,
"created_at": "",
"last_modified": "",
"name": "Standard",
"description": "",
"is_active": true,
"is_bookable_online": true,
"max_days": 0,
"min_days": 1,
"package_products": [
4641
],
"maximum_online_availability_per_day": 0,
"tax_class_id": 3061,
"tax_class": 3061
},
"rate_id": 51,
"rate_name": "Standard",
"rate_period_price_id": "51-1-66",
"room_category": {
"id": 66,
"created_at": "",
"last_modified": "",
"name": "Doppelzimmer",
"description": "",
"max_person_count": 2,
"allowed_online_overbooking": 0,
"room_count": "14"
},
"room_category_id": 66,
"room_category_name": "Doppelzimmer",
"starts_at": "2011-12-13",
"ends_at": "2011-12-14",
"checked_in_at": "",
"checked_out_at": "",
"estimated_arrival": "2011-12-13 17:30:00,
"estimated_departure": "2011-12-13 11:00:00 ,
"option_ends_at": "",
"room_stays": [
{
"id": 63155,
"created_at": "",
"last_modified": "",
"room_id": 93,
"room_name": "1002",
"room_category_id": 66,
"room_category_name": "Doppelzimmer",
"starts_at": "2011-12-13",
"ends_at": "2011-12-14"
}
],
"room": {
"id": 93,
"created_at": "",
"last_modified": "2014-08-19T18:35:23+02:00",
"name": "1002",
"category": 66,
"category_name": "Doppelzimmer",
"is_clean": false,
"is_deleted": false,
"rma_2": false,
"rma_5": false,
"rma_7": false,
"rma_18": false,
"rma_19": false,
"rma_28": false,
"rma_32": false,
"rma_38": false,
"rma_41": false,
"rma_59": false,
"rma_61": false,
"rma_68": false,
"rma_69": false,
"rma_74": false,
"rma_77": false,
"rma_88": false,
"rma_92": false,
"rma_95": false,
"rma_99": false,
"rma_105": false,
"rma_107": false,
"rma_111": false,
"rma_116": false,
"rma_123": false,
"rma_140": false,
"rma_149": false
},
"room_id": 93,
"room_name": "1002",
"individual_average_price": 72.45,
"notes_count": 0,
"sticky_notes_count": 0
},
{
"id": 52120,
"created_at": "2014-01-29T13:12:57+01:00",
"last_modified": "",
"status": "BOOKED",
"type": "6PM",
"self_pay": "",
"guest": {
"id": 64859,
"created_at": "",
"last_modified": "",
"type": "PERSON",
"zip": "",
"city": "",
"address": "",
"country": "Deutschland",
"state": "",
"title": "Herr",
"firstname": "G",
"lastname": "Ankelen",
"fullname": "Ankelen, G",
"fifoname": "G Ankelen",
"company": null,
"businessphone": "",
"fax": "",
"privatephone": "",
"mobilephone": "",
"email": "",
"birthday": "",
"web": null,
"notes_count": 0,
"sticky_notes_count": 0,
"tags": [],
"identification_number": null
},
"guest_id": 64859,
"guest_name": "Ankelen, G",
"guest_type": "PERSON",
"company_id": "",
"company": null,
"company_name": "",
"person_count": 1,
"invoice_recipient": null,
"invoice_recipient_id": "",
"invoice_recipient_type": "",
"invoice_related": null,
"invoice_related_id": "",
"invoice_items": [
{
"id": 638304,
"created_at": "",
"last_modified": "",
"product_id": "",
"name": "Logis #1002 - Ankelen, G 14.12.2011",
"original_name": "Logis #1002 - Ankelen, G 14.12.2011",
"price": 72.45,
"original_price": 72.45,
"guest_id": 64859,
"bookkeeping_date": "2011-12-14T00:00:00+01:00",
"invoice_id": 31174,
"room_reservation_id": 52120,
"parent_item": null,
"tax_vat": 7,
"mt_vat": 5,
"mt_calculation": "BEFORE",
"mt_name_abbrev": "CT",
"editable_invoice_name": true,
"editable_invoice_price": false,
"is_autogenerated": true,
"is_optional": false
},
{
"id": 638305,
"created_at": "",
"last_modified": "",
"product_id": 906,
"name": "Frühstück",
"original_name": "Frühstück",
"price": 7.5,
"original_price": 7.5,
"guest_id": 64859,
"bookkeeping_date": "2011-12-14T00:00:00+01:00",
"invoice_id": 31174,
"room_reservation_id": 52120,
"parent_item": null,
"tax_vat": 19,
"mt_vat": 0,
"mt_calculation": "",
"mt_name_abbrev": null,
"editable_invoice_name": false,
"editable_invoice_price": false,
"is_autogenerated": true,
"is_optional": true
}
],
"main_reservation_id": 41815,
"main_reservation": {
"id": 41815,
"created_at": "2014-01-29T13:12:57+01:00",
"last_modified": "",
"invoice_recipient": {
"__isInitialized__": true
},
"invoice_recipient_id": 64859,
"invoice_recipient_name": "Ankelen, G",
"invoice_recipient_type": "PERSON",
"invoice_related": null,
"invoice_related_id": "",
"invoice_related_name": "",
"invoice_related_type": "",
"invoices": {},
"status": "BOOKED",
"number_of_rooms": 1,
"room_reservations": {},
"type": "GUEST_DIRECT",
"notes_count": 0,
"sticky_notes_count": 0,
"invoice_free_text": "",
"reservation_number": 1060
},
"rate": {
"id": 51,
"created_at": "",
"last_modified": "",
"name": "Standard",
"description": "",
"is_active": true,
"is_bookable_online": true,
"max_days": 0,
"min_days": 1,
"package_products": [
4641
],
"maximum_online_availability_per_day": 0,
"tax_class_id": 3061,
"tax_class": 3061
},
"rate_id": 51,
"rate_name": "Standard",
"rate_period_price_id": "51-1-66",
"room_category": {
"id": 66,
"created_at": "",
"last_modified": "",
"name": "Doppelzimmer",
"description": "",
"max_person_count": 2,
"allowed_online_overbooking": 0,
"room_count": "14"
},
"room_category_id": 66,
"room_category_name": "Doppelzimmer",
"starts_at": "2011-12-14",
"ends_at": "2011-12-15",
"checked_in_at": "",
"checked_out_at": "",
"option_ends_at": "",
"room_stays": [
{
"id": 63185,
"created_at": "",
"last_modified": "",
"room_id": 93,
"room_name": "1002",
"room_category_id": 66,
"room_category_name": "Doppelzimmer",
"starts_at": "2011-12-14",
"ends_at": "2011-12-15"
}
],
"room": {
"id": 93,
"created_at": "",
"last_modified": "2014-08-19T18:35:23+02:00",
"name": "1002",
"category": 66,
"category_name": "Doppelzimmer",
"is_clean": false,
"is_deleted": false,
"blocking_reason": "aaa",
"blocking_start": "2011-11-24",
"blocking_end": "2011-11-25",
"rma_2": false,
"rma_5": false,
"rma_7": false,
"rma_18": false,
"rma_19": false,
"rma_28": false,
"rma_32": false,
"rma_38": false,
"rma_41": false,
"rma_59": false,
"rma_61": false,
"rma_68": false,
"rma_69": false,
"rma_74": false,
"rma_77": false,
"rma_88": false,
"rma_92": false,
"rma_95": false,
"rma_99": false,
"rma_105": false,
"rma_107": false,
"rma_111": false,
"rma_116": false,
"rma_123": false,
"rma_140": false,
"rma_149": false
},
"room_id": 93,
"room_name": "1002",
"individual_average_price": 72.45,
"notes_count": 0,
"sticky_notes_count": 0
}
]
}
</pre>