Payment Node App (1.0.0)

Download OpenAPI specification:Download

Node Application

Auth

Register

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "first_name": "Test",
  • "last_name": "User",
  • "username": "admin123",
  • "email_id": "user@gmail.com",
  • "password": "1234",
  • "role_id": 1,
  • "customer_id": 1
}

Login

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "username": "admin123",
  • "password": "password"
}

Verify

query Parameters
email
string
Example: email=user2@gmail.com
token
string
Example: token=1e40d86504

Responses

Resend Verify

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "email": "user@gmail.com"
}

Update Password

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "old_password": "123456",
  • "new_password": "password"
}

New Token

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "org_id": 2
}

Users

Get Users

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add User

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "first_name": "User",
  • "last_name": "User",
  • "username": "ss",
  • "email_id": "ss@gmail.com",
  • "password": "password",
  • "role_id": 1
}

Get User By Id

Authorizations:
bearerAuth

Responses

Update User

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "first_name": "User",
  • "last_name": "User",
  • "username": "users2",
  • "email_id": "user2@gmail.com",
  • "password": "password"
}

Delete User

Responses

Update Password

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "password": "password"
}

Organisations

Get

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "name": "Demo",
  • "address": "hyd",
  • "email_id": "shop2@gmail.com",
  • "parent_org_id": 1
}

Get By Id

Responses

Update

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "name": "User"
}

Delete

Responses

Transactions

Get List

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add Record

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "customer_name": "Vasu",
  • "customer_id": "23467",
  • "email_id": "",
  • "phone_number": "9078654345",
  • "amount": "100.25",
  • "location_id": 1
}

Get By Id

Authorizations:
bearerAuth

Responses

Update

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "full_name": "User User"
}

Delete

Responses

Update Payment Status

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "transaction_id": "ac50032e04",
  • "payment_id": "pay_MkDgYVPkAyALN7"
}

Refunds

Get List

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add Record

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "customer_name": "fsfds",
  • "customer_id": "23467",
  • "email_id": "test@gmail.com",
  • "phone_number": "9078654345",
  • "amount": "100.25",
  • "location_id": 1,
  • "transaction_id": "8a01793904"
}

Get By Id

Authorizations:
bearerAuth

Responses

Update

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "customer_name": "John 55",
  • "customer_id": "23467",
  • "email_id": "test@gmail.com",
  • "phone_number": "9078654345",
  • "amount": "100.25",
  • "location_id": 1,
  • "transaction_id": "821c600e2a"
}

Delete

Responses

Update Payment Status

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "transaction_id": "821c600e2a",
  • "refund_id": "pay_MkDgYVPkAyALN7"
}

Roles

Get List

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "name": "SUPPORT",
  • "permissions": "[2,3,5]"
}

Get By Id

Authorizations:
bearerAuth

Responses

Delete

Authorizations:
bearerAuth

Responses

Update

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "name": "EDITED",
  • "permissions": "[2,3,5,6]"
}

Locations

Get List

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "name": "CHENNAI"
}

Get By Id

Responses

Update

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "name": "TEST",
  • "customer_id": 1
}

Delete

Responses

User Location Mapping

Get

Authorizations:
bearerAuth
query Parameters
start
integer
Example: start=0
limit
integer
Example: limit=10

Responses

Add

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "user_id": 1,
  • "location_ids": "[1,2]"
}

Get By User Id

Authorizations:
bearerAuth

Responses

Update

Authorizations:
bearerAuth
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "user_id": 1,
  • "location_ids": "[1,2]"
}

Delete

Responses

Get By Login User

Authorizations:
bearerAuth

Responses

Permissions

Get

Authorizations:
bearerAuth

Responses