FlexShopper API
3.0-legacy
FlexShopper API
3.0-legacy
  • Getting Started
  • Our Platforms
    • FlexPay Payment Platform
    • FlexShopper Backend API
  • API Reference
    • Get Started
      • API Requests
      • API Responses
      • Error Codes
    • User Management
      • Create User
      • Get Users
      • Get User
      • Verify User Exists
      • Deeply Verify User Exists
      • Get LoanPaymentPro Child Key
      • Add Payment Method
    • Customer Authentication
      • Request Passcode
      • Login Customer
    • Customer Application
      • Initiate Application
      • Get Verification Questions
      • Verify Answers
      • Validate Routing Number
    • Lease Management
      • Create Lease
      • Get Lease By ID
      • Sign Lease
      • Checkout
    • Purchase Transactions
      • Get Transactions
      • Get Transaction By ID
      • Cancel Items
      • Return Items
      • Confirm Shipment
      • Confirm Receipt
    • Products
      • Get Products
    • Settings
  • Change Log
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. API Reference
  2. User Management

Get User

Retrieve details for the currently logged user.

GET https://apis.sandbox.flexshopper.com/v3/users/me

Returns user's details

Headers

Name
Type
Description

customer-token

string

Customer's authentication token

Authorization

string

Authorization token

{
  "data": {
    "userId": "1234-asdf-4321-fdsa",
    "firstName": "John",
    "lastName": "Doe",
    "createdAt": "2018-03-19T15:51:27.080Z",
    "transactions": [
      {
        "id": "asdf-1234-fdsa-4321",
        "createdAt": "2018-12-21"
      }
    ],
    "decision": {
      "approved": true,
      "status": "approved",
      "spendingLimit": 1300,
      "availableBalance": 1200,
      "availableWeeklySpending": 120,
      "createdAt": "2018-03-19T15:51:27.080Z"
    },
    "verificationStatus": "succeeded"
  }
}

Response Parameters

A successful request returns the HTTP 200 OK status code and a JSON response body that shows user details.

Key

Type

Description

userId

Number

Transaction id

firstName

String

User's first name

lastName

String

Users's last name

createdAt

Date

Users creation date

decision

Number

Total Shipping Cost

decision.approved

Boolean

Determines if the customer was approved or not [TO BE DEPRECATED]

decision.status

String

Determines the Application status. The possible values are: approved, denied, pending error

decision.spendingLimit

Number

The spending limit approved

decision.availableBalance

Number

Available balance to spend

decision.availableWeeklySpending

String

The available amount to spend in a weekly basis

decision.createdAt

String

Decision's creation date

verificationStatus

String

Verification status the possible status are: pending, failed, succeeded

transactions

Array

List of transactions for current user

transactions.id

String

Transaction's Id

transactions.createdAt

Date

Transaction's creation date

PreviousGet UsersNextVerify User Exists

Last updated 10 months ago

Was this helpful?