Authentication

This endpoint is used to authenticate a user and obtain a token for accessing protected resources.

Before authenticating , ensure you White list your IP before hand using the Whitelist IP Guide

Auth Login

POST /auth/login

The POST request is used to authenticate and login to YoguPay. Credentials are provided to business accounts by YoguPay

Headers

Name
Value

Content-Type

application/json

Token

token

The token to be used above will be obtained from the response (expires after 30minutes requires a refresh)

Body

Name
Type
Description

username

string

User name of the user

password

string

Password of the user

Request and Response Example

{
  "password": "1",
  "username": "user@yogupay.com"
}

The token obtained from the response above will be used to authenticate subsequent pages

Last updated