🎉 Yay! Coupon Vault 1.0 is released.

Coupon Vault

GitHubGitHub (opens in a new tab)
  • Introduction
  • Getting Started
  • Installation
  • Usage
  • Static Coupon
    • Create Static Coupon
    • Lisl All Static Coupons
    • Redeem Static Coupon
  • Dynamic Coupon
    • Create Dynamic Coupon
    • Lisl All Dynamic Coupons
    • Redeem Dynamic Coupon
  • Campaign
    • Create a Coupon in a Campaign
    • Create Campaign
    • Delete Campaign
    • List All Campaigns
    • Update Campaign
  • Customers
    • Create Customers
    • Delete Customer
    • List All Customers
    • Update Customers
  • SKUs
    • Create Sku
    • Delete Sku
    • List All Sku
    • Update Sku
  • Validations
    • Validate Count
    • Validate Discount
    • Validate Keys
  • Introduction
  • Getting Started
  • Installation
  • Usage
  • Static Coupon
    • Create Static Coupon
    • Lisl All Static Coupons
    • Redeem Static Coupon
  • Dynamic Coupon
    • Create Dynamic Coupon
    • Lisl All Dynamic Coupons
    • Redeem Dynamic Coupon
  • Campaign
    • Create a Coupon in a Campaign
    • Create Campaign
    • Delete Campaign
    • List All Campaigns
    • Update Campaign
  • Customers
    • Create Customers
    • Delete Customer
    • List All Customers
    • Update Customers
  • SKUs
    • Create Sku
    • Delete Sku
    • List All Sku
    • Update Sku
  • Validations
    • Validate Count
    • Validate Discount
    • Validate Keys

On This Page

  • API Endpoint
  • Code
  • Response
Question? Give us feedback → (opens in a new tab)Edit this page
SKUs
Delete Sku

Delete a SKU

API Endpoint

> /api/skus/delete

Code

import axios from "axios";
let response = await axios.request({
    url: "https://CouponVault.sidd065.repl.co/api/skus/delete",
    method: "POST",
    headers: {
        "Content-Type": "application/json",
    },
    data: JSON.stringify({
        skuId: "123",
    }),
});
console.log(response.data);

Response

{
  "message": "SKU deleted successfully",
  "success": true,
  "time": 1678544674222
}
Create SkuList All Sku

2023 © Coupon Vault