Skip to content

Run the sync now

POST
/xero/sync
curl --request POST \
--url https://example.com/xero/sync \
--cookie bottle.session_token=<bottle.session_token>

What the clock does every few minutes, on demand: pull customers from Xero, push customers to it, push invoices and payments. Running it twice sends nothing twice.

What was done

Media typeapplication/json
object
customersPulled
required
integer
customersPushed
required
integer
invoicesPushed
required
integer
paymentsPushed
required
integer
problems
required
Array<string>
Examplegenerated
{
"customersPulled": 1,
"customersPushed": 1,
"invoicesPushed": 1,
"paymentsPushed": 1,
"problems": [
"example"
]
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not a member, or without the permission this needs

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not connected

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}

Xero is not configured on this installation

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}