I am in a bit of a jam here. I am pulling orders from Shopify GraphQL and processing them a bit later. In REST Api on GET to orders.json you can get checkout_id value. Its a checkout associated with the completed order.
I can’t find anything like that in GraphQL Orders (nor anywhere else). Am I doing something wrong?
As you’ve already discovered the checkout id field is not an exposed field when performing order queries in GraphQL. If you don’t mind me asking, what is the checkout id field being used for? Knowing what it’s being used for could help in suggestion of a possible alternative, and also help in any communication I have with internal teams.
thanks a lot for responding Its pretty simple - I need the number thats in checkout ID because our accounting software is pairing payments from bank based on this number. So I need to somehow get the checkout ID that was associated with this order…
Thanks for the quick response. I suspected this might be for reconciliation purposes. Does the accounting software have the authorization code? The authorization code is exposed on the transaction list of an order query in GraphQL.
query {
order(id:"gid://shopify/Order/someordernumber"){
id
transactions{
id
authorizationCode,
status
kind
accountNumber
gateway
amountSet{
shopMoney{
amount
}
}
}
}
}
If the authorization code can’t be used to pair these payments let me know.
Thank you I will check on monday and let you know. authorizationCode is returning a different number so I will have to check with our accounting guys. Thanks a lot for helping out!
Yes, the authorization code will definitely be different. I’ll wait to hear what you confirm from your accounting team before taking this any further. Have a good weekend.
Hi @_JCC , I am new to Shopify app development… I have been trying to get cart value through graphql and create a banner that shows how much they need to purchase to get free shipping order .. can anyone please suggest on how to get the cart value?