connection object¶
A connection object contains the properties that define a DropStream connection.
Connection objects are managed using the /connections endpoint.
connection properties¶
The following are the properties of a connection object.
id¶
| Property | id |
|---|---|
| Data type | integer |
| Description | Unique ID, assigned when the connection object is created |
| Note | In other contexts, "connection_id" refers to this property |
| Example | 12345 |
customer_id¶
| Property | customer_id |
|---|---|
| Data type | integer |
| Description | Unique ID of the customer associated with the connection |
| Example | 23456 |
warehouse_id¶
| Property | warehouse_id |
|---|---|
| Data type | integer |
| Description | Unique ID of the warehouse associated with the connection |
| Example | 34567 |
store_id¶
| Property | store_id |
|---|---|
| Data type | integer |
| Description | Unique ID of the store associated with the connection |
| Example | 45678 |
name¶
| Property | name |
|---|---|
| Data type | string |
| Description | The connection name |
| Example | "My Connection" |
connection_type¶
| Property | connection_type |
|---|---|
| Data type | string |
| Description | The connection type |
| Example | "fulfillment" |
created_at¶
| Property | created_at |
|---|---|
| Data type | dateString |
| Description | Date when the connection was created |
| Example | "2020-08-19T14:57:20.000Z" |
enabled_at¶
| Property | enabled_at |
|---|---|
| Data type | dateString, or null |
| Description | Date when the connection was last enabled, or null if currently disabled |
| More info | |
| Example | "2020-08-19T14:57:20.000Z" |
locations¶
| Property | locations |
|---|---|
| Data type | array of strings |
| Description | Locations associated with this connection |
| Example | [ "location_1", "location_2" ] |
channels¶
| Property | channels |
|---|---|
| Data type | array of channels |
| Example | |
Example connection object¶
{
"id": 4200,
"customer_id": 3775,
"warehouse_id": 5189,
"store_id": 5603,
"name": "My Connection",
"connection_type": "fulfillment",
"created_at": "2021-03-12T16:32:11.000Z",
"enabled_at": null,
"locations": [],
"channels": [
{
"id": 27987,
"enabled_at": null,
"type": "sales_order_return"
},
{
"id": 27988,
"enabled_at": "2020-08-19T14:57:20.000Z",
"type": "sales_order"
},
{
"id": 27989,
"enabled_at": "2020-08-19T14:57:20.000Z",
"type": "shipment"
},
{
"id": 27990,
"enabled_at": "2020-08-19T14:57:20.000Z",
"type": "inventory"
},
{
"id": 27991,
"enabled_at": null,
"type": "catalog"
},
{
"id": 27992,
"enabled_at": null,
"type": "purchase_order"
},
{
"id": 27993,
"enabled_at": null,
"type": "advanced_ship_notice"
}
]
}