# FlexShopper API

## 3.0-beta

- [Introduction](https://dev.flexshopper.com/medusa/3.0-beta/readme.md)
- [Medusa](https://dev.flexshopper.com/medusa/3.0-beta/integration-guides/medusa.md): Medusa is a REST API that enables you to authenticate your user, apply for a spending limit, create a lease, sign the lease, and perform other operations on behalf of the user.
- [Payment Plugin](https://dev.flexshopper.com/medusa/3.0-beta/integration-guides/payment-plugin.md): The Payment Plugin is an iframe, embeddable in your own site, that enables the user to sign-up or sign-in, apply for a spending limit, enter payment method(s), submit their First Payment, and sign the
- [Verify User Exists](https://dev.flexshopper.com/medusa/3.0-beta/customer/verify-user-exists.md): Determines if the user already exists or not
- [Deeply Verify User Exists](https://dev.flexshopper.com/medusa/3.0-beta/customer/deeply-verify-user-exists.md): Verify if a user already exists via email, address, or phone number
- [Create User](https://dev.flexshopper.com/medusa/3.0-beta/customer/create-user.md): Create a new user
- [Get Users](https://dev.flexshopper.com/medusa/3.0-beta/customer/get-users.md): Get all users for a given vendor
- [Get User](https://dev.flexshopper.com/medusa/3.0-beta/customer/get-user-info.md): Get logged user details
- [Create Authorization Token](https://dev.flexshopper.com/medusa/3.0-beta/customer/create-authorization-token.md): Generates a temporary token
- [Add Payment Method](https://dev.flexshopper.com/medusa/3.0-beta/customer/add-payment-method.md): Add ACH or debit/credit payment method.
- [Get LoanPaymentPro Child Key](https://dev.flexshopper.com/medusa/3.0-beta/customer/add-payment-method/get-loanpaymentpro-child-key.md): Get a one-time use API key for tokenizing with LPP
- [Get Clover PKMS Key](https://dev.flexshopper.com/medusa/3.0-beta/customer/add-payment-method/get-clover-pkms-key.md): Gets a Clover tokenization key (PKMS key)
- [Get Payment Methods](https://dev.flexshopper.com/medusa/3.0-beta/customer/get-payment-methods.md): Retrieve all payment methods associated with the authenticated customer.
- [Apply for Spending Limit](https://dev.flexshopper.com/medusa/3.0-beta/decision/apply-for-spending-limit.md): Creates a new lease application for an existing user account
- [Create Lease](https://dev.flexshopper.com/medusa/3.0-beta/lease/create-lease.md): Creates a new lease with the provided items for the provided customer.
- [Get Transactions](https://dev.flexshopper.com/medusa/3.0-beta/lease/get-transactions.md): Get transactions for a merchant.
- [Get Lease By ID](https://dev.flexshopper.com/medusa/3.0-beta/lease/get-lease-by-id.md): Returns the details of a lease
- [Get Transaction By ID](https://dev.flexshopper.com/medusa/3.0-beta/lease/get-transaction-by-id.md): Get transaction by Id
- [Sign Lease](https://dev.flexshopper.com/medusa/3.0-beta/lease/sign-lease.md): Signs a lease agreement and makes prepayment if necessary
- [Finalize Lease](https://dev.flexshopper.com/medusa/3.0-beta/lease/finalize-lease.md): Finalize a transaction
- [Cancel Items](https://dev.flexshopper.com/medusa/3.0-beta/lease/cancel-items.md): Cancels an item from a lease
- [Return Items](https://dev.flexshopper.com/medusa/3.0-beta/lease/return-items.md): Cancels an item from a lease
- [Confirm Shipment](https://dev.flexshopper.com/medusa/3.0-beta/lease/confirm-shipment.md): Confirms shipment for item(s) in a lease.
- [Confirm Receipt](https://dev.flexshopper.com/medusa/3.0-beta/lease/confirm-receipt.md): Confirms receipt for item(s) in a lease.
- [Get Agreements](https://dev.flexshopper.com/medusa/3.0-beta/lease/get-agreements.md): Retrieve all agreements associated with the authenticated customer.
- [Collect Payment](https://dev.flexshopper.com/medusa/3.0-beta/lease/collect-payment.md): Collect a payment for an agreement
- [Verify ACH](https://dev.flexshopper.com/medusa/3.0-beta/payment-methods/verify-ach.md): Checks if given ACH info is valid

## 3.0

- [Introduction](https://dev.flexshopper.com/medusa/readme.md)
- [Medusa](https://dev.flexshopper.com/medusa/integration-guides/medusa.md): Medusa is a REST API that enables you to authenticate your user, apply for a spending limit, create a lease, sign the lease, and perform other operations on behalf of the user.
- [Payment Plugin](https://dev.flexshopper.com/medusa/integration-guides/payment-plugin.md): The Payment Plugin is an iframe, embeddable in your own site, that enables the user to sign-up or sign-in, apply for a spending limit, enter payment method(s), submit their First Payment, and sign the
- [Verify User Exists](https://dev.flexshopper.com/medusa/customer/verify-user-exists.md): Determines if the user already exists or not
- [Deeply Verify User Exists](https://dev.flexshopper.com/medusa/customer/deeply-verify-user-exists.md): Verify if a user already exists via email, address, or phone number
- [Create User](https://dev.flexshopper.com/medusa/customer/create-user.md): Create a new user
- [Get Users](https://dev.flexshopper.com/medusa/customer/get-users.md): Get all users for a given vendor
- [Get User](https://dev.flexshopper.com/medusa/customer/get-user-info.md): Get logged user details
- [Create Authorization Token](https://dev.flexshopper.com/medusa/customer/create-authorization-token.md): Generates a temporary token
- [Add Payment Method](https://dev.flexshopper.com/medusa/customer/add-payment-method.md): Add ACH or debit/credit payment method.
- [Get LoanPaymentPro Child Key](https://dev.flexshopper.com/medusa/customer/add-payment-method/get-loanpaymentpro-child-key.md): Get a one-time use API key for tokenizing with LPP
- [Get Clover PKMS Key](https://dev.flexshopper.com/medusa/customer/add-payment-method/get-clover-pkms-key.md): Gets a Clover tokenization key (PKMS key)
- [Get Payment Methods](https://dev.flexshopper.com/medusa/customer/get-payment-methods.md): Retrieve all payment methods associated with the authenticated customer.
- [Apply for Spending Limit](https://dev.flexshopper.com/medusa/decision/apply-for-spending-limit.md): Creates a new lease application for an existing user account
- [Create Lease](https://dev.flexshopper.com/medusa/lease/create-lease.md): Creates a new lease with the provided items for the provided customer.
- [Get Transactions](https://dev.flexshopper.com/medusa/lease/get-transactions.md): Get transactions for a merchant.
- [Get Lease By ID](https://dev.flexshopper.com/medusa/lease/get-lease-by-id.md): Returns the details of a lease
- [Get Transaction By ID](https://dev.flexshopper.com/medusa/lease/get-transaction-by-id.md): Get transaction by Id
- [Sign Lease](https://dev.flexshopper.com/medusa/lease/sign-lease.md): Signs a lease agreement
- [Finalize Lease](https://dev.flexshopper.com/medusa/lease/finalize-lease.md): Finalize a transaction
- [Cancel Items](https://dev.flexshopper.com/medusa/lease/cancel-items.md): Cancels an item from a lease
- [Return Items](https://dev.flexshopper.com/medusa/lease/return-items.md): Cancels an item from a lease
- [Confirm Shipment](https://dev.flexshopper.com/medusa/lease/confirm-shipment.md): Confirms shipment for item(s) in a lease.
- [Confirm Receipt](https://dev.flexshopper.com/medusa/lease/confirm-receipt.md): Confirms receipt for item(s) in a lease.
- [Get Agreements](https://dev.flexshopper.com/medusa/lease/get-agreements.md): Retrieve all agreements associated with the authenticated customer.
- [Collect Payment](https://dev.flexshopper.com/medusa/lease/collect-payment.md): Collect a payment for an agreement
- [Verify ACH](https://dev.flexshopper.com/medusa/payment-methods/verify-ach.md): Checks if given ACH info is valid


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://dev.flexshopper.com/medusa/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
