How to create a dispute in shopify dev store to test out the disputes graphql API?

Shopify Partner
1 0 0

I want to test out the following query, but I don't have any disputes on my dev store. How do I create a dispute in dev store

query {
     shopifyPaymentsAccount {
          disputes {
             edges {
                   node {



Reply 1 (1)

Shopify Staff
28 7 5

Hi Nuula,


Thanks for your post. To create a test dispute in a dev store ensure the Shopify Payments payment gateway is enabled and in test mode, and then when creating a test order use credit card number 4000000000000259 to simulate a disputed transaction.


More information on how to set this up and the various test card numbers is available in the ["Testing orders in development stores"] documentation.


Hope you have a great day,

Jon551 | API Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog