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
¶
Property | api_key |
---|---|
Name | 1ShoppingCart API Key |
Data type | string |
Required? | Yes |
merchant_id
¶
Property | merchant_id |
---|---|
Name | Merchant ID |
Data type | string |
Required? | Yes |
Optional properties¶
The following adapter
properties are optional for 1ShoppingCart stores.
relative_order_import_updated_at_max_in_hours
¶
Property | relative_order_import_updated_at_max_in_hours |
---|---|
Name | Order Import Delay |
Description | If specified, delay orders imported by this many hours |
Data type | integer |
Default | null |
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.