curl --request POST \
--url https://api.cloud.flexprice.io/v1/connections \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"encrypted_secret_data": {
"generic": {
"data": {}
},
"hubspot": {
"access_token": "<string>",
"app_id": "<string>",
"client_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>",
"provider_type": "flexprice",
"sync_config": {
"deal": {
"inbound": true,
"outbound": true
},
"invoice": {
"inbound": true,
"outbound": true
},
"plan": {
"inbound": true,
"outbound": true
},
"subscription": {
"inbound": true,
"outbound": true
}
}
}'