POST api/v{version}/wallets/charge

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

ChargeModel
NameDescriptionTypeAdditional information
MethodId

integer

Required

GatewayId

integer

Required

Amount

decimal number

Required

Range: inclusive between 100 and 2147483647

PreventRedirect

Do not use this property with true value, cuz it cause the logic of program goes into invalid state. (RedirectPermanent)

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MethodId": 1,
  "GatewayId": 1,
  "Amount": 1.0,
  "PreventRedirect": true
}

application/xml, text/xml

Sample:
<ChargeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.BindingModels.Wallet">
  <Amount>1</Amount>
  <GatewayId>1</GatewayId>
  <MethodId>1</MethodId>
  <PreventRedirect>true</PreventRedirect>
</ChargeModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChargeModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.