Nice Paydocs API version 2026-12-01 OpenAPI

Pay-ins

Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.

Create a pay-in

POST /v1/payins

  • Scope: payins:write
  • Idempotency-Key required — use your own id
  • Success: HTTP 201

Body

FieldTypeRequiredNotes
merchant_order_idstringyespattern ^[A-Za-z0-9_.:-]{1,64}$
amountmoney stringyesdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
currencyenumyesone of INR USDT
methodenumyesone of upi bank_transfer usdt_trc20 usdt_bep20 auto
customerobjectyes
customer.refstringyespattern ^[A-Za-z0-9_.:-]{1,64}$
customer.namestringat most 100 characters
customer.phonestringpattern ^\+?[0-9]{6,15}$
customer.emailstringpattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$; at most 120 characters
customer.ipIPv4 address or IPv6 address
return_urlURLat most 2048 characters
expires_inintegermin 60; max 86400
channelenumone of desk gateway upi qr instant qr_lite qr_2 bank
descriptionstringat most 200 characters
metadatamapdefault {}

Example request

HTTP
POST /v1/payins HTTP/1.1
Host: api.mynicepanel.com
NP-Key-Id: np_test_kid_…
NP-Timestamp: 1794900000
NP-Nonce: <16 random bytes, base64url>
NP-Algorithm: hmac-sha256
NP-Signature: <base64>
Idempotency-Key: your-own-id
Content-Type: application/json

{
  "merchant_order_id": "merchant-order-id-1",
  "amount": "10000.00",
  "currency": "INR",
  "method": "upi",
  "customer": {
    "ref": "ref-1"
  }
}

The five NP-… headers are the request's signature: how to make them.

Response — the Payin object

FieldTypeNotes
idstring
object"payin"
livemodeboolean
merchant_order_idstring | null
amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
amount_receivedmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
currencyenumone of INR USDT
statusenumone of pending processing succeeded failed expired cancelled
lateboolean
methodenumone of upi bank_transfer usdt_trc20 usdt_bep20 auto
railstring
checkout_urlstring | null
instructionsobject
instructions.typeenumone of redirect upi_qr bank_details crypto_address simulated none
transfersarray of object
transfers[].tx_hashstring
transfers[].log_indexinteger
transfers[].amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
transfers[].statusstring
transfers[].block_timetimestamp
transfers[].from_addressstring
feemoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
net_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
reversed_attimestamp or nullmay be null
reversed_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
customerobject
customer.refstring | null
referencestring | null
descriptionstring | null
payerobject or nullmay be null
payer.maskedstring
durationsobject
durations.seconds_to_receiveinteger or nullmay be null
expires_attimestamp
created_attimestamp
metadatamap
importedboolean
legacy_idstring | null
Example response
JSON
{
  "id": "pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
  "object": "payin",
  "livemode": true,
  "merchant_order_id": "merchant_order_id",
  "amount": "10000.00",
  "amount_received": "10000.00",
  "currency": "INR",
  "status": "pending",
  "late": true,
  "method": "upi",
  "rail": "rail",
  "checkout_url": "checkout_url",
  "instructions": {
    "type": "redirect"
  },
  "fee": "10000.00",
  "net_amount": "10000.00",
  "reversed_at": "2026-11-23T10:00:00.000Z",
  "reversed_amount": "10000.00",
  "customer": {
    "ref": "ref"
  },
  "reference": "reference",
  "description": "description",
  "payer": {
    "masked": "masked"
  },
  "expires_at": "2026-11-23T10:00:00.000Z",
  "created_at": "2026-11-23T10:00:00.000Z",
  "metadata": {},
  "imported": true,
  "legacy_id": "legacy_id"
}

List pay-ins

GET /v1/payins

  • Scope: payins:read
  • Success: HTTP 200

Query

FieldTypeNotes
limitintegermin 1; max 100; default 20
starting_afterstringat most 40 characters
ending_beforestringat most 40 characters
merchant_order_idstringpattern ^[A-Za-z0-9_.:-]{1,64}$
statusenumone of pending processing succeeded failed expired cancelled
methodenumone of upi bank_transfer usdt_trc20 usdt_bep20 auto
customer_refstringpattern ^[A-Za-z0-9_.:-]{1,64}$
referencestringat most 128 characters
currencyenumone of INR USDT
created_fromtimestamppattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
created_totimestamppattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
amount_minmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
amount_maxmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
legacy_idstringat most 64 characters
importedenumone of true false both; default "both"

Example request

HTTP
GET /v1/payins HTTP/1.1
Host: api.mynicepanel.com
NP-Key-Id: np_test_kid_…
NP-Timestamp: 1794900000
NP-Nonce: <16 random bytes, base64url>
NP-Algorithm: hmac-sha256
NP-Signature: <base64>

The five NP-… headers are the request's signature: how to make them.

Response — a list of Payin objects

