Keys are not interchangeable: a
wk_test_ key is rejected in production and a
wk_live_ key is rejected in the sandbox (401). Ask Winam for a sandbox key;
you receive it with your webhook secret, shown once.
Interactive API explorer (sandbox only): https://sandbox.winampay.de/docs.
Behaviour
- MTN deposit →
status: "pending",collection_mode: "merchant_initiated". - Orange deposit →
status: "pending",collection_mode: "customer_initiated"and aninstructionsobject to display to the player (see Collection modes). The USSD code in the sandbox is deliberately invalid (#150*14*000000*000000000*<amount>#): do not dial it on a real phone. - Withdrawal →
status: "pending_approval", as in production. - A deposit that is not simulated expires after 15 minutes and sends
payment.expired.
Simulate an outcome
Response
200:
Suggested test plan
- Deposit MTN → simulate
succeeded→ player credited once, webhook signature verified. - Deposit Orange → display
instructions→ simulatesucceeded. - Deposit → simulate
failed, thenexpired, thenexpired+succeeded. - Re-send the same
reference→ samewinam_tx_id, no second transaction. - Make your webhook endpoint return
500, simulate an outcome, then use Replay Webhook. - Withdrawal → simulate
succeededandfailed.

