question

rickt avatar image
rickt asked bryanvargas answered

Is there way to get expiry month and year when calling the platform API resource "Get a single customer". with cards expanded?

We use "Get a single customer" (https://docs.clover.com/reference/customersgetcustomer) API call to display cards saved in Clover to our customers; however, this call does not appear to return expiry month and year.

Is there a way to retrieve card expiry information from this resource? If not, which call will return card data that includes the expiry date?


Thanks in advance

Customers
10 |2000

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

1 Answer

bryanvargas avatar image
bryanvargas answered

Hello, if you use { {baseUrl}}/v3/merchants/{ {mId}}/customers/{customerId}?expand=cards on a customer who has a saved card on their profile, it will provide you the card expirationsDate (MMYY) in the expanded field:


********

"cards": [

{

"id": "string",

"first6": "string",

"last4": "string",

"firstName": "string",

"lastName": "string",

"expirationDate": "string",

"additionalInfo": {

"default": "string"

},

"cardType": "string",

"token": "string",

"tokenType": "MULTIPAY",

"modifiedTime": 0,

"customer": {

"id": "string"

}

}

],
If you are having issues, please email developer-relations@devrel.clover.com with your developer information for us to troubleshoot.

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