Retrieve extended card profile
Returns the data you need to display and transact on a connected user's credit cards: card brand name, card art and, on the secure host, the expiration date.
This endpoint is synchronous. You get one request and one response, with nothing to poll and no webhook.
Hosts
The request is the same on both hosts. The host you call decides which fields come back.
- Secure host: returns all fields, including
expirationDate.- Production:
https://secure-api.spinwheel.io - Sandbox:
https://secure-sandbox-api.spinwheel.io
- Production:
- Standard host: returns all fields except
expirationDate.- Production:
https://api.spinwheel.io - Sandbox:
https://sandbox-api.spinwheel.io
- Production:
🚧 Secure API access required
The secure host works only if the secure API is enabled for your account. Contact your Spinwheel representative to turn it on.
Response behavior
Only open cards are returned. Closed accounts are left out of the response, so you don't need to filter them yourself. The one exception: if you name a closed card in creditCardIds, it comes back with status CREDIT_CARD_ACCOUNT_CLOSED.
📘 Card counts may differ from the Debt Profile
Closed cards are left out, so expect this endpoint to return fewer entries than the Debt Profile shows for the same user.
Check for each field, not for the status. A card can have status SUCCESS and still have no expirationDate. On the standard host, no card ever includes one. Check whether the field is present before you use it.
Statuses that need action
USER_INPUT_REQUIRED: Spinwheel needs the card number or the expiration date from the user. Collect it and send it with Credit Card Profile Update, which is available on the secure host only.CREDIT_CARD_ACCOUNT_CLOSED: The card you named increditCardIdsis closed. No action needed: remove the card from your UI.
Authorization
bearerAuth Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.
In: header
Path Parameters
Request Body
application/json
The cards to retrieve data for, as returned by the Debt Profile. Omit the field entirely to receive every open card the user holds. An empty array is rejected.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/users/9f2c41d8-3b7a-4e15-9c02-6d8be41f7a33/creditCards/extendedProfile" \ -H "Content-Type: application/json" \ -d '{}'Five cards on the Debt Profile, one of them closed and not named, so four are returned.
{ "status": { "code": 200, "desc": "success" }, "data": { "userId": "9f2c41d8-3b7a-4e15-9c02-6d8be41f7a33", "creditCards": [ { "creditCardId": "7d3f0b64-91ac-4e28-b5d3-8e17c62f490a", "cardBrand": { "cardName": "Chase Freedom Visa Signature", "cardArtUrl": "https://cdn.spinwheel.io/images/logo/a91b73e2c5d84f1e9a06b28d4c7f3510.png", "updatedOn": 1757001600000 }, "expirationDate": { "month": "07", "year": "2027" }, "status": "SUCCESS" }, { "creditCardId": "b52e8f14-06ac-4d93-8e71-1f4a9c2d6b38", "cardBrand": { "cardName": "Citi Double Cash", "cardArtUrl": "https://cdn.spinwheel.io/images/logo/4d18ba6f0e2c47d9b35a871c6e09f2a4.png", "updatedOn": 1756915200000 }, "status": "SUCCESS" }, { "creditCardId": "2a86c503-7f19-4b8e-a604-93d1e75c8b2f", "status": "CREDIT_CARD_NOT_SUPPORTED" }, { "creditCardId": "e07d3195-4b8a-42f6-9c15-83b0e6d7a24c", "status": "USER_INPUT_REQUIRED" } ] }}
