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