Report whether an integration's credentials are working
You call thisinventory:selfinventory:warehouse:selflegacylisting:selfsalessales:orderssales:orders:fulfillment:selfsales:orders:inventory:selfsales:orders:self
POST
/v1/integration/{integrationId}/connectionStatus
const url = 'https://api.zentail.com/v1/integration/1/connectionStatus';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connected":true,"error":"example"}'};
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://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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”integrationId
required
integer
Zentail Integration ID
Request Body
Section titled “Request Body”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"}Responses
Section titled “ Responses ”Success
Media typeapplication/json
string
Examplegenerated
exampleBad 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}