Simulate Payment to Instrument
POST/v2/payment-simulations/payment-instrument
Sandbox Only - Simulates a complete payment lifecycle for a payment instrument.
This endpoint triggers the actual internal webhook handlers used in production, ensuring that your integration is tested against the real payment processing logic. It supports simulating successful payments, failures, and idempotent replays.
Supported Scenarios:
- Success Flow: Simulates a successful payment from a customer.
- Failure Flow: Simulates a failed payment attempt (e.g., declined transaction).
- Idempotency: Repeated calls with the same instrument and status will correctly trigger idempotency checks, returning an
already_processedresult.
Supported Providers:
- Coins.ph: QRPH P2M
- Netbank: QRPH P2M
Constraints:
- Only available in
testenvironments. - Requires a valid
payment_instrument_id. - For static instruments,
amountis required. For dynamic instruments, the amount is fixed.
Request
Responses
- 201
- 400
- 403
- 404
- 429
Payment simulation completed successfully
Bad Request - Invalid input
Forbidden - Only available in test environments
Not Found - Payment instrument not found
Too many requests - rate limit exceeded