POST api/Credits/PurchaseCreditsByUser

Request Information

URI Parameters

None.

Body Parameters

PurchaseCreditByUserRequestVM
NameDescriptionTypeAdditional information
UserId

string

Required

ParentAccountId

string

Required

PaymentMethodId

string

Required

PurchaseCredits

integer

None.

CreditCost

decimal number

None.

AddedBy

CreditAddedBy

None.

IsCreateNewMethod

boolean

None.

NewCardToken

string

None.

AccountName

string

None.

IsMakeNewCardAsDefault

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "ParentAccountId": "sample string 2",
  "PaymentMethodId": "sample string 3",
  "PurchaseCredits": 4,
  "CreditCost": 5.0,
  "AddedBy": "None",
  "IsCreateNewMethod": true,
  "NewCardToken": "sample string 7",
  "AccountName": "sample string 8",
  "IsMakeNewCardAsDefault": true
}

application/xml, text/xml

Sample:
<PurchaseCreditByUserRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.CreditRequestVM">
  <AccountName>sample string 8</AccountName>
  <AddedBy>None</AddedBy>
  <CreditCost>5</CreditCost>
  <IsCreateNewMethod>true</IsCreateNewMethod>
  <IsMakeNewCardAsDefault>true</IsMakeNewCardAsDefault>
  <NewCardToken>sample string 7</NewCardToken>
  <ParentAccountId>sample string 2</ParentAccountId>
  <PaymentMethodId>sample string 3</PaymentMethodId>
  <PurchaseCredits>4</PurchaseCredits>
  <UserId>sample string 1</UserId>
</PurchaseCreditByUserRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.