Skip to content
GAMPEONCreate
New project

Xsolla webhook (called by Xsolla only)

POST
/v1/payments/xsolla/webhook
curl --request POST \
--url https://api.gampeon.com/v1/payments/xsolla/webhook \
--header 'Content-Type: application/json' \
--data '{ "notification_type": "example" }'

Signed with Authorization: Signature <sha1(body + secret)>. Handles user_validation, order_paid (credits the GAMPEONS once) and order_canceled (takes them back like a chargeback). Payments that are not test payments are refused. Errors use Xsolla’s format { "error": { "code": "INVALID_SIGNATURE" | "INVALID_USER" | "INVALID_PARAMETER", "message": "…" } }. Only active in sandbox mode with provider: xsolla.

Media typeapplication/json
object
notification_type
required

E.g. user_validation, order_paid, order_canceled

string

Example generated

{
"notification_type": "example"
}

Processed

Error codes: invalid_field, INVALID_USER, INVALID_PARAMETER

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: INVALID_SIGNATURE

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: body_too_large

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