LinkJP
APIs Provided by OP
| API Name | Description | Path |
|---|---|---|
| LinkJP Payout API | Used for LinkJP amount payout to players | /order/jackpot |
1. LinkJP Payout /order/jackpot
Method: POST
URI: /order/jackpot
Description: Used for Link Jackpot winning amount payout.
This interface is suitable for slots games: Used for OP user Link Jackpot payout. It is called at least once. OP needs to maintain idempotency for this interface.
Payout Retry: When a network error occurs during the payout call or the returned http code is not 200, 2J will attempt to call this interface multiple times.
Please note, during payout retry, if the OP side has already successfully processed it, it needs to return a normal result, i.e., header.code=0. Please do not return an error.
Request Body:
Content-Type: application/json
{
"action":2, // 2: Payout
"op_id": "xxx-xxx-aaa", // Unique identifier of the user on the OP side, required
"timestamp": 1709201163, // Timestamp (seconds) Creation time of this order
"order":
{
"trans_no":"101156966-1170920125564673-1006-2-1726-1709201163-0",// Unique voucher for this change
"draw_id":"1006-2-1726-1709201163-0", // Unique identifier for the game round
"game_id": 1006, // Game ID
"amount": 5000, // Amount change (Total winning amount of this Hourly and Super)
"room_kind": 1, // Room type
"extra_business":
{
"hourly_amount": 1000, // Winning amount of Hourly Jackpot (0 if not hit this time)
"super_amount": 5000 // Winning amount of Super Jackpot (0 if not hit this time)
}
}
}Parameter Description:
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| action | int | Request action | 2: Reward |
| op_id | string | Player ID of OP | |
| timestamp | int64 | Order creation time | |
| order | object | Order structure | |
| order.trans_no | string | Order unique voucher, use this field for idempotency check | If a completely identical duplicate request is received, this field must be used to handle idempotency |
| order.draw_id | string | Game round unique identifier | |
| order.game_id | int | Game ID | |
| order.amount | int64 | Amount change | Total winning amount of this Hourly and Super |
| order.extra_business | object | Details of this Jackpot winning |
2J will update extra_business information irregularly. Please pay attention to the compatibility adaptation of extra_business during integration
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| extra_business.hourly_amount | int | Winning amount of Hourly Jackpot, 0 if not hit this time | |
| extra_business.super_amount | int | Winning amount of Super Jackpot, 0 if not hit this time |
Response Body:
Content-Type: application/json
{
"header": {
"code": 0, // Error code, 0 means normal, non-0 means abnormal
"msg": "",
"timestamp":1709716095516,
},
"result":
{
"op_id": "111444", // required Unique identifier of the user on the OP side
"availableAmount": 998, // required Current available balance of the OP user
},
}2J Provided APIs
| API Name | Description | Path |
|---|---|---|
| Query Jackpot | Query Jackpot Pot Information | /open2j/g/gjp/pool |
1. 查询瞬时JP
Method: POST
URI:: /open2j/g/gjp/pool
Description: Query Jackpot Pot Information
Request Body:
Content-Type: application/json
{}Response Body:
Content-Type: application/json
{
"header": {
"code": 0, // err code, 0 means normal, non-zero means exception
"msg": "",
"timestamp":1709716095516,
},
"result": {
"hourly_group": {
"next_hour": 1768802400000,
"next_pot": 0,
"pot": 31500
},
"super_group": {
"next_hour": 0,
"next_pot": 3600,
"pot": 8580.123
}
}
}