Skip to main content
POST
/
test
/
payment-intents
/
{payment_intent_id}
/
simulate-deposit
Simulate a deposit landing on a sandbox payment intent
curl --request POST \
  --url https://api.zopay.cash/connect/v1/test/payment-intents/{payment_intent_id}/simulate-deposit \
  --header 'Authorization: Bearer <token>'
{}
Sandbox-only. Flips a pending sandbox payment intent to completed, persists a fake deposit transaction (visible in GET /connect/v1/transactions), and enqueues a payment.completed webhook for delivery to the organization’s configured webhook URL. The outbound payload carries livemode: false so partner handlers can branch. Returns 404 on live keys. Idempotent: calling twice on the same intent returns the same envelope without re-firing the webhook (the intent’s completed_at is the idempotency anchor).

Authorizations

Authorization
string
header
required

Paste your Connect API key (sk_live_… for production, sk_test_… for sandbox) without the Bearer prefix. Mint and rotate keys from the admin panel.

Headers

authorization
string | null

Path Parameters

payment_intent_id
string
required

Payment intent UUID as returned from POST /payment-intents.

Response

Successful Response

The response is of type Response Simulate Deposit Test Payment Intents Payment Intent Id Simulate Deposit Post · object.