Skip to main content
POST
Save a Xero access token

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

*/*

Parameters for the POST XeroAccessToken endpoint

xeroAccessToken
string
required

Xero access_token obtained from Partner app

refreshToken
string
required

Xero refresh_token obtained from Partner app

tenantId
string

Tenant ID of the user in Xero. If none is provided, will use the first tenant returned by Xero's connections endpoint

Response

200 - application/json

Successful operation

Object containing details about result of the action performed

result
enum<string>

The result of the action performed

Available options:
SUCCESS,
FAILURE
errors
object

Error object containing details errors incurred, if any

id
string

Id of the entity being acted upon

webhook
object