Development discussions around Shopify APIs
Where is this information stored or what values in GraphQL API to retrieve the information shown in the image blow? I stared at the available field but nothing jumped out at me.
transactions {createdAtgatewayidkindpaymentMethodprocessedAtstatustotalUnsettledamount}
Hey @BradKrane
The only place I am aware that shows this info is the receipt field under the OrderTransaction object. I believe this field is deprecate in newer API versions, but you may be able to use receiptJson instead. For ref: https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction
Kevin_A | Solutions Engineer @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
@Kevin_A Thanks for the info. I was able to find another thread about receiptJson GQL tread where yes that data is only available in the unstable branch apparently. https://community.shopify.com/c/Shopify-APIs-SDKs/ordertransaction-documentation-lacks-non-deprecate...
I did find payment_details in https://shopify.dev/docs/admin-api/rest/reference/orders/transactionthat looks to have the info I need from a stable end point so I guess I'll use the REST API to snag this bit of data instead of the GQL API for now.
"payment_details": {
"avs_result_code": "123456",
"credit_card_bin": "M",
"cvv_result_code": "M",
"credit_card_number": "•••• •••• •••• 4242",
"credit_card_company": "Visa"
}
Are you able to use this credit_card_company in Shopify Flow? I'm looking to create a rule for Transactions using a specific Payment Type.
User | RANK |
---|---|
53 | |
11 | |
9 | |
7 | |
4 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023