get customer sms subscribe state in shopify liquid

Hi

I need to fetch SMS subscribed state on the storefront, but i could not get this info on the customer object?

i tried below code, none worked,

{% case customer.sms_subscription_status %}
{% when ‘SUBSCRIBED’ %}

You are currently subscribed to SMS marketing messages.

{% when 'PENDING' %}

Your SMS subscription is pending confirmation.

{% when 'REDACTED' %}

Your SMS subscription information has been redacted.

{% when 'UNSUBSCRIBED' %}

You have unsubscribed from SMS marketing messages.

{% when 'NOT_SUBSCRIBED' %}

You are not subscribed to SMS marketing messages.

{% else %}

SMS subscription status not available.

{% endcase %}

Hello @Deeraj16

I feel customer.sms_subscription_status is not available in Liquid. Using tags or a custom backend call is the only reliable way to show this info on the storefront.