Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to add a transaction for a gift card?

How to add a transaction for a gift card?

GkPayments
Shopify Partner
11 0 1

 

{
    "transaction": {
        "kind": "sale",
        "status": "success",
        "amount": 10,
        "gateway": "gift_card",
        "gift_card_id": 644042064163,
        "gift_card_last_characters": "jqtd",
        "source": "external",
        "currency": "INR",
        "receipt": {
            "gift_card_id": 644042064163,
            "gift_card_last_characters": "jqtd"
        }
    }
}

 

This is the body for the request.

 

{
    "errors": {
        "gift_card_id": [
            "can't be blank"
        ]
    }
}

 

Getting this error in response.
Tried sending the gift_card_id as a string, in an array, naming it as just "id".

 

Reply 1 (1)

shaun49995
Shopify Partner
5 0 0

any solution to this yet?