#

SUD

Description

  • User settlement notification (Texas Hold'em, TeenPatti)

Request method

  • https
  • POST
  • Parameters are in Json format and placed in the body

Request parameters (additional fields may be added, please keep compatibility with the added fields on the server side)

Parameter name Required Type Description Example
notify_id Yes string Notification ID 0795d77f85789da0eb387a5096
notify_time Yes string Server-side timestamp (milliseconds) at the time of notification 1647834452408
app_id Yes string Application ID of the message recipient 1
notify_event Yes string Notification event sud.mg.merchant.user.settle
data Yes UserSettleModel Notification data {}
UserSettleModel
Parameter name Required Type Description Example
mg_id Yes string Game ID 14615640800525066
room_id Yes string Room ID 9009
match_id Yes string Game session ID ce56b6lzi1a7
results Yes PlayerSettleModel[] Player settlement data
settle_at Yes string Settlement timestamp (seconds) 1663991011
  • PlayerSettleModel
Parameter name Required Type Description Example
uid Yes string User UID, empty string for robot u001
order_id Yes string Order ID to which the settlement belongs 1663991011001
out_order_id Yes string Merchant-defined order ID ce56b6lzi1a
is_ai Yes int32 0: ordinary user, 1: robot 0
score Yes int32 Points earned by the player in the current settlement 10
remain_score Yes int32 Points remaining in the player's current settlement 100
commission_score No int32 Commission points deducted 10
Message signature

Signature verification

Request example

{
    "notify_id": "0795d77f85789da0eb387a50964993a3eba1fedfec2b12f729861392a9b5ad04",
    "notify_time": "1647844976502",
    "app_id": "14615640800525066",
    "notify_event": "sud.mg.merchant.user.settle",
    "data": {
        "mg_id": "mgid01"
        "room_id": "9009",
        "match_id": "match-001",
        "results": [
            {
                "uid": "u001",
                "order_id": "1663991011001",
                "out_order_id": "ce56b6lzi1a",
                "is_ai": 0,
                "score": 10,
                "remain_score": 100,
                "commission_score": 10
            },
            {
                "uid": "u002",
                "order_id": "1663991011002",
                "out_order_id": "ce56b6lzi1b",
                "is_ai": 0,
                "score": 20,
                "remain_score": 90,
                "commission_score": 0
            }
        ],
        "settle_at": "1663991011"
    }
}

Notification response

Parameter name Required Type Description Example
ret_code Yes int32 Return status code, 0 means notification succeeded, other error codes mean failure 0
ret_msg Yes string Return message SUCCESS

Response example

{
    "ret_code": 0,
    "ret_msg": "SUCCESS",
}

results matching ""

    No results matching ""