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