We Finance Documentation

Estimated reading: 3 minutes 271 views

Documentation

Introduction

Welcome to the documentation for We Finance. This comprehensive guide will provide developers with the necessary information to integrate and utilize the API effectively. Whether you are a seasoned developer or new to We Finance, this documentation will help you understand the features, functionality, and best practices to make the most of the API.

Getting Started

Before diving into the details of We Finance, it’s important to familiarize yourself with the prerequisites and authentication process. This section will guide you through the necessary steps to set up your environment and obtain the required credentials to access the API.

Authentication

To ensure secure and authorized access to We Finance API, we employ an authentication mechanism based on access tokens. This section provides an overview of how to obtain and use access tokens to authenticate your requests.

Access Tokens

Access tokens allow your app to access the We Finance API. Almost all We Finance API endpoints require an access token of some kind, so each time you access an endpoint, your request may require one.

To acquire an access token:
– Go to Settings/Security/Access Tokens
– Click on “Generate Access Token


We Finance API

Guide

To facilitate a seamless integration experience, we have prepared step-by-step guides to help you integrate We Finance APIs into your applications or systems. These guides will walk you through the process, provide code snippets, examples, and highlight best practices to ensure a successful integration.

Product API

This API is responsible for creating We Finance virtual product in order to continue the purchase process in We Finance.

Before you start:

  • Your merchant should be in live mode
  • An access token for We Finance APIs should be acquired
Creating virtual product

Endpoint:

curl -i -X POST "https://credipaybackend.epsilonfinder.com/v1/products/create"

Request Body:

{
    "name": "first product",
    "price": 1000,
    "description": "this is a description",
    "imgUrl": "https://#.com"
}

On Success:

{
    "data": {
        "productId": 1
    }
    "success": true
}

You can provide the access token in:

  1. request body as “accessToken”
  2. request header as “Authorization”
  3. request query as “accessToken”

Now, after creating the virtual product you will need to request another API in order to redirect to We Finance website using the product id that has been returned from the previous API

Redirect to We Finance website

Endpoint:

curl -i -X GET "https://credipaybackend.epsilonfinder.com/web/products/:productId"

By requesting this API with the provided product id, you will be redirected to the We Finance website to continue the product purchase process.

briefcase 1
Elements

James Bond knackered cup of char show off show off pick your

color palette
Content

Elementor elements, short codes contains in this section.

newspaper
Layouts

Display documentation page layout variations.

file
Footnotes

Footnote is an additional piece of information printed at the bottom of

coding
Code Syntax Highlight

We used Prism JS in the Code widget. Prism is a lightweight,

android
Getting Started

Welcome to docbuzz ! Get familiar with the Stripe products and explore their

management
Theme Options

Set It And Forget It. Theme Options Are Global Settings That Affect

lock
FAQs

Frequently asked questions and answers.

Share this Doc

We Finance Documentation

Or copy link

CONTENTS