question

wlane avatar image
wlane asked wlane answered

Missing card info in /payments endpoint

Hi,

when I get the response from

curl -X GET https://api.clover.com/v3/merchants/2G***S1/payments?access_token=33*****79


I don't see any of the card details in the response. Amount, notes, timestamp are all fine, but card info are not there.

The transaction was created by me with the virtual terminal.

Any hint? Thanks!

Payments
4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

wlane avatar image wlane commented ·

Here's the response I get


{"elements": [ {"id": "ATRR3SJ9598AY", "order": {"id": "FZ126XSYZMVEY"}, "tender": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/tenders/D47AKWYBWJ3BY", "id": "D47AKWYBWJ3BY"}, "amount": 71200, "taxAmount": 0, "employee": {"id": "FM1G51742YMEJ"}, "createdTime": 1582546383000, "clientCreatedTime": 1582546383000, "modifiedTime": 1582546383000, "offline": false, "result": "SUCCESS", "note": "screen"}, {"id": "DANGXB8WAJPC6", "order": {"id": "EEEPMZX4MVJHM"}, "tender": {"href": "https://www.clover.com/v3/merchants/2GSK3XZ3ESKS1/tenders/D47AKWYBWJ3BY", "id": "D47AKWYBWJ3BY"}, "amount": 599, "taxAmount": 0, "employee": {"id": "FM1G51742YMEJ"}, "createdTime": 1582545754000, "clientCreatedTime": 1582545754000, "modifiedTime": 1582545754000, "offline": false, "result": "SUCCESS", "note": "Cheescake"}], "href": "http://api.clover.com/v3/merchants/2GSK3XZ3ESKS1/payments?limit=100"}
0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ wlane commented ·
0 Likes 0 ·
wlane avatar image wlane Jeffrey Blattman ♦♦ commented ·

Expanding? I sent the request from my terminal with cURL, the result is printed in full, and I copied it above.

0 Likes 0 ·
Show more comments

1 Answer

wlane avatar image
wlane answered

Can't mark a comment as solution, so here it is:


curl -X GET https://api.clover.com/v3/merchants/2G***S1/payments?access_token=33*****79&expand=cardTransaction


10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community