Skip to content
GAMPEONCreate
New project

Sandbox: simulate a chargeback

POST
/v1/admin/wallet/orders/{id}/chargeback
curl --request POST \
--url https://api.gampeon.com/v1/admin/wallet/orders/example/chargeback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "reason": "example" }'

Takes back the rest of the purchase, removes items bought with it, reverses creator shares still on hold and locks the wallet.

Requires the role admin.

Not available with access tokens.

id
required
string

Order ID (ord_…)

Idempotency-Key
required
string

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.

Media typeapplication/json
object
reason
required

Reason, 5 to 500 characters. Stored in the audit log.

string
>= 5 characters <= 500 characters

Example generated

{
"reason": "example"
}

Charged back

Media typeapplication/json
object
order
required
string
status
required
string
clawedBack
required

Amount in GAMPEONS

integer
revokedItems
required
integer

Example generated

{
"order": "example",
"status": "example",
"clawedBack": 1,
"revokedItems": 1
}

Error codes: invalid_field, idempotency_key_required

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: unauthorized

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: forbidden, token_not_allowed

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: not_found

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: order_not_paid, idempotency_conflict

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: payments_disabled

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback