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 all coupons
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/rnb/pvt/coupon
Get Price by SKU ID
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/price-sheet/{skuId}
Get coupon by coupon code
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/rnb/pvt/coupon/{couponCode}
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Promotions-
At a glance
Language TypeScript
Endpoints31
Base URLhttps://vtex.local
✓ Official