Store adapter — VTEX¶
The adapter
object contains properties for connecting to the VTEX API.
Parent object: a store with property "platform" : "vtex"
Required properties¶
The following adapter
properties are required for VTEX stores.
account_name
¶
Property | account_name |
---|---|
Name | VTEX Account Name |
Data type | string |
Required? | Yes |
app_key
¶
Property | app_key |
---|---|
Name | VTEX Application Key |
Data type | string |
Required? | Yes |
app_token
¶
Property | app_token |
---|---|
Name | VTEX Application Token |
Data type | string |
Required? | Yes |
Optional properties¶
The following adapter
properties are optional for VTEX stores.
product_identifier
¶
Property | product_identifier |
---|---|
Name | Product Identifier |
Data type | string |
Accepted values |
|
Default | "refId" |
warehouse_name
¶
Property | warehouse_name |
---|---|
Name | Inventory Warehouse Name |
Data type | string |
Example¶
Example: create a new VTEX 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 VTEX Store",
"platform": "vtex",
"adapter": {
"account_name": "abc123",
"app_key": "abc123",
"app_token": "abc123",
"warehouse_name": "abc123",
"product_identifier": "refId"
}
}
EOF
For details about this request type, see: Create a new store.