Skip to content

Store adapter — WooCommerce

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

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

Required properties

The following adapter properties are required for WooCommerce stores.

password

Propertypassword
NameWooCommerce Password
Data typestring
Required?Yes

url

Propertyurl
NameWooCommerce Store URL
Data typestring
Requirementsmust be valid
Example"http://www.example.com"
Required?Yes

username

Propertyusername
NameWooCommerce Username
Data typestring
Required?Yes

Optional properties

The following adapter properties are optional for WooCommerce stores.

order_import_status

Propertyorder_import_status
NameOrder Import Status
Data typestring
Default"processing"

Example

Example: create a new WooCommerce 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 WooCommerce Store",
  "platform": "woo_commerce",
  "adapter": {
    "url": "https://www.example.com",
    "username": "abc123",
    "password": "abc123",
    "order_import_status": "your_custom_status"
  }
}
EOF

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