Nice Paydocs API version 2026-12-01 OpenAPI

Test mode

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

Test mode: move a pay-in

POST /v1/test/payins/{id}/simulate

  • Scope: payins:write
  • Test mode only
  • SDK: simulatePayin()
  • Success: HTTP 202

Path

FieldTypeRequiredNotes
idstringyes

Body

FieldTypeRequiredNotes
actionenumyesone of succeed fail expire partial
amountmoney stringdecimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"

Example

const result = await nicepay.simulatePayin("pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3", {
  "action": "succeed"
});

Response โ€” the Simulation object

FieldTypeNotes
object"simulation"
queuedboolean
Example response
JSON
{
  "object": "simulation",
  "queued": true
}

Test mode: move a payout

POST /v1/test/payouts/{id}/simulate

  • Scope: payouts:write
  • Test mode only
  • SDK: simulatePayout()
  • Success: HTTP 202

Path

FieldTypeRequiredNotes
idstringyes

Body

FieldTypeRequiredNotes
actionenumyesone of succeed fail reverse

Example

const result = await nicepay.simulatePayout("<id>", {
  "action": "succeed"
});

Response โ€” the Simulation object

FieldTypeNotes
object"simulation"
queuedboolean
Example response
JSON
{
  "object": "simulation",
  "queued": true
}