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
  • Query Parameters
  • Headers
  • Response
  • Samples
  • Schema

Was this helpful?

Export as PDF
  1. Lease

Get Transactions

Returns all vendor's transactions

GET /v3/transactions

Request

Query Parameters

Name
Type
Description

leaseStatus

string

Filter by lease status (signed/pending)

page

string

Page number to retrieve. Max 1000

limit

string

Limit of transactions to retrieve, defaults to 20. Max 1000,

fromDate

string

Start date to retrieve

toDate

string

End date to retrieve

Headers

Name
Type
Description

Authorization

string

Authorization token

Response

Samples

{
  "data": {
    "transactions": [
      {
        "id": "eyJhbGcfasdvczOiJIUzI1NiIsInR5cCI6IkpXVC...",
        "shippingCost": 1.23,
        "createdAt": "2018-03-19T15:51:27.080Z",
        "lease": {
          "id": "eyJhbGcfasdvczOiJIUzI1NiIsInR5cCI6IkpXVC...",
          "status": "signed"
        },
        "items": [
          {
            "description": "iPad Mini",
            "sku": "abc123",
            "brand": "Apple",
            "cost": 100.23,
            "quantity": {
              ordered: 1,
              shipped: 1
            }
          }
        ]
      }
    ],
    {
      "meta": {
      "count": 1,
      "totalPages": 1,
      "page": 1,
      "limit": 20
    }
  }
}

Schema

A successful request returns the HTTP 200 OK status code and a JSON response body that shows all transactions created.

Key
Type
Description

transactions

Array

The list transactions.

transactions.id

Number

Transaction id

transactions.createAt

Date

Transaction creation date

transactions.shippingCost

Number

Total Shipping Cost

transactions.items

Array

The list items.

transactions.items.quantity

Number

Item quantity.

transactions.items.quantityByStatus

Object

Quantity of items grouped by status. Ex. { signed: 1}

transactions.items.cost

Number

Item cost

transactions.items.description

String

Item description

transactions.items.brand

String

Item's brand

meta

Object

Result metadata

meta.count

Number

Amount of transactions

meta.totalPages

Number

Total number of pages

meta.page

Number

Current page

meta.limit

Number

Page size

PreviousCreate LeaseNextGet Lease By ID

Last updated 9 days ago

Was this helpful?