Automatically issue digital gift card post purchase of a certain size of shoe

Gift note is not available in Liquid https://shopify.dev/docs/api/liquid/objects/gift_card

Kinda Admin-only field.

And looks like this API does not allow to add a “message” field which would’ve been shown automatically…

If you supply code parameter as part of your action input JSON, same way I’ve suggested in this post then you can use condition like this:

{% if gift_card.last_four_characters == "sure" %}
  

    ...
  

{% endif %}

Another (probably a better one) option is to supply a template_suffix to these gift cards in JSON, like so:

{
  "input": {
    "initialValue": "{{lineItemsForeachitem.variant.price}}",
    "customerId": "{{order.customer.id}}",
    "note": "Not Sure variant purchase compensation for order {{order.name}}",
    "code": "{{ lineItemsForeachitem.id | split:"/" | last }}sure",
    "templateSuffix": "not-sure"
  }
}

And use condition like:

{% if gift_card.template_suffix == "not-sure" %}
  

    ...
  

{% endif %}