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
¶
Property | password |
---|---|
Name | WooCommerce Password |
Data type | string |
Required? | Yes |
url
¶
Property | url |
---|---|
Name | WooCommerce Store URL |
Data type | string |
Requirements | must be valid |
Example | "http://www.example.com" |
Required? | Yes |
username
¶
Property | username |
---|---|
Name | WooCommerce Username |
Data type | string |
Required? | Yes |
Optional properties¶
The following adapter
properties are optional for WooCommerce stores.
order_import_status
¶
Property | order_import_status |
---|---|
Name | Order Import Status |
Data type | string |
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.