Development discussions around Shopify APIs
Hi,
any idea of the API of the PayPal transaction number. I would like to pull this number with every payment together with the order number in my ERP system.
Hey @schuetti,
Transaction data can be retrieved by querying the transaction object on orders.
This requires an extra call when using the REST API (look for field authorization
in the response):
GET /admin/api/2021-01/orders/{order_id}/transactions.json
Or can be done in a single call when using GraphQL:
{
orders(first: 10) {
edges {
node {
id
name
transactions(first: 5) {
id
gateway
authorizationCode
}
}
}
}
}
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
User | RANK |
---|---|
11 | |
6 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022