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 Pricing Configuration
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/pricing/config
List price tables
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/pricing/tables
Get Pricing v2 Status
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/pricing/migration
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Pricing-API
At a glance
Language TypeScript
Endpoints14
Base URLhttps://vtex.local
✓ Official