FlexShopper API
3.0-preview
FlexShopper API
3.0-preview
  • 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
Powered by GitBook
On this page
  • Request
  • Path Parameters
  • Headers
  • Response
  • Samples
  • Schema

Was this helpful?

Export as PDF
  1. Customer

Create Authorization Token

Creates an expiring customer authorization token.

GET /v3/users/:userId/authorize

Request

Path Parameters

Name
Type
Description

userId

string

User's Id

Headers

Name
Type
Description

x-consumer-custom-id

string

Consumer data with the format "channel:vendorId"

Response

Samples

{
  "data": {
    "token": "\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI1YTk..."
  }
}
{
  "error": {
    "statusCode": 404,
    "code": "InvalidMerchantId",
    "message": "Invalid merchant id",
    "data": {
        "merchantId": "xxxxxx"
    }
  }
}
{
  "error": {
    "statusCode": 400,
    "code": "UserAlreadyExists",
    "message": "User already exists with email ex@example.com",
    "data": {}
  }
}

Schema

A successful response has the HTTP 200 OK status code and a JSON response body that shows the customer token ready to be used.

Key
Type
Description

token

String

The temporary Token ready to be used; should be set to the Customer-Token header in subsequent API requests.

PreviousGet UserNextAdd Payment Method

Last updated 9 days ago

Was this helpful?