A Connector is a production-ready integration with Composable Commerce.
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 true, only Composable Commerce Projects specified in privateProjects can access the Connector. |
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 true, the Connector is certified. |
documentationUrlString | URL to the documentation of the Connector. |
ConnectorReference
idString | Unique identifier of the referenced Connector. |
versionInt | Version of the referenced Connector. |
keyString | User-defined unique identifier of the referenced Connector. |
stagedBoolean | If Default: true, a previewable ConnectorStaged must be referenced in id or key instead of the published Connector. The isPreviewable field of the ConnectorStaged must be true to reference a previewable ConnectorStaged.false |
{
"key": "connector-key",
"version": 1
}ConnectorSearchPagedQueryResponse
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}idString | id of the Connector |
regionString | Region in which the Project is hosted. |
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}keyString | key of the Connector |
regionString | Region in which the Project is hosted. |
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 name and description fields of a Connector. |
limitInt | Number of results requested. Default: 20Minimum: 0Maximum: 500 |
offsetInt | Number of elements skipped. Default: 0Maximum: 10000 |
sortString | The parameter can be passed multiple times. |
privateBoolean | If true then only Connectors assigned to your Project are retrieved. If false then all available Connectors are retrieved. |
creator.companyString | Company name of a creator to search for. |
idString | id of a Connector to search for.The parameter can be passed multiple times. |
keyString | key of a Connector to search for.The parameter can be passed multiple times. |
integrationTypes | Only search for Connectors with a specified integrationType.The parameter can be passed multiple times. |
ConnectorSearchPagedQueryResponse
asapplication/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
}
]
}