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