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
¶
Property | partner_id |
---|---|
Name | HUB Partner ID |
Data type | string |
Required? | Yes |
password
¶
Property | password |
---|---|
Name | CommerceHub FTP Password |
Data type | string |
Required? | Yes |
retailer
¶
Property | retailer |
---|---|
Name | HUB Retailer ID |
Data type | string |
Required? | Yes |
username
¶
Property | username |
---|---|
Name | CommerceHub FTP Username |
Data type | string |
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.