VTEX
List products and create orders in your VTEX commerce platform.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("vtex", "create-brand", {
"Name": "<name>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("VTEX answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "vtex-create-brand",
name: "VTEX: Create new Brand",
description: "Calls VTEX when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("vtex", {
"action": "create-brand",
"Name": "<name>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/vtex/create-brand" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"Name":"<name>"}}'Actions
create-brandin catalog
Create new Brand. Create a new Brand to your catalog
| Input | Type | Description |
|---|---|---|
Namerequired | text | Name |
SiteTitleoptional | text | Site Title |
LinkIdoptional | text | Link ID |
Idoptional | number | Set the brand ID |
Textoptional | text | Text |
MenuHomeoptional | boolean | Menu Home |
Keywordsoptional | text | Similar words |
Activeoptional | boolean | Active |
Scoreoptional | number | Score |
create-productin catalog
Create New Product. Create a new product in your catalog
| Input | Type | Description |
|---|---|---|
Namerequired | text | Name |
Titlerequired | text | Title |
Descriptionrequired | text | Description |
BrandIdrequired | number | Brand ID |
CategoryIdrequired | number | Category ID |
LinkIdoptional | text | Link ID |
RefIdoptional | text | Ref ID |
Idoptional | number | Set the product ID |
IsVisibleoptional | boolean | Is Visible |
DescriptionShortoptional | text | Short Description |
ReleaseDateoptional | text | Release Date |
KeyWordsoptional | text | Similar words |
IsActiveoptional | boolean | Is Active |
TaxCodeoptional | text | Tax Code |
MetaTagDescriptionoptional | text | Metatag description |
ShowWithoutStockoptional | boolean | Show Without Stock |
Scoreoptional | number | Score |
create-skuin catalog
Create New Sku. Create a new SKU to your catalog
| Input | Type | Description |
|---|---|---|
ProductIdrequired | number | ID of the product to be associated with this SKU |
Namerequired | text | Name the variation of the product |
PackagedHeightrequired | number | Package Height |
PackagedLengthrequired | number | Package Length |
PackagedWidthrequired | number | Package Width |
PackagedWeightKgrequired | number | Package Weight (Kg) |
IsActiveoptional | boolean | Is Active |
IsKitoptional | boolean | Is Kit |
Idoptional | number | Set the Sku ID |
create-sku-filein catalog
Create New Sku File. Create a new SKU File to your catalog
| Input | Type | Description |
|---|---|---|
SkuIdrequired | number | Set the Sku ID |
Urlrequired | text | Image Url |
Namerequired | text | Image Name |
IsMainrequired | boolean | Is Main Image |
Labeloptional | text | Image Label |
Textoptional | text | General text of the image |
delete-brandin catalog
Delete Brand. Delete a Brand in your catalog by it's id
| Input | Type | Description |
|---|---|---|
brandIdrequired | number | The Brand ID |
get-brand-by-idin catalog
Get Brand By ID. Find a Brand in your catalog by it's id
| Input | Type | Description |
|---|---|---|
BrandIdrequired | number | The Brand ID |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
get-brand-list
Get Brand List. Find all Brands in your catalog
No input.
get-category-by-id
Get Category. Find a Category in your catalog by it's id
| Input | Type | Description |
|---|---|---|
categoryIdoptional | number | The Category ID |
get-client-by-id
Get Client By ID. Find a Client by Id
| Input | Type | Description |
|---|---|---|
clientIdrequired | number | The Client ID |
get-client-list
Get Client List. Find all Clients
No input.
get-order-by-id
Get Order By ID. Find a Order by Id
| Input | Type | Description |
|---|---|---|
OrderIdrequired | number | The Order ID |
get-order-list
Get Orders List. Find Orders
| Input | Type | Description |
|---|---|---|
fromYearrequired | number | From (Year) |
toYearrequired | text | To (Year) |
fromMonthoptional | text | From (Month) |
toMonthoptional | text | To (Month) |
fromDayoptional | text | From (Day) |
toDayoptional | text | To (Day) |
get-product-by-id
Get Product By ID. Find a product in your catalog by it's id
| Input | Type | Description |
|---|---|---|
productIdrequired | number | The product ID |
get-sku-by-product-id
Get SKU By Product ID. Find a Sku in your catalog by a Product id
| Input | Type | Description |
|---|---|---|
productIdrequired | number | The Product ID |
update-brand
Update Brand. Update a Brand in your catalog
| Input | Type | Description |
|---|---|---|
Idrequired | number | Set the brand ID |
Namerequired | text | Name |
SiteTitlerequired | text | Site Title |
LinkIdrequired | text | Link ID |
Textrequired | text | Text |
MenuHomerequired | boolean | Menu Home |
Keywordsrequired | text | Similar words |
Activerequired | boolean | Active |
Scorerequired | number | Score |
Update-product
Update a Product. Update a product in your catalog
| Input | Type | Description |
|---|---|---|
productIdrequired | number | Set the product ID |
Namerequired | text | Name |
Titlerequired | text | Title |
Descriptionrequired | text | Description |
BrandIdrequired | number | Brand ID |
CategoryIdrequired | number | Category ID |
DepartmentIdrequired | number | DepartmentId |
LinkIdoptional | text | Link ID |
RefIdoptional | text | Ref ID |
BrandNameoptional | text | Brand Name |
IsVisibleoptional | boolean | Is Visible |
DescriptionShortoptional | text | Short Description |
ReleaseDateoptional | text | Release Date |
KeyWordsoptional | text | Similar words |
IsActiveoptional | boolean | Is Active |
TaxCodeoptional | text | Tax Code |
MetaTagDescriptionoptional | text | Metatag description |
ShowWithoutStockoptional | boolean | Show Without Stock |
Scoreoptional | number | Score |
Details
- Id
vtex- Category
- E-commerce
- Tags
- commerce, marketplace, orders, products
- Package
@activepieces/piece-vtex@0.2.4- Tier
- Community