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 requiredThe 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 ProfileClosed 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.
403Called on the secure host, and the secure API is not enabled for your account. Call the standard host, which returns every field except expirationDate, or contact Spinwheel to enable the secure API.

