List all Dynamic Coupons
API Endpoint
> /api/coupon/dynamic/list
Code
import axios from "axios";
let response = await axios.request({
headers: {
Authorization: "Bearer abcdefghijklmnopqrstuvwxyz0123456789",
},
url: "https://your-website.com/api/coupon/dynamic/list",
method: "POST",
});
console.log(response.data);
Response
[
{Array all dynamic coupons}
]