Update a connection by ID
curl --request PUT \
--url https://api.cloud.flexprice.io/v1/connections/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"encrypted_secret_data": {
"chargebee": {
"api_key": "<string>",
"site": "<string>",
"webhook_password": "<string>",
"webhook_secret": "<string>",
"webhook_username": "<string>"
},
"generic": {
"data": {}
},
"hubspot": {
"access_token": "<string>",
"app_id": "<string>",
"client_secret": "<string>"
},
"quickbooks": {
"access_token": "<string>",
"auth_code": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"environment": "<string>",
"income_account_id": "<string>",
"oauth_session_data": "<string>",
"realm_id": "<string>",
"redirect_uri": "<string>",
"refresh_token": "<string>",
"webhook_verifier_token": "<string>"
},
"razorpay": {
"key_id": "<string>",
"secret_key": "<string>",
"webhook_secret": "<string>"
},
"s3": {
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"aws_session_token": "<string>"
},
"settings": {
"invoice_sync_enable": true
},
"stripe": {
"account_id": "<string>",
"publishable_key": "<string>",
"secret_key": "<string>",
"webhook_secret": "<string>"
}
},
"metadata": {},
"name": "<string>",
"sync_config": {
"deal": {
"inbound": true,
"outbound": true
},
"invoice": {
"inbound": true,
"outbound": true
},
"payment": {
"inbound": true,
"outbound": true
},
"plan": {
"inbound": true,
"outbound": true
},
"quote": {
"inbound": true,
"outbound": true
},
"subscription": {
"inbound": true,
"outbound": true
}
}
}
'{
"created_at": "<string>",
"created_by": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"provider_type": "flexprice",
"status": "published",
"sync_config": {
"deal": {
"inbound": true,
"outbound": true
},
"invoice": {
"inbound": true,
"outbound": true
},
"payment": {
"inbound": true,
"outbound": true
},
"plan": {
"inbound": true,
"outbound": true
},
"quote": {
"inbound": true,
"outbound": true
},
"subscription": {
"inbound": true,
"outbound": true
}
},
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}Enter your API key in the format x-api-key <api-key>*
Connection ID
Connection
OK
flexprice, stripe, s3, hubspot, razorpay, chargebee, quickbooks published, deleted, archived Show child attributes
curl --request PUT \
--url https://api.cloud.flexprice.io/v1/connections/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"encrypted_secret_data": {
"chargebee": {
"api_key": "<string>",
"site": "<string>",
"webhook_password": "<string>",
"webhook_secret": "<string>",
"webhook_username": "<string>"
},
"generic": {
"data": {}
},
"hubspot": {
"access_token": "<string>",
"app_id": "<string>",
"client_secret": "<string>"
},
"quickbooks": {
"access_token": "<string>",
"auth_code": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"environment": "<string>",
"income_account_id": "<string>",
"oauth_session_data": "<string>",
"realm_id": "<string>",
"redirect_uri": "<string>",
"refresh_token": "<string>",
"webhook_verifier_token": "<string>"
},
"razorpay": {
"key_id": "<string>",
"secret_key": "<string>",
"webhook_secret": "<string>"
},
"s3": {
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"aws_session_token": "<string>"
},
"settings": {
"invoice_sync_enable": true
},
"stripe": {
"account_id": "<string>",
"publishable_key": "<string>",
"secret_key": "<string>",
"webhook_secret": "<string>"
}
},
"metadata": {},
"name": "<string>",
"sync_config": {
"deal": {
"inbound": true,
"outbound": true
},
"invoice": {
"inbound": true,
"outbound": true
},
"payment": {
"inbound": true,
"outbound": true
},
"plan": {
"inbound": true,
"outbound": true
},
"quote": {
"inbound": true,
"outbound": true
},
"subscription": {
"inbound": true,
"outbound": true
}
}
}
'{
"created_at": "<string>",
"created_by": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"provider_type": "flexprice",
"status": "published",
"sync_config": {
"deal": {
"inbound": true,
"outbound": true
},
"invoice": {
"inbound": true,
"outbound": true
},
"payment": {
"inbound": true,
"outbound": true
},
"plan": {
"inbound": true,
"outbound": true
},
"quote": {
"inbound": true,
"outbound": true
},
"subscription": {
"inbound": true,
"outbound": true
}
},
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}