Store adapter — Ecwid¶
The adapter
object contains properties for connecting to the Ecwid API.
Parent object: a store with property "platform" : "ecwid"
Required properties¶
The following adapter
properties are required for Ecwid stores.
access_token
¶
Property | access_token |
---|---|
Name | Ecwid API Access Token |
Data type | string |
More info | Required if api_version is "3" |
Required? | Yes |
order_api_key
¶
Property | order_api_key |
---|---|
Name | Ecwid API Key |
Data type | string |
More info | Required if api_version is "1" |
Required? | Yes |
store_id
¶
Property | store_id |
---|---|
Name | Ecwid Store ID |
Data type | string |
Required? | Yes |
Optional properties¶
The following adapter
properties are optional for Ecwid stores.
api_version
¶
Property | api_version |
---|---|
Name | API version number |
Data type | string |
Accepted values |
|
Default | "3" |
Example¶
Example: create a new Ecwid 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 Ecwid Store",
"platform": "ecwid",
"adapter": {
"api_version": "3",
"store_id": "abc123",
"access_token": "abc123"
}
}
EOF
For details about this request type, see: Create a new store.