Skip to content

Store adapter — 1ShoppingCart

The adapter object contains properties for connecting to the 1ShoppingCart API.

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

Required properties

The following adapter properties are required for 1ShoppingCart stores.

api_key

Propertyapi_key
Name1ShoppingCart API Key
Data typestring
Required?Yes

merchant_id

Propertymerchant_id
NameMerchant ID
Data typestring
Required?Yes

Optional properties

The following adapter properties are optional for 1ShoppingCart stores.

relative_order_import_updated_at_max_in_hours

Propertyrelative_order_import_updated_at_max_in_hours
NameOrder Import Delay
DescriptionIf specified, delay orders imported by this many hours
Data typeinteger
Defaultnull

Example

Example: create a new 1ShoppingCart 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 1ShoppingCart Store",
  "platform": "g1_shopping_cart",
  "adapter": {
    "merchant_id": "abc123",
    "api_key": "abc123",
    "relative_order_import_updated_at_max_in_hours": 2
  }
}
EOF

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