Sandbox: simulate a payment
const url = 'https://api.gampeon.com/v1/wallet/orders/example/sandbox-pay';const options = { method: 'POST', headers: {'Idempotency-Key': 'example', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.gampeon.com/v1/wallet/orders/example/sandbox-pay \ --header 'Authorization: Bearer <token>' \ --header 'Idempotency-Key: example'Only in sandbox mode with simulated payments (provider: sandbox). Stands in for the payment provider confirming the payment and credits the GAMPEONS.
Not available with access tokens.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Order ID (ord_…)
Header Parameters
Section titled “Header Parameters”Required. 8 to 100 characters (A-Z a-z 0-9 _ - : .). The same key with the same body returns the stored answer (replayed: true) without booking again.
Responses
Section titled “Responses”Paid
object
object
Amount in GAMPEONS
Euro cents
sandbox: simulated payment with POST /v1/wallet/orders/:id/sandbox-pay. xsolla: Xsolla test payment through POST /v1/wallet/orders/:id/checkout.
Unix time in milliseconds
Unix time in milliseconds
object
off: payments are switched off. sandbox: payments are simulated, no real money moves.
object
Bought or gifted. Spendable, never paid out
Earned, still in the holding period
Earned. Spendable and can be paid out
Reserved for a payout request
Wallet + earned
Locked after a chargeback. Buying, spending and payouts are blocked
Seller terms accepted, prices can be set
Creator shares that unlock next
object
Unix time in milliseconds
Amount in GAMPEONS
object
Euro cents
Spent or in open orders in the last 30 days
object
Creator share of each sale in basis points (7000 = 70 %)
Payout per earned GAMPEON in millionths of a euro (3800 = €0.0038)
Minimum payout
Days before a creator share can be spent or paid out
Days to withdraw from an unused purchase
Most an account can spend on GAMPEONS in 30 days
Lowest price for an item
Highest price for an item
Example
{ "order": { "status": "pending", "provider": "sandbox" }, "wallet": { "mode": "off", "payoutProgram": "none" }}Error codes: idempotency_key_required
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: unauthorized
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: token_not_allowed, wallet_locked
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: order_not_pending, order_expired, idempotency_conflict
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: payments_disabled
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}