{ "opencollection": "1.0.0", "info": { "name": "Square ApplePay Bookings API", "version": "2.0" }, "items": [ { "info": { "name": "Bookings", "type": "folder" }, "items": [ { "info": { "name": "Square List Bookings", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings", "params": [ { "name": "limit", "value": "", "type": "query", "description": "The maximum number of results per page to return in a paged response." }, { "name": "cursor", "value": "", "type": "query", "description": "The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results." }, { "name": "customer_id", "value": "", "type": "query", "description": "The [customer](entity:Customer) for whom to retrieve bookings. If this is not set, bookings for all customers are retrieved." }, { "name": "team_member_id", "value": "", "type": "query", "description": "The team member for whom to retrieve bookings. If this is not set, bookings of all members are retrieved." }, { "name": "location_id", "value": "", "type": "query", "description": "The location for which to retrieve bookings. If this is not set, all locations' bookings are retrieved." }, { "name": "start_at_min", "value": "", "type": "query", "description": "The RFC 3339 timestamp specifying the earliest of the start time. If this is not set, the current time is used." }, { "name": "start_at_max", "value": "", "type": "query", "description": "The RFC 3339 timestamp specifying the latest of the start time. If this is not set, the time of 31 days after `start_at_min` is used." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieve a collection of bookings.\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope." }, { "info": { "name": "Square Create Booking", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/bookings", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Creates a booking.\n\nThe required input must include the following:\n- `Booking.location_id`\n- `Booking.start_at`\n- `Booking.AppointmentSegment.team_member_id`\n- `Booking.AppointmentSegment.service_variation_id`\n- `Booking.AppointmentSegment.service_variation_version`\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.\n\nFor c" }, { "info": { "name": "Square Search Availability", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/bookings/availability/search", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Searches for availabilities for booking.\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope." }, { "info": { "name": "Square Bulk Retrieve Bookings", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/bookings/bulk-retrieve", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Bulk-Retrieves a list of bookings by booking IDs.\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope." }, { "info": { "name": "Square Retrieve Business Booking Profile", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings/business-booking-profile", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves a seller's booking profile." }, { "info": { "name": "Square List Location Booking Profiles", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings/location-booking-profiles", "params": [ { "name": "limit", "value": "", "type": "query", "description": "The maximum number of results to return in a paged response." }, { "name": "cursor", "value": "", "type": "query", "description": "The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Lists location booking profiles of a seller." }, { "info": { "name": "Square Retrieve Location Booking Profile", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings/location-booking-profiles/:location_id", "params": [ { "name": "location_id", "value": "", "type": "path", "description": "The ID of the location to retrieve the booking profile." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves a seller's location booking profile." }, { "info": { "name": "Square List Team Member Booking Profiles", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings/team-member-booking-profiles", "params": [ { "name": "bookable_only", "value": "", "type": "query", "description": "Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`)." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of results to return in a paged response." }, { "name": "cursor", "value": "", "type": "query", "description": "The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results." }, { "name": "location_id", "value": "", "type": "query", "description": "Indicates whether to include only team members enabled at the given location in the returned result." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Lists booking profiles for team members." }, { "info": { "name": "Square Bulk Retrieve Team Member Booking Profiles", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/bookings/team-member-booking-profiles/bulk-retrieve", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves one or more team members' booking profiles." }, { "info": { "name": "Square Retrieve Team Member Booking Profile", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings/team-member-booking-profiles/:team_member_id", "params": [ { "name": "team_member_id", "value": "", "type": "path", "description": "The ID of the team member to retrieve." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves a team member's booking profile." }, { "info": { "name": "Square Retrieve Booking", "type": "http" }, "http": { "method": "GET", "url": "https://connect.squareup.com/v2/bookings/:booking_id", "params": [ { "name": "booking_id", "value": "", "type": "path", "description": "The ID of the [Booking](entity:Booking) object representing the to-be-retrieved booking." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves a booking.\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope." }, { "info": { "name": "Square Update Booking", "type": "http" }, "http": { "method": "PUT", "url": "https://connect.squareup.com/v2/bookings/:booking_id", "params": [ { "name": "booking_id", "value": "", "type": "path", "description": "The ID of the [Booking](entity:Booking) object representing the to-be-updated booking." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Updates a booking.\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.\n\nFor calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus*\nor *Appointments Premium*." }, { "info": { "name": "Square Cancel Booking", "type": "http" }, "http": { "method": "POST", "url": "https://connect.squareup.com/v2/bookings/:booking_id/cancel", "params": [ { "name": "booking_id", "value": "", "type": "path", "description": "The ID of the [Booking](entity:Booking) object representing the to-be-cancelled booking." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://connect.squareup.com/oauth2/authorize", "accessTokenUrl": "https://connect.squareup.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Cancels an existing booking.\n\nTo call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.\nTo call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.\n\nFor calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus*\nor *Appointments Premium*." } ] } ], "bundled": true }