# Transfer Out

หักจำนวนเงินผู้เล่น

# Request

Field Value
URL {OperatorAPI}/transferOut
Method POST

# Body parameters

Key Type Description Required Value
vendor_id number ไอดีค่ายเกมส์ (ดูลิสค่ายเกมส์ที่ Game code) Yes 0
brand_id string ไอดี Operator Yes rygdemo
transactions array ข้อมูลการทำรายการทั้งหมด Yes [...]
transactions[idx].player_id string ไอดีผู้เล่น Yes 1
transactions[idx].info array ข้อมูลการทำรายการของผู้เล่นนี้ Yes [...]
transactions[idx].info[idx].id string รหัสการทำรายการ Yes abc-def-ghi
transactions[idx].info[idx].ref string รหัสรายการเพิ่มเติม (กรณียกเลิกการทำรายการ) No jkl-mno-pqr
transactions[idx].info[idx].amount float จำนวนเงิน Yes 10.5
transactions[idx].info[idx].duplicate boolean รายการซ้ำหรือไม่ (แนะนำให้ตรวจสอบฐานข้อมูลของ Operator) Yes false
transactions[idx].info[idx].status number รายการสถานะ (ดูเลขสถานะที่ Transaction Status) Yes 0
transactions[idx].info[idx].game_info number รายละเอียดของเกมส์ Yes 0
transactions[idx].info[idx].game_info.id string ไอดีเกมส์ No Salad box
transactions[idx].info[idx].game_info.name string ชื่อเกมส์ No 0
transactions[idx].info[idx].game_info.type number ประเภทเกมส์ No 0

# Example

https://{OperatorAPI}/transferOut

# Payload

{
  "vendor_id": 1,
  "brand_id": "rygdemo",
  "transactions": [
    {
      "player_id": "1",
      "info": [
        {
          "id": "abc1234567890123",
          "ref": "abc1234567890123",
          "amount": 10,
          "duplicate": false,
          "status": 0,
          "game_info": {
            "id": "abc123",
            "name": null,
            "type": 0
          }
        }
      ]
    }
  ]
}

# Response data

Key Type Description Required Value
balance float จำนวนเงินผู้เล่น Yes 100.00

# Full response

{
  "code": 0,
  "message": "ok",
  "data": {
    "balance": 100.0
  }
}