I need to get a customer payment method id to create an api request to subscription api, how can I get and how can I test this then. I’ve tried this query but it doesn’t return any data after I create a test order.
query {
customer(id: "gid://shopify/Customer/XXXXXXXXXX") {
email
firstName
lastName
paymentMethods(first: 5) {
edges {
cursor
node {
id
}
}
}
}
}