FlexShopper API
3.0-beta
FlexShopper API
3.0-beta
  • Integration Guides
    • Medusa
    • Payment Plugin
  • Customer
    • Verify User Exists
    • Deeply Verify User Exists
    • Create User
    • Get Users
    • Get User
    • Create Authorization Token
    • Add Payment Method
      • Get LoanPaymentPro Child Key
      • Get Clover PKMS Key
  • Decision
    • Apply for Spending Limit
  • Lease
    • Create Lease
    • Get Transactions
    • Get Lease By ID
    • Get Transaction By ID
    • Sign Lease
    • Finalize Lease
    • Cancel Items
    • Return Items
    • Confirm Shipment
    • Confirm Receipt
  • Page 1
Powered by GitBook
On this page
  • Request
  • Headers
  • Request Body
  • Response
  • Samples
  • Schema

Was this helpful?

Export as PDF
  1. Customer

Create User

Creates a new user

POST /v3/users

This endpoint allows you to create a new user

Request

Headers

Name
Type
Description

Authorization

string

Authorization token

Request Body

Name
Type
Description

firstName

string

The customer's first name.

lastName

string

The customer's last name.

email

string

The customer's e-mail address.

password

string

The customer's password, as entered by the customer.

locale

string

The customer's locale, for rendering in preferred language. Valid values are: "en", "es".

Response

Samples

{
    "data":{
        "userId": "5a319511a86980001d602095",
        "token": "c6681de3-45ab-41a4-9315-0b5ef6481136"
    }
}
{
  "error": {
    "statusCode": 409,
    "code": "UserAlreadyExists",
    "message": "User already exists with email ex@example.com",
    "data": {}
  }
}

If no password is provided, a temporary password is created and an email to reset a password is sent to the customer.

Schema

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

Key
Type
Description

token

String

The temporary token used to access a user's resources; to be used in the Customer-Token header.

userId

String

User's Id

PreviousDeeply Verify User ExistsNextGet Users

Last updated 1 month ago

Was this helpful?