Store adapter — Yahoo¶
The adapter object contains properties for connecting to the Yahoo API.
Parent object: a store with property "platform" : "yahoo_merchant_solutions"
Required properties¶
The following adapter properties are required for Yahoo stores.
access_token¶
| Property | access_token |
|---|---|
| Name | Yahoo API Access Token |
| Data type | string |
| Requirements | Must be a valid token starting with 1.0_ |
| Example | "1.0_xxxxxx" |
| Required? | Yes |
store_id¶
| Property | store_id |
|---|---|
| Name | Yahoo Store ID |
| Data type | string |
| Requirements | Must be a valid Store ID beginning with yhst- |
| Example | "yhst-xxxxxx" |
| Required? | Yes |
Optional properties¶
The following adapter properties are optional for Yahoo stores.
import_orders_after_order_id¶
| Property | import_orders_after_order_id |
|---|---|
| Name | Starting Order ID |
| Description | If specified, only orders with IDs subsequent to this ID are imported |
| Data type | string |
| Default | "1" |
| Example | "12345" |
look_back_days¶
| Property | look_back_days |
|---|---|
| Name | Order Look Back (Days) |
| Description | Look back this number of days for orders to import |
| Data type | integer |
| Default | 0 |
| Example | 1 |
Example¶
Example: create a new Yahoo 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 Yahoo Store",
"platform": "yahoo_merchant_solutions",
"adapter": {
"store_id": "yhst-abc123",
"access_token": "1.0_abc123",
"import_orders_after_order_id": "12345",
"look_back_days": "42"
}
}
EOF
For details about this request type, see: Create a new store.
