Run the sync now
POST
/xero/sync
const url = 'https://example.com/xero/sync';const options = { method: 'POST', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
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"}