{"openapi":"3.0.1","info":{"title":"Member API","version":"5.0.0"},"servers":[{"url":"https://{api_url}/api/v5","variables":{"api_url":{"default":"example.jrni.com"}}}],"security":[{"App-Id":[],"Auth-Token":[]}],"tags":[{"name":"Member"},{"name":"Member Booking"},{"name":"Member Purchase Total"},{"name":"Member Wallet"},{"name":"Member Pre Paid Booking"}],"paths":{"/{company_id}/members/{member_id}/purchase_totals/{id}/payments":{"get":{"tags":["Member Purchase Total"],"summary":"Purchase Total Payments","description":"Get a list of payments on a Purchase Total\nProvide an auth-token, a company id, a member id and a purchase total id to\nretrieve the payments made on a specific purchase total for that member","operationId":"getCompanyIdMembersMemberIdPurchaseTotalsIdPayments","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Purchase Total id, required","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Purchase Total Payments","content":{}}}}},"/{company_id}/members/{member_id}/purchase_totals/{id}":{"get":{"tags":["Member Purchase Total"],"summary":"Purchase Total Read","description":"Get a Specific Purchase Total\nProvide an auth-token, a company id, a member id and a purchase total id to\nretrieve the details and links of a specific purchase total for that member","operationId":"getCompanyIdMembersMemberIdPurchaseTotalsId","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Purchase Total id, required","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Purchase Total Read","content":{}}}}},"/{company_id}/members/{member_id}/purchase_totals":{"get":{"tags":["Member Purchase Total"],"summary":"Purchases","description":"Get a List of Member Purchases\nProvide an auth-token, a company id and a member id to\nretrieve a list of purchases for that person.\nResults are returned as a paginated list.\nThere is an optional date range for filtering results","operationId":"getCompanyIdMembersMemberIdPurchaseTotals","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"start_date","in":"query","description":"Start Date. Format (YYYY-MM-DD)","schema":{"type":"string"}},{"name":"end_date","in":"query","description":"End date (YYYY-MM-DD)","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":1}},{"name":"per_page","in":"query","schema":{"type":"integer","format":"int32","default":30}},{"name":"fully_paid","in":"query","description":"Returns items that required payment.\nTrue - fully paid items, False - partially paid items or unpaid items","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Purchases","content":{}}}}},"/{company_id}/members/{member_id}/wallet/{wallet_id}/purchase_bands/{band_id}":{"get":{"tags":["Member Wallet"],"summary":"Wallet Purchase Band Read","operationId":"getCompanyIdMembersMemberIdWalletWalletIdPurchaseBandsBandId","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"wallet_id","in":"path","description":"Wallet Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"band_id","in":"path","description":"Band Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Wallet Purchase Band Read","content":{}}}}},"/{company_id}/members/{member_id}/wallet/{wallet_id}/purchase_bands":{"get":{"tags":["Member Wallet"],"summary":"Wallet Purchase Bands","operationId":"getCompanyIdMembersMemberIdWalletWalletIdPurchaseBands","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"wallet_id","in":"path","description":"Wallet Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Wallet Purchase Bands","content":{}}}}},"/{company_id}/members/{member_id}/wallet/{wallet_id}/wallet_logs":{"get":{"tags":["Member Wallet"],"summary":"Wallet Logs Read","operationId":"getCompanyIdMembersMemberIdWalletWalletIdWalletLogs","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"wallet_id","in":"path","description":"Wallet Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Wallet Logs Read","content":{}}}}},"/{company_id}/members/{member_id}/wallet/{wallet_id}/wallet_logs/{wallet_log_id}":{"get":{"tags":["Member Wallet"],"summary":"Wallet Log Read","operationId":"getCompanyIdMembersMemberIdWalletWalletIdWalletLogsWalletLogId","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"wallet_id","in":"path","description":"Wallet Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"wallet_log_id","in":"path","description":"Wallet Log Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Wallet Log Read","content":{}}}}},"/{company_id}/members/{member_id}/wallet":{"get":{"tags":["Member Wallet"],"summary":"Wallet Read","operationId":"getCompanyIdMembersMemberIdWallet","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Wallet Read","content":{}}}},"put":{"tags":["Member Wallet"],"summary":"Update Wallet","operationId":"putCompanyIdMembersMemberIdWallet","parameters":[{"name":"company_id","in":"path","description":"Company ID","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member ID","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"required":["wallet_id"],"properties":{"wallet_id":{"type":"integer","description":"Wallet ID","format":"int32"},"amount":{"type":"integer","description":"Amount in pence that has been entered by the Member to add to the Wallet","format":"int32"},"basket_total_price":{"type":"integer","description":"Price of basket the customer is trying to pay for with wallet","format":"int32"},"deposit":{"type":"string","description":"Determines whether or not a Customer is paying a deposit or the full amount"},"status":{"type":"integer","description":"Toggle the status of a wallet. 1 = Activate Wallet. 0 = Deactivate Wallet.","format":"int32"},"band_id":{"type":"integer","description":"Purchase Band ID","format":"int32"}}}}},"required":true},"responses":{"200":{"description":"Update Wallet","content":{}}}},"post":{"tags":["Member Wallet"],"operationId":"postCompanyIdMembersMemberIdWallet","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"201":{"description":"created Wallet","content":{}}}}},"/{company_id}/members/{member_id}/pre_paid_bookings/{id}":{"get":{"tags":["Member Pre Paid Booking"],"summary":"Pre Paid Booking Read","description":"Get a Specific Pre Paid Booking\nProvide a pre paid booking id to retrieve the details","operationId":"getCompanyIdMembersMemberIdPrePaidBookingsId","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Pre Paid Booking id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Pre Paid Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrePaidBooking"}}}}}}},"/{company_id}/members/{member_id}/pre_paid_bookings":{"get":{"tags":["Member Pre Paid Booking"],"summary":"Pre Paid Booking List","description":"Get a list of Pre Paid Bookings\nProvide a company id, an event or a member id to\nretrieve a list of prepaid bookings","operationId":"getCompanyIdMembersMemberIdPrePaidBookings","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"include_invalid","in":"query","description":"Include both cancelled pre paid bookings and those with 0 remaining","schema":{"type":"boolean"}},{"name":"event_id","in":"query","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Pre Paid Bookings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrePaidBookingCollection"}}}}}}},"/{company_id}/members/{member_id}/bookings/{space_id}/attendees":{"get":{"tags":["Member Booking"],"summary":"Obtains Attendees of Booking","description":"Obtains booking's attendees after it was added to booking","operationId":"getCompanyIdMembersMemberIdBookingsSpaceIdAttendees","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"space_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Attendees","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttendeeCollection"}}}}}},"post":{"tags":["Member Booking"],"summary":"Add Attendees To Booking","description":"Add attendee to booking","operationId":"postCompanyIdMembersMemberIdBookingsSpaceIdAttendees","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"space_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"required":["type"],"properties":{"name":{"type":"string","description":"Attendee full name"},"first_name":{"type":"string","description":"Attendee first name"},"last_name":{"type":"string","description":"Attendee last name"},"telephone":{"type":"string","description":"Attendee telephone"},"consent":{"type":"boolean","description":"We have permission to store the attende data"},"relationship":{"type":"string","description":"Attendee relationship (i.e) lawyer, friend, or partner"},"type":{"type":"string","description":"customer, staff","enum":["customer"]},"email":{"type":"string","description":"Attendee email"},"notify_member":{"type":"boolean","description":"Send a notification to the main booker","default":true}}}}},"required":true},"responses":{"201":{"description":"Add Attendees To Booking","content":{}}}}},"/{company_id}/members/{member_id}/bookings/{space_id}/attendees/{attendee_id}":{"put":{"tags":["Member Booking"],"summary":"Modify Attendee","description":"Modifies an attendee of the booking","operationId":"putCompanyIdMembersMemberIdBookingsSpaceIdAttendeesAttendeeId","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"space_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"attendee_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string","description":"Attendee full name"},"first_name":{"type":"string","description":"Attendee first name"},"last_name":{"type":"string","description":"Attendee last name"},"telephone":{"type":"string","description":"Attendee telephone"},"relationship":{"type":"string","description":"Attendee relationship (i.e) lawyer, friend, or partner"},"type":{"type":"string","description":"customer, staff"},"email":{"type":"string","description":"Attendee email"},"notify_member":{"type":"boolean","description":"Send a notification to the main booker","default":true}}}}}},"responses":{"200":{"description":"Modify Attendee","content":{}}}},"delete":{"tags":["Member Booking"],"summary":"Remove Attendee","description":"Deletes booking's attendees after it was added to booking","operationId":"deleteCompanyIdMembersMemberIdBookingsSpaceIdAttendeesAttendeeId","parameters":[{"name":"notify_member","in":"query","description":"Send a notification to the main booker","schema":{"type":"boolean","default":true}},{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"space_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"attendee_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"204":{"description":"Remove Attendee","content":{}}}}},"/{company_id}/members/{member_id}/bookings/{id}/edit":{"get":{"tags":["Member Booking"],"summary":"Edit Booking","description":"Get 'Edit Booking' Form Schema\nProvide an auth-token and a company id to load the form schema for the 'edit person' form\nUse the Update endpoint for actual booking updates","operationId":"getCompanyIdMembersMemberIdBookingsIdEdit","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Booking id, required","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}}}}},"/{company_id}/members/{member_id}/bookings/{id}":{"get":{"tags":["Member Booking"],"summary":"Booking Read","description":"Get a Specific Booking\nProvide an auth-token, a company id, a member id and a booking id to\nretrieve the details and links of a specific booking for that member","operationId":"getCompanyIdMembersMemberIdBookingsId","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Booking id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"embed","in":"query","description":"A comma seperated list of resources to embed. Available: address","schema":{"type":"string"}}],"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}}}},"put":{"tags":["Member Booking"],"summary":"Booking Update","description":"Update an Existing Booking (mobile contact number, attendance, number of spaces and booking questions). The booking question is a data structure that looks like:\n<code>\n{\n\"question 1\": { \"answer\": 'The actual answer to question 1' },\n\"question 2\": { \"answer\": 'The actual answer to question 2' },\n\"question 3\": { \"answer\": 'The actual answer to question 3' },\n}\n</code>\nProvide an auth-token, a company id, a member id and a booking id to make changes to that booking \n\n<b>N.B</b> The user is instead referred to the Member Edit Booking endpoint that will return a schema, which contains the booking questions and possible answers.\n","operationId":"putCompanyIdMembersMemberIdBookingsId","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Booking id, required","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"quantity":{"type":"integer","description":"Number of spaces","format":"int32"},"service_id":{"type":"integer","description":"The service booked by the customer","format":"int32"},"attended":{"type":"boolean","description":"Whether the customer attended"},"mobile":{"type":"string","description":"Customer mobile phone number"}}}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}}}},"delete":{"tags":["Member Booking"],"summary":"Cancel Booking","description":"Delete (Cancel) a Booking\nProvide an auth-token, a company id, a member id and a booking id to\ndelete and cancel that booking","operationId":"deleteCompanyIdMembersMemberIdBookingsId","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","description":"Booking id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}}}}},"/{company_id}/members/{member_id}/bookings":{"get":{"tags":["Member Booking"],"summary":"Booking List","description":"Get a List of Member Bookings\nProvide an auth-token, a company id and a member id to\nretrieve a list of upcoming bookings for that member.\nResults are returned as a paginated list.\nThere is an optional date range for filtering results","operationId":"getCompanyIdMembersMemberIdBookings","parameters":[{"name":"company_id","in":"path","description":"Company id, required, must match Auth-Token company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id, required","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"start_date","in":"query","description":"Start date (YYYY-MM-DD)","schema":{"type":"string"}},{"name":"end_date","in":"query","description":"End date (YYYY-MM-DD)","schema":{"type":"string"}},{"name":"include_cancelled","in":"query","description":"Include cancelled bookings","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":1}},{"name":"per_page","in":"query","schema":{"type":"integer","format":"int32","default":30}},{"name":"embed","in":"query","description":"A comma seperated list of resources to embed. Available: address","schema":{"type":"string"}}],"responses":{"200":{"description":"Bookings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCollection"}}}}}}},"/{company_id}/members/{member_id}/bookings/{id}/reschedule":{"put":{"tags":["Member Booking"],"summary":"Booking Reschedule","description":"Change the date or time of an existing booking","operationId":"putCompanyIdMembersMemberIdBookingsIdReschedule","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"date":{"type":"string","description":"New Date for Booking in ISO-8601 (YYYY-MM-DD)","format":"date"},"time":{"type":"string","description":"New Time for Booking (HH:mm)"},"duration":{"type":"integer","description":"New duration for Booking (defaults to current duration)","format":"int32"},"notify":{"type":"boolean","default":true},"notify_admin":{"type":"boolean","default":true}}}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}}}}},"/{company_id}/members/{member_id}/send_welcome_email":{"post":{"tags":["Member"],"summary":"Send Member welcome email","description":"Returns a Member","operationId":"postCompanyIdMembersMemberIdSendWelcomeEmail","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}}}}},"/{company_id}/members/{member_id}":{"get":{"tags":["Member"],"summary":"Member Read","description":"Get a Specific Member\nProvide a company id and a member id to\nretrieve details of a specific member","operationId":"getCompanyIdMembersMemberId","parameters":[{"name":"company_id","in":"path","description":"Company id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Member id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"embed","in":"query","description":"A comma seperated list of resources to embed. Available: bookings, pre_paid_bookings, child_clients","schema":{"type":"string"}}],"responses":{"200":{"description":"Member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}}}},"put":{"tags":["Member"],"summary":"Update Member","description":"Update an Existing Member\nProvide a member id to make changes to that member","operationId":"putCompanyIdMembersMemberId","parameters":[{"name":"member_id","in":"path","description":"Member ID","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"member_level_id":{"type":"integer","description":"Member Level ID","format":"int32"},"total_id":{"type":"string","description":"Purchase Total ID"},"default_company_id":{"type":"string","description":"The default company the client should belong to"},"mobile_prefix_country_code":{"type":"string","description":"A country code that determines the mobile_prefix of the number"},"phone_prefix_country_code":{"type":"string","description":"A country code from which the phone prefix (international dialling code) is determined."},"consent":{"type":"boolean","description":"Consent for collecting and storing data"}}}}}},"responses":{"200":{"description":"Member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}}}}},"/{company_id}/members/{member_id}/edit":{"get":{"tags":["Member"],"summary":"Edit Member","description":"Update an Existing Member\nProvide a member id to make changes to that member","operationId":"getCompanyIdMembersMemberIdEdit","parameters":[{"name":"member_id","in":"path","description":"Member ID","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}}}}}},"components":{"schemas":{"PrePaidBooking":{"type":"object","properties":{"id":{"type":"integer"},"company_id":{"type":"integer","example":37000},"resource_id":{"type":"integer","example":1},"service_id":{"type":"integer","example":48000},"person_id":{"type":"integer","example":15000},"number_of_bookings":{"type":"integer","example":50},"number_of_bookings_remaining":{"type":"integer","example":30},"use_from":{"type":"string","example":"2017-01-30T00:00:00.000Z"},"use_by":{"type":"string","example":"2017-03-30T00:00:00.000Z"},"book_by":{"type":"string","example":"2017-04-30T00:00:00.000Z"},"price":{"type":"integer","example":100},"paid":{"type":"integer","example":70},"name":{"type":"string","example":"Service Example with John Smith at Resource Name"}},"description":"Get a Specific Pre Paid Booking\nProvide a pre paid booking id to retrieve the details"},"PrePaidBookingCollection":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"pre_paid_bookings":{"type":"array","items":{"$ref":"#/components/schemas/PrePaidBooking"}}}}},"description":"Get a list of Pre Paid Bookings\nProvide a company id, an event or a member id to\nretrieve a list of prepaid bookings"},"Booking":{"type":"object","properties":{"id":{"type":"integer"},"full_describe":{"type":"string","example":null},"describe":{"type":"string","example":null},"resource_name":{"type":"string","example":null},"person_name":{"type":"string","example":null},"datetime":{"type":"string","example":"2017-07-25T13:32:13.000Z"},"end_datetime":{"type":"string","example":"2017-07-25T13:32:13.000Z"},"duration":{"type":"integer","example":30},"on_waitlist":{"type":"boolean","example":false},"company_id":{"type":"integer"},"attended":{"type":"boolean","example":false},"price":{"type":"integer"},"paid":{"type":"integer"},"quantity":{"type":"integer"},"event_id":{"type":"integer"},"purchase_id":{"type":"integer"},"purchase_ref":{"type":"integer"},"min_cancellation_time":{"type":"string","example":"2017-07-25T13:32:13.000Z"},"service_name":{"type":"string","example":null},"service_id":{"type":"integer"},"category_name":{"type":"string","example":null},"time_zone":{"type":"string","example":null},"status":{"type":"string","example":null},"event_chain_id":{"type":"integer"},"is_cancelled":{"type":"boolean","example":false},"recurrence_type":{"type":"string","example":"DAILY"},"num_bookings":{"type":"integer"},"remaining":{"type":"integer"},"ticket_pool_name":{"type":"string","example":null},"ticket_type_name":{"type":"string","example":null},"_embedded":{"type":"object","properties":{"address":{"type":"string","example":null},"payment_item":{"type":"string","example":null},"answers":{"type":"array","items":{"type":"string"}}}},"mobile":{"type":"string","example":null},"settings":{"type":"object","properties":{},"example":null},"questions":{"type":"object","properties":{},"example":{"1":{"name":"Did the meeting take place?","answer":true}}},"checked_in":{"type":"string","example":null},"check_in_code":{"type":"string","example":null}},"description":"Change the date or time of an existing booking"},"BookingCollection":{"type":"object","properties":{"total_entries":{"type":"integer","example":1},"_embedded":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}}}}},"description":"Get a List of Member Bookings\nProvide an auth-token, a company id and a member id to\nretrieve a list of upcoming bookings for that member.\nResults are returned as a paginated list.\nThere is an optional date range for filtering results"},"Member":{"type":"object","properties":{"id":{"type":"integer","example":23},"name":{"type":"string","example":"John Smith"},"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Smith"},"comp_ref":{"type":"string","example":"REF423"},"wallet_amount":{"type":"integer","example":100},"client_type":{"type":"string","example":"Member"},"email":{"type":"string","example":"john.smith@test.org"},"address1":{"type":"string","example":"A Street and No."},"address2":{"type":"string","example":"An Area"},"address3":{"type":"string","example":"Some Town"},"address4":{"type":"string","example":"Some County"},"address5":{"type":"string","example":"Address Line 5"},"postcode":{"type":"string","example":"AB1 C22"},"country":{"type":"string","example":"United Kingdom"},"phone":{"type":"string","example":"+44 203 984 434"},"phone_prefix":{"type":"string","example":44},"phone_prefix_country_code":{"type":"string","example":"CA"},"mobile":{"type":"string","example":"+44 7733 567 890"},"mobile_prefix":{"type":"string","example":44},"mobile_prefix_country_code":{"type":"string","example":"CA"},"Auth-Token":{"type":"string","example":"A9rtuy842sasa3S"},"path":{"type":"string","example":"path"},"company_id":{"type":"integer","example":37000},"has_active_wallet":{"type":"boolean","example":false},"default_company_id":{"type":"integer","example":37000},"has_wallet":{"type":"boolean","example":false},"member_level_id":{"type":"integer"},"time_zone":{"type":"string","example":"America/Los_Angeles"},"consent":{"type":"boolean","example":true},"space_details":{"type":"object","properties":{},"example":{"form 1":"form 1 value","form 2":"form 2 value","form 3":true,"form 4":false}},"q":{"type":"object","properties":{},"example":{"1":{"name":"What's your role?","answer":"Manager"}}},"answers":{"type":"array","items":{"type":"string"}},"_embedded":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}},"pre_paid_bookings":{"type":"array","items":{"$ref":"#/components/schemas/PrePaidBooking"}},"child_clients":{"type":"array","items":{"type":"string"}}}}},"description":"Get a Specific Member\nProvide a company id and a member id to\nretrieve details of a specific member"},"AttendeeCollection":{"type":"object","properties":{"_embedded":{"type":"object","properties":{"attendees":{"type":"array","items":{"$ref":"#/components/schemas/Attendee"}}}}}},"Attendee":{"type":"object","properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"telephone":{"type":"string"},"relationship":{"type":"string"},"type":{"type":"string"},"primary_attendee":{"type":"string"},"name":{"type":"string"},"consent":{"type":"boolean"},"created_at":{"type":"string"},"extra":{"type":"object"}}}},"securitySchemes":{"App-Id":{"type":"apiKey","name":"App-Id","in":"header"},"Auth-Token":{"type":"apiKey","name":"Auth-Token","in":"header"}}},"x-readme":{"explorer-enabled":true,"proxy-enabled":true}}