User Management

Retrieve a User

GET
/v1/users

Returns a User object

Authorization

bearerAuth
AuthorizationBearer <token>

Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.

In: header

Query Parameters

userId?string

Spinwheel userId to identify a user (one of userId or extUserId is required).

extUserId?string

A client id registered with Spinwheel on user creation (one of userId or extUserId is required).

liabilityType?string

Value in

  • "STUDENT_LOAN"
  • "CREDIT_CARD"
  • "HOME_LOAN"
  • "AUTO_LOAN"
  • "PERSONAL_LOAN"
  • "MISCELLANEOUS_LIABILITY"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/users?userId=3fef7131-71ae-4204-a8bd-3fc3ad6b4b82&extUserId=ext-user-123"

Response with credit cards

{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "userId": "b26e936c-3a1b-417c-a879-43be436d4ead",    "extUserId": "testuser@gmail.com",    "isBorrower": false,    "isChampion": false,    "createdOn": 1597317116353,    "updatedOn": 1597753517524,    "creditReports": [      {        "id": "fbaa5d3f-e2a3-456e-b727-12f683efb719",        "sourceBureau": "Equifax",        "type": "1_BUREAU.FULL",        "profile": {          "firstName": "CHRISTY",          "middleName": "L",          "lastName": "JENOVAL",          "creditScore": 691,          "model": "VANTAGE_SCORE_3_0",          "dateOfBirth": "1967-06-08",          "ssn": "6112",          "formerNames": [            {              "firstName": "CHRISTINE",              "middleName": "LUCILLE",              "lastName": "GENOVAL"            }          ],          "addresses": [            {              "addressLine1": "305 LINDEN AVE",              "city": "ATLANTA",              "state": "GA",              "zip": "30316",              "residencyType": "CURRENT",              "addressOwnership": "OWN",              "addressSource": "OTHER",              "residencyDurationInMonths": 2,              "reportedDate": "2022-05-04",              "reportedDateWithFormat": {                "value": "2022-05-04",                "format": "YYYY-MM-DD"              },              "firstReportedDateWithFormat": {                "value": "2022-03",                "format": "YYYY-MM"              }            },            {              "addressLine1": "712 MCDOUNGH RD",              "city": "HAMPTON",              "state": "GA",              "zip": "30228",              "residencyType": "PREVIOUS",              "addressOwnership": "RENT",              "addressSource": "AUTOMATED_UPDATE",              "residencyDurationInMonths": 2,              "reportedDate": "2022-03-02",              "reportedDateWithFormat": {                "value": "2022-03-02",                "format": "YYYY-MM-DD"              },              "firstReportedDateWithFormat": {                "value": "2022-01",                "format": "YYYY-MM"              }            },            {              "addressLine1": "PO BOX 30",              "city": "HELEN",              "state": "GA",              "zip": "30545",              "residencyType": "PREVIOUS",              "addressOwnership": "BUY",              "addressSource": "EQUIFAX",              "residencyDurationInMonths": 2,              "reportedDate": "2022-03-27",              "reportedDateWithFormat": {                "value": "2022-03-27",                "format": "YYYY-MM-DD"              },              "firstReportedDateWithFormat": {                "value": "2022-01",                "format": "YYYY-MM"              }            },            {              "addressLine1": "1260 NELMS RD",              "city": "CARNESVILLE",              "state": "GA",              "zip": "30521",              "residencyType": "PREVIOUS",              "residencyDurationInMonths": 2,              "reportedDate": "2022-03-27",              "reportedDateWithFormat": {                "value": "2022-03-27",                "format": "YYYY-MM-DD"              },              "firstReportedDateWithFormat": {                "value": "2022-01",                "format": "YYYY-MM"              }            },            {              "addressLine1": "2732 SENECA ST 1FLRR",              "city": "MARIETTA",              "state": "GA",              "zip": "30062",              "residencyType": "PREVIOUS"            }          ],          "employmentHistory": [            {              "employerName": "Acme Inc",              "startDateWithFormat": {                "value": "2022-05",                "format": "YYYY-MM"              },              "reportedDateWithFormat": {                "value": "2022-05",                "format": "YYYY-MM"              },              "employmentStatus": "CURRENT"            },            {              "position": "Software Engineer",              "startDateWithFormat": {                "value": "2020-05-01",                "format": "YYYY-MM"              },              "employmentStatus": "PREVIOUS"            }          ],          "updatedOn": 1678724487191,          "createdOn": 1678724480988        },        "inquiries": [          {            "inquirerName": "MBGA",            "phoneNumber": "1234567890",            "inquiryDate": "2020-08-13",            "inquirerIndustryCode": "H",            "purposeType": "HARD",            "sourceBureau": "Equifax",            "bureauSubscriberCode": "404HA00354",            "address": {              "addressLine1": "BR. C GIM-REGION TP",              "city": "ROSWELL",              "state": "GA",              "zip": "30076"            }          }        ],        "bankruptcies": [          {            "filedDateWithFormat": {              "value": "2018-07-19",              "format": "YYYY-MM-DD"            },            "dispositionDateWithFormat": {              "value": "2018-10-29",              "format": "YYYY-MM-DD"            },            "verifiedDateWithFormat": {              "value": "2018-11-30",              "format": "YYYY-MM-DD"            },            "reportedDateWithFormat": {              "value": "2024-11-21",              "format": "YYYY-MM-DD"            },            "caseNumber": "1886052",            "type": "INDIVIDUAL",            "filer": "INDIVIDUAL",            "disposition": "DISCHARGED_CH_7",            "priorDisposition": "VOLUNTARY_CH_7",            "liabilityAmount": 5000,            "assetAmount": 1500,            "exemptAmount": 1000,            "court": {              "industryType": "Federal",              "industryCode": "VF",              "bureauSubscriberCode": "180VF00121"            },            "narratives": [              {                "code": "AV",                "description": "Charge"              }            ]          }        ],        "creditScoreDetails": [          {            "reportedDate": "2022-05-06",            "riskBasedPricingPercentage": 40,            "riskBasedPricingMin": 691,            "riskBasedPricingMax": 694,            "creditScore": 691,            "model": "VANTAGE_SCORE_3_0",            "sourceBureau": "Equifax",            "factors": [              {                "description": "Available credit on your open bankcard or revolving accounts is too low",                "code": "39"              },              {                "description": "Total of all balances on bankcard or revolving accounts is too high",                "code": "34"              },              {                "description": "You have too many delinquent or derogatory accounts",                "code": "7"              },              {                "description": "You have too many inquiries on your credit report.",                "code": "85"              }            ]          }        ],        "creditAttributes": [          {            "description": "Number of tradelines",            "value": "24"          },          {            "description": "Average age of open tradelines",            "value": "81"          },          {            "description": "Number of hard inquiries",            "value": "63"          },          {            "description": "Number of payments",            "value": "5"          }        ],        "summary": {          "totalSecuredDebtAmount": 16650.57,          "securedDebtLiabilitiesCount": 5,          "totalUnsecuredDebtAmount": 1663.43,          "unsecuredDebtLiabilitiesCount": 2,          "totalUnsecuredDebtExcludingStudent": 1663.43,          "unsecuredDebtExcludingStudentCount": 2,          "totalUnknownDebtAmount": 11686,          "unknownDebtLiabilitiesCount": 3        },        "reportStatus": {          "status": "SUCCESS"        },        "updatedOn": 1646865863897,        "createdOn": 1646865863897,        "connectionStatus": {          "statusCode": 2001,          "description": "Account created and fetched security questions",          "lastAuthAttemptOn": 1646865870644,          "lastSuccessfulAuthOn": 1646865870644,          "isAuthSuccessful": true,          "isValid": false,          "isSecurityStepPending": true,          "dataStatus": {            "status": "IN_PROGRESS",            "updatedOn": 1646865863897          }        }      }    ],    "profile": {      "firstName": "CHRISTY",      "middleName": "L",      "lastName": "JENOVAL",      "emailAddress": "test.user@abc.com",      "phoneNumber": "+19999999999",      "ssnLastFourDigits": "1234",      "addresses": [        {          "addressLine1": "123 Main St",          "addressLine2": "Unit: 234",          "city": "San Francisco",          "state": "CA",          "zip": "94103"        }      ],      "dob": "2000-01-01",      "creditScore": 691,      "model": "VANTAGE_SCORE_3_0",      "sourceBureau": "Equifax"    },    "creditCardSummary": {      "noOfCreditCards": 1,      "availableCredit": 3000,      "currentOutstandingBalance": 7000,      "updatedOn": 1643917894780,      "creditUtilization": 70    },    "creditCards": [      {        "creditCardId": "7025c075-e92d-46fa-85e5-ac31ca667079",        "displayName": "TD Bank",        "logoUrl": "https://cdn.spinwheel.io/images/logo/ebd6dab9-4558-40c4-8c21-65070a07df5a.png",        "cardProfile": {          "ecoaCode": "I",          "creditCardNumberMasked": "495962******6670",          "accountOriginationDate": "2018-07-04T00:00:00.000Z",          "status": "OPEN",          "accountRating": "1",          "creditLimit": 10000,          "creditUtilization": 70,          "liabilitySubtype": "CreditCard",          "debtType": "UNSECURED",          "closedDateWithFormat": {            "value": "2016-07",            "format": "YYYY-MM"          },          "availableCreditDerived": 3000,          "accountOwnershipType": "INDIVIDUAL",          "termsFrequency": "MONTHLY",          "reviewedInMonths": 25,          "reportedDateWithFormat": {            "value": "2023-02-14",            "format": "YYYY-MM-DD"          },          "lastActivityDateWithFormat": {            "value": "2023-01-14",            "format": "YYYY-MM-DD"          },          "accountType": "REVOLVING",          "consumerDisputeStatus": "NOT_DISPUTED",          "derogatoryDataStatus": "NOT_DEROGATORY",          "collectionStatus": "NOT_IN_COLLECTION",          "chargeOffStatus": "NOT_CHARGED_OFF",          "accountTypeCode": "R",          "limitType": "REGULAR",          "highestAdverseRating": "H",          "highestAdverseRatingDateWithFormat": {            "value": "2022-11",            "format": "YYYY-MM"          },          "mostRecentAdverseRating": "1",          "mostRecentAdverseRatingDateWithFormat": {            "value": "2022-12",            "format": "YYYY-MM"          },          "secondMostRecentAdverseRating": "H",          "secondMostRecentAdverseRatingDateWithFormat": {            "value": "2022-11",            "format": "YYYY-MM"          },          "adverseRatingCount": 4,          "paymentHistory": {            "lastAssessedStatementDate": "2023-01-14",            "details": [              {                "date": "2023-01-14",                "description": "The account is current",                "code": "0"              },              {                "date": "2022-12-14",                "description": "The account has been late for 1 billing cycle",                "code": "1"              },              {                "date": "2022-11-14",                "description": "The account is in foreclosure",                "code": "H"              },              {                "date": "2022-10-14",                "description": "The account is in collections",                "code": "G"              },              {                "date": "2022-09-14",                "description": "The account was voluntarily surrendered",                "code": "J"              },              {                "date": "2022-08-14",                "description": "No data available for this period",                "code": "D"              }            ]          }        },        "balanceDetails": {          "outstandingBalance": 7000,          "updatedOn": 1597753517524        },        "statementSummary": {          "statementBalance": 3194,          "minimumPaymentAmount": 101,          "dueDate": "2021-09-08T00:00:00.000Z",          "lastPaymentAmount": 400,          "lastPaymentDateWithFormat": {            "value": "2021-08-21",            "format": "YYYY-MM-DD"          },          "statementDateWithFormat": {            "value": "2021-08-08",            "format": "YYYY-MM-DD"          },          "overduePeriod": "NOT_OVERDUE",          "amountPastDue": 700,          "refreshedFields": {            "lastPaymentDate": {              "value": "2021-08-21",              "format": "YYYY-MM-DD",              "updatedOn": 1643917894780            },            "dueDay": {              "value": "08",              "format": "DD",              "updatedOn": 1643917894780            },            "lastPaymentAmount": {              "value": 400,              "updatedOn": 1643917894780            }          }        },        "aprs": [          {            "rate": 19.99,            "type": "PURCHASE",            "updatedOn": 1597753517524,            "source": "REAL_TIME"          },          {            "rate": 31.24,            "type": "CASH_ADVANCE",            "applicableBalance": 88,            "expirationDate": "2021-10-31",            "updatedOn": 1597753517524,            "source": "DERIVED"          }        ],        "creditor": {          "originalName": "TD BANK",          "industryType": "SalesFinancing",          "industryCode": "FF",          "phoneNumber": "8663968254",          "bureauSubscriberCode": "401BB00573",          "address": {            "addressLine1": "C/O P.O. BOX 965036",            "city": "ORLANDO",            "state": "FL",            "zip": "32896",            "zipExtension": "5036"          }        },        "cardBrand": {          "cardName": "TD Cash Credit Card",          "cardArtUrl": "https://cdn.spinwheel.io/images/logo/a91b73e2c5d84f1e9a06b28d4c7f3510.png",          "updatedOn": 1757001600000        },        "capabilities": {          "data": {            "realtimeBalance": {              "availability": "SUPPORTED"            },            "statementSummary": {              "availability": "SUPPORTED"            },            "annualPercentageRate": {              "availability": "SUPPORTED"            },            "cardBrand": {              "availability": "SUPPORTED"            }          },          "payments": {            "billPayment": {              "availability": "SUPPORTED"            }          }        },        "createdOn": 1597317116353,        "updatedOn": 1597753517524      }    ]  }}

Retrieve extended card profile POST

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](https://docs.spinwheel.io/reference/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.

Update an Auto Loan PATCH

This API updates user records with accurate auto loan account numbers.