#duongtk-invoiveitems
1 messages · Page 1 of 1 (latest)
hi! that's not the format
not sure how you'd do it in postman but it should look like
discounts: [
{
coupon:"couponID"
}
]
for example
im using data['discounts[]coupon'] = couponId in code but im still got that issues 🥲
but idk why sometime i got 200, sometimes i get 400 response code with about postman params
can help me correctly param with above example?
do you have a request ID req_xxx for one of the cases where it failed? and for a case where it didn't? So I can look at the difference
i just have invoiceitemid once 200 response
ii_1L01J34IC2YoE5MAF7zkowVj
can u do something with this ?
yep
so sure, the problem is in the case where it doesn't work you're missing a level since it's just discounts:{coupon:"couponID"} instead of the correct discounts:[{coupon:"couponID"}]
you must be doing something different in POSTMAN between the two requests, I'm not sure, I never use it
yah i think it can be postman cache then the result in 2 cases are the same