Xero¶
Check the SheepCRM <> Xero connection
/api/v1/$FLOCK/partner/xero/
http GET https://api.sheepcrm.com/api/v1/$FLOCK/partner/xero/ Authorization:"Bearer $API_KEY"
HTTP/1.1 200 OK
{
"message": "Connection to Xero merchant a57c7e8e-1a8d-4892-9a74-b9bdf0582512 active.",
"status": "connected"
}
http GET https://api.sheepcrm.com/api/v1/$FLOCK/partner/xero/ Authorization:"Bearer $API_KEY"
HTTP/1.1 200 OK
{
"message": "Connection to Xero required",
"status": "not connected"
}
Connect SheepCRM to Xero¶
GET to the auth end point will begin the user OAuth2 flow ending with auth-finish.
/api/v1/$FLOCK/partner/xero/auth/
/api/v1/$FLOCK/partner/xero/auth-finish/
Revoke Xero API Access¶
Clears acccess tokens thereby disconnecting SheepCRM from Xero
http DELETE /api/v1/$FLOCK/partner/xero/revoke/
HTTP/1.1 200 OK
{}