Skip to content

Review the Xero organisations awaiting confirmation

GET
/xero/selection
curl --request GET \
--url https://example.com/xero/selection \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token>

The current browser’s pending selection, without credentials

Media typeapplication/json
object
selection
required
object
organisations
required
Array<object>
object
id
required
string
name
required
string
expiresAt
required
string format: date-time

Example generated

{
"selection": {
"organisations": [
{
"id": "example",
"name": "example"
}
],
"expiresAt": "2026-04-15T12:00:00Z"
}
}

Sign in first

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

An owner or admin session is required

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

The selection expired, is invalid, or another organisation is connected

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}