Channel

Version 1.0

The Connection Entity plays a pivotal role in our system, serving as a bridge that enables seamless integration with external platforms such as Shopify and Amazon. It encompasses essential details like Connection Name, Type, Authentication Credentials, and URLs. Connections are instrumental in fostering smooth data exchange, allowing our platform to interact seamlessly with a variety of e-commerce systems. This capability enhances flexibility and expands our global reach.


Connection Entity

  • Name
    id
    Type
    string
    Required
    Description

    Every connection is assigned a unique identifier - an unsigned 64-bit integer known as the Connection ID. This specific number is exclusive and distinct across the entire Qooly platform, ensuring unparalleled uniqueness for each connection.

  • Name
    connector_id
    Type
    foreignId
    Required
    Description

    This serves as a unique, distinct identifier for the connector associated with the connection. It references the Connector ID in Qooly's system.

  • Name
    status
    Type
    varchar(16)
    Default: DRAFT
    Description

    This property indicates the status of the connection.

  • Name
    code
    Type
    varchar(64)
    Description

    This property indicates the code of the connection.

  • Name
    name
    Type
    varchar(255)
    Required
    Description

    This property indicates the name of the connection.

  • Name
    auth
    Type
    varchar(255)
    Description

    This property indicates the authentication details for the connection.

  • Name
    config
    Type
    json
    Description

    This property stores configuration details for the connection in JSON format.

The Connection resource

JSON
{
  "id": "123456789",
  "connector_id": "987654321",
  "status": "DRAFT",
  "code": "CONN123",
  "name": "Sample Connection",
  "auth": "BearerToken123",
  "config": {
    "property1": "value1",
    "property2": "value2"
  }
}

Create a single connection

This endpoint allows you to create a single connection.

Required Fields

  • Name
    name
    Type
    varchar(255)
    Required
    Description
  • Name
    code
    Type
    varchar(64)
    Required
    Description
  • Name
    status
    Type
    varchar(16)
    Default: DRAFT
    Description
  • Name
    auth
    Type
    varchar(255)
    Description
  • Name
    config
    Type
    json
    Description

Examples

Create a single connection

POST
/v1/connections
curl --request POST \
  --url https://api.qooly.io/v1/connections \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Sample Connection",
    "code": "CONN123",
    "status": "DRAFT",
    "auth": "BearerToken123",
    "config": {
      "property1": "value1",
      "property2": "value2"
    }
  }'

Retrieve all connections

This endpoint allows you to retrieve all connections.

Examples

Retrieve all connections

GET
/v1/connections
curl --request GET \
  --url https://api.qooly.io/v1/connections

Retrieve a single connection

This endpoint allows you to retrieve a single connection.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Retrieve a single connection

GET
/v1/connections/987654321
curl --request GET \
  --url https://api.qooly.io/v1/connections/987654321

Update a single connection

This endpoint allows you to update a single connection.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Update a single connection

PATCH
/v1/connections/987654321
curl --request PATCH \
  --url https://api.qooly.io/v1/connections/987654321 \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "New Connection Name",
    "auth": "UpdatedBearerToken"
  }'

Delete a single connection

This endpoint allows you to delete a single connection.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Delete a single connection

DELETE
/v1/connections/987654321
curl --request DELETE \
  --url https://api.qooly.io/v1/connections/987654321