Skip to content

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

Propertyclient_id
NameClient ID
Data typestring
Required?Yes

client_secret

Propertyclient_secret
NameClient Secret
Data typestring
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.