Connectors
A Connector is a production-ready integration with Composable Commerce.
After a ConnectorStaged is published, a Connector is created containing all the information from the ConnectorStaged. These are production versions of your Connector that are available for clients to deploy.
Connectors are read-only. If you are a creator and want to make changes to your Connector, you should make the changes to the ConnectorStaged and then use the Publish update action.
Representations
Connector
idString | Unique identifier of the Connector. |
versionInt | Current version of the Connector. |
keyString | User-defined unique identifier of the Connector. MinLength:2MaxLength: 256Pattern: ^[A-Za-z0-9_-]+$ |
nameString | Name of the Connector. |
descriptionString | Description of the Connector. |
integrationTypesArray of IntegrationType | Integration types of the Connector. Can be used to filter search and query results. |
creator | Owner of the Connector. |
repository | GitHub repository details of the Connector. |
configurationsArray of ConnectorConfigurationApplication | Configurations needed by Connectors for hosting. Loaded as environment variables in the application. |
apiClient | Configuration for the API Client used for automatically generating API Client credentials. |
privateBoolean | If |
globalConfiguration | Global configuration applied to all applications in the Deployment. |
supportedRegionsArray of Region | If provided, Connectors can only be deployed in these Regions. If not provided, Connectors can be deployed in any supported Region. For faster request processing, we recommend adding only the required Region. |
certifiedBoolean | If |
documentationUrlString | URL to the documentation of the Connector. |
ConnectorReference
Reference to a Connector or ConnectorStaged. Either id or key is required.
idString | Unique identifier of the referenced Connector. |
versionInt | Version of the referenced Connector. |
keyString | User-defined unique identifier of the referenced Connector. |
stagedBoolean | If false |
{"key": "connector-key","version": 1}
ConnectorSearchPagedQueryResponse
PagedQueryResult with results containing an array of Connector.
limitInt | The maximum number of Connectors returned. |
offsetInt | The offset of the Connectors returned. |
countInt | The number of Connectors returned. |
totalInt | The total number of Connectors matching the query. |
resultsArray of Connector | Connectors matching the query. |
Get Connector
Get Connector by ID
manage_project:{projectKey}manage_connectors:{projectKey}view_connectors:{projectKey}regionString | Region in which the Project is hosted. |
idString |
|
application/jsoncurl --get https://connect.{region}.commercetools.com/connectors/{id} -i \--header "Authorization: Bearer ${BEARER_TOKEN}"
{"id": "5ab3edcd-9d23-4934-8f48-256805253119","key": "connector-key","version": 1,"name": "Connector's name","description": "Connector's description","integrationTypes": ["other"],"creator": {"title": "Mr","name": "John Doe","email": "john.doe@example.com","company": "commercetools","noOfContributors": 200},"repository": {"url": "git@github.com:commercetools/connect-application-kit.git","tag": "0.0.0"},"configurations": [{"applicationName": "app-1","applicationType": "service","standardConfiguration": [{"key": "CONFIG_KEY","description": "config key description","required": true,"default": null}],"securedConfiguration": [{"key": "CONFIG_SECRET_KEY","description": "config secret description","required": true}]}],"private": false,"supportedRegions": ["us-central1.gcp", "europe-west1.gcp"],"certified": true}
Get Connector by Key
manage_project:{projectKey}manage_connectors:{projectKey}view_connectors:{projectKey}regionString | Region in which the Project is hosted. |
keyString |
|
application/jsoncurl --get https://connect.{region}.commercetools.com/connectors/key={key} -i \--header "Authorization: Bearer ${BEARER_TOKEN}"
{"id": "5ab3edcd-9d23-4934-8f48-256805253119","key": "connector-key","version": 1,"name": "Connector's name","description": "Connector's description","integrationTypes": ["other"],"creator": {"title": "Mr","name": "John Doe","email": "john.doe@example.com","company": "commercetools","noOfContributors": 200},"repository": {"url": "git@github.com:commercetools/connect-application-kit.git","tag": "0.0.0"},"configurations": [{"applicationName": "app-1","applicationType": "service","standardConfiguration": [{"key": "CONFIG_KEY","description": "config key description","required": true,"default": null}],"securedConfiguration": [{"key": "CONFIG_SECRET_KEY","description": "config secret description","required": true}]}],"private": false,"supportedRegions": ["us-central1.gcp", "europe-west1.gcp"],"certified": true}
Search Connectors
Retrieves all available Connectors.
manage_project:{projectKey}manage_connectors:{projectKey}view_connectors:{projectKey}regionString | Region in which the Project is hosted. |
textString | The text to search for. For example, as supplied by a user through a search input field. Search results are based on matches found in the |
limitInt | Number of results requested. Default: 20 |
offsetInt | Number of elements skipped. Default: 0 |
sortString | The parameter can be passed multiple times. |
privateBoolean | If |
creator.companyString | Company name of a creator to search for. |
idString |
The parameter can be passed multiple times. |
keyString |
The parameter can be passed multiple times. |
integrationTypes | Only search for Connectors with a specified The parameter can be passed multiple times. |
application/jsoncurl --get https://connect.{region}.commercetools.com/connectors/search -i \--header "Authorization: Bearer ${BEARER_TOKEN}"
{"offset": 0,"limit": 20,"total": 1,"count": 1,"results": [{"id": "5ab3edcd-9d23-4934-8f48-256805253119","key": "connector-key","version": 1,"name": "Connector's name","description": "Connector's description","integrationTypes": ["other"],"creator": {"title": "Mr","name": "John Doe","email": "john.doe@example.com","company": "commercetools","noOfContributors": 200},"repository": {"url": "git@github.com:commercetools/connect-application-kit.git","tag": "0.0.0"},"configurations": [{"applicationName": "app-1","applicationType": "service","standardConfiguration": [{"key": "CONFIG_KEY","description": "config key description","required": true,"default": null}],"securedConfiguration": [{"key": "CONFIG_SECRET_KEY","description": "config secret description","required": true}]}],"private": false,"supportedRegions": ["us-central1.gcp", "europe-west1.gcp"],"certified": true}]}