Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

nuula
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 {
                      id
                   }
              }
        }
     }
}

 

 

Reply 1 (1)

jon551
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 Shopify.dev or the Shopify Web Design and Development Blog