Create Account Integration
Beta/v1/settings/integrationsIdempotent with Idempotency-Key header. Learn more
Creates an account integration, or updates the name and credentials of an existing one with the same integration code.
Credentials are validated for the provider, encrypted at rest, and never returned in API responses. An account can have at most one integration per integration code.
namestringDisplay name of the integration.
providerstringenumValues:stripeshippohubspotIntegration provider code.
stripe: Stripe payment processing.shippo: Shippo shipping and label generation.hubspot: HubSpot CRM.
credentialsstringJSON string containing the provider's credentials.
Required keys depend on the provider:
stripe:private_key(sk_...),publishable_key(pk_...), andwebhook_secret(whsec_...).shippo:api_key(shippo_live_...orshippo_test_...).hubspot:access_token(pat-...).
Sandbox accounts must use test keys and production accounts must use live keys; credentials that do not match are rejected.
idstringAccount integration ID.
objectstringenumValues:account_integrationResource type identifier.
namestringDisplay name of the integration.
providerstringenumValues:stripeshippohubspotIntegration provider code.
stripe: Stripe payment processing.shippo: Shippo shipping and label generation.hubspot: HubSpot CRM.
statusstringenumValues:activeinactiveLifecycle status of the integration.
Integrations are created active. Setting an integration to inactive keeps its stored credentials but stops it from being used (for example, the Stripe publishable key cannot be retrieved while the Stripe integration is inactive).
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Create Account Integration