Test mode
Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.
- POST
/v1/test/payins/{id}/simulateTest mode: move a pay-in - POST
/v1/test/payouts/{id}/simulateTest mode: move a payout
Test mode: move a pay-in
POST /v1/test/payins/{id}/simulate
- Scope:
payins:write - Test mode only
- SDK:
simulatePayin() - Success: HTTP 202
Path
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
action | enum | yes | one of succeed fail expire partial |
amount | money string | decimal 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"
});$result = $nicepay->simulatePayin('pi_01JD3QH2Y8ZKX4M9T6V0R1B2C3', [
'action' => 'succeed',
]);Response โ the Simulation object
| Field | Type | Notes |
|---|---|---|
object | "simulation" | |
queued | boolean |
Example response
{
"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
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
action | enum | yes | one of succeed fail reverse |
Example
const result = await nicepay.simulatePayout("<id>", {
"action": "succeed"
});$result = $nicepay->simulatePayout('<id>', [
'action' => 'succeed',
]);Response โ the Simulation object
| Field | Type | Notes |
|---|---|---|
object | "simulation" | |
queued | boolean |
Example response
{
"object": "simulation",
"queued": true
}