Skip to content

Store adapter — CommerceHub

The adapter object contains properties for connecting to the CommerceHub API.

Parent object: a store with property "platform" : "commerce_hub"

Required properties

The following adapter properties are required for CommerceHub stores.

partner_id

Propertypartner_id
NameHUB Partner ID
Data typestring
Required?Yes

password

Propertypassword
NameCommerceHub FTP Password
Data typestring
Required?Yes

retailer

Propertyretailer
NameHUB Retailer ID
Data typestring
Required?Yes

username

Propertyusername
NameCommerceHub FTP Username
Data typestring
Required?Yes

Example

Example: create a new CommerceHub 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 CommerceHub Store",
  "platform": "commerce_hub",
  "adapter": {
    "username": "abc123",
    "password": "abc123",
    "retailer": "abc123",
    "partner_id": "abc123"
  }
}
EOF

For details about this request type, see: Create a new store.