Report whether order sync is enabled for an integration
You call thisinventory:selfinventory:warehouse:selflegacylisting:selfsalessales:orderssales:orders:fulfillment:selfsales:orders:inventory:selfsales:orders:self
GET
/v1/integration/{integrationId}/orderSync
const url = 'https://api.zentail.com/v1/integration/1/orderSync';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.zentail.com/v1/integration/1/orderSync \ --header 'Authorization: Bearer <token>'Returns false when order sync is turned off for the integration, whether by Zentail staff, by the pause applied when the channel connection is lost, or because it was never turned on. A channel service should then stop importing new orders for it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”integrationId
required
integer
Zentail Integration ID
Responses
Section titled “ Responses ”Success
Media typeapplication/json
object
enabled
boolean
Examplegenerated
{ "enabled": true}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}