Marpe
1
Hi,
According to the documentation of the draftOrderCompletemutation, it’s possible to specify which payment gateway was used to complete the order.
To do that, I need to provide a paymentGatewayId, but I can’t find any GraphQL query that returns the list of available gateway IDs.
Where are developers supposed to retrieve these paymentGatewayIds?
Thanks!
You can get away without a gateway 
AFAIK, there is no way to directly query for payment gateways, suggested way is to analyse the orders history:
Marpe
3
I can definitely complete the draft order without setting the paymentGatewayId.
However, since the documentation explicitly allows specifying a payment gateway, I would prefer to provide it.
The problem is that even when looking at past orders or checking the related transactions, I can only find the gateway name, not its ID.
So there must be a way to retrieve the paymentGatewayId somehow — otherwise this parameter doesn’t really make sense to exist.
The documentation even lists “Select a specific payment gateway” as one of the intended use cases for this mutation.