POST api/Agents/InsertPlayerTransaction

Request Information

URI Parameters

None.

Body Parameters

InsertPlayerTransRequest
NameDescriptionTypeAdditional information
IdPlayer

integer

None.

Description

string

None.

Amount

decimal number

None.

Reference

string

None.

Fee

decimal number

None.

Bonus

decimal number

None.

IdPaymentMethod

byte

None.

TransactionType

character

None.

TransactionDate

date

None.

IdUser

integer

None.

IdAdjustmentType

byte

None.

PreviousBalance

decimal number

None.

NewBalance

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "IdPlayer": 1,
  "Description": "sample string 2",
  "Amount": 3.0,
  "Reference": "sample string 4",
  "Fee": 5.0,
  "Bonus": 6.0,
  "IdPaymentMethod": 64,
  "TransactionType": "A",
  "TransactionDate": "2025-04-28T11:33:51.9743584-04:00",
  "IdUser": 10,
  "IdAdjustmentType": 64,
  "PreviousBalance": 12.0,
  "NewBalance": 13.0
}

text/html

Sample:
{"IdPlayer":1,"Description":"sample string 2","Amount":3.0,"Reference":"sample string 4","Fee":5.0,"Bonus":6.0,"IdPaymentMethod":64,"TransactionType":"A","TransactionDate":"2025-04-28T11:33:51.9743584-04:00","IdUser":10,"IdAdjustmentType":64,"PreviousBalance":12.0,"NewBalance":13.0}

application/xml, text/xml

Sample:
<InsertPlayerTransRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InvoiceAPI.DataTransferObjects">
  <Amount>3</Amount>
  <Bonus>6</Bonus>
  <Description>sample string 2</Description>
  <Fee>5</Fee>
  <IdAdjustmentType>64</IdAdjustmentType>
  <IdPaymentMethod>64</IdPaymentMethod>
  <IdPlayer>1</IdPlayer>
  <IdUser>10</IdUser>
  <NewBalance>13</NewBalance>
  <PreviousBalance>12</PreviousBalance>
  <Reference>sample string 4</Reference>
  <TransactionDate>2025-04-28T11:33:51.9743584-04:00</TransactionDate>
  <TransactionType>65</TransactionType>
</InsertPlayerTransRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>