{"service":"Square Connect API","base_url":"https://connect.squareup.com","auth":{"type":"bearer","header":"Authorization"},"intents":[{"id":"create_mobile_authorization_code","method":"POST","path":"/mobile/authorization-code","returns":"Mobile authorization code for card reader"},{"id":"obtain_oauth_token","method":"POST","path":"/oauth2/token","returns":"OAuth access and refresh tokens"},{"id":"revoke_oauth_token","method":"POST","path":"/oauth2/revoke","returns":"Revokes OAuth access token"},{"id":"renew_oauth_token","method":"POST","path":"/oauth2/clients/{client_id}/access-token/renew","params":{"client_id":"string"},"returns":"Renews OAuth access token before expiry"},{"id":"list_employees","method":"GET","path":"/v1/me/employees","params":{"order":"string","status":"string","limit":"number","begin_updated_at":"string","end_updated_at":"string","begin_created_at":"string","end_created_at":"string"},"returns":"Summary information for all employees"},{"id":"create_employee","method":"POST","path":"/v1/me/employees","returns":"Creates new employee with inactive status"},{"id":"retrieve_employee","method":"GET","path":"/v1/me/employees/{employee_id}","params":{"employee_id":"string"},"returns":"Details for single employee"},{"id":"update_employee","method":"PUT","path":"/v1/me/employees/{employee_id}","params":{"employee_id":"string"},"returns":"Updates employee details"},{"id":"list_employee_roles","method":"GET","path":"/v1/me/roles","params":{"order":"string","limit":"number"},"returns":"Summary information for all employee roles"},{"id":"create_employee_role","method":"POST","path":"/v1/me/roles","returns":"Creates new employee role with permissions"},{"id":"retrieve_employee_role","method":"GET","path":"/v1/me/roles/{role_id}","params":{"role_id":"string"},"returns":"Details for single employee role"},{"id":"update_employee_role","method":"PUT","path":"/v1/me/roles/{role_id}","params":{"role_id":"string"},"returns":"Modifies employee role details"},{"id":"list_payments","method":"GET","path":"/v1/{location_id}/payments","params":{"location_id":"string","order":"string","begin_time":"string","end_time":"string","limit":"number","include_partial":"boolean"},"returns":"Summary information for all payments"},{"id":"retrieve_payment","method":"GET","path":"/v1/{location_id}/payments/{payment_id}","params":{"location_id":"string","payment_id":"string"},"returns":"Comprehensive information for single payment"},{"id":"list_refunds","method":"GET","path":"/v1/{location_id}/refunds","params":{"location_id":"string","order":"string","begin_time":"string","end_time":"string","limit":"number"},"returns":"Details for all refunds initiated by merchant"},{"id":"create_refund","method":"POST","path":"/v1/{location_id}/refunds","params":{"location_id":"string"},"returns":"Issues refund for previously processed payment"},{"id":"list_bank_accounts","method":"GET","path":"/v2/bank-accounts","params":{"cursor":"string","limit":"number","location_id":"string"},"returns":"List of bank accounts linked to Square account"},{"id":"get_bank_account","method":"GET","path":"/v2/bank-accounts/{bank_account_id}","params":{"bank_account_id":"string"},"returns":"Details of bank account linked to Square"},{"id":"register_domain","method":"POST","path":"/v2/apple-pay/domains","returns":"Activates domain for Apple Pay on Web"},{"id":"create_booking","method":"POST","path":"/v2/bookings","returns":"Creates booking appointment"}]}