Skip to content

LinkJP

APIs Provided by OP

API NameDescriptionPath
LinkJP Payout APIUsed 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

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:

ParameterTypeDescriptionRemarks
actionintRequest action2: Reward
op_idstringPlayer ID of OP
timestampint64Order creation time
orderobjectOrder structure
order.trans_nostringOrder unique voucher, use this field for idempotency checkIf a completely identical duplicate request is received, this field must be used to handle idempotency
order.draw_idstringGame round unique identifier
order.game_idintGame ID
order.amountint64Amount changeTotal winning amount of this Hourly and Super
order.extra_businessobjectDetails of this Jackpot winning

2J will update extra_business information irregularly. Please pay attention to the compatibility adaptation of extra_business during integration

ParameterTypeDescriptionRemarks
extra_business.hourly_amountintWinning amount of Hourly Jackpot, 0 if not hit this time
extra_business.super_amountintWinning amount of Super Jackpot, 0 if not hit this time

Response Body:

Content-Type: application/json

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 NameDescriptionPath
Query JackpotQuery 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

json
{}

Response Body:

Content-Type: application/json

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
        }
    }
}

2J Game Inc.