Skip to content

Store adapter — TradeGecko

The adapter object contains properties for connecting to the TradeGecko API.

Parent object: a store with property "platform" : "trade_gecko"

Required properties

The following adapter properties are required for TradeGecko stores.

privileged_access_token

Propertyprivileged_access_token
NameTradeGecko Privileged Access Token
Data typestring
Required?Yes

Optional properties

The following adapter properties are optional for TradeGecko stores.

location_name

Propertylocation_name
NameInventory Location Name
DescriptionTrack inventory to the specified location
Data typestring
Default"location_1"

stock_location_ids

Propertystock_location_ids
NameImport Stock Locations
DescriptionImport orders only from the specified Stock Locations
Data typearray of strings
Example[ "location_1", "location_2" ]

Example

Example: create a new TradeGecko store
curl -X POST \
    -H "Authorization: Bearer $JWT_TOKEN" \
    -H "Content-Type: application/json" \
    https://api.getdropstream.com/stores \
    -d @- <<EOF
{ "customer_id": "3775",
  "name": "Your TradeGecko Store",
  "platform": "trade_gecko",
  "adapter": {
    "privileged_access_token": "abc123",
    "location_name": "abc123",
    "stock_location_ids": [ "location_1", "location_2" ]
  }
}
EOF

For details about this request type, see: Create a new store.