Testing in sandbox
Validate your integration end-to-end against the sandbox base URL
(https://voting-dev.eventista.vn/voting/api) before going live. Sandbox EP has no real
value.
-
Sign and award successfully
Use the signing examples with your sandbox credentials; confirm a fresh award returns 202 with the expected
points. A401means your signing string or byte-handling is off. -
Test idempotency
Resend the same request — the second call must return 200 DUPLICATE, and the user balance must increase only once. Then send the same
orderIdwith a changed body and confirm 409 IDEMPOTENCY_CONFLICT. -
Test conversion & caps
Send
amount < 1000(expect422 AMOUNT_BELOW_MIN) and an over-cap amount (expect422 PER_TX_CAP_EXCEEDED). -
Test auth & tenant failures
Send a bad signature (expect
401), a stale timestamp (expect401 TIMESTAMP_OUT_OF_RANGE), and a tenant you’re not allowed (expect403 TENANT_NOT_ALLOWED). -
Reconcile
Confirm the award via status lookup and list it via award history, paging until
nextCursorisnull.