hi i am working on try before you buy orders where payment capture after trial days end. i created tbyb order but now i want to capture payment after trials end the issue i am facing is that i can’t find any graphql api to authorize order. orderCapture api works only with authorize transactions but i am using rest api transaction that works good to authorize order but i want to convert it to grahql but i can’t find any graphql api that make order authorized this is my code of rest api: $response = $shop->api()->rest(
‘POST’,
“/admin/api/2025-04/orders/6515700531484/transactions.json”,
[
‘transaction’ => [
‘order_id’ => $orderId,
‘amount’ => 99.99,
‘currency’ => ‘USD’,
‘kind’ => ‘authorization’,
‘source’ => ‘external’,
]
]
);
how i can use graphql query instead of rest?
Can you share? It will be very helpful for me
Sure