Xsolla-logo

Pay notification

post/push-payments/pay

An endpoint for notifications about successful payments. After successfully charging a user, the payment system sends a notification to this endpoint.

Request
Request Body schema: application/json
project_id
required
integer

Project ID.

required
object
required
object
required
object
Responses
200

OK.

400

Bad request.

403

Access denied.

404

Order not found.

409

Order is already paid.

422

Error while creating payment.

500

Internal server error.

Request samples
application/json
{
  • "project_id": 18404,
  • "payment": {
    },
  • "purchase": {
    },
  • "user": {
    }
}
Response samples
application/json
{
  • "payment_id": 784998484
}