Discount Code API

Topic summary

A developer is trying to retrieve discount code data filtered by customer ID and determine whether specific codes have been used. They’ve consulted the Shopify Admin REST API documentation for the price rule discount codes endpoint but report it’s not working as expected. The post includes a reference link to the relevant API documentation (though the URL appears corrupted in the original message). They’re seeking assistance from the community on how to properly implement this functionality.

Summarized with AI on November 20. AI used: claude-sonnet-4-5-20250929.

Hi. Everyone

I have question So i have case, i need get all data discount code using filter by customer id. And i wanna see the discount code is have been used or not

I see at the documentation at the shopify API documentation but it’s not effect, anyone can help.
src documentation : https://shopify.dev/docs/api/admin-rest/2023-04/resources/discountcode#get-price-rules-price-rule-id-discount-codes