NONSTOPAY Documentations
DocumentationNonstopay
  • PAYIN API Documentation
    • I-PREREQUISITE
    • II-HOW TO USE THE API
      • Create invoice CREDIT CARD (POST)
      • Create invoice UPI (POST)
      • Create invoice CRYPTO (POST)
      • Get an invoice status (GET)
      • Get invoice infos (GET)
      • Get invoice history (GET)
      • Get crypto payable currencies (GET)
    • III- INTEGRATION
    • IV- Webhook notification (callbacks)
  • PAYIN NFT API Documentation
    • I-PREREQUISITE
    • II-HOW TO USE THE API
      • NFT - Create invoice (POST)
      • NFT - Get an invoice status (GET)
      • NFT - Get invoice infos (GET)
      • NFT - Get invoice history (GET)
    • III- INTEGRATION
    • IV- Webhook notification (callbacks)
  • PAYOUT API Documentation
    • I-PREREQUISITE
    • II- INTEGRATION
    • III-PAYOUT FUNDS
    • IV-PAYOUT PAYMENT
    • V- Webhook notification (callbacks)
  • Guide for Affiliate
    • Registration and login
    • Features
  • Guide to Smart Settlement
    • Registration and login
    • Features
    • Whitelabel
  • Payment Crypto > Payable currencies value list
  • External Links
Powered by GitBook
On this page
  • CREATE A NEW FUNDS
  • GET HISTORY OF FUNDS
  • GET FUNDS DETAIL
  1. PAYOUT API Documentation

III-PAYOUT FUNDS

PreviousII- INTEGRATIONNextIV-PAYOUT PAYMENT

Last updated 2 months ago

CREATE A NEW FUNDS

POST

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
}
{
  "errorCode": 62009,
  "errorMessage": "Invalid TX_HASH"
}

GET HISTORY OF FUNDS

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"
}
{
  "errorCode": 62048,
  "errorMessage": "Invalid order. order must be ASC or DESC"
}

GET FUNDS 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": ""
  }
}
{
  "errorCode": 62025,
  "errorMessage": "invalid id"
}

GET

GET

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