GraphQL orderCreate with discount code doesn't count a use

Hi all,

I am using orderCreate to create order with discount applied

It works without problem. but i found that the discount being created thru orderCreate is a free text string and cannot linked with the discount created on shopify admin. This somehow doesn’t fit my use case.

For example, assume i created a discount code “ABC123” on shopify and limit it to one “use” per user. Then i create the order with this discount code using the orderCreate API, i found that it didn’t count as a “use”.

Any ideas? thanks for your help.

O. i found that there is a time delay. after a while, the discount is counted as used.

Glad you figured this out Kit!

1 Like