Hi there.
Is there a way to check My discount code’s status is Expired or Active using API?
(ex: ‘czxloikasnjfpois’ status is Active. ‘asdasdassdasdsa’ status is Expired)
Thank you.
Hi there.
Is there a way to check My discount code’s status is Expired or Active using API?
(ex: ‘czxloikasnjfpois’ status is Active. ‘asdasdassdasdsa’ status is Expired)
Thank you.
Hi @IngEoGeoBuk ![]()
You should be able to check the the status of your discount code using the codeDiscountNodes query with a fragment on the DiscountCode union type. It should look something like the below:
{
codeDiscountNodes (first:10){
nodes {
id
codeDiscount {
...DiscountCodes
}
}
}
}
fragment DiscountCodes on DiscountCode {
... on DiscountCodeApp {
status
}
... on DiscountCodeBasic{
status
}
... on DiscountCodeBxgy{
status
}
... on DiscountCodeFreeShipping{
status
}
}
Alternatively, you can filter the codeDiscountNodes query by the status (active or expired):
{
codeDiscountNodes (first:10, query:"status:active"){
nodes {
id
}
}
}
Hope that helps!
thx. i will do this!
Yes, many e-commerce platforms offer APIs that allow you to check the status of discount codes, including whether they are expired or active. You would typically use endpoints provided by the platform’s API to query the status of a specific discount code. If you want to know further about the SASSA status check appeal, you can visit us for more information.