import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const coupon = await client.v1.coupons.updateCoupon('x');console.log(coupon.data);
Updates an existing coupon’s properties such as name, description, and metadata.
PATCH
/
api
/
v1
/
coupons
/
{id}
JavaScript
Copy
Ask AI
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const coupon = await client.v1.coupons.updateCoupon('x');console.log(coupon.data);