POST api/admin/credit

Request Information

URI Parameters

None.

Body Parameters

CreditRequest
NameDescriptionTypeAdditional information
customerId

string

None.

amount

decimal number

None.

description

string

None.

chargeId

string

None.

homeasapCreditReason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": "sample string 1",
  "amount": 2.0,
  "description": "sample string 3",
  "chargeId": "sample string 4",
  "homeasapCreditReason": "sample string 5"
}

text/html

Sample:
{"customerId":"sample string 1","amount":2.0,"description":"sample string 3","chargeId":"sample string 4","homeasapCreditReason":"sample string 5"}

application/xml, text/xml

Sample:
<CreditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <Amount>2</Amount>
  <ChargeId>sample string 4</ChargeId>
  <CustomerId>sample string 1</CustomerId>
  <Description>sample string 3</Description>
  <HomeasapCreditReason>sample string 5</HomeasapCreditReason>
</CreditRequest>

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 'CreditRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.