Get Custom Connection Health Report
/v1/operations/connection_health/{merchant_id}
curl --request POST \
--url https://sandbox-api.violet.io/v1/operations/connection_health/{merchant_id} \
--header 'Content-Type: application/json'
{
"channel_connection": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"status": "complete",
"total_connected": "integer"
},
"commission_rate": {
"default_rate": "number",
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"overrides": [
{
"app_id": "integer",
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"rate": "number",
"status": "complete"
}
],
"status": "complete"
},
"connection": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"account_id": "integer",
"account_type": "merchant",
"country_code": "string",
"date_created": "string",
"date_last_modified": "string",
"details": {
"account_holder_name": "string",
"currentlyDue": [
"string"
],
"disabledReason": "string",
"email": "string",
"eventuallyDue": [
"string"
],
"hasPayoutAccount": "boolean",
"legal_entity_address_city": "string",
"legal_entity_address_country": "string",
"legal_entity_address_line_1": "string",
"legal_entity_address_line_2": "string",
"legal_entity_address_postal_code": "string",
"legal_entity_address_state": "string",
"legal_entity_business_name": "string",
"legal_entity_business_tax_id": "string",
"legal_entity_currency": "string",
"legal_entity_date_of_birth": "string",
"legal_entity_first_name": "string",
"legal_entity_last_name": "string",
"legal_entity_ssn_last_four": "string",
"legal_entity_type": "string",
"pastDue": [
"string"
],
"paymentsEnabled": "boolean",
"payoutsEnabled": "boolean",
"pendingVerification": [
"string"
],
"phone": "string",
"ssn_last_4_provided": "boolean",
"statement_descriptor": "string",
"tosAccepted": "boolean",
"website_url": "string"
},
"external_id": "string",
"id": "integer",
"payment_service": "stripe",
"payment_service_account_type": "express",
"status": "INCOMPLETE",
"verified": "boolean"
},
"status": "complete"
},
"distribution_type": "PUBLIC",
"invalid_products": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"count": "integer",
"invalid_product": {
"date_created": "string",
"date_last_modified": "string",
"external_id": "string",
"id": "integer",
"issues": "string",
"merchant_id": "integer",
"name": "string",
"status": "UNRESOLVED",
"thumbnail_url": "string"
}
},
"status": "complete"
},
"merchant_id": "integer",
"merchant_name": "string",
"merchant_status": "INACTIVE",
"migration": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": "MIGRATION_REQUIRED",
"status": "complete"
},
"offers_published": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"count": "integer",
"sync_complete": "boolean"
},
"status": "complete"
},
"payout_account": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"account_id": "integer",
"account_type": "merchant",
"country_code": "string",
"date_created": "string",
"date_last_modified": "string",
"details": {
"account_holder_name": "string",
"currentlyDue": [
"string"
],
"disabledReason": "string",
"email": "string",
"eventuallyDue": [
"string"
],
"hasPayoutAccount": "boolean",
"legal_entity_address_city": "string",
"legal_entity_address_country": "string",
"legal_entity_address_line_1": "string",
"legal_entity_address_line_2": "string",
"legal_entity_address_postal_code": "string",
"legal_entity_address_state": "string",
"legal_entity_business_name": "string",
"legal_entity_business_tax_id": "string",
"legal_entity_currency": "string",
"legal_entity_date_of_birth": "string",
"legal_entity_first_name": "string",
"legal_entity_last_name": "string",
"legal_entity_ssn_last_four": "string",
"legal_entity_type": "string",
"pastDue": [
"string"
],
"paymentsEnabled": "boolean",
"payoutsEnabled": "boolean",
"pendingVerification": [
"string"
],
"phone": "string",
"ssn_last_4_provided": "boolean",
"statement_descriptor": "string",
"tosAccepted": "boolean",
"website_url": "string"
},
"external_id": "string",
"id": "integer",
"payment_service": "stripe",
"payment_service_account_type": "express",
"status": "INCOMPLETE",
"verified": "boolean"
},
"status": "complete"
},
"platform": "OTHER",
"scope_validation": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"missing_scopes": [
"string"
],
"valid": "boolean"
},
"status": "complete"
},
"store_url": "string",
"sync_status": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"abort": "boolean",
"date_last_synced": "string",
"id": "integer",
"merchant_id": "integer",
"resync_required": "boolean",
"status": "NOT_STARTED",
"taxonomy_synced": "boolean",
"total_products": "integer",
"total_products_synced": "integer",
"webhooks_created": "boolean"
},
"status": "complete"
},
"terms_of_service": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": [
{
"date_accepted": "string",
"ip_address": "string",
"policy_type": "TERMS_OF_SERVICE",
"user_email_address": "string",
"user_id": "integer",
"version": "string"
}
],
"status": "complete"
}
}
Get a customized Connection Health Report for a specific merchant using merchant_id
. You can use ConnectionHealthRequest
to pass in the fields you want returned.
This endpoint is not cached and is only recommended for cases where the state of a merchant is changing rapidly (e.g. during onboarding) and you don’t need the entire report or can’t wait for the entire report to be regenerated. The normal GET endpoint is strongly encouraged for normal dashboard scenarios.
Headers
Path Parameters
Query Parameters
Body
Set true to receive channel_connections. Available only for merchants requesting their own health
Set true to receive commission_rate
Set true to receive connection
Set true to receive invalid_products
Set true to receive migration_account
Set true to receive offers_published
Set true to receive payout_account
Set true to receive scope_validation
Set true to receive sync_status
Set true to receive terms_of_service. Available only for merchants requesting their own health
Response
The status object for merchant channels connected
The status object for the merchant commission rate
The status object for the merchant connection
The distribution type this merchant is set to
PUBLIC
, PRIVATE
The status object for the merchant invalid products
The id of the merchant this connection health report pertains to
The name of the merchant this connection health report pertains to
The status/state of the merchant this connection health report pertains to
INACTIVE
, ACTIVE
, DISABLED
, NEW
, DISABLED_INACTIVE
, FOR_DELETION
, APPLICATION_IN_PROGRESS
, APPLICATION_SUBMITTED
, APPLICATION_DENIED
, APPLICATION_ACCEPTED
The status object for the merchant payout account migration
The status object for offers published
The status object for the merchant connection
The eCommerce platform this merchant uses
OTHER
, SHOPIFY
, MAGENTO
, MAGENTO_ONE
, WOOCOMMERCE
, BIGCOMMERCE
, LIGHTSPEED
, ECWID
, YAAS
, SPREECOMMERCE
, DEMANDWARE
, VOLUSION
, PRESTASHOP
, THREEDCART
, SYLIUS
, WIX
, SWELL
, MIVA
, WEBSPHERE
, ORACLECC
, SAPCC
, SQUARESPACE
, SHOPWARE
, COMMERCETOOLS
, MEDUSA
, ABICART
, SPRYKER
, MYSTORE
, CENTRA
, XCART
, VTEX
, KIBO
, SALEOR
, VENDO
, DIGITALRIVER
, CUSTOM
The status object for the merchant connection
The URL Of the Store
The status object for the product sync
The status object for the merchant terms of service acceptance
curl --request POST \
--url https://sandbox-api.violet.io/v1/operations/connection_health/{merchant_id} \
--header 'Content-Type: application/json'
{
"channel_connection": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"status": "complete",
"total_connected": "integer"
},
"commission_rate": {
"default_rate": "number",
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"overrides": [
{
"app_id": "integer",
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"rate": "number",
"status": "complete"
}
],
"status": "complete"
},
"connection": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"account_id": "integer",
"account_type": "merchant",
"country_code": "string",
"date_created": "string",
"date_last_modified": "string",
"details": {
"account_holder_name": "string",
"currentlyDue": [
"string"
],
"disabledReason": "string",
"email": "string",
"eventuallyDue": [
"string"
],
"hasPayoutAccount": "boolean",
"legal_entity_address_city": "string",
"legal_entity_address_country": "string",
"legal_entity_address_line_1": "string",
"legal_entity_address_line_2": "string",
"legal_entity_address_postal_code": "string",
"legal_entity_address_state": "string",
"legal_entity_business_name": "string",
"legal_entity_business_tax_id": "string",
"legal_entity_currency": "string",
"legal_entity_date_of_birth": "string",
"legal_entity_first_name": "string",
"legal_entity_last_name": "string",
"legal_entity_ssn_last_four": "string",
"legal_entity_type": "string",
"pastDue": [
"string"
],
"paymentsEnabled": "boolean",
"payoutsEnabled": "boolean",
"pendingVerification": [
"string"
],
"phone": "string",
"ssn_last_4_provided": "boolean",
"statement_descriptor": "string",
"tosAccepted": "boolean",
"website_url": "string"
},
"external_id": "string",
"id": "integer",
"payment_service": "stripe",
"payment_service_account_type": "express",
"status": "INCOMPLETE",
"verified": "boolean"
},
"status": "complete"
},
"distribution_type": "PUBLIC",
"invalid_products": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"count": "integer",
"invalid_product": {
"date_created": "string",
"date_last_modified": "string",
"external_id": "string",
"id": "integer",
"issues": "string",
"merchant_id": "integer",
"name": "string",
"status": "UNRESOLVED",
"thumbnail_url": "string"
}
},
"status": "complete"
},
"merchant_id": "integer",
"merchant_name": "string",
"merchant_status": "INACTIVE",
"migration": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": "MIGRATION_REQUIRED",
"status": "complete"
},
"offers_published": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"count": "integer",
"sync_complete": "boolean"
},
"status": "complete"
},
"payout_account": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"account_id": "integer",
"account_type": "merchant",
"country_code": "string",
"date_created": "string",
"date_last_modified": "string",
"details": {
"account_holder_name": "string",
"currentlyDue": [
"string"
],
"disabledReason": "string",
"email": "string",
"eventuallyDue": [
"string"
],
"hasPayoutAccount": "boolean",
"legal_entity_address_city": "string",
"legal_entity_address_country": "string",
"legal_entity_address_line_1": "string",
"legal_entity_address_line_2": "string",
"legal_entity_address_postal_code": "string",
"legal_entity_address_state": "string",
"legal_entity_business_name": "string",
"legal_entity_business_tax_id": "string",
"legal_entity_currency": "string",
"legal_entity_date_of_birth": "string",
"legal_entity_first_name": "string",
"legal_entity_last_name": "string",
"legal_entity_ssn_last_four": "string",
"legal_entity_type": "string",
"pastDue": [
"string"
],
"paymentsEnabled": "boolean",
"payoutsEnabled": "boolean",
"pendingVerification": [
"string"
],
"phone": "string",
"ssn_last_4_provided": "boolean",
"statement_descriptor": "string",
"tosAccepted": "boolean",
"website_url": "string"
},
"external_id": "string",
"id": "integer",
"payment_service": "stripe",
"payment_service_account_type": "express",
"status": "INCOMPLETE",
"verified": "boolean"
},
"status": "complete"
},
"platform": "OTHER",
"scope_validation": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"missing_scopes": [
"string"
],
"valid": "boolean"
},
"status": "complete"
},
"store_url": "string",
"sync_status": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": {
"abort": "boolean",
"date_last_synced": "string",
"id": "integer",
"merchant_id": "integer",
"resync_required": "boolean",
"status": "NOT_STARTED",
"taxonomy_synced": "boolean",
"total_products": "integer",
"total_products_synced": "integer",
"webhooks_created": "boolean"
},
"status": "complete"
},
"terms_of_service": {
"error": {
"code": "integer",
"error": "string",
"id": "object",
"ids": [
"object"
],
"message": "string"
},
"results": [
{
"date_accepted": "string",
"ip_address": "string",
"policy_type": "TERMS_OF_SERVICE",
"user_email_address": "string",
"user_id": "integer",
"version": "string"
}
],
"status": "complete"
}
}