POST api/punters/{punterId}/withdraw?withdrawalType={withdrawalType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
punterId

integer

Required

withdrawalType

integer

Default value is 0

Body Parameters

BO.BETRequestObjects.Punter.PunterWithdrawRequest
NameDescriptionTypeAdditional information
Amount

decimal number

None.

Reference

string

None.

PunterTransactionTypeID

integer

None.

ioBB

string

None.

Request Formats

application/json, text/json

Sample:
{
  "amount": 1.0,
  "reference": "sample string 2",
  "punterTransactionTypeID": 3,
  "ioBB": "sample string 4"
}

application/xml, text/xml

Sample:
<PunterWithdrawRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Amount>1</Amount>
  <Reference>sample string 2</Reference>
  <PunterTransactionTypeID>3</PunterTransactionTypeID>
  <ioBB>sample string 4</ioBB>
</PunterWithdrawRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BO.BETResponseObjects.BaseResponseOfBO.Models.Punter.PunterBalanceModel
NameDescriptionTypeAdditional information
ResponseObject

BO.Models.Punter.PunterBalanceModel

None.

ResponseMessage

string

None.

ResponseType

BO.Enums.ResponseType

None.

Response Formats

application/json, text/json

Sample:
{
  "responseObject": {
    "available": 1.0,
    "pending": 1.0,
    "bonus": 1.0,
    "bonusResponseMessage": "sample string 1"
  },
  "responseMessage": "sample string 1",
  "responseType": 1
}

application/xml, text/xml

Sample:
<BaseResponseOfPunterBalanceModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ResponseObject>
    <Available>1</Available>
    <Pending>1</Pending>
    <Bonus>1</Bonus>
    <BonusResponseMessage>sample string 1</BonusResponseMessage>
  </ResponseObject>
  <ResponseMessage>sample string 1</ResponseMessage>
  <ResponseType>Success</ResponseType>
</BaseResponseOfPunterBalanceModel>