x

Connect V2 API: Payment endpoint returns empty JSON

When requesting from V1 payment endpoint I can see all the payments, but when I try from V2 I just get an empty JSON.

 

Testing Transaction V1 and V2 endpoints return the expected objects. They all use the same permission so why is only V2 payments endpoint failing?

 

BTW I have to retrieve the Customer (Id) directly from the Payment to perform the least calls possible, that's why I want to use Payments V2 (unless there's a way in V1).

944 Views
Message 1 of 3
Report
2 REPLIES 2

Came here for the exact same issue.

 

What is the ideal way to use an entity_id from a webhook to retrieve a transaction that includes both the customer and product?

877 Views
Message 2 of 3
Report
Admin

 

@sliceofbytes

 

I would recommend that you use our 'SearchOrders' endpoint to get all the appropriate information. The 'entity_id' is a 'v2 payment_id' which can be used to get orders.

kellyj
Technical Program Manager: AI
Square Inc
623 Views
Message 3 of 3
Report