Bag filter not working

Hi @Chandrahas , as you can see the below code, if we are passing any bag_status, that filter is not working and we are getting all the orders,
we supposed to get refunded order/returned order.bags_statuses = "refund_initiated,refund_done,refund_failed,return_completed,refund_retry,refund_acknowledged "
platform_refund_listing = await platform_client.order.getOrders(
bag_status=bags_statuses,
customer_id=request_body[“customer_id”],
page_no=request_body[“page_no”],
page_size=request_body[“page_size”],
**platform_extra_params
)

Hello Alok,

For the getOrders() method in the FDK, we utilize the orders-listing API. In this API, the values for bagStatus can be one of the following. The bag filter should function correctly if any of these values are used.

Alok, could you please verify by selecting any one of these values, ensuring that the same status is present in orders, and then let me know if it filters correctly or not?

{
    1: "placed",
    5: "listing_error",
    6: "out_for_delivery",
    7: "delivery_done",
    8: "cancelled_customer",
    9: "return_initiated",
    10: "return_accepted",
    11: "return_rejected",
    12: "bag_picked",
    15: "returned_to_store",
    16: "cancelled_fynd",
    18: "product_not_available",
    19: "bag_not_bought",
    20: "bag_in_mint_condition",
    21: "bag_not_in_mint_condition",
    22: "return_rejected_by_store",
    23: "bag_not_handed_over_to_dg",
    24: "handed_over_to_dg",
    25: "bag_rescheduled",
    26: "dp_assigned",
    27: "moved_to_hub",
    28: "bag_available",
    29: "rejected_by_customer",
    31: "store_reassigned",
    32: "dp_reassigned",
    33: "delivery_slot_updated",
    34: "payment_mode_updated",
    35: "in_transit",
    36: "dead_stock",
    38: "return_dp_assigned",
    39: "return_bag_picked_by_dp",
    43: "web_store_rescheduled",
    44: "dp_not_assigned",
    45: "bag_confirmed",
    46: "bag_packed",
    47: "cancelled_at_dp",
    48: "cancelled_failed_at_dp",
    49: "store_reassigned_failed",
    50: "return_rejected_by_dp",
    51: "return_bag_out_for_delivery",
    52: "return_bag_delivered",
    53: "return_to_warehouse",
    54: "return_dp_not_assigned",
    55: "bag_not_packed",
    56: "return_bag_not_delivered",
    58: "bag_not_confirmed",
    59: "bag_picked_by_dg",
    60: "deadstock",
    61: "return_completed",
    62: "refund_initiated",
    63: "refund_completed",
    64: "refund_failed",
    65: "return_to_origin",
    66: "refund_approved",
    67: "fluid_state",
    68: "bag_lost",
    69: "deadstock_defective",
    70: "out_for_pickup",
    71: "return_bag_in_transit",
    72: "return_bag_lost",
    73: "return_bag_picked",
    74: "return_not_accepted",
    75: "return_request_cancelled",
    76: "rto_bag_delivered",
    77: "rto_in_transit",
    78: "rto_bag_accepted",
    79: "bag_verified",
    80: "bag_not_verified",
    81: "bag_not_picked",
    87: "payment_failed",
    89: "pending",
    91: "bag_invoiced",
    92: "hold",
    93: "unhold",
    95: "handed_over_to_customer",
    96: "assigning_dp",
    97: "delivery_attempt_failed",
    98: "assigning_return_dp",
    99: "return_cancelled_at_dp",
    100: "return_dp_out_for_pickup",
    101: "return_cancelled_failed_at_dp",
    102: "rto_initiated",
    103: "rto_bag_out_for_delivery",
    104: "return_assigning_dp",
    105: "return_bag_packed",
    106: "return_bag_not_picked",
    107: "refund_pending_for_approval",
    108: "refund_on_hold",
    109: "refund_retry",
    110: "arrived_at_store",
    111: "refund_acknowledged",
    112: "awaiting_payment",
    113: "cancellation_requested",
    114: "cancellation_rejected",
    115: "awaiting_payment_confirmation",
    116: "ready_for_dp_assignment",
    117: "credit_note_generated",
    118: "return_pre_qc",
    119: "return_request_rejected_by_operation",
    120: "qc_pass",
    121: "qc_fail",
    122: "repriced_refund_requested",
    123: "repriced_refund_initiated",
    124: "repriced_refund_acknowledged",
    125: "repriced_refund_completed",
    126: "repriced_refund_failed",
    127: "refund_requested",
    128: "repriced_refund_retry",
    129: "duplicate_payment_refund_requested",
    130: "duplicate_payment_refund_completed",
    131: "duplicate_payment_refund_initiated",
    132: "duplicate_payment_refund_failed",
    133: "duplicate_payment_refund_retry",
    134: "duplicate_payment_refund_acknowledged",
    135: "cancelled_seller",
    136: "return_pre_qc",
    137: "refund_pending",
    138: "manual_refund",
    139: "return_request_rejected_by_operation",
    140: "credit_note_generated",
    141: "refund_without_return",
    142: "cancelled_operations",
    143: "delivery_sla_breached",
    144: "partial_dsr",
}