How do I get paypal transaction ID from transactions API?

Solved
Highlighted
Shopify Partner
9 0 1

Hello, everyone, I want to get paypal transaction ID from transactions API.

I only get below response, I didn't get paypal transaction ID.

Also tried order API and fulfillments API too, but didn't see paypal transaction ID as well.

Thanks for any suggestions!

 

P.S. I used paypal sandbox account to purchase items on my test shop and fullfill the order manually to test the flow.

 

"id": 1500630974517,
"order_id": 1241888849973,
"kind": "sale",
"gateway": "manual",
"status": "success",
"message": "Marked the manual payment as received",
"created_at": "2019-08-30T00:13:42-04:00",
"test": false,
"authorization": null,
"location_id": null,
"user_id": null,
"parent_id": null,
"processed_at": "2019-08-30T00:13:42-04:00",
"device_id": null,
"receipt": {},
"error_code": null,
"source_name": "3018965",
"amount": "431.55",
"currency": "USD",
"admin_graphql_api_id": "gid://shopify/OrderTransaction/1500630974517"
1 Like
Highlighted
Shopify Staff
Shopify Staff
619 48 94

This is an accepted solution.

Hi @Cloudyman,

 

Payment gateway details would be included in the receipt, if any additional details were sent. The example you gave is for a "marked as paid" transaction, thus there is no gateway info sent. This field would be populated on transactions that directly ping the gateway's servers, such as a live transaction.

 

Cheers,

2 Likes
Highlighted
Shopify Partner
9 0 1

Hi, @Busfox 

 

Thanks for your reply!

0 Likes
Shopify Partner
1 0 0

Hello @Busfox ,

please can you explain what do you mean by "directly ping the gateway's servers, such as a live transaction" 

I want to get the Paypal transaction ID, when I create an order on my store I don't find the Paypal transaction-id.

 thank you

0 Likes
Highlighted
New Member
1 0 0

@Samide007 wrote:

Hello @Busfox ,

please can you explain what do you mean by "directly ping the gateway's servers, such as a live transaction" 

I want to get the Paypal transaction ID, when I create an order on my store I don't find the Paypal transaction-id.

 thank you


Have you solved the problem? I had the same problem

0 Likes