Create order via API with Gift Card

iluha
Shopify Partner
4 0 0

Hi All,

i'm looking for a way to create order via API with Gift Cards product in a way that Shopify will not generate a gift card, so i can generate a gift card using my app(to be able then to redeem balance using gift cards adjustments APIs).

 

Thanks for your help

Ilya

Replies 4 (4)

vix
Shopify Staff
540 103 121

Hey @iluha 

 

You would need to create the gift card prior to putting the order though in Shopify if you did not want Shopify to create it. 

To learn more visit the Shopify Help Center or the Community Blog.

iluha
Shopify Partner
4 0 0

Hi @vix ,

thanks for your reply!

Sure, i can create GC before pushing the order through API.

Should i specify somehow the ID of created GC in the create order API call so shopify will not create it again(if i keep the original GC product in the order)?

 

Thanks

Ilya

btwilliams_hr
Visitor
2 0 0

@iluha did you ever get this sorted out? 

 

@vix - I'm trying to create a split-payment order via the Orders API where an order is partially paid for by a gift card that I generated. Is that possible?

iluha
Shopify Partner
4 0 0

Hi @btwilliams_hr ,

my issues seems to be different as it's about to purchase gift card and not use it for the payment.

AFAIK, you have to use gift cards adjustments API to reduce balance of the gift card that was used to partially pay the order.

Hope it helps.

 

Thanks