Is it possible to create fake payouts for dev testing? My app will be getting payouts from graphql api but can’t seem to create fake payout data to test my queries.
Hi Ben,
Which query do you need to test?
mutation {
bulkOperationRunQuery(
query: “”"
{
shopifyPaymentsAccount {
payouts(query: “created_at:>{$startDate} created_at:<{$endDate}”) {
edges {
node {
id
issuedAt
net {
amount
currencyCode
}
status
transactionType
businessEntity {
id
companyName
displayName
primary
}
}
}
}
}
}
“”"
) {
bulkOperation {
id
status
url
}
userErrors {
field
message
}
}
}
Hi again,
From digging into this, it looks like you cannot create demo payouts in Shopify. Payouts are generated automatically by Shopify Payments based on real transactions processed through the store. For testing purposes, you can use a development store to simulate other aspects of Shopify Payments, but payouts themselves cannot be manually created or simulated.
If your store has no payouts, the query above will return an empty result set. You can still test the mutation to ensure it executes without errors.
Alright no worries, cheers.