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
  • Standard host: returns all fields except expirationDate.
    • Production: https://api.spinwheel.io
    • Sandbox: https://sandbox-api.spinwheel.io
🚧

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 in creditCardIds is closed. No action needed: remove the card from your UI.
Path Params
string
required
Body Params
creditCardIds
array of strings

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.

creditCardIds
Responses

403

Called 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.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json