Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gift Card creation uses same value for initial_value & balance #1106

Open
dmequus opened this issue Nov 9, 2024 · 1 comment
Open

Gift Card creation uses same value for initial_value & balance #1106

dmequus opened this issue Nov 9, 2024 · 1 comment

Comments

@dmequus
Copy link

dmequus commented Nov 9, 2024

Hi,

I can see that this may not be a 'normal' issue as creating a gift card would in most cases logically want the two values to match. At the moment the CreateAsync is ignoring anything you put in the balance field an populating both fields from the initial_value.

I'm actually importing cards into shopify from a legacy system so I need to be able to update the two values independently.

Any chance this can be changed?

If not in the short term, I'll either just pull in the outstanding value or look at importing with GraphQL.

Thanks.

@dmequus
Copy link
Author

dmequus commented Nov 9, 2024

Reading a bit more, this may just be a Shopify 'way things are done'.

Looking at the graphQL docs, they only show an initial_value field for create, no balance field at all, and then it looks like you need to do a transaction adjustment to reduce the balance if needed.

Be nice to do it in one step, but if this is the way, it's the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant