Store adapter — Cratejoy¶
The adapter
object contains properties for connecting to the Cratejoy API.
Parent object: a store with property "platform" : "crate_joy"
Required properties¶
The following adapter
properties are required for Cratejoy stores.
client_id
¶
Property | client_id |
---|---|
Name | Client ID |
Data type | string |
Required? | Yes |
client_secret
¶
Property | client_secret |
---|---|
Name | Client Secret |
Data type | string |
Required? | Yes |
Example¶
Example: create a new Cratejoy 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 Cratejoy Store",
"platform": "crate_joy",
"adapter": {
"client_id": "abc123",
"client_secret": "abc123"
}
}
EOF
For details about this request type, see: Create a new store.