Create Invoice

POST /invoice/create

Create a new invoice specifying currency, amount, expiration time, and other relevant parameters.

Headers

Name
Value

Content-Type

application/json

X-API-KEY

<token>

Body

Name
Type
Description

currency*

string

allowed_currencies*

list[ string ]

List of Currencies

amount*

string

Amount of invoice like: 200 USD 0.015 BNB

expires_time*

number

Expiration time of invoice in minutes: 30-1440

label*

string

Label of invoice

postback_url

string

Destination URL for sending post

success_url

string

URL for User after successful payment

fail_url

string

URL for User after failed payment

Response

{
    "id": 0,
    "uuid": "string",
    "currency": "string",
    "tx_hash": "string",
    "address": "string",
    "amount": 0,
    "amount_usd": 0,
    "confirmations": 0,
    "created_at": "2019-08-24T14:15:22Z",
    "expires_at": "2019-08-24T14:15:22Z",
    "is_expired": true,
    "is_paid": true,
    "label": "string",
    "postback_url": "http://example.com",
    "success_url": "http://example.com",
    "fail_url": "http://example.com",
    "url": "http://example.com"
}

Example

curl -X POST "https://api.nord-pay.com/invoice/create" \
     -H "Content-Type: application/json" \
     -H "X-API-KEY: YOUR_API_KEY" \
     -d '{
       "currency": "USDTBEP20",
       "amount": "200 USD",
       "expires_time": 1,
       "label": "Order #123",
       "postback_url": "https://example.com/postback",
       "success_url": "https://example.com/success",
       "fail_url": "http://example.com"
     }'

Last updated