FieldTypeNotes
object"list"
dataarray of object
data[].idstring
data[].object"payin"
data[].livemodeboolean
data[].merchant_order_idstring | null
data[].amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
data[].amount_receivedmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
data[].currencyenumone of INR USDT
data[].statusenumone of pending processing succeeded failed expired cancelled
data[].lateboolean
data[].methodenumone of upi bank_transfer usdt_trc20 usdt_bep20 auto
data[].railstring
data[].checkout_urlstring | null
data[].instructionsobject
data[].instructions.typeenumone of redirect upi_qr bank_details crypto_address simulated none
data[].transfersarray of object
data[].transfers[].tx_hashstring
data[].transfers[].log_indexinteger
data[].transfers[].amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
data[].transfers[].statusstring
data[].transfers[].block_timetimestamp
data[].transfers[].from_addressstring
data[].feemoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
data[].net_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
data[].reversed_attimestamp or nullmay be null
data[].reversed_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
data[].customerobject
data[].customer.refstring | null
data[].referencestring | null
data[].descriptionstring | null
data[].payerobject or nullmay be null
data[].payer.maskedstring
data[].durationsobject
data[].durations.seconds_to_receiveinteger or nullmay be null
data[].expires_attimestamp
data[].created_attimestamp
data[].metadatamap
data[].importedboolean
data[].legacy_idstring | null
has_moreboolean
Example response
JSON
{
  "object": "list",
  "data": [
    {
      "id": "pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
      "object": "payin",
      "livemode": true,
      "merchant_order_id": "merchant_order_id",
      "amount": "10000.00",
      "amount_received": "10000.00",
      "currency": "INR",
      "status": "pending",
      "late": true,
      "method": "upi",
      "rail": "rail",
      "checkout_url": "checkout_url",
      "instructions": {
        "type": "redirect"
      },
      "fee": "10000.00",
      "net_amount": "10000.00",
      "reversed_at": "2026-11-23T10:00:00.000Z",
      "reversed_amount": "10000.00",
      "customer": {
        "ref": "ref"
      },
      "reference": "reference",
      "description": "description",
      "payer": {
        "masked": "masked"
      },
      "expires_at": "2026-11-23T10:00:00.000Z",
      "created_at": "2026-11-23T10:00:00.000Z",
      "metadata": {},
      "imported": true,
      "legacy_id": "legacy_id"
    }
  ],
  "has_more": true
}

Retrieve a pay-in

GET /v1/payins/{id}

  • Scope: payins:read
  • Success: HTTP 200

Path

FieldTypeRequiredNotes
idstringyes

Example request

HTTP
GET /v1/payins/pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3 HTTP/1.1
Host: api.mynicepanel.com
NP-Key-Id: np_test_kid_…
NP-Timestamp: 1794900000
NP-Nonce: <16 random bytes, base64url>
NP-Algorithm: hmac-sha256
NP-Signature: <base64>

The five NP-… headers are the request's signature: how to make them.

Response — the Payin object

FieldTypeNotes
idstring
object"payin"
livemodeboolean
merchant_order_idstring | null
amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
amount_receivedmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
currencyenumone of INR USDT
statusenumone of pending processing succeeded failed expired cancelled
lateboolean
methodenumone of upi bank_transfer usdt_trc20 usdt_bep20 auto
railstring
checkout_urlstring | null
instructionsobject
instructions.typeenumone of redirect upi_qr bank_details crypto_address simulated none
transfersarray of object
transfers[].tx_hashstring
transfers[].log_indexinteger
transfers[].amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
transfers[].statusstring
transfers[].block_timetimestamp
transfers[].from_addressstring
feemoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
net_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
reversed_attimestamp or nullmay be null
reversed_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
customerobject
customer.refstring | null
referencestring | null
descriptionstring | null
payerobject or nullmay be null
payer.maskedstring
durationsobject
durations.seconds_to_receiveinteger or nullmay be null
expires_attimestamp
created_attimestamp
metadatamap
importedboolean
legacy_idstring | null
Example response
JSON
{
  "id": "pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
  "object": "payin",
  "livemode": true,
  "merchant_order_id": "merchant_order_id",
  "amount": "10000.00",
  "amount_received": "10000.00",
  "currency": "INR",
  "status": "pending",
  "late": true,
  "method": "upi",
  "rail": "rail",
  "checkout_url": "checkout_url",
  "instructions": {
    "type": "redirect"
  },
  "fee": "10000.00",
  "net_amount": "10000.00",
  "reversed_at": "2026-11-23T10:00:00.000Z",
  "reversed_amount": "10000.00",
  "customer": {
    "ref": "ref"
  },
  "reference": "reference",
  "description": "description",
  "payer": {
    "masked": "masked"
  },
  "expires_at": "2026-11-23T10:00:00.000Z",
  "created_at": "2026-11-23T10:00:00.000Z",
  "metadata": {},
  "imported": true,
  "legacy_id": "legacy_id"
}

Cancel a pending pay-in

POST /v1/payins/{id}/cancel

  • Scope: payins:write
  • Success: HTTP 200

Path

FieldTypeRequiredNotes
idstringyes

Example request

