WIRE_INBOUND scenario credits the specified sandbox account with the given amount and fires a PAYMENT_WIRE_INBOUND_POSTED webhook event — exactly as if a real wire had arrived. This endpoint is not available in production and will return 403 Forbidden if called outside of sandbox.
Endpoint
com.diameterpay.api/payments.write
Request Headers
string
required
Bearer token obtained from your OAuth2 token endpoint. Format:
Bearer {access_token}string
required
A UUID v4 string that uniquely identifies this simulation request. Replaying the same key within the idempotency window returns the original response without re-triggering the simulation.
Request Body
string
required
The payment scenario to simulate. Currently supported value:
WIRE_INBOUND— simulates an inbound wire transfer crediting the target account
string
required
The bank partner to simulate the payment through. Must be one of:
PORTAGESLOVAK_SAVINGS_BANK
string
required
The sandbox account number to credit. This must be a valid account number within your sandbox environment.
string
required
The amount to simulate, expressed as a decimal string (e.g.
"500.00"). Must be a positive value.string
Optional wire transfer classification:
DOMESTIC— domestic wireINTERNATIONAL— international wire
DOMESTIC if not specified.string
Optional description forwarded to the bank’s simulation API. Useful for labeling test scenarios or associating simulated payments with test cases.
Response
Returns HTTP 201 Created on success.boolean
true when the simulation was accepted and the payment event was triggered successfully.string
The scenario that was simulated (e.g.
WIRE_INBOUND).string
The bank partner used for the simulation.
string
The type of reference returned by the bank simulation system. Value:
FILENAME.string
The reference value generated by the bank simulation system for this simulated payment event.
A successful simulation triggers a
PAYMENT_WIRE_INBOUND_POSTED webhook event and reflects a real balance credit in the sandbox. Verify your webhook handler is configured to receive events at the correct endpoint before running simulations.