Store adapter — OpenCart¶
The adapter
object contains properties for connecting to the OpenCart API.
Parent object: a store with property "platform" : "opencart"
Required properties¶
The following adapter
properties are required for OpenCart stores.
api_key
¶
Property | api_key |
---|---|
Name | OpenCart API Key |
Data type | string |
Required? | Yes |
url
¶
Property | url |
---|---|
Name | OpenCart Store URL |
Data type | string |
Requirements | Must be a valid URL |
Example | "http://www.example.com" |
Required? | Yes |
Example¶
Example: create a new OpenCart 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 OpenCart Store",
"platform": "opencart",
"adapter": {
"url": "https://www.example.com",
"api_key": "abc123"
}
}
EOF
For details about this request type, see: Create a new store.