Pay-ins
Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.
- POST
/v1/payinsCreate a pay-in - GET
/v1/payinsList pay-ins - GET
/v1/payins/{id}Retrieve a pay-in - POST
/v1/payins/{id}/cancelCancel a pending pay-in - POST
/v1/payins/{id}/referenceSubmit the customer's payment reference (UTR) for a desk pay-in
Create a pay-in
POST /v1/payins
- Scope:
payins:write Idempotency-Keyrequired — use your own id- Success: HTTP 201
Body
| Field | Type | Required | Notes |
|---|---|---|---|
merchant_order_id | string | yes | pattern ^[A-Za-z0-9_.:-]{1,64}$ |
amount | money string | yes | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | yes | one of INR USDT |
method | enum | yes | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
customer | object | yes | |
customer.ref | string | yes | pattern ^[A-Za-z0-9_.:-]{1,64}$ |
customer.name | string | at most 100 characters | |
customer.phone | string | pattern ^\+?[0-9]{6,15}$ | |
customer.email | string | pattern ^(?:[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.ip | IPv4 address or IPv6 address | ||
return_url | URL | at most 2048 characters | |
expires_in | integer | min 60; max 86400 | |
channel | enum | one of desk gateway upi qr instant qr_lite qr_2 bank | |
description | string | at most 200 characters | |
metadata | map | default {} |
Example request
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
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "payin" | |
livemode | boolean | |
merchant_order_id | string | null | |
amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
amount_received | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | one of INR USDT |
status | enum | one of pending processing succeeded failed expired cancelled |
late | boolean | |
method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
rail | string | |
checkout_url | string | null | |
instructions | object | |
instructions.type | enum | one of redirect upi_qr bank_details crypto_address simulated none |
transfers | array of object | |
transfers[].tx_hash | string | |
transfers[].log_index | integer | |
transfers[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
transfers[].status | string | |
transfers[].block_time | timestamp | |
transfers[].from_address | string | |
fee | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
net_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
reversed_at | timestamp or null | may be null |
reversed_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
customer | object | |
customer.ref | string | null | |
reference | string | null | |
description | string | null | |
payer | object or null | may be null |
payer.masked | string | |
durations | object | |
durations.seconds_to_receive | integer or null | may be null |
expires_at | timestamp | |
created_at | timestamp | |
metadata | map | |
imported | boolean | |
legacy_id | string | null |
Example response
{
"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
| Field | Type | Notes |
|---|---|---|
limit | integer | min 1; max 100; default 20 |
starting_after | string | at most 40 characters |
ending_before | string | at most 40 characters |
merchant_order_id | string | pattern ^[A-Za-z0-9_.:-]{1,64}$ |
status | enum | one of pending processing succeeded failed expired cancelled |
method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
customer_ref | string | pattern ^[A-Za-z0-9_.:-]{1,64}$ |
reference | string | at most 128 characters |
currency | enum | one of INR USDT |
created_from | timestamp | pattern ^(?:(?:\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_to | timestamp | pattern ^(?:(?:\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_min | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
amount_max | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
legacy_id | string | at most 64 characters |
imported | enum | one of true false both; default "both" |
Example request
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
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].id | string | |
data[].object | "payin" | |
data[].livemode | boolean | |
data[].merchant_order_id | string | null | |
data[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].amount_received | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].currency | enum | one of INR USDT |
data[].status | enum | one of pending processing succeeded failed expired cancelled |
data[].late | boolean | |
data[].method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
data[].rail | string | |
data[].checkout_url | string | null | |
data[].instructions | object | |
data[].instructions.type | enum | one of redirect upi_qr bank_details crypto_address simulated none |
data[].transfers | array of object | |
data[].transfers[].tx_hash | string | |
data[].transfers[].log_index | integer | |
data[].transfers[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].transfers[].status | string | |
data[].transfers[].block_time | timestamp | |
data[].transfers[].from_address | string | |
data[].fee | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
data[].net_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
data[].reversed_at | timestamp or null | may be null |
data[].reversed_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
data[].customer | object | |
data[].customer.ref | string | null | |
data[].reference | string | null | |
data[].description | string | null | |
data[].payer | object or null | may be null |
data[].payer.masked | string | |
data[].durations | object | |
data[].durations.seconds_to_receive | integer or null | may be null |
data[].expires_at | timestamp | |
data[].created_at | timestamp | |
data[].metadata | map | |
data[].imported | boolean | |
data[].legacy_id | string | null | |
has_more | boolean |
Example response
{
"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
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Example request
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
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "payin" | |
livemode | boolean | |
merchant_order_id | string | null | |
amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
amount_received | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | one of INR USDT |
status | enum | one of pending processing succeeded failed expired cancelled |
late | boolean | |
method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
rail | string | |
checkout_url | string | null | |
instructions | object | |
instructions.type | enum | one of redirect upi_qr bank_details crypto_address simulated none |
transfers | array of object | |
transfers[].tx_hash | string | |
transfers[].log_index | integer | |
transfers[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
transfers[].status | string | |
transfers[].block_time | timestamp | |
transfers[].from_address | string | |
fee | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
net_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
reversed_at | timestamp or null | may be null |
reversed_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
customer | object | |
customer.ref | string | null | |
reference | string | null | |
description | string | null | |
payer | object or null | may be null |
payer.masked | string | |
durations | object | |
durations.seconds_to_receive | integer or null | may be null |
expires_at | timestamp | |
created_at | timestamp | |
metadata | map | |
imported | boolean | |
legacy_id | string | null |
Example response
{
"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
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Example request
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
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "payin" | |
livemode | boolean | |
merchant_order_id | string | null | |
amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
amount_received | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | one of INR USDT |
status | enum | one of pending processing succeeded failed expired cancelled |
late | boolean | |
method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
rail | string | |
checkout_url | string | null | |
instructions | object | |
instructions.type | enum | one of redirect upi_qr bank_details crypto_address simulated none |
transfers | array of object | |
transfers[].tx_hash | string | |
transfers[].log_index | integer | |
transfers[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
transfers[].status | string | |
transfers[].block_time | timestamp | |
transfers[].from_address | string | |
fee | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
net_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
reversed_at | timestamp or null | may be null |
reversed_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
customer | object | |
customer.ref | string | null | |
reference | string | null | |
description | string | null | |
payer | object or null | may be null |
payer.masked | string | |
durations | object | |
durations.seconds_to_receive | integer or null | may be null |
expires_at | timestamp | |
created_at | timestamp | |
metadata | map | |
imported | boolean | |
legacy_id | string | null |
Example response
{
"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
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
reference | string | yes | at most 64 characters |
Example request
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
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "payin" | |
livemode | boolean | |
merchant_order_id | string | null | |
amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
amount_received | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | one of INR USDT |
status | enum | one of pending processing succeeded failed expired cancelled |
late | boolean | |
method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
rail | string | |
checkout_url | string | null | |
instructions | object | |
instructions.type | enum | one of redirect upi_qr bank_details crypto_address simulated none |
transfers | array of object | |
transfers[].tx_hash | string | |
transfers[].log_index | integer | |
transfers[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
transfers[].status | string | |
transfers[].block_time | timestamp | |
transfers[].from_address | string | |
fee | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
net_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
reversed_at | timestamp or null | may be null |
reversed_amount | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
customer | object | |
customer.ref | string | null | |
reference | string | null | |
description | string | null | |
payer | object or null | may be null |
payer.masked | string | |
durations | object | |
durations.seconds_to_receive | integer or null | may be null |
expires_at | timestamp | |
created_at | timestamp | |
metadata | map | |
imported | boolean | |
legacy_id | string | null |
Example response
{
"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"
}