III-PAYOUT FUNDS

CREATE A NEW FUNDS

POST https://usdc.nonstopay.net/api/payout/funds/add

Add a new fund

Headers

Name
Value

Content-Type

application/json

API-KEY

0d8d8e89a6cdcd (Replace by your API key)

Body

Name
Type
Description

amount

float

Amount of funds

blockchain

string

polygon or etherum

crypto

string

currency of your funds (USDC or USDT)

tx_hash

string

Unique alphanumeric identifier assigned to your transaction on the blockchain

merchant_data (optional)

string or json

After successful or canceled payment. we send it to you through the callback url. eg :{txId : qktr12eqzg, status : sfrt}

Response

Our service will return a JSON object.

if you receive an errorCode other than 0, there is an error

Otherwise, we will provide you with the fund identifier "fund_id"

The details of this error are specified by errorMessage

{
  "fund_id" : XXX,
  "errorCode": 0,
  "success": true
}

GET HISTORY OF FUNDS

GET https://usdc.nonstopay.net/api/payout/funds/get-history

Returns the history of funds with their details

Headers

Name
Value

Content-Type

application/json

API-KEY

0d8d8e89a6cdcd (Replace by your API key)

Body

Name
Type
Description

status

string

● Blank to display all statuses

● fund:pending : for pending funds

● fund:success: for success funds

● fund:failed: for failed funds

from

date

start date filter (2023-06-01)

to

date

end date filter (2023-06-19)

order

string

● ASC : ascending order by date

● DESC : descending order with respect to dates

page

2

Each page contains a maximum of 50 records

Response

Our service will return a JSON object.

{
  "errorCode": 0,
  "status": "SUCCESS",
  "from": null,
  "to": null,
  "page": 1,
  "order": "ASC",
  "list": [
    {
      "id": "19",
      "create_date": "2024-06-12 11:49:53",
      "blockchain": "Ethereum",
      "amount": "1,000 usdc",
      "status": "fund:success",
      "balance": "906.17 EUR",
      "merchant_data": null
    },
    {
      "id": "20",
      "create_date": "2024-06-12 12:22:08",
      "blockchain": "Polygon",
      "amount": "2,000 usdc",
      "status": "fund:success",
      "balance": "1,474.67 EUR",
      "merchant_data": null
    },
    {
      "id": "21",
      "create_date": "2024-06-12 12:50:15",
      "blockchain": "Polygon",
      "amount": "3,000 usdc",
      "status": "fund:success",
      "balance": "2,208.18 EUR",
      "merchant_data": null
    },
    {
      "id": "27",
      "create_date": "2024-06-27 08:39:17",
      "blockchain": "Polygon",
      "amount": "1 USDC",
      "status": "fund:success",
      "balance": "0.74 ",
      "merchant_data": null
    },
    {
      "id": "28",
      "create_date": "2024-06-27 08:45:24",
      "blockchain": "Polygon",
      "amount": "1 USDC",
      "status": "fund:success",
      "balance": "0.74 ",
      "merchant_data": null
    },
    {
      "id": "29",
      "create_date": "2024-06-27 13:00:04",
      "blockchain": "Polygon",
      "amount": "5 USDC",
      "status": "fund:success",
      "balance": "4.18 ",
      "merchant_data": null
    },
    {
      "id": "30",
      "create_date": "2024-06-27 13:09:21",
      "blockchain": "Polygon",
      "amount": "5 USDC",
      "status": "fund:success",
      "balance": "4.18 ",
      "merchant_data": null
    },
    {
      "id": "31",
      "create_date": "2024-06-27 13:21:38",
      "blockchain": "Polygon",
      "amount": "5 USDC",
      "status": "fund:success",
      "balance": "4.18 ",
      "merchant_data": null
    },
    {
      "id": "32",
      "create_date": "2024-06-27 13:27:18",
      "blockchain": "Polygon",
      "amount": "5 USDC",
      "status": "fund:success",
      "balance": "4.18 ",
      "merchant_data": null
    },
    {
      "id": "33",
      "create_date": "2024-06-27 13:31:45",
      "blockchain": "Polygon",
      "amount": "5 USDC",
      "status": "fund:success",
      "balance": "4.18 ",
      "merchant_data": null
    }
  ],
  "total": "10"
}

GET FUNDS DETAIL

GET https://usdc.nonstopay.net/api/payout/funds/get-detail

Return the detail of funds by passing his id parameter

Headers

Name
Value

Content-Type

application/json

API-KEY

0d8d8e89a6cdcd (Replace by your API key)

Body

Name
Type
Description

id

number

Id of the funds

Response

{
  "errorCode": 0,
  "merchant_id": "xxx",
  "id": "23",
  "data": {
    "id": "23",
    "create_date": "2024-06-14 15:11:44",
    "blockchain": "Polygon",
    "amount": "1 usdc",
    "status": "fund:pending",
    "balance": ""
  }
}

Last updated