Skip to content
POST
/v1/integration/{integrationId}/connectionStatus
curl --request POST \
--url https://api.zentail.com/v1/integration/1/connectionStatus \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "connected": true, "error": "example" }'

Marks the integration as connected or disconnected. A disconnected integration raises the connection warning shown to the seller on every page, so only report a disconnect once the channel has rejected the credentials, not on a transient network failure.

integrationId
required
integer

Zentail Integration ID

Place the connection status in a JSON object in the body of the request.

Media typeapplication/json
object
connected
required

False when the integration’s credentials are being rejected by the channel.

boolean
error

Short reason shown to the seller alongside the connection warning. Send null when connected.

string
Examplegenerated
{
"connected": true,
"error": "example"
}

Success

Media typeapplication/json
string
Examplegenerated
example

Bad Request

Media typeapplication/json
object
errorCode
number
errorMessages
Array<string>
referenceId
string format: uuid
Example
{
"errorCode": 400
}

Permission Denied

Media typeapplication/json
object
errorCode
number
errorMessages
Array<string>
referenceId
string format: uuid
Example
{
"errorCode": 403
}

Not Found

Media typeapplication/json
object
errorCode
number
errorMessages
Array<string>
referenceId
string format: uuid
Example
{
"errorCode": 404
}

Zentail Error

Media typeapplication/json
object
errorCode
number
errorMessages
Array<string>
referenceId
string format: uuid
errorMessage
string
Example
{
"errorCode": 500
}

Zentail Error

Media typeapplication/json
object
errorCode
number
errorMessages
Array<string>
referenceId
string format: uuid
Example
{
"errorCode": 503
}

Sourcesnapshot of https://app.zentail.com/api/swagger, committed at spec/v1/zentail-api.json

Built0c509dd3

API changelog