Admin APIIntegrations
Check an ERP provider
The stored connection and sync state (always available, even when Tiny is
down), plus a live call to Tiny's /info when a token is present. Also
creates the stock webhook secret on first read, so status.webhook_url
is always ready to paste into Tiny.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidprovider_id*string
ERP provider id
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/erp-providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/health"{
"checks": {
"can_fetch_account_info": true,
"has_access_token": true,
"provider_status": 0
},
"healthy": true,
"provider_body": "string",
"provider_code": "string",
"status": {
"auto_sync_interval_minutes": 0,
"connected": true,
"last_error": "string",
"last_error_at": "2019-08-24T14:15:22Z",
"last_sync_at": "2019-08-24T14:15:22Z",
"last_sync_status": "string",
"needs_reauth": true,
"token_expires_at": "string",
"token_refreshed_at": "2019-08-24T14:15:22Z",
"webhook_configured": true,
"webhook_url": "string"
}
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}