HTTP
POST /v1/payins/pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3/cancel HTTP/1.1
Host: api.mynicepanel.com
NP-Key-Id: np_test_kid_…
NP-Timestamp: 1794900000
NP-Nonce: <16 random bytes, base64url>
NP-Algorithm: hmac-sha256
NP-Signature: <base64>

The five NP-… headers are the request's signature: how to make them.

Response — the Payin object

FieldTypeNotes
idstring
object"payin"
livemodeboolean
merchant_order_idstring | null
amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
amount_receivedmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
currencyenumone of INR USDT
statusenumone of pending processing succeeded failed expired cancelled
lateboolean
methodenumone of upi bank_transfer usdt_trc20 usdt_bep20 auto
railstring
checkout_urlstring | null
instructionsobject
instructions.typeenumone of redirect upi_qr bank_details crypto_address simulated none
transfersarray of object
transfers[].tx_hashstring
transfers[].log_indexinteger
transfers[].amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
transfers[].statusstring
transfers[].block_timetimestamp
transfers[].from_addressstring
feemoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
net_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
reversed_attimestamp or nullmay be null
reversed_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
customerobject
customer.refstring | null
referencestring | null
descriptionstring | null
payerobject or nullmay be null
payer.maskedstring
durationsobject
durations.seconds_to_receiveinteger or nullmay be null
expires_attimestamp
created_attimestamp
metadatamap
importedboolean
legacy_idstring | null
Example response
JSON
{
  "id": "pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
  "object": "payin",
  "livemode": true,
  "merchant_order_id": "merchant_order_id",
  "amount": "10000.00",
  "amount_received": "10000.00",
  "currency": "INR",
  "status": "pending",
  "late": true,
  "method": "upi",
  "rail": "rail",
  "checkout_url": "checkout_url",
  "instructions": {
    "type": "redirect"
  },
  "fee": "10000.00",
  "net_amount": "10000.00",
  "reversed_at": "2026-11-23T10:00:00.000Z",
  "reversed_amount": "10000.00",
  "customer": {
    "ref": "ref"
  },
  "reference": "reference",
  "description": "description",
  "payer": {
    "masked": "masked"
  },
  "expires_at": "2026-11-23T10:00:00.000Z",
  "created_at": "2026-11-23T10:00:00.000Z",
  "metadata": {},
  "imported": true,
  "legacy_id": "legacy_id"
}

Submit the customer's payment reference (UTR) for a desk pay-in

POST /v1/payins/{id}/reference

  • Scope: payins:write
  • Success: HTTP 200

Path

FieldTypeRequiredNotes
idstringyes

Body

FieldTypeRequiredNotes
referencestringyesat most 64 characters

Example request

HTTP
POST /v1/payins/pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3/reference HTTP/1.1
Host: api.mynicepanel.com
NP-Key-Id: np_test_kid_…
NP-Timestamp: 1794900000
NP-Nonce: <16 random bytes, base64url>
NP-Algorithm: hmac-sha256
NP-Signature: <base64>
Content-Type: application/json

{
  "reference": "reference"
}

The five NP-… headers are the request's signature: how to make them.

Response — the Payin object

FieldTypeNotes
idstring
object"payin"
livemodeboolean
merchant_order_idstring | null
amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
amount_receivedmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
currencyenumone of INR USDT
statusenumone of pending processing succeeded failed expired cancelled
lateboolean
methodenumone of upi bank_transfer usdt_trc20 usdt_bep20 auto
railstring
checkout_urlstring | null
instructionsobject
instructions.typeenumone of redirect upi_qr bank_details crypto_address simulated none
transfersarray of object
transfers[].tx_hashstring
transfers[].log_indexinteger
transfers[].amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"
transfers[].statusstring
transfers[].block_timetimestamp
transfers[].from_addressstring
feemoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
net_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
reversed_attimestamp or nullmay be null
reversed_amountmoney string or nulldecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null
customerobject
customer.refstring | null
referencestring | null
descriptionstring | null
payerobject or nullmay be null
payer.maskedstring
durationsobject
durations.seconds_to_receiveinteger or nullmay be null
expires_attimestamp
created_attimestamp
metadatamap
importedboolean
legacy_idstring | null
Example response
JSON
{
  "id": "pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
  "object": "payin",
  "livemode": true,
  "merchant_order_id": "merchant_order_id",
  "amount": "10000.00",
  "amount_received": "10000.00",
  "currency": "INR",
  "status": "pending",
  "late": true,
  "method": "upi",
  "rail": "rail",
  "checkout_url": "checkout_url",
  "instructions": {
    "type": "redirect"
  },
  "fee": "10000.00",
  "net_amount": "10000.00",
  "reversed_at": "2026-11-23T10:00:00.000Z",
  "reversed_amount": "10000.00",
  "customer": {
    "ref": "ref"
  },
  "reference": "reference",
  "description": "description",
  "payer": {
    "masked": "masked"
  },
  "expires_at": "2026-11-23T10:00:00.000Z",
  "created_at": "2026-11-23T10:00:00.000Z",
  "metadata": {},
  "imported": true,
  "legacy_id": "legacy_id"
}