Using ads-js with vtex.local

TypeScript integration

✓ Official SDK
Install
npm install ads-js
Quick start
import Ads_js from 'ads-js';

const client = new Ads_js({ apiKey: "YOUR_API_KEY" });
Get custom prices schema
curl \
  https://vtex.local/_v/custom-prices/session/schema
Get price association by ID
curl \
  https://vtex.local/_v/custom-prices/rules/{priceAssociationId}
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Price-Simulations
At a glance
Language TypeScript
Endpoints7
Base URLhttps://vtex.local
✓ Official