Get User

Retrieve details for the currently logged user.

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

Returns user's details

Headers

NameTypeDescription

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

Last updated