question

yilipiao avatar image
yilipiao asked anayooleru commented

How do i get last 4 digit of credit card of a payment of an order?


                

                

I am using API to get last 4 digit of credit card of a payment of an order for my accountant.

What API should I use?

I can find it under dashboard, but I can not get it through API.

OrdersREST API
1 comment
10 |2000

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

anayooleru avatar image anayooleru commented ·

Some transactions returns 'cardTransaction' object, while some transactions doesn't. How do I get the last 4 digit credit card of transactions that didn't?

0 Likes 0 ·

1 Answer

David Marginian avatar image
David Marginian Deactivated answered yilipiao commented
/v3/merchants/{
                 {mid}}/payments/{
                 {paymentId}}?expand=cardTransaction

Retrieve the payment and expand on cardTransaction per the above snippet.

https://docs.clover.com/docs/expanding-fields


1 comment
10 |2000

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

yilipiao avatar image yilipiao commented ·

Thank you so much!

0 Likes 0 ·

Welcome to the
Clover Developer Community