Store adapter — Magento¶
The adapter
object contains properties for connecting to the Magento API.
Parent object: a store with property "platform" : "magento"
Required properties¶
The following adapter
properties are required for Magento stores.
api_key
¶
Property | api_key |
---|---|
Name | Magento API Key |
Data type | string |
Required? | Yes |
store_url
¶
Property | store_url |
---|---|
Name | Magento Store URL |
Data type | string |
Requirements | must be valid |
Example | "http://mystore.com" |
Required? | Yes |
user_name
¶
Property | user_name |
---|---|
Name | Magento Web Service User Name |
Data type | string |
Required? | Yes |
Optional properties¶
The following adapter
properties are optional for Magento stores.
store_view_code
¶
Property | store_view_code |
---|---|
Name | Store View Code |
Description | For multi-store installations. Only orders from the given store will be imported |
Data type | string |
Example¶
Example: create a new Magento 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 Magento Store",
"platform": "magento",
"adapter": {
"api_key": "abc123",
"store_url": "http://example.com",
"user_name": "abc123",
"store_view_code": "abc123"
}
}
EOF
For details about this request type, see: Create a new store.